Instructions to use m-a-p/music2vec-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use m-a-p/music2vec-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="m-a-p/music2vec-v1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("m-a-p/music2vec-v1") model = AutoModel.from_pretrained("m-a-p/music2vec-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download music2vec.png from m-a-p/music2vec-v1: direct link, hf CLI and curl.
- Browser
- Download file 166 kB
-
https://huggingface.co/m-a-p/music2vec-v1/resolve/caa7716ef4711b656ab81bd5396fcfa20091b24a/music2vec.png
- Command line
-
hf download hf://m-a-p/music2vec-v1@caa7716ef4711b656ab81bd5396fcfa20091b24a/music2vec.png
-
curl -L -o music2vec.png https://huggingface.co/m-a-p/music2vec-v1/resolve/caa7716ef4711b656ab81bd5396fcfa20091b24a/music2vec.png
166 kB
