Instructions to use AXERA-TECH/CosyVoice2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AXERA-TECH/CosyVoice2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="AXERA-TECH/CosyVoice2")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AXERA-TECH/CosyVoice2", dtype="auto") - Notebooks
- Google Colab
- Kaggle
放宽 torch 和 transformers版本限制
Browse files- scripts/requirements.txt +3 -3
scripts/requirements.txt
CHANGED
|
@@ -32,9 +32,9 @@ soundfile==0.12.1
|
|
| 32 |
# tensorrt-cu12==10.0.1; sys_platform == 'linux'
|
| 33 |
# tensorrt-cu12-bindings==10.0.1; sys_platform == 'linux'
|
| 34 |
# tensorrt-cu12-libs==10.0.1; sys_platform == 'linux'
|
| 35 |
-
torch=
|
| 36 |
-
torchaudio=
|
| 37 |
-
transformers=
|
| 38 |
uvicorn==0.30.0
|
| 39 |
wetext==0.0.4
|
| 40 |
wget==3.2
|
|
|
|
| 32 |
# tensorrt-cu12==10.0.1; sys_platform == 'linux'
|
| 33 |
# tensorrt-cu12-bindings==10.0.1; sys_platform == 'linux'
|
| 34 |
# tensorrt-cu12-libs==10.0.1; sys_platform == 'linux'
|
| 35 |
+
torch>=2.3.1
|
| 36 |
+
torchaudio>=2.3.1
|
| 37 |
+
transformers>=4.40.1
|
| 38 |
uvicorn==0.30.0
|
| 39 |
wetext==0.0.4
|
| 40 |
wget==3.2
|