Sentence Similarity
sentence-transformers
Safetensors
English
modernbert
feature-extraction
Generated from Trainer
dataset_size:5749
loss:CosineSimilarityLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use cahya/NusaBert-v1.2-sts-0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use cahya/NusaBert-v1.2-sts-0 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("cahya/NusaBert-v1.2-sts-0") sentences = [ "A chef is preparing some food.", "Five birds stand on the snow.", "A chef prepared a meal.", "There is no 'still' that is not relative to some other object." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from cahya/NusaBert-v1.2-sts-0: direct link, hf CLI and curl.
- Browser
- Download file 4.7 MB
-
https://huggingface.co/cahya/NusaBert-v1.2-sts-0/resolve/main/tokenizer.json
- Command line
-
hf download hf://cahya/NusaBert-v1.2-sts-0/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/cahya/NusaBert-v1.2-sts-0/resolve/main/tokenizer.json
4.7 MB
File too large to display, you can check the raw version instead.