Added cuda_is_available (#4725)

### What problem does this PR solve?

Added cuda_is_available

### Type of change

- [x] Refactoring
This commit is contained in:
Zhichang Yu
2025-02-05 18:01:23 +08:00
committed by GitHub
parent 283d036cba
commit 3411d0a2ce
4 changed files with 24 additions and 7 deletions

View File

@ -100,7 +100,6 @@ 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",
@ -132,5 +131,6 @@ 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"
]