ai/nomic-embed-text-v2-moe

Verified Publisher

By Docker

Updated 3 months ago

Multilingual MoE text embedding model with 768D vectors, 100 languages, 512 token context

Model
0

4.1K

ai/nomic-embed-text-v2-moe repository overview

nomic-embed-text-v2-moe

nomic-embed-text-v2-moe is a state-of-the-art multilingual text embedding model built on a Mixture of Experts (MoE) architecture. As the first general-purpose MoE text embedding model, it delivers exceptional multilingual retrieval performance while maintaining efficiency through sparse activation. With support for approximately 100 languages and training on over 1.6 billion text pairs, this model excels at semantic similarity tasks, retrieval-augmented generation (RAG), and cross-lingual information retrieval.

The model achieves competitive performance with embedding models twice its size while only activating 305M of its 475M total parameters during inference. This efficiency makes it particularly well-suited for production environments where both quality and resource constraints matter. The model also incorporates Matryoshka representation learning, allowing embedding dimensions to be truncated from 768 to 256 with minimal performance degradation, enabling up to 3x storage savings.

Developed by Nomic AI and fully open-sourced, the model includes released weights, training code, and evaluation data, making it ideal for researchers and practitioners who need transparency and reproducibility in their embedding pipelines.


Characteristics

AttributeValue
ProviderNomic AI
ArchitectureMixture of Experts (MoE) - 8 experts with top-2 routing
Total Parameters475M
Active Parameters305M
Languages~100 languages including 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, and many more
Input modalitiesText
Output modalitiesText embeddings (768 dimensions, truncatable to 256)
Max sequence length512 tokens
LicenseApache 2.0

Using this model with Docker Model Runner

docker model run nomic-embed-text-v2-moe

For more information, check out the Docker Model Runner docs.

Benchmarks

Performance Comparison with Open-Weights Models

Performance comparison on BEIR and MIRACL

ModelParams (M)Emb DimBEIRMIRACLPretrain DataFinetune DataCode
Nomic Embed v2 MoE30576852.8665.80
mE5 Base27876848.8862.30
mGTE Base30576851.1063.40
Arctic Embed v2 Base30576855.4059.90
BGE M3568102448.8069.20
Arctic Embed v2 Large568102455.6566.00
mE5 Large560102451.4066.50
Matryoshka Embeddings Performance

The model supports dimension truncation with minimal performance loss:

BEIR performance at different dimensions

Training Details

Training pipeline visualization

The model was trained using a comprehensive pipeline that includes:

  • Training data: 1.6 billion high-quality text pairs across multiple languages
  • Data quality: Consistency filtering to ensure high-quality training examples
  • Training methodology: Two-stage approach with weakly-supervised contrastive pretraining followed by supervised finetuning
  • Matryoshka learning: Enables flexible embedding dimensions from 768 to 256
  • Architecture innovation: First application of sparse MoE to general-purpose text embeddings

Considerations

  • Task prefixes required: The model requires task-specific prefixes for optimal performance. Use search_query: for queries and search_document: for documents
  • Language variability: While supporting ~100 languages, performance may vary across different languages depending on training data distribution
  • Resource requirements: Despite using sparse activation (305M active parameters), the MoE architecture may require more resources than traditional dense models of similar active parameter count
  • Trust remote code: When loading this model, you must use trust_remote_code=True to access the custom architecture implementation
  • Maximum context: Input text is limited to 512 tokens; longer texts will be truncated
  • Matryoshka truncation: For storage-constrained applications, embeddings can be truncated to 256 dimensions with approximately 3x storage savings and minimal quality loss
Generated by

This model card was automatically generated using cagent-action. Want to learn more about Docker Model Runner? Check out the project repository: https://github.com/docker/model-runner.

Tag summary

Content type

Model

Digest

sha256:3e19972dd

Size

913.3 MB

Last updated

3 months ago

docker model pull ai/nomic-embed-text-v2-moe

This week's pulls

Pulls:

392

Last week