Instructions to use OpenMOSS-Team/MOSS-TTSD-v1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenMOSS-Team/MOSS-TTSD-v1.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="OpenMOSS-Team/MOSS-TTSD-v1.0", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("OpenMOSS-Team/MOSS-TTSD-v1.0", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
| {% for message in messages %}<|im_start|>{{ message['role'] }} | |
| {% if message['content'] is string %}{{ message['content'] }}{% else %}{% for content in message['content'] %}{% if content.get('type') == 'text' %}{{ content['text'] }}{% endif %}{% endfor %}{% endif %}<|im_end|> | |
| {% endfor %}{% if add_generation_prompt %}<|im_start|>assistant | |
| {% endif %} |