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

← All models

nvidia_llama-embed-nemotron-8b

nvidia · 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.


license: other license_name: customized-nscl-v1 license_link: LICENSE tags:

  • transformers
  • text
  • sentence-similarity
  • feature-extraction
  • mteb
  • mmteb language:
  • multilingual library_name: sentence-transformers datasets:
  • nvidia/embed-nemotron-dataset-v1

llama-embed-nemotron-8b

Model Overview

Description:

llama-embed-nemotron-8b is a versatile text embedding model trained by NVIDIA and optimized for retrieval, reranking, semantic similarity, and classification use cases. This model has robust capabilities for multilingual and cross-lingual text retrieval. It is designed to serve as a foundational component in text-based Retrieval-Augmented Generation (RAG) systems.

This model achieves state-of-the-art performance on the multilingual MTEB leaderboard as of October 21, 2025.

Together with the model weights, we're releasing the full recipe behind the llama-embed-nemotron-8b:

  • A detailed technical report focusing on our Synthetic Data Generation (SDG) pipeline and core design choices.
  • The training dataset, featuring a curated mix of public and synthetic data.
  • The full training code via the NeMo AutoModel framework.

This model is for non-commercial/research use only.

License/Terms of Use

Governing Terms for llama-embed-nemotron-8b model: NVIDIA License
Additional Information: Llama-3.1 Community License Agreement for meta-llama/Llama-3.1-8B. Acceptable Use Policy. Built with Llama.

Team

  • Yauhen Babakhin
  • Radek Osmulski
  • Ronay Ak
  • Gabriel Moreira
  • Mengyao Xu
  • Benedikt Schifferer
  • Bo Liu
  • Even Oldridge

Correspondence to Yauhen Babakhin ([email protected]) and Bo Liu ([email protected]).

Citation

@misc{babakhin2025llamaembednemotron8buniversaltextembedding,
      title={Llama-Embed-Nemotron-8B: A Universal Text Embedding Model for Multilingual and Cross-Lingual Tasks}, 
      author={Yauhen Babakhin and Radek Osmulski and Ronay Ak and Gabriel Moreira and Mengyao Xu and Benedikt Schifferer and Bo Liu and Even Oldridge},
      year={2025},
      eprint={2511.07025},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2511.07025}, 
}

NVIDIA’s Retrieval Models

Model Name Use Case Comment
nvidia/omni-embed-nemotron-3b Research-Only Omni-Modal Embedding Model for Retrieving Text, Images, Audio, or Video
nvidia/llama-NemoRetriever-ColEmbed-3B-v1 Research-Only #1 ViDoRe V1, V2 and MTEB VisualDocumentRetrieval as of June 27, 2025
nvidia/llama-nemotron-embed-1b-v2 Commercial Application Text Embedding Model for Production Use Case of Text Document Retrieval
nvidia/llama-nemotron-rerank-1b-v2 Commercial Application Text Reranker Model for Production Use Case of Text Document Retrieval
llama-3_2-nemoretriever-1b-vlm-embed-v1 Commercial Application MultiModal Embedding Model for Production Use Case of Visual Document Retrieval
nvidia/llama-NemoRetriever-ColEmbed-1B-v1 Research-Only Smaller Version of nvidia/llama-NemoRetriever-ColEmbed-3B-v1
nvidia/NV-Embed-v2 Research-Only #1 MTEB as of Aug 30, 2024
nvidia/MM-Embed Research-Only Improved nvidia/NV-Embed-v1 and multimodal embeddings
nvidia/NV-Retriever-v1 Research-Only #1 MTEB BEIR as of July 12, 2024

Deployment Geography:

Global

Use Case:

The llama-embed-nemotron-8b model is intended for researchers developing applications that need to understand or retrieve information from text. It is well-suited for multilingual RAG systems in which queries and documents are textual and may be in different languages.

Release Date:

Hugging Face on 10/21/2025 via https://huggingface.co/nvidia/llama-embed-nemotron-8b

Model Architecture:

  • Architecture Type: Transformer Decoder

  • Network Architecture: Llama-3.1-8B with bi-directional attention

  • This model was developed based on meta-llama/Llama-3.1-8B model.

  • Number of model parameters: 7,504,924,672

This llama-embed-nemotron-8b embedding model is a fine-tuned version of Llama-3.1-8B transformer decoder architecture, with a bidirectional attention mechanism. The model consists of 32 hidden layers and an embedding size of 4096, and trained on public datasets and synthetically generated datasets. Embedding models for text retrieval are typically trained using a bi-encoder architecture. This involves encoding a pair of sentences (for example, query and chunked passages) independently using the embedding model. Contrastive learning is used to maximize the similarity between the query and the passage that contains the answer, while minimizing the similarity between the query and sampled negative passages not useful to answer the question.

