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")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForTextToWaveform processor = AutoProcessor.from_pretrained("facebook/musicgen-small") model = AutoModelForTextToWaveform.from_pretrained("facebook/musicgen-small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Final transformers config (#4)
- Correct transformers weights & configs (93537fc685dfdb25d83e3aa0d64d69406c3642f1)fc81d8b -
Correct pos embs (#3)
- Correct transformers weights & configs (f37b0c0576a5fb6891df4a25c80680af72c11e1e)b608dbc -
add-transformers-weights-and-configs (#2)
- Add transformers weights & configs (2a17ab67bb2ebd661d519d0c99d07c6820caf621)4862286