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
File size: 1,378 Bytes
751e667 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | {
"return_dict": true,
"output_hidden_states": false,
"torchscript": false,
"dtype": "float32",
"tie_word_embeddings": true,
"is_encoder_decoder": false,
"is_decoder": false,
"add_cross_attention": false,
"architectures": [
"YuE2VAE"
],
"bos_token_id": null,
"pad_token_id": null,
"eos_token_id": null,
"decoder_start_token_id": null,
"transformers_version": "4.57.6",
"auto_map": {
"AutoConfig": "modeling_vae.YuE2VAEConfig",
"AutoModel": "modeling_vae.YuE2VAE"
},
"model_type": "yue2_vae",
"encoder_config": {
"c_mults": [
1,
2,
4,
8,
16,
32
],
"channels": 64,
"in_channels": 2,
"latent_dim": 128,
"strides": [
2,
2,
4,
4,
5,
6
],
"use_snake": true
},
"decoder_config": {
"c_mults": [
1,
2,
4,
8,
16,
32
],
"channels": 64,
"final_tanh": false,
"latent_dim": 64,
"out_channels": 2,
"snake_type": "vanilla",
"strides": [
2,
2,
4,
4,
5,
6
],
"use_filter": false,
"use_snake": true
},
"sample_rate": 48000,
"latent_dim": 64,
"downsampling_ratio": 1920,
"audio_channels": 2,
"release_variant": "standard",
"decode_core_frames": 1024,
"decode_halo_frames": 16,
"output_attentions": false
}
|