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 AutoTokenizer, AutoModelForTextToWaveform tokenizer = AutoTokenizer.from_pretrained("facebook/musicgen-small") model = AutoModelForTextToWaveform.from_pretrained("facebook/musicgen-small") - Notebooks
- Google Colab
- Kaggle
Enable Inference API
#18
by sanchit-gandhi - opened
Inference API can be re-enabled now that the model has the correct task mapping and the TTA pipeline is in transformers.
sanchit-gandhi changed pull request title from enable inference api to Enable Inference API
Closing as the Inference API has been enabled - you should be able to use it now @marksuccsmfewercoc! Let us know on the discussions if you encounter any errors.
sanchit-gandhi changed pull request status to closed