[Bug]: GPU not being fully utilized
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- docker, python
調査の方向性
まず、提供された LateInteractionTextEmbedding と FastEmbedSparse の例を fastembed-gpu==0.4.0 で再現し、次に provider と cuda の設定を、docker-compose の GPU 予約および Dockerfile-gpu と併せて調査します。再現結果に基づく証拠によって、GPU 使用状況が報告と異なる理由を特定し、その動作を文書化または修正できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
What happened?
I am currently using LateInteraction and BM25 model using fastembed library but my GPU is not being fully utilized! my provider is set to CUDAExecutionProvider, still only 4GB is being utilized out of 24GB!
What is the expected behaviour?
All of the available GPU memory should be utilized!
A minimal reproducible example
`def _initialize_colbert_model(gpu: bool):
"""Initialize ColBERT model with GPU or CPU based on the flag."""
provider = ["CUDAExecutionProvider"] if gpu else ["CPUExecutionProvider"]
use_cuda = True if gpu else False
logger.info(f"Initializing ColBERT model with {provider}")
return LateInteractionTextEmbedding("colbert-ir/colbertv2.0", providers=provider,cuda=use_cuda, parallel=0,local_files_only=LOCAL_FILES_ONLY)
def _initialize_sparse_bm25_model(gpu: bool):
"""Initialize FastEmbedSparse model with GPU or CPU based on the flag."""
provider = ["CUDAExecutionProvider"] if gpu else None
use_cuda = True if gpu else False
logger.info(f"Initializing FastEmbedSparse model with {'GPU' if gpu else 'CPU'}")
return FastEmbedSparse(providers=provider, cuda = use_cuda, parallel=0,local_files_only=LOCAL_FILES_ONLY)`
here is my docker-compose file:
`version: '3.8'
services:
web:
build:
context: .
dockerfile: Dockerfile-gpu
environment:
- GPU_DEPLOYMENT=TRUE
restart: always
ports:
- "5003:5003"
volumes:
- ./logs:/app/logs
deploy:
resources:
limits:
memory: 15g
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]`
What Python version are you on? e.g. python --version
python 3.12
FastEmbed version
fastembed-gpu==0.4.0
What os are you seeing the problem on?
Linux
Relevant stack traces and/or logs
No response
- 主要言語
- Python
- スター
- 3.3k
- フォーク
- 314
- 平均マージ
- 5日 7時間
- マージ済み PR(30日)
- 23
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
qdrant/fastembed のほかの issue
-
[Bug]: Bm25 splits Tamil, Hindi, Sinhala and other words on their combining marks対応中かも @Nipuna-Lakruwan が 12 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
qdrant/fastembed#886 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
-
miniCOIL clean_words mutates input and loses counts when normalized words collide対応中かも @pear1-pea が 20 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 1/100
メンテナーはふだん 4 日以内に返信
-
[Bug]: Revision-pinned HF downloads can falsely report intact files as corrupted対応中かも @N7766 が 24 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 82/100
メンテナーはふだん 4 日以内に返信
-
[Bug]: URL-backed custom models with the same basename reuse the wrong cached model対応中かも @rtmalikian が 24 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
メンテナーはふだん 4 日以内に返信
-
[Bug]: rerank_pairs raises TypeError when pairs are passed as a tuple of pairs対応中かも @michaelkillgta が 53 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 22/100
メンテナーはふだん 4 日以内に返信
qdrant/fastembed の issue をすべて見る
似ている issue
-
DMB documentation good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ubuntu/ubuntu-project-docs#921 ·
メンテナーはふだん 1 日以内に返信
-
⏳ Pending feedback 🐛 Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
jumpserver/jumpserver#18282 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 76/100
ClickHouse/loom#2014 ·
メンテナーはふだん 1 日以内に返信
-
accepted
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
future-agi/future-agi#5274 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 2 日以内に返信