Instructions to use parler-tts/parler-tts-mini-expresso with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use parler-tts/parler-tts-mini-expresso with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="parler-tts/parler-tts-mini-expresso")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("parler-tts/parler-tts-mini-expresso", device_map="auto") - Notebooks
- Google Colab
- Kaggle
How to Accelerate Audio Generation to Real-Time Speeds
#4
by samarthshrivas - opened
@samarthshrivas not sure but I think torch.compile might work? maybe try that? torch.compile(model.text_encoder) and the same for other parts?. You could also use streaming, that might help too?
@samarthshrivas Did you find any way to make it accelerated more and be more efficient in real-time applications?
