Instructions to use facebook/musicgen-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/musicgen-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-audio", model="facebook/musicgen-small")# Load model directly from transformers import AutoProcessor, AutoModelForTextToWaveform processor = AutoProcessor.from_pretrained("facebook/musicgen-small") model = AutoModelForTextToWaveform.from_pretrained("facebook/musicgen-small") - Notebooks
- Google Colab
- Kaggle
Faster MusicGen Generation with Streaming
#23
by sanchit-gandhi - opened
There's no need to wait for MusicGen to generate the full audio before you can start listening to the outputs β° With streaming, you can play the audio as soon as the first chunk is ready π΅ In practice, this reduces the latency to just 5s β‘οΈ
Check-out the demo: https://huggingface.co/spaces/sanchit-gandhi/musicgen-streaming
It's not working to download the audio with your link.
Can someone who does prompt engineering work help me? With what formulation can we get the best results from the model, what kind of prompt should we give that will give us the most compatible and best quality sound with our prompt?