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
Upload ONNX weights
#1
by Xenova HF Staff - opened
Files changed (8)
- onnx/model.onnxAdded+3
- onnx/model_bnb4.onnxAdded+3
- onnx/model_fp16.onnxAdded+3
- onnx/model_int8.onnxAdded+3
- onnx/model_q4.onnxAdded+3
- onnx/model_q4f16.onnxAdded+3
- onnx/model_quantized.onnxAdded+3
- onnx/model_uint8.onnxAdded+3
123version https://git-lfs.github.com/spec/v1oid sha256:71890860122f39eb922f6bf96714fda22ba10eb5bf1bc57bfdcf02ec93acc5d0size 1579551135123version https://git-lfs.github.com/spec/v1oid sha256:4cf140d859b3f36a1d92abdb61674bd8a71a2f54db6a641e46ca76b6102d255bsize 400002724123version https://git-lfs.github.com/spec/v1oid sha256:732a616ab9f842efce55b3e62f6186c6bdd18c8aafa6fd6875ff15d385aed210size 789987678123version https://git-lfs.github.com/spec/v1oid sha256:0790d91b9a175bc18df0bd2847bc8bfdd70c7660cc7353facc9b8bc86e48a0dcsize 396946223123version https://git-lfs.github.com/spec/v1oid sha256:02fe0bfb1650152c8c00fde49585b157db25a404d78b4f59690b7dbacd8d5f6bsize 421448456123version https://git-lfs.github.com/spec/v1oid sha256:aba746075b1b1cea343c35e4395f54000c62f7e64b739114746b73132de1ce41size 296731335123version https://git-lfs.github.com/spec/v1oid sha256:0790d91b9a175bc18df0bd2847bc8bfdd70c7660cc7353facc9b8bc86e48a0dcsize 396946223123version https://git-lfs.github.com/spec/v1oid sha256:ed18ac6dfe5bc7a9ebe11f66619d3f28514ac49a4d36cd335deb417510982917size 396946223onnx/model.onnxAdded+3
onnx/model_bnb4.onnxAdded+3
onnx/model_fp16.onnxAdded+3
onnx/model_int8.onnxAdded+3
onnx/model_q4.onnxAdded+3
onnx/model_q4f16.onnxAdded+3
onnx/model_quantized.onnxAdded+3
onnx/model_uint8.onnxAdded+3