Fixed GPU detection on CPU only environment (#4711)

### What problem does this PR solve?

Fixed GPU detection on CPU only environment. Close #4692

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Zhichang Yu
2025-02-05 12:02:43 +08:00
committed by GitHub
parent 7a7f98b1a9
commit e1526846da
4 changed files with 7 additions and 6 deletions

View File

@ -100,6 +100,7 @@ dependencies = [
"tencentcloud-sdk-python==3.0.1215",
"tika==2.6.0",
"tiktoken==0.7.0",
"torch>=2.5.0,<3.0.0",
"umap_learn==0.5.6",
"vertexai==1.64.0",
"volcengine==1.0.146",
@ -131,6 +132,5 @@ full = [
"fastembed>=0.3.6,<0.4.0; sys_platform == 'darwin' or platform_machine != 'x86_64'",
"fastembed-gpu>=0.3.6,<0.4.0; sys_platform != 'darwin' and platform_machine == 'x86_64'",
"flagembedding==1.2.10",
"torch>=2.5.0,<3.0.0",
"transformers>=4.35.0,<5.0.0"
]