AI SeedbankHelp preserve open and free AI for humanity's future

← All models

nomic-ai_nomic-embed-text-v2-moe

nomic-ai · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


base_model:

  • nomic-ai/nomic-embed-text-v2-moe-unsupervised library_name: sentence-transformers pipeline_tag: sentence-similarity tags:
  • sentence-transformers
  • sentence-similarity
  • feature-extraction license: apache-2.0 language:
  • en
  • es
  • fr
  • de
  • it
  • pt
  • pl
  • nl
  • tr
  • ja
  • vi
  • ru
  • id
  • ar
  • cs
  • ro
  • sv
  • el
  • uk
  • zh
  • hu
  • da
  • 'no'
  • hi
  • fi
  • bg
  • ko
  • sk
  • th
  • he
  • ca
  • lt
  • fa
  • ms
  • sl
  • lv
  • mr
  • bn
  • sq
  • cy
  • be
  • ml
  • kn
  • mk
  • ur
  • fy
  • te
  • eu
  • sw
  • so
  • sd
  • uz
  • co
  • hr
  • gu
  • ce
  • eo
  • jv
  • la
  • zu
  • mn
  • si
  • ga
  • ky
  • tg
  • my
  • km
  • mg
  • pa
  • sn
  • ha
  • ht
  • su
  • gd
  • ny
  • ps
  • ku
  • am
  • ig
  • lo
  • mi
  • nn
  • sm
  • yi
  • st
  • tl
  • xh
  • yo
  • af
  • ta
  • tn
  • ug
  • az
  • ba
  • bs
  • dv
  • et
  • gl
  • gn
  • gv
  • hy

nomic-embed-text-v2-moe: Multilingual Mixture of Experts Text Embeddings

Blog | Technical Report | AWS SageMaker | Atlas Embedding and Unstructured Data Analytics Platform

This model was presented in the paper Training Sparse Mixture Of Experts Text Embedding Models.

Model Overview

nomic-embed-text-v2-moe is a SoTA multilingual MoE text embedding model that excels at multilingual retrieval:

  • High Performance: SoTA Multilingual performance compared to ~300M parameter models, competitive with models 2x in size
  • Multilinguality: Supports ~100 languages and trained on over 1.6B pairs
  • Flexible Embedding Dimension: Trained with Matryoshka Embeddings with 3x reductions in storage cost with minimal performance degradations
  • Fully Open-Source: Model weights, code, and training data (see code repo) released
Model Params (M) Emb Dim BEIR MIRACL Pretrain Data Finetune Data Code
Nomic Embed v2 305 768 52.86 65.80
mE5 Base 278 768 48.88 62.30
mGTE Base 305 768 51.10 63.40
Arctic Embed v2 Base 305 768 55.40 59.90
BGE M3 568 1024 48.80 69.20
Arctic Embed v2 Large 568 1024 55.65 66.00
mE5 Large 560 1024 51.40 66.50

Model Architecture

  • Total Parameters: 475M
  • Active Parameters During Inference: 305M
  • Architecture Type: Mixture of Experts (MoE)
  • MoE Configuration: 8 experts with top-2 routing
  • Embedding Dimensions: Supports flexible dimension from 768 to 256 through Matryoshka representation learning
  • Maximum Sequence Length: 512 tokens
  • Languages: Supports dozens of languages (see Performance section)

Paper Abstract

Transformer-based text embedding models have improved their performance on benchmarks like MIRACL and BEIR by increasing their parameter counts. However, this scaling approach introduces significant deployment challenges, including increased inference latency and memory usage. These challenges are particularly severe in retrieval-augmented generation (RAG) applications, where large models' increased memory requirements constrain dataset ingestion capacity, and their higher latency directly impacts query-time performance. While causal language models have addressed similar efficiency challenges using Mixture of Experts (MoE) architectures, this approach hasn't been successfully adapted to the general text embedding setting. In this paper, we introduce Nomic Embed v2, the first general purpose MoE text embedding model. Our model outperforms models in the same parameter class on both monolingual and multilingual benchmarks while also maintaining competitive performance with models twice its size. We open-source all code, models, and evaluation data to ensure full reproducibility of our training pipeline at https://github.com/nomic-ai/contrastors.

Usage Guide

Installation

The model can be used through SentenceTransformers and Transformers.

For best performance on GPU, please install

pip install torch transformers einops git+https://github.com/nomic-ai/megablocks.git

[!IMPORTANT] Important! The text prompt must include a task instruction prefix, instructing the model which task is being performed.

Please use search_query: before your queries/questions, and search_document: before your documents.

Transformers

If using Transformers, make sure to prepend the task instruction prefix.

import torch
import torch.nn.functional as F
from transformers import AutoTokenizer, AutoModel

tokenizer = AutoTokenizer.from_pretrained("nomic-ai/nomic-embed-text-v2-moe")
model = AutoModel.from_pretrained("nomic-ai/nomic-embed-text-v2-moe", trust_remote_code=True)

sentences = ['search_document: Hello!', 'search_document: ¡Hola!']

def mean_pooling(model_output, attention_mask):
    token_embeddings = model_output[0]
    input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float()
    return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9)

encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
model.eval()
with torch.no_grad():
    model_output = model(**encoded_input)
embeddings = mean_pooling(model_output, encoded_input['attention_mask'])
embeddings = F.normalize(embeddings, p=2, dim=1)
print(embeddings.shape)
# torch.Size([2, 768])

similarity = F.cosine_similarity(embeddings[0], embeddings[1], dim=0)
print(similarity)
# tensor(0.9118)

For truncation, you can trucate before applying normalization

+ embeddings = embeddings[:, :matryoshka_dim]
embeddings = F.normalize(embeddings, p=2, dim=1)

SentenceTransformers

