Instructions to use AEmotionStudio/yue2-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AEmotionStudio/yue2-models with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-audio", model="AEmotionStudio/yue2-models")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AEmotionStudio/yue2-models", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download mert2/preprocessor_config.json from AEmotionStudio/yue2-models: direct link, hf CLI and curl.
- Browser
- Download file 215 Bytes
-
https://huggingface.co/AEmotionStudio/yue2-models/resolve/main/mert2/preprocessor_config.json
- Command line
-
hf download hf://AEmotionStudio/yue2-models/mert2/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/AEmotionStudio/yue2-models/resolve/main/mert2/preprocessor_config.json
215 Bytes
| { | |
| "feature_extractor_type": "Wav2Vec2FeatureExtractor", | |
| "feature_size": 1, | |
| "sampling_rate": 24000, | |
| "padding_value": 0.0, | |
| "padding_side": "right", | |
| "return_attention_mask": true, | |
| "do_normalize": false | |
| } | |