Sentence Similarity
sentence-transformers
Safetensors
modernbert
feature-extraction
Generated from Trainer
dataset_size:8963241
loss:EmbedDistillLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use sobamchan/monnem-large-v0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use sobamchan/monnem-large-v0 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("sobamchan/monnem-large-v0") sentences = [ "A man in shorts and a woman in a black and white polka dot bikini sunbathing on the beach.", "A man is standing in a field with a green plant in it.", "A woman preparing some pork.", "uh-huh uh-huh well what other movies have you seen then lately" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
SentenceTransformer based on answerdotai/ModernBERT-large
This is a sentence-transformers model finetuned from answerdotai/ModernBERT-large. It maps sentences & paragraphs to a 1024-dimensional dense vector space and can be used for retrieval.
Model Details
Model Description
- Model Type: Sentence Transformer
- Base model: answerdotai/ModernBERT-large
- Maximum Sequence Length: 512 tokens
- Output Dimensionality: 1024 dimensions
- Similarity Function: Cosine Similarity
- Supported Modality: Text
Model Sources
- Documentation: Sentence Transformers Documentation
- Repository: Sentence Transformers on GitHub
- Hugging Face: Sentence Transformers on Hugging Face
Full Model Architecture
SentenceTransformer(
(0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'ModernBertModel'})
(1): Pooling({'embedding_dimension': 1024, 'pooling_mode': 'mean', 'include_prompt': True})
)
Usage
Direct Usage (Sentence Transformers)
First install the Sentence Transformers library:
pip install -U sentence-transformers
Then you can load this model and run inference.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("sentence_transformers_model_id")
# Run inference
sentences = [
'A woman in purple riding a brown horse, competitively.',
"and uh they they have designated smoking but it's just wide open it's not ventilated properly and i think that's bad but as far as the drugs you know being in the factory kind of environment that way",
'The oldest dances are survivors from Moorish times, and are usually performed in mountain villages.',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 1024]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities)
# tensor([[ 1.0000, -0.0255, 0.1637],
# [-0.0255, 1.0000, 0.0579],
# [ 0.1637, 0.0579, 1.0000]])
- Downloads last month
- -
Model tree for sobamchan/monnem-large-v0
Base model
answerdotai/ModernBERT-largeEvaluation results
- Pearson Cosine on sts devself-reported0.870
- Spearman Cosine on sts devself-reported0.872