Instructions to use nvidia/Nemotron-3.5-Embed-8B-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nvidia/Nemotron-3.5-Embed-8B-NVFP4 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("nvidia/Nemotron-3.5-Embed-8B-NVFP4") model = AutoModel.from_pretrained("nvidia/Nemotron-3.5-Embed-8B-NVFP4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model Overview
Description:
Nemotron-3.5-Embed-8B-NVFP4 is the quantized version of the Nemotron-3.5-Embed-8B-BF16 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).
Additional Information: The Ministral-3-8B-Instruct-2512-BF16 base model is governed by the Apache License, Version 2.0.
Deployment Geography:
Global
Use Case:
The Nemotron-3.5-Embed-8B-NVFP4 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 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.
Generally Nemotron-3.5-Embed-8B-BF16 and Nemotron-3.5-Embed-8B-NVFP4 models share the embedding space and can be used interchangeably, but we recommend validating retrieval quality on a representative sample before switching the models.
Release Date:
Hugging Face on 11/30/2026 via https://huggingface.co/nvidia/Nemotron-3.5-Embed-8B-NVFP4
Model Architecture:
Architecture Type: Transformer
Network Architecture: The released model contains a Pixtral-based vision encoder and a bidirectional Ministral3 language-model tower.
Number of model parameters: 8.38B
The Nemotron-3.5-Embed-8B-NVFP4 is the quantized version of the Nemotron-3.5-Embed-8B-BF16. For distribution, the NVFP4 checkpoint was converted to the compressed-tensors format. NVFP4 quantization is applied to the weights and activations of linear layers only in both the language model and the vision encoder, targeting the NVFP4 data type for efficient inference.
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 4096-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.
vLLM Usage
This NVFP4 checkpoint is intended for vLLM. This checkpoint requires hardware with NVFP4 support, such as NVIDIA Blackwell GPUs. The examples below show offline Python use and online serving. Use nvidia/Nemotron-3.5-Embed-8B-BF16 if you need Transformers or Sentence Transformers.
Dependencies
Create a separate Python environment for vLLM. Set MODEL_PATH to the Hugging Face model ID or a local checkpoint directory:
uv venv --python 3.12 .venv-vllm
source .venv-vllm/bin/activate
uv pip install "vllm==0.34.0" "transformers==5.19.0" pillow httpx numpy
export MODEL_PATH="nvidia/Nemotron-3.5-Embed-8B-NVFP4"
This checkpoint requires Transformers 5.17.0 or later for its Pixtral rotary embedding configuration. These examples use vLLM 0.34.0, which requires transformers>=5.16.1,<5.23.0. Image preprocessing uses the checkpoint's configured longest-edge limit of 1,120 pixels. The 32,768-token context includes both text and image tokens.
The offline and HTTP examples were tested with vLLM 0.34.0 and Transformers 5.19.0.
For container-based installation, refer to the vLLM Docker setup guide or the NVIDIA vLLM container on NGC. Check the selected image tag's release notes for its vLLM and Transformers versions and GPU support.
vLLM reads the checkpoint's compressed-tensors NVFP4 quantization configuration automatically; no --quantization override is needed. dtype="bfloat16" (or --dtype bfloat16) sets the dtype for unquantized operations. It does not convert the packed NVFP4 weights to BF16.
Offline Python
Use query: for text queries and passage: for documents. Format each input
with the model's chat template and pass images through multi_modal_data:
import os
import numpy as np
from transformers import AutoProcessor
from transformers.image_utils import load_image
from vllm import LLM
from vllm.config import PoolerConfig
MODEL_PATH = os.environ["MODEL_PATH"]
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
def main() -> None:
processor = AutoProcessor.from_pretrained(MODEL_PATH)
model = LLM(
model=MODEL_PATH,
runner="pooling",
compilation_config={"compile_mm_encoder": True},
dtype="bfloat16",
pooler_config=PoolerConfig(
seq_pooling_type="MEAN",
use_activation=True,
),
max_model_len=MAX_MODEL_LEN,
limit_mm_per_prompt={"image": 1},
)
image = load_image(IMAGE_URL)
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."
samples = [
("query:", "What is NVIDIA NeMo Framework?", None),
("passage:", nemo_text, image),
("passage:", nemo_text, None),
("passage:", None, image),
("passage:", biology_text, None),
]
prompts = []
for prefix, text, image in samples:
content = [] if image is None else [{"type": "image", "image": image}]
if text is not None:
content.append({"type": "text", "text": text})
conversation = [
{"role": "system", "content": prefix},
{"role": "user", "content": content},
]
prompt = {"prompt": processor.apply_chat_template(conversation, tokenize=False)}
if image is not None:
prompt["multi_modal_data"] = {"image": image}
prompts.append(prompt)
# Preserve the template output without adding BOS/EOS tokens.
outputs = model.embed(prompts, tokenization_kwargs={"add_special_tokens": False})
embeddings = np.asarray([result.outputs.embedding for result in outputs], dtype=np.float32)
query_embedding, document_embeddings = embeddings[:1], embeddings[1:]
scores = query_embedding @ document_embeddings.T
print(f"query_embedding.shape={query_embedding.shape}")
print(f"document_embeddings.shape={document_embeddings.shape}")
for name, score in zip(DOCUMENT_NAMES, scores[0]):
print(f"{name}_similarity={score:.6f}")
if __name__ == "__main__":
main()
Example output (scores can vary with hardware and runtime):
query_embedding.shape=(1, 4096)
document_embeddings.shape=(4, 4096)
nemo_image_text_similarity=0.539608
nemo_text_similarity=0.587474
nemo_image_similarity=0.515783
biology_text_similarity=0.247447
The example returns one query embedding and four document embeddings, each with 4,096 dimensions. The embeddings are L2-normalized, so their dot products give cosine similarity scores. Higher scores indicate greater similarity to the query.
Online Serving
Use the same environment and MODEL_PATH from the dependencies section. Start a local embedding server. These examples allow at most one image per input:
export VLLM_CACHE_ROOT="${VLLM_CACHE_ROOT:-$HOME/.cache/vllm}"
mkdir -p "$VLLM_CACHE_ROOT"
vllm serve "$MODEL_PATH" \
--served-model-name "nvidia/Nemotron-3.5-Embed-8B-NVFP4" \
--runner pooling \
--dtype bfloat16 \
--max-model-len 32768 \
--compilation-config '{"compile_mm_encoder":true}' \
--limit-mm-per-prompt '{"image":1}' \
--pooler-config '{"seq_pooling_type":"MEAN","use_activation":true}' \
--chat-template-content-format openai \
--host 127.0.0.1 \
--port 8000
For HTTP serving in a container, use --host 0.0.0.0 inside the container and publish port 8000 to host loopback, for example with Docker's -p 127.0.0.1:8000:8000.
Keep VLLM_CACHE_ROOT on persistent storage to reuse compatible vLLM compilation artifacts across restarts. FlashInfer stores its compiled kernels and autotuning cache separately in ~/.cache/flashinfer by default. Persist that directory as well, including in container deployments. If you set FLASHINFER_WORKSPACE_BASE, the FlashInfer cache is under $FLASHINFER_WORKSPACE_BASE/.cache/flashinfer.
The first startup can take several minutes while FlashInfer builds kernels and tunes FP4 GEMMs. With encoder compilation enabled, the first image request can also trigger image-encoder compilation. Wait for the server to report that startup is complete before running the client.
After the server is ready, open another terminal in the same directory and activate the vLLM environment:
source .venv-vllm/bin/activate
Run the following Python client to send the query and a batch of four documents to /v2/embed. input_type selects the query or document prefix from the checkpoint. The client sets truncate="END" to truncate text from the end. If image tokens alone exceed the context limit, reduce the image resolution.
import httpx
import numpy as np
MODEL_ID = "nvidia/Nemotron-3.5-Embed-8B-NVFP4"
ENDPOINT = "http://127.0.0.1:8000/v2/embed"
IMAGE_URL = "https://docs.nvidia.com/nemo-framework/user-guide/24.07/_images/nemo-llm-mm-stack.png"
DOCUMENT_NAMES = ["nemo_image_text", "nemo_text", "nemo_image", "biology_text"]
def embed(client: httpx.Client, input_type: str, inputs: list[dict]) -> np.ndarray:
response = client.post(
ENDPOINT,
json={
"model": MODEL_ID,
"input_type": input_type,
"inputs": inputs,
"embedding_types": ["float"],
"truncate": "END",
},
)
response.raise_for_status()
return np.asarray(response.json()["embeddings"]["float"], dtype=np.float32)
def main() -> None:
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."
image_block = {"type": "image_url", "image_url": {"url": IMAGE_URL}}
documents = [
{"content": [image_block, {"type": "text", "text": nemo_text}]},
{"content": [{"type": "text", "text": nemo_text}]},
{"content": [image_block]},
{"content": [{"type": "text", "text": biology_text}]},
]
with httpx.Client(timeout=120.0) as client:
query_embedding = embed(client, "query", [{"content": [{"type": "text", "text": query}]}])[0]
document_embeddings = embed(client, "document", documents)
for name, score in zip(DOCUMENT_NAMES, query_embedding @ document_embeddings.T):
print(f"{name}_similarity={score:.6f}")
if __name__ == "__main__":
main()
Example output (scores can vary with hardware and runtime):
nemo_image_text_similarity=0.539219
nemo_text_similarity=0.586378
nemo_image_similarity=0.514634
biology_text_similarity=0.246893
Software Integration:
Runtime Engine(s):
- vLLM
Supported Hardware Microarchitecture Compatibility:
- NVIDIA Blackwell
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.
Model Version(s):
Nemotron-3.5-Embed-8B-NVFP4
Training, Testing, and Evaluation Datasets:
Training Dataset:
Data Modality:
- Image
- Text
Image Training Data Size: 49k samples
Text Training Data Size: 49k samples
Data Collection Method by dataset: Hybrid: Automated, Synthetic
Labeling Method by dataset: Hybrid: Automated, Synthetic
Properties: This checkpoint is an NVFP4 post-training-quantized derivative of nvidia/Nemotron-3.5-Embed-8B-BF16. NVFP4 quantization and Quantization-Aware Distillation (QAD) used a 49k-sample subset of the training data, selected to cover typical cases and tail cases, and containing both images and text. Of these samples, initial post-training quantization calibration used 384 samples: 128 images, 128 short texts, and 128 long texts. Initial QAD of the vision encoder used 5,120 randomly sampled images.
Nemotron-3.5-Embed-8B-BF16's training was conducted using publicly available, commercially permissible datasets and synthetically generated datasets. For more detail about the text and image datasets used for training please refer to the Nemotron-3.5-Embed-8B-BF16's model card.
Testing Dataset:
Data Collection Method by dataset: Not Applicable
Labeling Method by dataset: Not Applicable
Properties: Not Applicable. Model quality was assessed using the evaluation benchmark datasets described in the Evaluation Dataset subsection.
Evaluation Dataset:
Benchmark:
Benchmark Score: NDCG@10
The Nemotron-3.5-Embed-8B-BF16 and Nemotron-3.5-Embed-8B-NVFP4 were evaluated with the models' default image longest_edge of 1,120 pixels.
| Model | ViDoRe V3 | ||
|---|---|---|---|
| image | text | image + text | |
| Nemotron-3.5-Embed-8B-BF16 | 60.39 | 60.65 | 61.47 |
| Nemotron-3.5-Embed-8B-NVFP4 | 60.14 | 60.51 | 61.11 |
Data Collection Method by dataset: Hybrid: Automated, Synthetic
Labeling Method by dataset: Automated, Manually-Labeled, Synthetic
Properties: ViDoRe V3 is a visual document retrieval benchmark covering 8 public and 2 private datasets across professional domains.
Inference:
Acceleration Engine: vLLM
Hardware Requirements (GPU Architecture, Model): NVIDIA GPUs based on the Blackwell architecture, such as GB200 and RTX PRO 6000 Blackwell Server Edition.
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. 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 make sure you have proper rights and permissions for all input image and video content; if image or video includes people, personal health information, or intellectual property, the image or video generated will not blur or maintain proportions of image subjects included.
For more detailed information on ethical considerations for this model, please see the Model Card++ Explainability, Bias, Safety & Security, and Privacy Subcards.
Please report model quality, risk, security vulnerabilities or NVIDIA AI Concerns here.
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 |
| Bias Metric (If Measured): | Not Applicable |
Explainability
| Field | Response |
|---|---|
| Intended Task/Domain: | Document and query embedding for question and answer retrieval. |
| Model Type: | Transformer encoder |
| Intended Users: | Generative AI creators working with conversational AI models - users who want to build a multilingual and multimodal question and answer application over a large document corpus, leveraging the latest dense retrieval technologies. |
| Output: | Array of float numbers (Dense Vector Representation for the input text or image) |
| Describe how the model works: | Model transforms the tokenized input into a dense vector representation. |
| List the groups (or group characteristics) for which this was tested to produce comparable outcomes: | Not Applicable |
| Technical Limitations & Mitigation: | The model’s max sequence length is 32768. Therefore, the longer inputs should be truncated. |
| Verified to have met prescribed NVIDIA quality standards: | Yes |
| Performance Metrics: | Accuracy, Latency and Throughput |
| Potential Known Risks: | This model does not always guarantee to retrieve the correct document(s) for a given query. |
| Licensing: | Use of the model is governed by the OpenMDW License Agreement, version 1.1 (OpenMDW-1.1). Additional Information: The Ministral-3-8B-Instruct-2512-BF16 base model is governed by the Apache License, Version 2.0. |
Privacy
The datasets used to train this model were reviewed before release. Please review NVIDIA’s Privacy Policy (https://www.nvidia.com/en-us/about-nvidia/privacy-policy/) for more information.
Safety
| Field | Response |
|---|---|
| Model Application Field(s): | Document Embedding for Retrieval. User queries can be text and documents can be text, document page images, charts, tables, and infographics. |
| Describe the life critical impact (if present). | Not Applicable |
| Use Case Restrictions: | Use of the model is governed by the OpenMDW License Agreement, version 1.1 (OpenMDW-1.1). Additional Information: The Ministral-3-8B-Instruct-2512-BF16 base model is governed by the Apache License, Version 2.0. |
| 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. |
- Downloads last month
- 1,726
Model tree for nvidia/Nemotron-3.5-Embed-8B-NVFP4
Base model
mistralai/Ministral-3-8B-Base-2512