Instructions to use Aratako/MioTTS-2.6B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Aratako/MioTTS-2.6B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="Aratako/MioTTS-2.6B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Aratako/MioTTS-2.6B") model = AutoModelForCausalLM.from_pretrained("Aratako/MioTTS-2.6B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download chat_template.jinja from Aratako/MioTTS-2.6B: direct link, hf CLI and curl.
- Browser
- Download file 205 Bytes
-
https://huggingface.co/Aratako/MioTTS-2.6B/resolve/main/chat_template.jinja
- Command line
-
hf download hf://Aratako/MioTTS-2.6B/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/Aratako/MioTTS-2.6B/resolve/main/chat_template.jinja
205 Bytes
| {%- for message in messages %} | |
| {{ '<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>\n' }} | |
| {%- endfor %} | |
| {%- if add_generation_prompt %} | |
| {{ '<|im_start|>assistant\n' }} | |
| {%- endif %} |