Instructions to use laion/larger_clap_music with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use laion/larger_clap_music with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="laion/larger_clap_music")# Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("laion/larger_clap_music") model = AutoModel.from_pretrained("laion/larger_clap_music", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Load with Laion's CLAP model?
#3
by jbmaxwell - opened
Apologies if this is a stupid question, but is there a way to load this into Laion's own CLAP model? I want to give it a try with MusicGen, but Audiocraft isn't using the HF ClapModel (from what I can see).
Same question with Stable Audio Tools which uses get_audio_embedding_from_data