Instructions to use scarxity/fish-speech-s2-pro-nf4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use scarxity/fish-speech-s2-pro-nf4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="scarxity/fish-speech-s2-pro-nf4")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("scarxity/fish-speech-s2-pro-nf4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from scarxity/fish-speech-s2-pro-nf4: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/scarxity/fish-speech-s2-pro-nf4/resolve/main/config.json
- Command line
-
hf download hf://scarxity/fish-speech-s2-pro-nf4/config.json
-
curl -L -o config.json https://huggingface.co/scarxity/fish-speech-s2-pro-nf4/resolve/main/config.json
1.01 kB
| { | |
| "attention_o_bias": false, | |
| "attention_qk_norm": true, | |
| "attention_qkv_bias": false, | |
| "audio_embed_dim": 2560, | |
| "codebook_size": 4096, | |
| "dim": 2560, | |
| "dropout": 0.0, | |
| "fast_attention_o_bias": false, | |
| "fast_attention_qk_norm": false, | |
| "fast_attention_qkv_bias": false, | |
| "fast_dim": 2560, | |
| "fast_head_dim": 128, | |
| "fast_intermediate_size": 9728, | |
| "fast_n_head": 32, | |
| "fast_n_local_heads": 8, | |
| "head_dim": 128, | |
| "initializer_range": 0.01976423537605237, | |
| "intermediate_size": 9728, | |
| "is_reward_model": false, | |
| "max_seq_len": 32768, | |
| "model_type": "dual_ar", | |
| "n_fast_layer": 4, | |
| "n_head": 32, | |
| "n_layer": 36, | |
| "n_local_heads": 8, | |
| "norm_eps": 1e-06, | |
| "norm_fastlayer_input": true, | |
| "num_codebooks": 10, | |
| "rope_base": 1000000, | |
| "scale_codebook_embeddings": true, | |
| "semantic_begin_id": 151678, | |
| "semantic_end_id": 155773, | |
| "tie_word_embeddings": true, | |
| "use_gradient_checkpointing": true, | |
| "vocab_size": 155776 | |
| } |