Retrieved article excerpt
Open article · Retrieved 2026-10-16T00:34:41.853571+00:00
# [nvidia](https://huggingface.co/nvidia) / [Nemotron-3.5-Embed-1B-BF16](https://huggingface.co/nvidia/Nemotron-3.5-Embed-1B-BF16) Like 5 Follow NVIDIA 71.4k
[Visual Document Retrieval](https://huggingface.co/models?pipeline_tag=visual-document-retrieval)[sentence-transformers](https://huggingface.co/models?library=sentence-transformers)[Safetensors](https://huggingface.co/models?library=safetensors)[Transformers](https://huggingface.co/models?library=transformers)
34 languages
[mistral3](https://huggingface.co/models?other=mistral3)[feature-extraction](https://huggingface.co/models?other=feature-extraction)[multimodal-embedding](https://huggingface.co/models?other=multimodal-embedding)[image-embeddings](https://huggingface.co/models?other=image-embeddings)[text-embeddings](https://huggingface.co/models?other=text-embeddings)[retrieval](https://huggingface.co/models?other=retrieval)[rag](https://huggingface.co/models?other=rag)[semantic-search](https://huggingface.co/models?other=semantic-search)[vllm](https://huggingface.co/models?other=vllm)
License: openmdw-1.1
[Model card](https://huggingface.co/nvidia/Nemotron-3.5-Embed-1B-BF16) [Files Files and versions
xet](https://huggingface.co/nvidia/Nemotron-3.5-Embed-1B-BF16/tree/main) [Community](https://huggingface.co/nvidia/Nemotron-3.5-Embed-1B-BF16/discussions)
Deploy
Copy to bucket new
Use this model
**NVIDIA Nemotron 3.5 Embed**
[Nemotron 3.5 Embed 1B BF16](https://huggingface.co/nvidia/Nemotron-3.5-Embed-1B-BF16)
[Nemotron 3.5 Embed 1B NVFP4](https://huggingface.co/nvidia/Nemotron-3.5-Embed-1B-NVFP4)
[Nemotron 3.5 Embed 8B BF16](https://huggingface.co/nvidia/Nemotron-3.5-Embed-8B-BF16)
# Nemotron-3.5-Embed-1B-BF16 Overview
## Description:
**Nemotron-3.5-Embed-1B-BF16** is a versatile embedding model developed by NVIDIA for multimodal and multilingual question-answering retrieval. The model can embed a document page in the form of an image, text, or combined image–text input. Documents can be retrieved given a user query in text form. The model supports page images containing text, tables, charts, and infographics. For text retrieval, the model was evaluated across 34 languages: English, Arabic, Assamese, Bengali, Bulgarian, Chinese, Danish, Dutch, Finnish, French, German, Hindi, Hinglish, Indonesian, Italian, Japanese, Korean, Malay, Marathi, Nepali, Norwegian, Persian, Portuguese, Romanian, Russian, Spanish, Swahili, Swedish, Tamil, Telugu, Thai, Ukrainian, Urdu, and Vietnamese. For image retrieval, it was evaluated across 18 languages: Arabic, Bengali, Chinese, English, Persian, Finnish, French, German, Hindi, Indonesian, Japanese, Korean, Russian, Spanish, Swahili, Telugu, Thai, and Yoruba. The model may support additional languages beyond these evaluation sets.
This model is ready for commercial or non-commercial use.
### License/Terms of Use:
**Governing Download Terms:** Use of the model is governed by the [OpenMDW License Agreement, version 1.1 (OpenMDW-1.1)](https://openmdw.ai/license/1-1/).
**Additional Information:** The [Ministral-3-3B-Instruct-2512-BF16](https://huggingface.co/mistralai/Ministral-3-3B-Instruct-2512-BF16) and [Ministral-3-8B-Instruct-2512-BF16](https://huggingface.co/mistralai/Ministral-3-8B-Instruct-2512-BF16) base models are governed by the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0.txt).
### Deployment Geography:
Global
### Use Case:
The **Nemotron-3.5-Embed-1B-BF16** is suitable for users who want to build a multimodal question-and-answer application over a large corpus, leveraging the latest dense retrieval technology. The input of the model is a text or a document image, and the output is a fixed-size embedding vector. The embedding model is a bi-encoder that supports context in textual format (e.g. the query or the OCR text of a page or a section of a document) or the image of a document page.
Typically, the embedding model is used first to embed (vectorize) the whole corpus (document images or text chunks), and embeddings are stored in a vector database associated to its raw content (image or text). Then at inference time, the embedding model is used to embed the query. The model generates dense vector embeddings from text or image inputs, enabling multimodal retrieval, semantic search, and (agentic) RAG workflows.
### Release Date:
Hugging Face 10/20/2026 via <https://huggingface.co/nvidia/Nemotron-3.5-Embed-1B-BF16>
## Model Architecture:
**Architecture Type:** Transformer
**Network Architecture:** `Nemotron-3.5-Embed-1B-BF16` consists of a Pixtral vision encoder initialized from [mistralai/Ministral-3-3B-Instruct-2512-BF16](https://huggingface.co/mistralai/Ministral-3-3B-Instruct-2512-BF16) and a language model initialized from [nvidia/Nemotron-3-Embed-1B-BF16](https://huggingface.co/nvidia/Nemotron-3-Embed-1B-BF16).
**Number of model parameters:** 1.55B
The `Nemotron-3.5-Embed-1B-BF16` model was distilled from the [Nemotron-3.5-Embed-8B-BF16](https://huggingface.co/nvidia/Nemotron-3.5-Embed-8B-BF16) embedding teacher using combined cosine distance (COS) and mean squared error (MSE) losses on multilingual text and image retrieval data. Its language-model component was initialized from [Nemotron-3-Embed-1B-BF16](https://huggingface.co/nvidia/Nemotron-3-Embed-1B-BF16) and kept frozen during distillation. Consequently, `Nemotron-3.5-Embed-1B-BF16` shares the same text embedding space as `Nemotron-3-Embed-1B-BF16` while adding image retrieval capabilities. The vision encoder and multimodal projection were fine-tuned on image and combined image-text datasets.
## Input:
**Input Type(s):** Text, Image
**Input Format(s):** Text: String; Image: Red, Green, Blue (RGB)
**Input Parameters:** Text: One-Dimensional (1D), Image: Two-Dimensional (2D)
**Other Properties Related to Input:** The model supports image and/or text inputs. For queries, the model accepts text input only. For documents, it accepts an image, text, or a combination of image + text. The default image `longest_edge` is 1,120 pixels, and it can be increased up to 1,540 pixels. The model’s max context length is 32,768 tokens.
## Output:
**Output Type(s):** Embeddings
**Output Format:** Vector
**Output Parameters:** One-Dimensional (1D) per input
**Other Properties Related to Output:** Token-level hidden states are mean-pooled and then L2-normalized to produce one 2048-dimensional embedding vector for each input. The model also supports dynamic embedding sizes by truncating the vector from the end (e.g., retaining the first 1024 or 512 dimensions). The truncated embeddings remain effective for retrieval, provided they are L2-normalized after truncation.
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.
## Installation
Create a Python 3.12 environment for the Transformers and Sentence Transformers examples:
```
uv venv --python 3.12 .venv-transformers
source .venv-transformers/bin/activate
uv pip install torch "transformers>=5.5.0,<5.17.0" accelerate pillow packaging ninja
uv pip install flash-attn --no-build-isolation
```
The examples use Flash Attention 2. The Transformers upper bound avoids the Pixtral Flash Attention regression. The checkpoint uses `TokenizersBackend` and does not require `mistral_common`.
Model training and evaluations used `transformers==5.12.1`. Example outputs can vary with hardware and runtime.
### Transformers Usage
Generate embeddings for text queries and documents containing text, images, or both.
```
import torch
import torch.nn.functional as F
from PIL import Image
from transformers import AutoModel, AutoProcessor
from transformers.image_utils import load_image
MODEL_PATH = "nvidia/Nemotron-3.5-Embed-1B-BF16" # Or a local checkpoint directory.
DOCUMENT_NAMES = ["nemo_image_text", "nemo_text", "nemo_image", "biology_text"]
IMAGE_URL = "https://docs.nvidia.com/nemo-framework/user-guide/24.07/_images/nemo-llm-mm-stack.png"
MAX_MODEL_LEN = 32768
DEVICE = "cuda:0"
def main() -> None:
if not torch.cuda.is_available():
raise RuntimeError("This bfloat16 example requires a CUDA GPU.")
processor = AutoProcessor.from_pretrained(MODEL_PATH)
model = AutoModel.from_pretrained(
MODEL_PATH,
dtype=torch.bfloat16,
device_map={"": DEVICE},
attn_implementation="flash_attention_2",
).eval()
def embed(
prefix: str,
text: str | None = None,
image: Image.Image | None = None,
) -> torch.Tensor:
content = [] if image is None else [{"type": "image", "image": image}]
if text is not None:
content.append({"type": "text", "text": text})
inputs = processor.apply_chat_template(
[
{"role": "system", "content": prefix},
{"role": "user", "content": content},
],
tokenize=True,
return_dict=True,
return_tensors="pt",
)
if inputs["input_ids"].shape[-1] > MAX_MODEL_LEN:
raise ValueError("Input exceeds 32768 tokens; shorten the text or resize the image.")
inputs = inputs.to(DEVICE)
if image is not None:
inputs["pixel_values"] = inputs["pixel_values"].to(model.dtype)
with torch.inference_mode():
hidden = model(**inputs).last_hidden_state
mask = inputs["attention_mask"].unsqueeze(-1)
embedding = (hidden * mask).sum(1) / mask.sum(1)
return F.normalize(embedding.float(), dim=-1)
image = load_image(IMAGE_URL)
query_embedding = embed("query:", "What is NVIDIA NeMo Framework?")
nemo_text = "NeMo Framework offers comprehensive functionalities for developing both LLMs and Multimodal Models."
biology_text = "A biological foundation model designed to analyze and generate DNA, RNA, and protein sequences."
document_embeddings = torch.cat(
[
embed("passage:", nemo_text, image),
embed("passage:", nemo_text),
embed("passage:", image=image),
embed("passage:", biology_text),
]
)
scores = query_embedding @ document_embeddings.T
print(f"query_embedding.shape={tuple(query_embedding.shape)}")
print(f"document_embeddings.shape={tuple(document_embeddings.shape)}")
for name, score in zip(DOCUMENT_NAMES, scores[0]):
print(f"{name}_similarity={score.item():.6f}")
if __name__ == "__main__":
main()
```
Example output (scores can vary with hardware and runtime):
```
query_embedding.shape=(1, 2048)
document_embeddings.shape=(4, 2048)
nemo_image_text_similarity=0.521734
nemo_text_similarity=0.457723
nemo_image_similarity=0.509049
biology_text_similarity=0.112573
```
### Sentence Transformers Usage
In the same environment, install Sentence Transformers:
```
uv pip install "sentence-transformers[image]>5.4" "transformers<5.17.0"
```
Generate embeddings for text, images, or combined text and images with Sentence Transformers.
```
import torch
from sentence_transformers import SentenceTransformer
from transformers.image_utils import load_image
MODEL_PATH = "nvidia/Nemotron-3.5-Embed-1B-BF16" # Or a local checkpoint directory.
DOCUMENT_NAMES = ["nemo_image_text", "nemo_text", "nemo_image", "biology_text"]
DEVICE = "cuda:0"
IMAGE_URL = "https://docs.nvidia.com/nemo-framework/user-guide/24.07/_images/nemo-llm-mm-stack.png"
def main() -> None:
"""Run text and multimodal retrieval with the exported Sentence Transformers checkpoint."""
if not torch.cuda.is_available():
raise RuntimeError("This bfloat16 example requires a CUDA GPU.")
model = SentenceTransformer(
MODEL_PATH,
device=DEVICE,
model_kwargs={
"attn_implementation": "flash_atten