Input:

Property Query Document
Input Type Text Text
Input Format List of strings List of strings
Input Parameter One-Dimensional (1D) 1D
Other Properties Maximum input sequence length is 32768 tokens. Maximum input sequence length is 32768 tokens.

Output:

Output Type(s): Floats
Output Format: List of floats
Output Parameters: One-Dimensional (1D)
Other Properties Related to Output: Model outputs embedding vectors of a dimension 4096 for each text input.

Our AI models are designed and/or optimized to run on NVIDIA GPU-accelerated systems. By leveraging NVIDIA’s hardware (e.g. GPU cores) and software frameworks (e.g., CUDA libraries), the model achieves faster training and inference times compared to CPU-only solutions.

Usage

The llama-embed-nemotron-8b model is instruction-aware, meaning that it supports custom instructions to improve performance for specific use cases or scenarios. In particular, for Retrieval use case, model expects:

  • Queries accompanied with the task instruction in the following template: f"Instruct: {task_instruction}\nQuery: {query}"
  • Documents (passages) without any special handling

The model requires transformers version 4.51.0 and flash-attention (for GPU processing)

pip install transformers==4.51.0
pip install flash-attn==2.6.3

Sentence Transformers:

pip install sentence-transformers
from sentence_transformers import SentenceTransformer

attn_implementation = "eager"  # Or "flash_attention_2"
model = SentenceTransformer(
    "nvidia/llama-embed-nemotron-8b",
    trust_remote_code=True,
    model_kwargs={"attn_implementation": attn_implementation, "torch_dtype": "bfloat16"},
    tokenizer_kwargs={"padding_side": "left"},
)

queries = [
    "How do neural networks learn patterns from examples?"
]
documents = [
    "Deep learning models adjust their weights through backpropagation, using gradient descent to minimize error on training data and improve predictions over time.",
    "Market prices are determined by the relationship between how much people want to buy a product and how much is available for sale, with scarcity driving prices up and abundance driving them down.",
]

# NOTE: encode_query uses the "query" prompt automatically
query_embeddings = model.encode_query(queries)
document_embeddings = model.encode_document(documents)

scores = (query_embeddings @ document_embeddings.T)

print(scores.tolist())
# [[0.3770667314529419, 0.05808388814330101]]

Hugging Face Transformers

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


def average_pool(last_hidden_states: torch.Tensor, attention_mask: torch.Tensor) -> torch.Tensor:
    """Average pooling with attention mask."""

    last_hidden_states = last_hidden_states.to(torch.float32)
    last_hidden_states_masked = last_hidden_states.masked_fill(~attention_mask[..., None].bool(), 0.0)
    embedding = last_hidden_states_masked.sum(dim=1) / attention_mask.sum(dim=1)[..., None]
    embedding = F.normalize(embedding, dim=-1)
    
    return embedding

# Define task and queries
def get_instruction(task_instruction: str, query: str) -> str:
    return f"Instruct: {task_instruction}\nQuery: {query}"

model_name_or_path = "nvidia/llama-embed-nemotron-8b"

attn_implementation = "flash_attention_2" if torch.cuda.is_available() else "eager"

# Load tokenizer
tokenizer = AutoTokenizer.from_pretrained(
    model_name_or_path,
    trust_remote_code=True,
    padding_side="left",
)

# Load model
model = AutoModel.from_pretrained(
    model_name_or_path, 
    trust_remote_code=True,
    torch_dtype=torch.float16,
    attn_implementation=attn_implementation,
).eval()
model = model.to("cuda:0" if torch.cuda.is_available() else "cpu")

# Model is instruction-aware, which requires each query to have a short instruction with the task instruction
task = "Given a question, retrieve passages that answer the question"
queries = [
    get_instruction(task, "How do neural networks learn patterns from examples?"),
]

# No instruction is required for documents corpus
documents = [
    "Deep learning models adjust their weights through backpropagation, using gradient descent to minimize error on training data and improve predictions over time.",
    "Market prices are determined by the relationship between how much people want to buy a product and how much is available for sale, with scarcity driving prices up and abundance driving them down.",
]
input_texts = queries + documents

# Tokenize the input texts
batch_dict = tokenizer(
    text=input_texts,
    max_length=4096,
    padding=True,
    truncation=True,
    return_tensors="pt",
).to(model.device)
attention_mask = batch_dict["attention_mask"]

# Forward pass
model_outputs = model(**batch_dict)

# Average pooling
embeddings = average_pool(model_outputs.last_hidden_state, attention_mask)

scores = (embeddings[:1] @ embeddings[1:].T)

