Sentence Similarity
sentence-transformers
Safetensors
English
modernbert
feature-extraction
Generated from Trainer
dataset_size:72
loss:MatryoshkaLoss
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Run this model with HF Jobs
Run onecd2000/modernbert-embed-test 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:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/onecd2000/modernbert-embed-test. 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.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/onecd2000/modernbert-embed-test 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.
Instructions to use onecd2000/modernbert-embed-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use onecd2000/modernbert-embed-test with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("onecd2000/modernbert-embed-test") sentences = [ "What do the packets contain that is essential for their travel?", "Packet switching breaks data into small packets, each containing a destination address. These packets travel independently across the network, taking different paths if necessary, and reassemble at the destination. This method proved to be more efficient and resilient, making it the backbone of modern internet communication.\n\nThe Birth of ARPANET", "Early Concepts of Networking", ". Researchers such as Paul Baran at RAND Corporation and Donald Davies at the National Physical Laboratory in the UK independently developed the concept of packet switching." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!