Model reference · open weights

modernbert-embed

modernbert-embed is an open-weight embedding model from nomic-ai, listed in the AxForge catalogue. AxForge can bring it up on EU-owned hardware for you on request — with the licence handled where one is required.

Embeddings nomic-ai 1 variants 244k downloads/mo
Request this model on EU hardware All served models Not on the shared API today — deployed on request.

About

What modernbert-embed is

ModernBERT Embed [](https://huggingface.co/nomic-ai/modernbert-embed-base) ModernBERT Embed is an embedding model trained from ModernBERT-base, bringing the new advances of ModernBERT to embeddings! Trained on the Nomic Embed weakly-supervised and supervised datasets, modernbert-embed also supports Matryoshka Representation Learning dimensions of 256, reducing memory by 3x with minimal performance loss. Performance Usage You can use these models directly with the latest transformers release and requires installing transformers=4.48.0: Reminder, this model is trained similarly to Nomic Embed and REQUIRES prefixes to be added to the input. For more information, see the instructions in Nomic Embed. Most use cases, adding searchquery: to the query and searchdocument: to the documents will be sufficient. Sentence Transformers In Sentence Transformers, you can truncate embeddings to a smaller dimension by using the truncatedim parameter when loading the SentenceTransformer model. Note the small differences compared to the full 768-dimensional similarities. Transformers In transformers, you can truncate embeddings to a smaller dimension by slicing the mean pooled embeddings, prior to normalization. Note the small differences compared to the full 768-dimensional similarities. Transformers.js If you haven't already, you can install the Transformers.js JavaScript library from NPM using: Then, you can compute embeddings as follows: Training Click the Nomic Atlas map below to visualize a 5M sample of our contrastive pretraining data! [](https://atlas.nomic.ai/map/nomic-text-embed-v1-5m-sample) We train our embedder using a multi-stage training pipeline. Starting from a long-context BERT model, the first unsupervised contrastive stage trains on a dataset generated from weakly related text pairs, such as question-answer pairs from forums like StackExchange and Quora, title-body pairs from Amazon reviews, and summarizations from news articles. In the second finetuning stage, higher quality labeled datasets such as search queries and answers from web searches are leveraged. Data curation and hard-example mining is crucial in this stage. For more details, see the Nomic Embed Tec

Summarised from the published model card. Read the full card on the HuggingFace links below.

Specifications

What it is

Makernomic-ai
TypeEmbedding models
Parameters (lead)149M
Context8k tokens
Variants1
Runs withsentence-transformers
Based onanswerdotai/ModernBERT-base, nomic-ai/modernbert-embed-unsupervised
Released2024-12-29
Popularity244k downloads / month
Likes233
LicenceOpen weights

How it works

How embedding models work

Your textsentence / documentEncodermaps meaningVectorlist of numbersAn embedding model turns text into a vector, so similar meanings sit close together — the basis of search and RAG.

Variants

Sizes & precisions

Open weights ship in several sizes and precisions. One page, all the variants — pick the one that fits your GPU. VRAM figures are estimates from model size.

VariantParamsPrecisionVRAMFits 16 GBWeights
modernbert-embed-base149MBF16~0.3 GBWeights ↗

Benchmarks

Reported results

As published on the model card — the maker's own numbers, not measured by AxForge.

TaskDatasetMetricScore
ClassificationMTEB AmazonCounterfactualClassification (en)accuracy78.134
ClassificationMTEB AmazonCounterfactualClassification (en)ap42.19
ClassificationMTEB AmazonCounterfactualClassification (en)f172.344
ClassificationMTEB AmazonPolarityClassificationaccuracy93.094
ClassificationMTEB AmazonPolarityClassificationap90.037
ClassificationMTEB AmazonPolarityClassificationf193.087
ClassificationMTEB AmazonReviewsClassification (en)accuracy48.428
ClassificationMTEB AmazonReviewsClassification (en)f147.743
RetrievalMTEB ArguAnamap_at_123.898
RetrievalMTEB ArguAnamap_at_1039.775
RetrievalMTEB ArguAnamap_at_10040.827
RetrievalMTEB ArguAnamap_at_100040.837
RetrievalMTEB ArguAnamap_at_2040.604
RetrievalMTEB ArguAnamap_at_334.519
RetrievalMTEB ArguAnamap_at_537.307
RetrievalMTEB ArguAnamrr_at_124.395
RetrievalMTEB ArguAnamrr_at_1039.963
RetrievalMTEB ArguAnamrr_at_10041.014
RetrievalMTEB ArguAnamrr_at_100041.024
RetrievalMTEB ArguAnamrr_at_2040.791
RetrievalMTEB ArguAnamrr_at_334.732
RetrievalMTEB ArguAnamrr_at_537.481
RetrievalMTEB ArguAnandcg_at_123.898
RetrievalMTEB ArguAnandcg_at_1048.962

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys modernbert-embed for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (modernbert-embed below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/embeddings \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"modernbert-embed","input":"text to embed"}'

Details

Languages, data & research

Languages

en

Tags

sentence-transformers onnx safetensors modernbert feature-extraction sentence-similarity mteb transformers.js en model-index text-embeddings-inference endpoints_compatible deploy:azure

Papers

Licence

Open weights

Open weights under apache-2.0 — commercial use is permitted. Deploy it on AxForge EU hardware on request. Read the licence ↗

Sources

Weights & code

Want modernbert-embed on EU-owned hardware?

Request this model on EU hardware See what’s served now

Explore

More embedding models

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms