取消对lock的hulue, 强制cpu

This commit is contained in:
2026-04-02 17:36:02 +08:00
parent cdad76cd3b
commit c48c2b9143
3 changed files with 1724 additions and 5 deletions
+2 -3
View File
@@ -37,9 +37,6 @@ MANIFEST
*.manifest
*.spec
# uv
*.lock
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
@@ -193,3 +190,5 @@ cython_debug/
**/data/*
**/docker/*
backend/app/static/*
test*.*
+1 -1
View File
@@ -28,7 +28,7 @@ EMBEDDING_MODEL_PATH = os.getenv("EMBEDDING_MODEL_PATH", "")
print("正在加载 BAAI/bge-m3 向量模型...")
# 全局单例
embedder_model = SentenceTransformer(EMBEDDING_MODEL_PATH, local_files_only=True, device="cuda")
embedder_model = SentenceTransformer(EMBEDDING_MODEL_PATH, local_files_only=True)
print("模型加载完成。")
+1720
View File
File diff suppressed because it is too large Load Diff