Sentence Similarity
sentence-transformers
ONNX
Safetensors
Transformers.js
English
modernbert
feature-extraction
mteb
Eval Results (legacy)
text-embeddings-inference
Run this model with HF Jobs
Run lightonai/modernbert-embed-large 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/lightonai/modernbert-embed-large. 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/lightonai/modernbert-embed-large 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 lightonai/modernbert-embed-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use lightonai/modernbert-embed-large with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("lightonai/modernbert-embed-large") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Transformers.js
How to use lightonai/modernbert-embed-large with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('feature-extraction', 'lightonai/modernbert-embed-large'); - Inference
- Notebooks
- Google Colab
- Kaggle
Download onnx/model.onnx from lightonai/modernbert-embed-large: direct link, hf CLI and curl.
- Browser
- Download file 1.58 GB
-
https://huggingface.co/lightonai/modernbert-embed-large/resolve/main/onnx/model.onnx
- Command line
-
hf download hf://lightonai/modernbert-embed-large/onnx/model.onnx
-
curl -L -o model.onnx https://huggingface.co/lightonai/modernbert-embed-large/resolve/main/onnx/model.onnx
1.58 GB
- Xet hash:
- 19c11b524da51b5e68abd4863db5dd8929ea9d738a42e036b17c4b517f184783
- Size of remote file:
- 1.58 GB
- SHA256:
- 71890860122f39eb922f6bf96714fda22ba10eb5bf1bc57bfdcf02ec93acc5d0
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.