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

← All models

nvidia_llama-nemotron-embed-1b-v2

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: nvidia-open-model-license license_link: >- https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/ tags:

  • text
  • text-embeddings
  • retrieval
  • semantic-search
  • transformers language:
  • multilingual library_name: sentence-transformers

Model Overview

Description

The Llama Nemotron Embedding 1B model is optimized for multilingual and cross-lingual text question-answering retrieval with support for long documents (up to 8192 tokens) and dynamic embedding size (Matryoshka Embeddings). This model was evaluated on 26 languages: English, Arabic, Bengali, Chinese, Czech, Danish, Dutch, Finnish, French, German, Hebrew, Hindi, Hungarian, Indonesian, Italian, Japanese, Korean, Norwegian, Persian, Polish, Portuguese, Russian, Spanish, Swedish, Thai, and Turkish.

In addition to enabling multilingual and cross-lingual question-answering retrieval, this model reduces the data storage footprint by 35x through dynamic embedding sizing and support for longer token length, making it feasible to handle large-scale datasets efficiently.

An embedding model is a crucial component of a text retrieval system, as it transforms textual information into dense vector representations. They are typically transformer encoders that process tokens of input text (for example: question, passage) to output an embedding.

This model is ready for commercial use.

The Llama Nemotron Embedding 1B model is a part of the NVIDIA NeMo Retriever collection of NIM, which provide state-of-the-art, commercially-ready models and microservices, optimized for the lowest latency and highest throughput. It features a production-ready information retrieval pipeline with enterprise support. The models that form the core of this solution have been trained using responsibly selected, auditable data sources. With multiple pre-trained models available as starting points, developers can also readily customize them for domain-specific use cases, such as information technology, human resource help assistants, and research & development research assistants.

We are excited to announce the open sourcing of this commercial embedding model. For users interested in deploying this model in production environments, it is also available via the model API in NVIDIA Inference Microservices (NIM) at llama-nemotron-embed-1b-v2.

Intended use

The Llama Nemotron Embedding 1B model is most suitable for users who want to build a multilingual question-and-answer application over a large text corpus, leveraging the latest dense retrieval technologies.

License/Terms of use

Use of this model is governed by the NVIDIA Open Model License Agreement. Additional Information: Llama 3.2 Community Model License Agreement.

Model Architecture

Architecture Type: Transformer Network Architecture: Fine-tuned Llama3.2 1B Retriever

This NeMo embedding model is a transformer encoder - a fine-tuned version of Llama3.2 1b, with 16 layers and an embedding size of 2048, which is trained on public datasets. The AdamW optimizer is employed incorporating 100 warm up steps and 5e-6 learning rate with WarmupDecayLR scheduler. 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

Input Type: Text Input Format: List of strings Input Parameter: 1D Other Properties Related to Input: The model's maximum context length is 8192 tokens. Texts longer than maximum length must either be chunked or truncated.

Output

Output Type: Floats Output Format: List of float arrays Output: Model outputs embedding vectors of maximum dimension 2048 for each text string (can be configured based on 384, 512, 768, 1024, or 2048). Other Properties Related to Output: N/A

Installation

Sentence Transformers Usage

The model supports transformers versions 4.44 through 5.0+.

pip install transformers sentence-transformers
from sentence_transformers import SentenceTransformer

model = SentenceTransformer("nvidia/llama-nemotron-embed-1b-v2", trust_remote_code=True)

queries = [
    "how much protein should a female eat",
    "summit define",
]
documents = [
    "As a general guideline, the CDC's average requirement of protein for women ages 19 to 70 is 46 grams per day. But, as you can see from this chart, you'll need to increase that if you're expecting or training for a marathon. Check out the chart below to see how much protein you should be eating each day.",
    "Definition of summit for English Language Learners. : 1  the highest point of a mountain : the top of a mountain. : 2  the highest level. : 3  a meeting or series of meetings between the leaders of two or more governments."
]

query_embeddings = model.encode_query(queries, convert_to_tensor=True)
document_embeddings = model.encode_document(documents, convert_to_tensor=True)

# Compute similarity scores
scores = model.similarity(query_embeddings, document_embeddings)
"""
tensor([[ 0.5968, -0.0454],
        [-0.0336,  0.4613]], device='cuda:0')
"""

Transformers Usage

You can also use transformers directly to run the model. The model supports transformers versions 4.44 through 5.0+.

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


def average_pool(last_hidden_states, attention_mask):
    """Average pooling with attention mask."""
    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


tokenizer = AutoTokenizer.from_pretrained("nvidia/llama-nemotron-embed-1b-v2")
model = AutoModel.from_pretrained("nvidia/llama-nemotron-embed-1b-v2", trust_remote_code=True)
model = model.to("cuda:0")
model.eval()
query_prefix = "query:"
document_prefix = "passage:"


