Sentence Similarity
sentence-transformers
Safetensors
English
embedding_gemma2
audio
music
music-information-retrieval
text-to-audio-retrieval
embeddings
Instructions to use jaisawhney/SonicEmbed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use jaisawhney/SonicEmbed with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("jaisawhney/SonicEmbed") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
|
Download eval/README.md from jaisawhney/SonicEmbed: direct link, hf CLI and curl.
- Browser
- Download file 551 Bytes
-
https://huggingface.co/jaisawhney/SonicEmbed/resolve/main/eval/README.md
- Command line
-
hf download hf://jaisawhney/SonicEmbed/eval/README.md
-
curl -L -o README.md https://huggingface.co/jaisawhney/SonicEmbed/resolve/main/eval/README.md
551 Bytes
Evaluation
The scripts behind the numbers on the model card. You only need uv.
uv sync
uv run song_describer.py jaisawhney/SonicEmbed
uv run clap_eval.py
uv run mteb_tasks.py jaisawhney/SonicEmbed --output-dir mteb-results/sonicembed
Models can be a Hugging Face ID or a local folder, so google/embeddinggemma-2 scores the base model. Add --device mps on Apple silicon or --device cpu if you don't have an NVIDIA GPU.
Song Describer downloads 3.3 GB on the first run.