add: auto_map in config 7568278
Zhyw0 commited on
How to use OpenMOSS-Team/MOSS-TTS-Realtime with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-to-speech", model="OpenMOSS-Team/MOSS-TTS-Realtime", trust_remote_code=True) # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("OpenMOSS-Team/MOSS-TTS-Realtime", trust_remote_code=True, device_map="auto")