Sentence Similarity
sentence-transformers
Safetensors
modernbert
feature-extraction
Generated from Trainer
dataset_size:478146
loss:CoSENTLoss
text-embeddings-inference
Instructions to use LequeuISIR/ModernBERT-base-DPR-8e-05 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use LequeuISIR/ModernBERT-base-DPR-8e-05 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("LequeuISIR/ModernBERT-base-DPR-8e-05") sentences = [ "However, its underutilization is mainly due to the absence of a concrete and coherent dissemination strategy.", "At the same time, they need to understand that living in Europe brings great responsibilities in addition to great benefits.", "The mainstay of any intelligent and patriotic mineral policy can be summed up in the following postulate: \"since minerals are exhaustible, they should only be exploited with the maximum return for the economy of the country where they are mined\".", "We must move quickly to a shared sustainable energy supply, sustainable transportation and clean air." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Ctrl+K