Sentence Similarity
sentence-transformers
Safetensors
modernbert
feature-extraction
dense
Generated from Trainer
dataset_size:3375201
loss:MSELoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use johnnyboycurtis/ModernBERT-small-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use johnnyboycurtis/ModernBERT-small-v2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("johnnyboycurtis/ModernBERT-small-v2") sentences = [ "What is Weboob. Weboob is a collection of applications able to interact with websites, without requiring the user to open them in a browser. It also provides well-defined APIs to talk to websites lacking one.", "Moreno and colleagues (Mossio et al. 2009; Moreno & Mossio 2015) have also claimed that their organizational approach unifies across backwardlooking and forward-looking accounts by describing activities that atemporally account for the continuing persistence of traits.", "average cost of a dj for a wedding 2015", "CIALIS tablets should not be split, crushed or separated in any way. Do not split CIALIS tablets; the entire dose should be taken. Splitting or crushing may result in the patient receiving more or less than the desired dose. References. CIALIS [package insert]." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download config_sentence_transformers.json from johnnyboycurtis/ModernBERT-small-v2: direct link, hf CLI and curl.
- Browser
- Download file 282 Bytes
-
https://huggingface.co/johnnyboycurtis/ModernBERT-small-v2/resolve/main/config_sentence_transformers.json
- Command line
-
hf download hf://johnnyboycurtis/ModernBERT-small-v2/config_sentence_transformers.json
-
curl -L -o config_sentence_transformers.json https://huggingface.co/johnnyboycurtis/ModernBERT-small-v2/resolve/main/config_sentence_transformers.json
282 Bytes
| { | |
| "model_type": "SentenceTransformer", | |
| "__version__": { | |
| "sentence_transformers": "5.2.2", | |
| "transformers": "5.1.0", | |
| "pytorch": "2.7.1+cu128" | |
| }, | |
| "prompts": { | |
| "query": "", | |
| "document": "" | |
| }, | |
| "default_prompt_name": null, | |
| "similarity_fn_name": "cosine" | |
| } |