print(scores.tolist())
# [[0.37644022703170776, 0.05794818699359894]]

vLLM

  1. Ensure you are using vllm>=0.14.0.
  2. Start the vLLM server with the following command:

Minimal command (required):

vllm serve \
    nvidia/llama-embed-nemotron-8b \
    --trust-remote-code

If you already have a local copy of the model, you can also pass the local path instead of the HF repo ID.

Optional flags:

  • --dtype <float32|bfloat16|float16> to force precision (the default is auto, which resolves from model config; this model defaults to BF16).
  • --data-parallel-size <num_gpus_to_use> for multi-GPU serving.
  • --port 8000 to set the server port.

Online serving example (OpenAI SDK):

from openai import OpenAI
client = OpenAI(
    base_url="http://localhost:8000/v1",
    api_key="EMPTY",  # required by OpenAI SDK; ignored by default in local vLLM
)

response = client.embeddings.create(
    input=['Instruct: Given a question, retrieve passages that answer the question\nQuery: summit define'],
    model="nvidia/llama-embed-nemotron-8b",
)
response.data[0].embedding

Offline inference example (Python API, no server required):

from vllm import LLM

llm = LLM(
    model="nvidia/llama-embed-nemotron-8b",
    runner="pooling",
    trust_remote_code=True,
)

outputs = llm.embed(["Instruct: Given a question, retrieve passages that answer the question\nQuery: summit define", "a summit is a meeting"])
for output in outputs:
    print(len(output.outputs.embedding))

Software Integration:

Runtime Engine(s):

  • TensorRT, Triton

Supported Hardware Microarchitecture Compatibility:

  • NVIDIA Ampere
  • NVIDIA Hopper
  • NVIDIA Lovelace
  • NVIDIA Pascal
  • NVIDIA Turing
  • NVIDIA Volta

Preferred/Supported Operating System(s):

  • Linux

The integration of foundation and fine-tuned models into AI systems requires additional testing using use-case-specific data to ensure safe and effective deployment. Following the V-model methodology, iterative testing and validation at both unit and system levels are essential to mitigate risks, meet technical and functional requirements, and ensure compliance with safety and ethical standards before deployment. This AI model can be embedded as an Application Programming Interface (API) call into the software environment described above.

Model Version(s):

llama-embed-nemotron-8b-v1

Training and Testing Datasets

Training Dataset:

Data Modality

  • Text

Text Training Data Size

  • 1 Billion to 10 Trillion Tokens

Data Collection Method by dataset

  • Hybrid: Human, Automated, Synthetic

Labeling Method by dataset

  • Hybrid: Human, Automated, Synthetic

Properties: 16.4M query-passage pairs from public and synthetically generated datasets.

Testing Dataset:

We test the model on 131 tasks from MMTEB: Massive Multilingual Text Embedding Benchmark (MTEB(Multilingual, v2) split).

Benchmark specs:

  • Number of languages: 1038
  • Number of task types: 9
  • Number of domains: 20

MMTEB Leaderboard Benchmark Ranking

Below we present results for MTEB(Multilingual, v2) split of MMTEB benchmark (as of October 21, 2025). Ranking on MMTEB Leaderboards is performed based on the Borda rank. Each task is treated as a preference voter, which gives votes on the models per their relative performance on the task. The best model obtains the highest number of votes. The model with the highest number of votes across tasks obtains the highest rank. The Borda rank tends to prefer models that perform well broadly across tasks.

Borda Rank Model Borda Votes Mean (Task)
1. llama-embed-nemotron-8b 39,573 69.46
2. gemini-embedding-001 39,368 68.37
3. Qwen3-Embedding-8B 39,364 70.58
4. Qwen3-Embedding-4B 39,099 69.45
5. Qwen3-Embedding-0.6B 37,419 64.34
6. gte-Qwen2-7B-instruct 37,167 62.51
7. Linq-Embed-Mistral 37,149 61.47

Data Collection Method by dataset:

  • Hybrid: Automated, Human, Synthetic

Labeling Method by dataset:

  • Hybrid: Automated, Human, Synthetic

Properties: More details about MMTEB benchmark can be found on their leaderboard or in their published paper.

Inference:

Acceleration Engine: GPU
Test Hardware: A100 80GB, H100 80GB

Ethical Considerations:

NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse.

Please report model quality, risk, security vulnerabilities or NVIDIA AI Concerns here.

Magnet link

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

magnet:?xt=urn:btih:07cb2577790213bbdfeb9d634f2b8f3de3039dc9&dn=nvidia_llama-embed-nemotron-8b

Open magnet in torrent client · infohash 07cb2577790213bbdfeb9d634f2b8f3de3039dc9

Files & hashes

