Instructions to use microsoft/speecht5_tts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/speecht5_tts with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="microsoft/speecht5_tts")# Load model directly from transformers import AutoProcessor, AutoModelForTextToSpectrogram processor = AutoProcessor.from_pretrained("microsoft/speecht5_tts") model = AutoModelForTextToSpectrogram.from_pretrained("microsoft/speecht5_tts") - Notebooks
- Google Colab
- Kaggle
How can I run pretrained model on multi GPUs?
#38
by NorzY - opened
As title. I used device_map="auto" while call SpeechT5ForTextToSpeech.from_pretrained(), but got error
"An error occurred while model initilization: SpeechT5ForTextToSpeech does not support device_map='auto'. To implement support, the model class needs to implement the _no_split_modules attribute."