Skip to content

Commit feca096

Browse files
Nano V2 VLM Blog
1 parent f84665f commit feca096

File tree

3 files changed

+136
-0
lines changed

3 files changed

+136
-0
lines changed
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
---
2+
layout: post
3+
title: "Run Multimodal Reasoning Agents with NVIDIA Nemotron on vLLM"
4+
author: "NVIDIA Nemotron Team"
5+
---
6+
7+
8+
# Run Multimodal Reasoning Agents with NVIDIA Nemotron on vLLM
9+
10+
We are excited to release [NVIDIA Nemotron Nano 2 VL](https://huggingface.co/nvidia/Nemotron-Nano-12B-v2-VL-BF16), supported by vLLM. This open vision language model ([VLM](https://www.nvidia.com/en-us/glossary/vision-language-models/)) is built for video understanding and document intelligence.
11+
12+
Nemotron Nano 2 VL uses a hybrid Transformer–Mamba design and delivers higher throughput while maintaining state-of-the-art multimodal reasoning accuracy. The model also features Efficient Video Sampling (EVS), a new technique that reduces redundant [tokens](https://blogs.nvidia.com/blog/ai-tokens-explained/) generation for video workloads , allowing processing of more videos with higher efficiency.
13+
14+
In this blog post, we’ll explore how Nemotron Nano 2 VL advances video understanding and document intelligence, showcase real-world use cases and benchmark results, and guide you through getting started with vLLM for inference to unlock high-efficiency multimodal AI at scale.
15+
16+
## About Nemotron Nano 2 VL
17+
18+
* Architecture:
19+
* [CRADIOH-V2](https://huggingface.co/nvidia/C-RADIOv2-H) based Vision Encoder
20+
* Efficient video sampling as token compression module
21+
* Hybrid Transformer-Mamba Architecture- [Nemotron Nano 2 LLM](https://huggingface.co/nvidia/NVIDIA-Nemotron-Nano-9B-v2) backbone with reasoning.
22+
* Accuracy
23+
* Leading accuracy on OCRBench v2
24+
* 74 on average score (compared to 64.2 with current top VL model) on the following benchmarks: MMMU, MathVista, AI2D, OCRBench, OCRBench-v2, OCR-Reasoning, ChartQA, DocVQA, and Video-MME
25+
* Model size: 12B
26+
* Context length: 128k
27+
* Model input: Multi-image documents, videos, text
28+
* Model output: Text
29+
* Get started:
30+
* Download model weights from Hugging Face \- [BF16](https://huggingface.co/nvidia/Nemotron-Nano-12B-v2-VL-BF16), [FP8](https://huggingface.co/nvidia/Nemotron-Nano-12B-v2-VL-FP8), [FP4-QAD](https://huggingface.co/nvidia/Nemotron-Nano-12B-v2-VL-FP4-QAD)
31+
* Run with vLLM for inference
32+
* [Technical report](https://www.overleaf.com/project/68d1d48c83696e11ba669f70) to build custom, optimized models with Nemotron techniques..
33+
34+
## Run optimized inference with vLLM
35+
36+
Nemotron Nano 2 VL, achieves accelerated [inference](https://www.nvidia.com/en-us/glossary/ai-inference/) and serves more requests on the same GPU with BF16, FP8 and FP4 precision support. Follow these instructions to get started:
37+
38+
`Create a fresh conda environment`
39+
40+
````shell
41+
```bash
42+
conda create -n nemotron-vllm-env python=3.10 -y
43+
conda activate nemotron-vllm-env
44+
```
45+
````
46+
47+
`Make sure to use the main branch of the vLLM. Run the command below to install vLLM`
48+
49+
````shell
50+
```bash
51+
!VLLM_USE_PRECOMPILED=1 pip install git+https://github.com/vllm-project/vllm.git@main
52+
````
53+
54+
`We can then serve this model via an OpenAI-compatible API`
55+
56+
````shell
57+
58+
```bash
59+
vllm serve nvidia/Nemotron-Nano-12B-v2-VL-BF16 --trust-remote-code --dtype bfloat16 --video-pruning-rate 0
60+
```
61+
62+
# FP8
63+
```bash
64+
vllm serve nvidia/Nemotron-Nano-VL-12B-V2-FP8 --trust-remote-code --quantization modelopt --video-pruning-rate 0
65+
```
66+
67+
# FP4
68+
```bash
69+
vllm serve nvidia/Nemotron-Nano-VL-12B-V2-FP4-QAD --trust-remote-code --quantization modelopt_fp4 --video-pruning-rate 0
70+
```
71+
72+
````
73+
74+
`Once the server is up and running, you can prompt the model using the below code snippets`
75+
76+
```python
77+
from openai import OpenAI
78+
client = OpenAI(base_url="http://127.0.0.1:8033/v1", api_key="null")
79+
# Simple chat completion
80+
resp = client.chat.completions.create(
81+
model="nvidia/Nemotron-Nano-12B-v2-VL-BF16",
82+
messages=[
83+
{"role": "system", "content": "/no_think"},
84+
{"role": "user", "content": [
85+
{"type": "text", "text": "Give me 3 interesting facts about this image."},
86+
{"type": "image_url", "image_url": {"url": "https://blogs.nvidia.com/wp-content/uploads/2025/08/gamescom-g-assist-nv-blog-1280x680-1.jpg"}
87+
}
88+
]},
89+
],
90+
temperature=0.0,
91+
max_tokens=1024,
92+
)
93+
print(resp.choices[0].message.content)
94+
```
95+
96+
For an easier setup with vLLM, refer to our getting started cookbook, available here.
97+
98+
## Leading multimodal model for efficient video understanding and document intelligence
99+
100+
NVIDIA Nemotron Nano 2 VL brings both video understanding and document intelligence capabilities together in a single, highly efficient model. Built on the hybrid Transformer–Mamba architecture, it combines the reasoning strength of Transformer models with the compute efficiency of Mamba, achieving high throughput and low latency, allowing it to process multi-image inputs faster.
101+
102+
Trained on NVIDIA-curated, high-quality multimodal data, [Nemotron Nano 2 VL](https://huggingface.co/blog/nvidia/nemotron-vlm-dataset-v2) leads in video understanding and document intelligence benchmarks such as MMMU, MathVista, AI2D, OCRBench, OCRBench-v2, OCR-Reasoning, ChartQA, DocVQA, and Video-MME, delivering top-tier accuracy in multimodal [reasoning](https://www.nvidia.com/en-us/glossary/ai-reasoning/), character recognition, chart reasoning, and visual question answering. This makes it ideal for building multimodal applications that automate data extraction and comprehension across videos, documents, forms, and charts with enterprise-grade precision.
103+
104+
105+
<p align="center">
106+
<picture>
107+
<img src="/assets/figures/2025-multimodal-nvidia-nemotron/figure1.png" width="100%">
108+
</picture>
109+
<br>
110+
Figure 1: Nemotron Nano 2 VL provides leading accuracy on various video understanding and document intelligence benchmarks
111+
</p>
112+
113+
Improving Efficiency with EVS
114+
With EVS, the model achieves higher throughput and faster response times without sacrificing accuracy. EVS technique prunes redundant frames, preserving semantic richness while enabling longer video processing efficiently. As a result, enterprises can analyze hours of footage, from meetings and training sessions to customer calls, in minutes, gaining actionable insights faster and at lower cost.
115+
116+
117+
<p align="center">
118+
<picture>
119+
<img src="/assets/figures/2025-multimodal-nvidia-nemotron/figure2.png" width="100%">
120+
</picture>
121+
<br>
122+
Figure 2: Accuracy trend of the Nemotron Nano 2 VL model across various token-drop thresholds using efficient video sampling on Video-MME and LongVideo benchmarks
123+
</p>
124+
125+
## Get Started
126+
127+
To summarize, Nemotron Nano 2 VL helps build scalable, cost-efficient agentic AI systems that truly understand documents and video. With open weights, training datasets, and recipes, developers gain full transparency and flexibility to fine-tune and deploy the model across any environment, from on-premise to cloud, for maximum security and privacy.
128+
129+
Ready to build enterprise-ready agents?
130+
131+
* Download Nemotron Nano 2 VL model weights from Hugging Face \- [BF16](https://huggingface.co/nvidia/Nemotron-Nano-12B-v2-VL-BF16), [FP8](https://huggingface.co/nvidia/Nemotron-Nano-12B-v2-VL-FP8), [FP4-QAD](https://huggingface.co/nvidia/Nemotron-Nano-12B-v2-VL-FP4-QAD)
132+
* Run with vLLM for inference using this Jupyter Notebook
133+
134+
[*Share your ideas*](http://nemotron.ideas.nvidia.com/?ncid=so-othe-692335) *and vote on what matters to help shape the future of Nemotron.*
135+
136+
*Stay up to date on [NVIDIA Nemotron](https://developer.nvidia.com/nemotron) by subscribing to NVIDIA news and following NVIDIA AI on [LinkedIn](https://www.linkedin.com/showcase/nvidia-ai/posts/?feedView=all), [X](https://x.com/NVIDIAAIDev), [YouTube](https://www.youtube.com/@NVIDIADeveloper)*, *and the [Nemotron channel](https://discord.com/channels/1019361803752456192/1407781691698708682) on [Discord](https://discord.com/invite/nvidiadeveloper).*
22.8 KB
Loading
21.3 KB
Loading

0 commit comments

Comments
 (0)