queries = [
    "how much protein should a female eat",
    "summit define",
]
documents = [
    "As a general guideline, the CDC's average requirement of protein for women ages 19 to 70 is 46 grams per day. But, as you can see from this chart, you'll need to increase that if you're expecting or training for a marathon. Check out the chart below to see how much protein you should be eating each day.",
    "Definition of summit for English Language Learners. : 1  the highest point of a mountain : the top of a mountain. : 2  the highest level. : 3  a meeting or series of meetings between the leaders of two or more governments."
]
queries = [f"{query_prefix} {query}" for query in queries]
documents = [f"{document_prefix} {document}" for document in documents]


batch_queries = tokenizer(queries, padding=True, truncation=True, return_tensors='pt').to("cuda:0")
batch_documents = tokenizer(documents, padding=True, truncation=True, return_tensors='pt').to("cuda:0")

with torch.no_grad():
    outputs_queries = model(**batch_queries)
    outputs_documents = model(**batch_documents)

# Average Pooling
embeddings_queries = average_pool(outputs_queries.last_hidden_state, batch_queries["attention_mask"])
print("Query embeddings:")
print(embeddings_queries)
print(embeddings_queries.shape)
#torch.Size([2, 2048])

embeddings_documents = average_pool(outputs_documents.last_hidden_state, batch_documents["attention_mask"])
print("\nDocument embeddings:")
print(embeddings_documents)
print(embeddings_documents.shape)
#torch.Size([2, 2048])

# Compute similarity scores
scores = (embeddings_queries @ embeddings_documents.T)
print("\nSimilarity scores:")
print(scores.tolist())

#Similarity scores:
#[[0.5968121290206909, -0.04534469544887543], [-0.03361201286315918, 0.46140915155410767]]

vLLM Usage

  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-nemotron-embed-1b-v2 \
    --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=['query: summit define'],
    model="nvidia/llama-nemotron-embed-1b-v2",
)
response.data[0].embedding

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

from vllm import LLM

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

outputs = llm.embed(["query: summit define", "passage: a summit is a meeting"])
for output in outputs:
    print(len(output.outputs.embedding))  # 2048

Software Integration

Runtime Engine: Llama Nemotron embedding NIM Supported Hardware Microarchitecture Compatibility: NVIDIA Ampere, NVIDIA Hopper, NVIDIA Lovelace Supported Operating System(s): Linux

Model Version(s)

Llama Nemotron Embedding 1B v2 Short Name: llama-nemotron-embed-1b-v2

Training Dataset & Evaluation

Training Dataset

The development of large-scale public open-QA datasets has enabled tremendous progress in powerful embedding models. However, one popular dataset named MS MARCO restricts ‌commercial licensing, limiting the use of these models in commercial settings. To address this, NVIDIA created its own training dataset blend based on public QA datasets, which each have a license for commercial applications.

Data Collection Method by dataset: Automated, Unknown

Labeling Method by dataset: Automated, Unknown

Properties: Semi-supervised pre-training on 12M samples from public datasets and fine-tuning on 1M samples from public datasets.

Evaluation Results

Properties: We evaluated the NeMo Rtriever embdding model in comparison to literature open & commercial retriever models on academic benchmarks for question-answering - NQ, HotpotQA and FiQA (Finance Q&A) from BeIR benchmark and TechQA dataset. Note that the model was evaluated offline on A100 GPUs using the model's PyTorch checkpoint. In this benchmark, the metric used was Recall@5.

Open & Commercial Retrieval Models Average Recall@5 on NQ, HotpotQA, FiQA, TechQA dataset
llama-nemotron-embed-1b-v2 (embedding dim 2048) 68.60%
llama-nemotron-embed-1b-v2 (embedding dim 384) 64.48%
llama-3.2-nv-embedqa-1b-v1 (embedding dim 2048) 68.97%
nv-embedqa-mistral-7b-v2 72.97%
nv-embedqa-mistral-7B-v1 64.93%
nv-embedqa-e5-v5 62.07%
nv-embedqa-e5-v4 57.65%
e5-large-unsupervised 48.03%
BM25 44.67%

We evaluated the multilingual capabilities on the academic benchmark MIRACL across 15 languages and translated the English and Spanish version of MIRACL into additional 11 languages. The reported scores are based on an internal version of MIRACL by selecting hard negatives for each query to reduce the corpus size.

Open & Commercial Retrieval Models Average Recall@5 on multilingual
llama-nemotron-embed-1b-v2 (embedding dim 2048) 60.75%
llama-nemotron-embed-1b-v2 (embedding dim 384) 58.62%
llama-3.2-nv-embedqa-1b-v1 60.07%
nv-embedqa-mistral-7b-v2 50.42%
BM25 26.51%