With SentenceTransformers, you can specify the prompt_name as either "query" or "passage", and the task instruction will be included automatically.

from sentence_transformers import SentenceTransformer

model = SentenceTransformer("nomic-ai/nomic-embed-text-v2-moe", trust_remote_code=True)
sentences = ["Hello!", "¡Hola!"]
embeddings = model.encode(sentences, prompt_name="passage")
print(embeddings.shape)
# (2, 768)

similarity = model.similarity(embeddings[0], embeddings[1])
print(similarity)
# tensor([[0.9118]])

For truncation/Matryoshka embeddings, you can specify truncate_dim and use the model similarly

model = SentenceTransformer("nomic-ai/nomic-embed-text-v2-moe", trust_remote_code=True, truncate_dim=256)
...

Performance

nomic-embed-text-v2-moe performance on BEIR and MIRACL compared to other open-weights embedding models:

nomic-embed-text-v2-moe performance on BEIR at 768 dimension and truncated to 256 dimensions:

Best Practices

  • Add appropriate prefixes to your text:
    • For queries: "search_query: "
    • For documents: "search_document: "
  • Maximum input length is 512 tokens
  • For optimal efficiency, consider using the 256-dimension embeddings if storage/compute is a concern

Limitations

  • Performance may vary across different languages
  • Resource requirements may be higher than traditional dense models due to MoE architecture
  • Must use trust_remote_code=True when loading the model to use our custom architecture implementation

Training Details

  • Trained on 1.6 billion high-quality pairs across multiple languages
  • Uses consistency filtering to ensure high-quality training data
  • Incorporates Matryoshka representation learning for dimension flexibility
  • Training includes both weakly-supervised contrastive pretraining and supervised finetuning

For more details, please check out the blog post and technical report.

Join the Nomic Community

  • Nomic: https://nomic.ai
  • Discord: https://discord.gg/myY5YDR8z8
  • Twitter: https://twitter.com/nomic_ai

Citation

If you find the model, dataset, or training code useful, please cite our work

@misc{nussbaum2025trainingsparsemixtureexperts,
      title={Training Sparse Mixture Of Experts Text Embedding Models}, 
      author={Zach Nussbaum and Brandon Duderstadt},
      year={2025},
      eprint={2502.07972},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2502.07972}, 
}

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:39e2fdca4cfe8a97811ece64b4215eafcd11b84a&dn=nomic-ai_nomic-embed-text-v2-moe

Open magnet in torrent client · infohash 39e2fdca4cfe8a97811ece64b4215eafcd11b84a

Files & hashes

PathSizesha1sha256
1_Pooling/config.json296 B (296 B)9213783a33aa495a3c2d3791c7c5888d90607a4e1c8bc7bd750c5c20d8707f1c5c578f5d69bb3d1d5ebcf4b2fde5128de154ec1c
README.md8.9 KB (9,104 B)02cfe8a8494a73e1455b89e45d675a1e5c18a3455a5cbb6e82247892faeb200b529cdec5c538c382b80eb9717ba3de645946a6cd
config.json2.4 KB (2,482 B)12045d4abeeaf7495a8f05d1b14a32dd7028287f4f076b4798fc2ba916f1900e0d10177714ee1aa94e0ef809102e723078d3efd3
config_sentence_transformers.json554 B (554 B)12c9bdb00f62fa99374a44124e615e0a3349c5c0e75daeaa9d81edb3bec8734d1182aa2478355eb75c081fc34cfb68e15e645795
model.safetensors1.77 GB (1,901,187,232 B)152be2750cc7525c4dd21c12165b4fd787aefe07097012b27af76d80af74fed4bc2ccc9091245286f776adf03ad1758a24ade9a0
modules.json349 B (349 B)952a9b81c0bfd99800fabf352f69c7ccd46c5e4384e40c8e006c9b1d6c122e02cba9b02458120b5fb0c87b746c41e0207cf642cf
sentence_bert_config.json53 B (53 B)f789d99277496b282d19020415c5ba9ca79ac875ec8e29d6dcb61b611b7d3fdd2982c4524e6ad985959fa7194eacfb655a8d0d51
sentencepiece.bpe.model4.8 MB (5,069,051 B)7e88c49faff6c6c136fdf4a3402d0cb534c6ab10cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
special_tokens_map.json964 B (964 B)b1879d702821e753ffe4245048eee415d54a93858c785abebea9ae3257b61681b4e6fd8365ceafde980c21970d001e834cf10835
tokenizer.json16.3 MB (17,082,734 B)9d410207758efb4682a30413a066f071379a850c3a56def25aa40facc030ea8b0b87f3688e4b3c39eb8b45d5702b3a1300fe2a20
tokenizer_config.json1.1 KB (1,147 B)31cf25a6c1a3e2f4183a314ad8252cd2919f6968f90024142df07163e5e6c5b9a6ad7c8c68b22a9112af11e3db4559a9ff90f737

Cite this release

Canonical URL
https://aiseedbank.org/models/nomic-ai_nomic-embed-text-v2-moe/
Slug
nomic-ai_nomic-embed-text-v2-moe
Infohash
39e2fdca4cfe8a97811ece64b4215eafcd11b84a
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: nomic-ai_nomic-embed-text-v2-moe.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorynomic-ai/nomic-embed-text-v2-moe
Revision (pinned)1066b6599d099fbb93dfcb64f9c37a7c9e503e85
Fetched at2026-09-04T03:27:45Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-04T03:28:05Z

apache-2.01.79 GB (1,923,353,966 bytes)sentence-transformerssafetensorsnomic_bertsentence-similarityfeature-extractioncustom_codetext-embeddings-inferenceendpoints_compatible101 languages (en, es, fr …)paper: 2502.07972paper: 2205.13147