PathSizesha1sha256
1_Pooling/config.json313 B (313 B)913ad8dd4817abb9f915809e6f72c8c8f3ea70c7290a81c57d598298609747e1b65da8afe89c67a0337e3a67cb3139ce266dc396
LICENSE4.0 KB (4,045 B)c2a6eab4d1cd19f6883d42cfaf498f9c9faac3c7117bdf66448ffde919963504bdb1c7d15a92ee2f9e4c1284fd53ffa20cfe4ba8
Notice.txt115 B (115 B)0aed9e10c9e7dc3412644ecc88632fc92382c3b3a914eeac98f7bb2a81c1bae150db695bf9e95b9bd592933bfee6b67e53048237
README.md16.4 KB (16,801 B)c81b1ef04884bda9823a5d018b3ef53d9feb37fa7ce9cf885737a431618894f37ac5d7a7a2921fd9a4ae7563a4c1f70984d4ab1c
config.json1.1 KB (1,077 B)93bfb325a3d3aa3ba8633904e7ada08f4b14503e6d054fe332166b48f583a04ef15fe181c75d85d3fe3196f9274f00df51a5b68e
config_sentence_transformers.json362 B (362 B)75c2db7c348902ec4175fa9b9b4670484988714db9eaf5723cc53e73d7668f0a24caa993b59295da1b304b6553b234935980ee58
llama_bidirectional_model.py1.7 KB (1,777 B)78a5367f8d9215fcad32c185a61769afd71520a3866291cc21dcd0b522051446641b021cdb3a1109f2242ce504ee97a6fca335ef
model-00001-of-00004.safetensors4.63 GB (4,976,698,176 B)5ba42155469eeae74afa4042965ae8f3f840929f41c5136ff6a71cb15c156972f2e8a5d3477d578d036ac0311e54dc68b954fd52
model-00002-of-00004.safetensors4.66 GB (4,999,802,096 B)fb0d38511eeddfebb262172e705a7dcdc004400c46e6d985bd172a5ec6f36e5cf31f3aed4099ae7f1eeafb15dad56583c44977a7
model-00003-of-00004.safetensors4.58 GB (4,915,915,576 B)b22c825a77e4e2be1adf1511708ab7fe6b89e72cc7e038a77347c202bd59348ef15a58d4170debeb48d93639c34073c269a8dc8e
model-00004-of-00004.safetensors112.0 MB (117,465,520 B)3b139ad65aae0828230847a6964611cd8c7c361706136d433661a550c8b08e1d5944f4ea591c27e0383506a8fa0fad72c3bcfd0c
model.safetensors.index.json21.6 KB (22,152 B)4cbdf56e453a4c59dd75800edc9538d395ea43fdc46becf7b0b10e2effaeef5c1ba82acb7e48270d6667fd5018f72743511ebae8
modules.json349 B (349 B)952a9b81c0bfd99800fabf352f69c7ccd46c5e4384e40c8e006c9b1d6c122e02cba9b02458120b5fb0c87b746c41e0207cf642cf
sentence_bert_config.json60 B (60 B)d3142ad3734cf913687545a997c21a8143d94a068a432b07f6cf8a8eece958fc97aeb5f104cb05ecacc8b3bd8640b0b3c05cfb72
special_tokens_map.json335 B (335 B)04829afa78a2d2df203ac846968db37269b01f7f849070cae53bd45439e64ce5b1ddd650a66081b1bd47895c5a58939a05055579
tokenizer.json16.4 MB (17,209,920 B)72acd50cd81d0145242f8f979fef7d986a3c4f8a6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b
tokenizer_config.json49.4 KB (50,560 B)81dd14db6632ad5b35b9d447732e37ac074873a5fb0b184bfd935cbe6f8290f1af424c17814fd24dfc5aaac3be9b0b674fe40631

Cite this release

Canonical URL
https://aiseedbank.org/models/nvidia_llama-embed-nemotron-8b/
Slug
nvidia_llama-embed-nemotron-8b
Infohash
07cb2577790213bbdfeb9d634f2b8f3de3039dc9
License
custom/other license
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: nvidia_llama-embed-nemotron-8b.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorynvidia/llama-embed-nemotron-8b
Revision (pinned)aa3b43a495a9b280d1bdb716da37c54bb495d630
Fetched at2026-09-04T04:24:31Z
License at fetchother
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-04T04:26:59Z

custom/other license14.00 GB (15,027,189,234 bytes)sentence-transformerssafetensorsllama_bidirecfeature-extractiontransformerstextsentence-similaritymtebmmtebcustom_codemultilingualtext-embeddings-inferenceendpoints_compatiblepaper: 2511.07025paper: 2502.13595