We evaluated the cross-lingual capabilities on the academic benchmark MLQA based on 7 languages (Arabic, Chinese, English, German, Hindi, Spanish, Vietnamese). We consider only evaluation datasets when the query and documents are in different languages. We calculate the average Recall@5 across the 42 different language pairs.

Open & Commercial Retrieval Models Average Recall@5 on MLQA dataset with different languages
llama-nemotron-embed-1b-v2 (embedding dim 2048) 79.86%
llama-nemotron-embed-1b-v2 (embedding dim 384) 71.61%
llama-3.2-nv-embedqa-1b-v1 (embedding dim 2048) 78.77%
nv-embedqa-mistral-7b-v2 68.38%
BM25 13.01%

We evaluated the support of long documents on the academic benchmark Multilingual Long-Document Retrieval (MLDR) built on Wikipedia and mC4, covering 12 typologically diverse languages. The English version has a median length of 2399 tokens and 90th percentile of 7483 tokens using the llama 3.2 tokenizer. The MLDR dataset is based on synthetic generated questions with a LLM, which has the tendency to create questions with similar keywords than the positive document, but might not be representative for real user queries. This characteristic of the dataset benefits sparse embeddings like BM25.

Open & Commercial Retrieval Models Average Recall@5 on MLDR
llama-nemotron-embed-1b-v2 (embedding dim 2048) 59.55%
llama-nemotron-embed-1b-v2 (embedding dim 384) 54.77%
llama-3.2-nv-embedqa-1b-v1 (embedding dim 2048) 60.49%
nv-embedqa-mistral-7b-v2 43.24%
BM25 71.39%

Data Collection Method by dataset: Unknown

Labeling Method by dataset: Unknown

Properties: The evaluation datasets are based on MTEB/BEIR, TextQA, TechQA, MIRACL, MLQA, and MLDR. The size ranges between 10,000s up to 5M depending on the dataset.

Inference Engine: TensorRT Test Hardware: H100 PCIe/SXM, A100 PCIe/SXM, L40s, L4, and A10G

Citation

@article{moreira2024nv,
  title={NV-Retriever: Improving text embedding models with effective hard-negative mining},
  author={Moreira, Gabriel de Souza P and Osmulski, Radek and Xu, Mengyao and Ak, Ronay and Schifferer, Benedikt and Oldridge, Even},
  journal={arXiv preprint arXiv:2407.15831},
  year={2024}
}

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 supporting model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse.

For more detailed information on ethical considerations for this model, please see the Model Card++ tab for the Explainability, Bias, Safety & Security, and Privacy subcards.

Please report security vulnerabilities or NVIDIA AI Concerns here.

Get Help

Enterprise Support

Get access to knowledge base articles and support cases or submit a ticket at the NVIDIA AI Enterprise Support Services page..

NVIDIA NIM Documentation

Visit the NeMo Retriever docs page for release documentation, deployment guides and more.

Bias

Field Response
Participation considerations from adversely impacted groups protected classes in model design and testing None
Measures taken to mitigate against unwanted bias None

Explainability

Field Response
Intended Application & Domain: Passage and query embedding for question and answer retrieval
Model Type: Transformer encoder
Intended User: Generative AI creators working with conversational AI models - users who want to build a multilingual question and answer application over a large text corpus, leveraging the latest dense retrieval technologies.
Output: Array of float numbers (Dense Vector Representation for the input text)
Describe how the model works: Model transforms the tokenized input text into a dense vector representation.
Performance Metrics: Accuracy, Throughput, and Latency
Potential Known Risks: This model does not always guarantee to retrieve the correct passage(s) for a given query.
Licensing & Terms of Use: Use of this model is governed by the NVIDIA Open Model License Agreement. Additional Information: Llama 3.2 Community Model License Agreement.
Technical Limitations The model’s max sequence length is 8192. Therefore, the longer text inputs should be truncated.
Name the adversely impacted groups this has been tested to deliver comparable outcomes regardless of: N/A
Verified to have met prescribed NVIDIA quality standards: Yes

Privacy

Field Response
Generatable or reverse engineerable personally-identifiable information (PII)? None
Was consent obtained for any personal data used? Not Applicable
PII used to create this model? None
How often is the dataset reviewed? Before Every Release
Is a mechanism in place to honor data subject right of access or deletion of personal data? No
If personal data was collected for the development of the model, was it collected directly by NVIDIA? Not Applicable
If personal data was collected for the development of the model by NVIDIA, do you maintain or have access to disclosures made to data subjects? Not Applicable
If personal data was collected for the development of this AI model, was it minimized to only what was required? Not Applicable
Is there provenance for all datasets used in training? Yes
Does data labeling (annotation, metadata) comply with privacy laws? Yes
Is data compliant with data subject requests for data correction or removal, if such a request was made? No, not possible with externally-sourced data.

