sentence-transformers/stsb
Viewer โข Updated โข 8.63k โข 19.8k โข 26
Run Ahm-d18/minilm-stsb on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/Ahm-d18/minilm-stsb. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/Ahm-d18/minilm-stsb on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use Ahm-d18/minilm-stsb with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("Ahm-d18/minilm-stsb")
sentences = [
"The weather is lovely today.",
"It's so sunny outside!",
"He drove to the stadium."
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]minilm-stsb)
Fine-tuned from sentence-transformers/all-MiniLM-L6-v2 on sentence-transformers/stsb (train split) using CosineSimilarityLoss for 2 epochs with batch size 16 for semantic search over help articles.
| Stage | Spearman Correlation |
|---|---|
| Before Fine-Tuning | 0.8671 |
| After Fine-Tuning (2 epochs, batch size 16) | 0.8950 |