ソースを参照

Fix:Set CUDA_VISIBLE_DEVICES In DefaultEmbedding (#7465)

### What problem does this PR solve?
https://github.com/infiniflow/ragflow/issues/7420

### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.19.0
Stephen Hu 6ヶ月前
コミット
65537b8200
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更1行の追加0行の削除
  1. 1
    0
      rag/llm/embedding_model.py

+ 1
- 0
rag/llm/embedding_model.py ファイルの表示

@@ -57,6 +57,7 @@ class Base(ABC):


class DefaultEmbedding(Base):
os.environ['CUDA_VISIBLE_DEVICES'] = '0'
_model = None
_model_name = ""
_model_lock = threading.Lock()

読み込み中…
キャンセル
保存