Safety

Field Response
Model Application(s): Text Embedding for Retrieval
Describe the physical safety impact (if present). Not Applicable
Use Case Restrictions: Use of this model is governed by the NVIDIA Open Model License Agreement. Additional Information: Llama 3.2 Community Model License Agreement.
Model and dataset restrictions: The Principle of least privilege (PoLP) is applied limiting access for dataset generation and model development. Restrictions enforce dataset access during training, and dataset license constraints adhered to.

Magnet link

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

magnet:?xt=urn:btih:f0ae91c20f10141e1c762000d241bdf49713820c&dn=nvidia_llama-nemotron-embed-1b-v2

Open magnet in torrent client · infohash f0ae91c20f10141e1c762000d241bdf49713820c

Files & hashes

PathSizesha1sha256
1_Pooling/config.json313 B (313 B)86b6c4d22acc1b0db64cefcf79aabb80413d4a692bc529695125f68de57d1fd347e3d2920b993bc635c5f4f09a45e130c102a989
LICENSE21.3 KB (21,817 B)46afe3a9a798923f8101d755d1e9234fd87698c7a739c0dafa8fd2223e8d65c4a85f91d7a52d50bfe7f4fa65749a5aead58df496
README.md19.4 KB (19,821 B)7cbc897854557ec8b8d8276e78edcc80d0c7540ef844f7f28bb115bcd69da216961a02ee9b3e5e63d4d8ba8cf9ca6cebdec3c9e3
config.json1.1 KB (1,158 B)eb54fd94c4d710763307d19855220964480b900eddf5697053b34611da16ea2dd565f86d4341f14a05fc460b54d20e50a10b9895
config_sentence_transformers.json299 B (299 B)3ba4bde819e29371493dbaa1aecda4accd9e3faf07d88ba0e782f2a3479b52e9eb08ba08db91eed33fb1f5b7c1cb756c022c71ad
llama_bidirectional_model.py8.8 KB (9,059 B)7f40184a4e1fe192e73f390c13fa549e96d50320fd26e459b1277bee61b3d501cddd61291714e48a93a9a1c0ab81b1342c59fcc2
model.safetensors2.30 GB (2,471,644,736 B)cfcb2c17e5745a629806a48cf4c989c9d71098d045f8440682a89ac577cc8d53b1bb345804772adb7b34e0573562e2fca4e62b0d
modules.json349 B (349 B)952a9b81c0bfd99800fabf352f69c7ccd46c5e4384e40c8e006c9b1d6c122e02cba9b02458120b5fb0c87b746c41e0207cf642cf
pooling.py1.1 KB (1,108 B)eb757a159486c38ecd02646d4422e7542a6e889f117422c718eac86f834c1cacf39c1eca13f80a254e03bacdf3a4f4e4e98da4bb
pytorch_model.bin2.30 GB (2,471,647,930 B)82de247dd7f81fb2c4c5f19d04c36c7420ab3f4c85d91202eaf5b458887bb3e09ff8074078334299250e6031a97c1a8b2280a584
sentence_bert_config.json58 B (58 B)306f5e30b3047fbad6af657cae7db9b911d722169ee3935137f87c9ce6662ae17fe7afb7c9c64744a41247359fd228dc37e627b3
special_tokens_map.json449 B (449 B)e5b39b6305d89284b04934011c68dbb26bf588ca03d62862d41de30db9e05cb4865de4f36c48ab3032327139fcdfacc5798a4828
tokenizer.json8.7 MB (9,085,657 B)5cc5f00a5b203e90a27a3bd60d1ec393b07971e879e3e522635f3171300913bb421464a87de6222182a0570b9b2ccba2a964b2b4
tokenizer_config.json49.3 KB (50,534 B)0df36e82e06f1188c56f572211c39d7d52f1f46ea800da9323f6bc65b8a87ae3d209f46a18eb09cf381b6c416551d30372cf1ce6

Cite this release

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

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

Provenance

Upstream repositorynvidia/llama-nemotron-embed-1b-v2
Revision (pinned)113abe4acafa848e77ead9c0623205e511932348
Fetched at2026-09-04T04:27:00Z
License at fetchother
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-04T04:27:47Z

custom/other license4.61 GB (4,952,483,288 bytes)sentence-transformerspytorchsafetensorsllama_bidirecfeature-extractiontexttext-embeddingsretrievalsemantic-searchtransformerscustom_codemultilingualtext-embeddings-inferenceendpoints_compatiblepaper: 2407.15831