Model

ankit/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4

Add files using upload-large-folder tool

ankit committed on October 28, 2026

cb6f83b4253f90b2a5f1cccdd6aa9cd16684fdfcParent 951ba44Browse files

50 files changed+2716 -0

README.md

Added+1207 -0
Lines 0 to 0 become lines 1 to 1207
@@ -0,0 +1,1207 @@
1Added: ---
2Added: library_name: transformers
3Added: license: other
4Added: license_name: openmdw-1.1
5Added: license_link: https://openmdw.ai/license/1-1/
6Added: pipeline_tag: image-text-to-text
7Added: language:
8Added: - en
9Added: - es
10Added: - fr
11Added: - de
12Added: - it
13Added: - ja
14Added: tags:
15Added: - nvidia
16Added: - pytorch
17Added: - nemotron-3.5
18Added: track_downloads: true
19Added: base_model:
20Added: - nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-BF16
21Added: base_model_relation: quantized
22Added: ---
23Added:
24Added: # NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4
25Added:
26Added: <div align="center" style="line-height: 1;">
27Added: <a href="https://huggingface.co/collections/nvidia/nemotron-pre-training-datasets" target="_blank" style="margin: 2px;">
28Added: <img alt="Pre-Training Datasets" src="https://img.shields.io/badge/🗄️_Pre--Training_Datasets-Available_Here-76B900?logoColor=white" style="display: inline-block; vertical-align: middle;"/>
29Added: </a>
30Added: <a href="https://developer.nvidia.com/nemotron" target="_blank" style="margin: 2px;">
31Added: <img alt="Homepage" src="https://img.shields.io/badge/🏠Nemotron Developer Page-Learn More Here!-536af5?color=76B900&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
32Added: </a>
33Added: <a href="https://research.nvidia.com/labs/nemotron/files/NVIDIA-Nemotron-3.5-Super-and-Lightning-Technical-Report.pdf" target="_blank" style="margin: 2px;">
34Added: <img alt="Paper" src="https://img.shields.io/badge/📝Paper-Read Now!-536af5?color=76B900&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
35Added: </a>
36Added: <a href="https://discord.gg/9xpKQtVvrk" target="_blank" style="margin: 2px;">
37Added: <img alt="Discord" src="https://img.shields.io/badge/Discord-NVIDIA%20AI%20Developer-7289da?logo=discord&logoColor=white&color=7289da" style="display: inline-block; vertical-align: middle;"/>
38Added: </a>
39Added: </div>
40Added:
41Added: <div style="text-align: center; line-height: 1;">
42Added: <a href="https://openmdw.ai/license/1-1/" style="margin: 2px;">
43Added: <img alt="License" src="https://img.shields.io/badge/License-OpenMDW--1.1-f5de53" style="display: inline-block; vertical-align: middle;"/>
44Added: </a>
45Added: </div>
46Added:
47Added: ![image](accuracy_plot.png)
48Added:
49Added: ## Description
50Added:
51Added: **NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4** is the quantized release of NVIDIA Nemotron 3.5 Super VL, a vision-language model for reasoning, coding, tool use, document understanding, and video understanding. It uses NVFP4 quantization to reduce memory requirements, with quantization-aware distillation from the [BF16 model](https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-BF16).
52Added:
53Added: The model combines interleaved Mamba-2, Mixture-of-Experts (MoE), and attention layers with a C-RADIO vision encoder and a vision-language connector. It has **120B total parameters** and **12B active parameters** and supports context lengths up to **1M tokens**. Multi-Token Prediction (MTP) enables native speculative decoding.
54Added:
55Added: This model is ready for commercial or non-commercial use.
56Added:
57Added: ## Model Summary
58Added:
59Added: | | |
60Added: |:---|:---|
61Added: | **Total Parameters** | 120B (12B active) |
62Added: | **Architecture** | Mamba-2–Transformer hybrid Mixture of Experts with a C-RADIO vision encoder |
63Added: | **Precision** | NVFP4 (mixed-precision quantized weights) |
64Added: | **Context Length** | Up to 1M tokens; deployment settings are listed below |
65Added: | **Inputs / Outputs** | Text, images, and video / text |
66Added: | **Deployment** | 1× DGX Spark, 1x NVIDIA RTX PRO 6000, 1× H200, 2× H100, or 1× GB200 |
67Added: | **Speculative Decoding** | Native Multi-Token Prediction (MTP) |
68Added: | **Reasoning Mode** | Configurable through the chat template (`enable_thinking=True/False`) |
69Added: | **Recommended Sampling** | Text: temperature 1.0, top_p 0.95; vision: temperature 0.6, top_p 0.95 |
70Added: | **Best For** | Efficient deployment of text and vision-language agents |
71Added: | **License** | [OpenMDW-1.1](https://openmdw.ai/license/1-1/) |
72Added:
73Added: ## Model Overview
74Added:
75Added: **Model Developer:** NVIDIA Corporation
76Added:
77Added: ### What is Nemotron?
78Added:
79Added: NVIDIA Nemotron™ is a family of open models with open weights, training data, and recipes, delivering leading efficiency and accuracy for building specialized AI agents.
80Added:
81Added: ## Quick Start
82Added:
83Added: This vLLM configuration is intended for **DGX Spark (GB10) only**. It serves the model with one concurrent sequence and seven speculative tokens per draft using [LiLiCorr](https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4-LiLiCorr).
84Added:
85Added: > Nemotron 3.5 Super VL has configurable reasoning levels: `off`, `on (medium)`, and `on`. Selecting `on (medium)` will reduce the number of tokens generated compared to `on`, but may impact accuracy. You can learn about the reasoning budget [here](https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4#text-and-reasoning)!
86Added:
87Added: Use Docker with NVIDIA GPU support and the `vllm/vllm-openai:nightly-3f1bcfd82bb2e93fcd364fc7a5491718453a77e2` or (`vllm/vllm-openai:v0.32.0`) image. If the model requires authentication, set `HF_TOKEN` in your shell before launching the container.
88Added:
89Added: ```bash
90Added: export MODEL=nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4
91Added: export DRAFT_MODEL=nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4-LiLiCorr
92Added: ```
93Added:
94Added: ```bash
95Added: vllm serve $MODEL \
96Added: --served-model-name nemotron-3.5-super-vl \
97Added: --max-num-seqs 1 \
98Added: --trust-remote-code \
99Added: --gpu-memory-utilization 0.75 \
100Added: --max-num-batched-tokens 8192 \
101Added: --speculative_config.model $DRAFT_MODEL\
102Added: --speculative_config.num_speculative_tokens 7 \
103Added: --speculative_config.method dflash \
104Added: --mamba-backend flashinfer \
105Added: --mamba-ssm-cache-dtype float16 \
106Added: --enable-mamba-cache-stochastic-rounding \
107Added: --mamba-cache-philox-rounds 5 \
108Added: --enable-mamba-shared-prefix-checkpoint \
109Added: --video-pruning-rate 0.5 \
110Added: --media-io-kwargs '{"video": {"fps": 2, "num_frames": 256}}' \
111Added: --block-size 64 \
112Added: --prefix-match-unit 64 \
113Added: --enable-auto-tool-choice \
114Added: --tool-call-parser qwen3_coder \
115Added: --reasoning-parser nemotron_v3
116Added: ```
117Added:
118Added: Wait for the server to finish loading the model and compiling kernels, then check the endpoint:
119Added:
120Added: ```bash
121Added: curl --fail http://localhost:8000/v1/models
122Added: ```
123Added:
124Added: All vLLM and SGLang examples use port `8000` and the API model name `nemotron-3.5-super-vl`. See the [API Client](#api-client) for text, image, video, and tool-calling examples.
125Added:
126Added: ## License/Terms of Use
127Added:
128Added: **Governing Download Terms:** Use of this model is governed by the [OpenMDW License Agreement, version 1.1](https://openmdw.ai/license/1-1/).
129Added:
130Added: ## Benchmarks
131Added:
132Added: We evaluated our model on the following benchmarks:
133Added:
134Added: | Benchmark | Nemotron 3.5 Super VL BF16 | Nemotron 3.5 Super VL NVFP4 |
135Added: | --- | ---: | ---: |
136Added: | GPQA-Diamond | 89.52 | 89.90 |
137Added: | HLE, text-only | 31.79 | 31.44 |
138Added: | MMLU-ProX | 76.91 | 73.76 |
139Added: | AA-Omniscience accuracy | 26.20 | 25.86 |
140Added: | AA-Omniscience hallucination rate | 30.0 | 27.7 |
141Added: | AA-Omniscience index | 4.03 | 5.3 |
142Added: | APEX shortlist | 88.36 | 89.36 |
143Added: | LiveCodeBench v6 | 88.22 | 87.41 |
144Added: | SciCode, subtask | 47.13 | 46.61 |
145Added: | AA-LCR v1.1 | 68.62 | 67.69 |
146Added: | GraphWalks | 89.71 | 90.34 |
147Added: | IFBench | 70.86 | 71.50 |
148Added: | LMArena v3 proxy | 52.67 | 51.93 |
149Added: | WMT24++ | 84.80 | 84.76 |
150Added: | tau2-bench retail | 69.24 | 69.30 |
151Added: | tau2-bench airline | 76.50 | 75.75 |
152Added: | tau2-bench telecom | 73.19 | 73.19 |
153Added: | tau3-bench banking | 18.88 | 17.78 |
154Added: | GDPval-AA v2 | 1211 | 1206 |
155Added: | BrowseComp | 78 | 77.5 |
156Added: | SWE-bench Verified | 71.10 | 71.07 |
157Added: | SWE-bench Multilingual | 67.72 | 67.00 |
158Added: | SWE-bench Pro | 51.78 | 51.30 |
159Added: | Terminal-Bench 2.1 | 60.67 | 62.78 |
160Added: | BabyVision | 29.60 | 29.51 |
161Added: | MMLongBench-Doc | 62.82 | 62.82 |
162Added: | V* | 85.60 | 85.95 |
163Added: | OCR-Reasoning | 65.08 | 65.09 |
164Added: | MathVision | 78.16 | 77.79 |
165Added: | HLE, full set | 29.20 | 29.00 |
166Added: | OCRBench v2, EN | 68.12 | 68.34 |
167Added: | OCRBench v2, ZH | 59.15 | 59.03 |
168Added: | CharXiv reasoning | 80.82 | 79.88 |
169Added: | Video-MME v2 | 32.85 | 32.54 |
170Added: | OSWorld-Verified | 51.14 | 52.3 |
171Added: | BrowseComp [offline] | 78 | 77.5 |
172Added: | WebVoyager [offline] | 77.72 | 66.31 |
173Added: | AA-Briefcase-Lite [offline] | 1137 (-) \| 1252 (-) \| 40 | 1137 (-) \| 1188 (-) \| 45 |
174Added: | AutomationBench-AA [offline] | 32.44 | 32.3 |
175Added: | GDP.pdf [offline] | 6.6 (AA 6.6) | 6.0 |
176Added: | Terminal Bench 4 [offline] | 1 | 1.5 |
177Added: | DeepSWE [offline] | 24.65 | 18.2 |
178Added:
179Added: > The evaluations between the BF16 checkpoint and NVFP4 checkpoint are done with all configs, harnesses, and other non-model parameters held static to ensure fair comparison that isolates the checkpoint impact
180Added:
181Added: We evaluated Nemotron 3.5 Super on a comprehensive suite of benchmarks spanning agentic capabilities, reasoning and knowledge, multimodal, conversational ability and instruction following, long-context understanding, and multilingual performance. All evaluation results for Nemotron 3.5 Super and baselines were collected via NeMo Gym. For reproducibility purposes, more details on the evaluation settings can be found in the [NeMo Gym recipes folder](https://github.com/NVIDIA-NeMo/Gym) and the [corresponding reproducibility tutorial](https://github.com/NVIDIA-NeMo/Gym/blob/main/nemotron_recipes/super-3.5/reproducibility.md). The published recipes specify the benchmark-specific containers, prompts, inference parameters, parser configurations, and scoring settings used to produce the results.
182Added:
183Added: There were a few benchmarks that were not yet onboarded in our open source tools, and for these we used either their official open source implementation or an internal scaffolding that we plan to open source in the future: BabyVision, CharXiv-RQ, MathVision, MMLongBench-Doc, OCR-Reasoning, OCRBench-v2, V*, Video-MME-v2.
184Added:
185Added: ### Agentic Coding Benchmarks
186Added:
187Added: Additional harness-level coding-agent results for SWE-Bench Pro and Terminal-Bench 2.1 are shown below.
188Added:
189Added: ![image](harness_comparisons.png)
190Added:
191Added: ### Deployment Geography: Global
192Added:
193Added: ### Use Case
194Added:
195Added: This model is intended for developers deploying vision-language agents for coding, search, tool-assisted workflows, document question answering, and image and video understanding, on NVIDIA data center and DGX Spark systems.
196Added:
197Added: ### Release Date
198Added:
199Added: Hugging Face - 10/15/2026 via [Hugging Face](https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4)
200Added:
201Added: ## Reference(s)
202Added:
203Added: * [NVIDIA Nemotron 3.5 Super VL and Lightning Technical Report](https://research.nvidia.com/labs/nemotron/files/NVIDIA-Nemotron-3.5-Super-and-Lightning-Technical-Report.pdf)
204Added:
205Added: ## Model Architecture
206Added:
207Added: - **Architecture Type:** Mamba-2–Transformer hybrid Mixture of Experts (MoE) with Multi-Token Prediction (MTP)
208Added: - **Network Architecture:** Nemotron Hybrid MoE with 512 routed experts per MoE layer, a C-RADIO vision encoder, and a vision-language connector
209Added: - **Number of Model Parameters:** 120B total / 12B active
210Added:
211Added: ## Model Design
212Added:
213Added: The model combines sparse expert computation, attention, and Mamba-2 layers to support long-context processing. The vision encoder and connector turn visual inputs into representations processed by the language backbone. A shared MTP head predicts future tokens recursively for speculative decoding.
214Added:
215Added: The model supports up to 1M tokens of context. The prompt, visual inputs, conversation history, tool results, and generated response share this context window. Individual deployment recipes may use a smaller context window to accommodate the available GPU memory and concurrency.
216Added:
217Added: ## Training Methodology
218Added:
219Added: **Stage 1: Foundation and Multi-Token Prediction**
220Added:
221Added: The language backbone is initialized from Nemotron 3 Super Base. A shared MTP head is trained for 100B tokens while the backbone remains frozen, followed by 1T tokens of distillation from Nemotron 3 Ultra Base.
222Added:
223Added: **Stage 2: Continued Pre-Training and Mid-Training**
224Added:
225Added: The model undergoes 100B tokens of Indic continued pre-training, a 35B-token extension to 1M context, 67B tokens of software-engineering mid-training at 256K context, and a final 9B-token long-context recovery stage. Software-engineering data includes repositories, issue–pull-request pairs, commit diffs, build and CI logs, and agent trajectories.
226Added:
227Added: **Stage 3: Vision-Language Training**
228Added:
229Added: A C-RADIO vision encoder and connector extend the language backbone to visual inputs, including images, document pages, and video frames.
230Added:
231Added: **Stage 4: Supervised Fine-Tuning**
232Added:
233Added: A two-stage supervised fine-tuning pipeline jointly trains the language and vision components on vision, reasoning, code, tools, chat, safety, and long-context data. Training uses packed sequences of up to 524,288 tokens.
234Added:
235Added: **Stage 5: Reinforcement Learning and Distillation**
236Added:
237Added: Reinforcement learning with verifiable rewards, reinforcement learning from human feedback, and specialized teacher training improve reasoning, agentic, chat, and vision capabilities. Multi-teacher on-policy distillation consolidates these capabilities into a single model.
238Added:
239Added: **Stage 6: MTP Boosting**
240Added:
241Added: The MTP head is further trained against the frozen post-trained backbone to improve speculative-decoding acceptance.
242Added:
243Added: **Stage 7: Quantization and Quantization-Aware Distillation**
244Added:
245Added: The model is quantized with [NVIDIA Model Optimizer](https://github.com/NVIDIA/Model-Optimizer) and refined through quantization-aware distillation using the supervised fine-tuning data blend. The vision encoder, connector, Mamba convolutions, and embeddings remain in BF16, and the MoE router remains in FP32. Inference uses W4A4 on Blackwell and W4A16 on non-Blackwell platforms, according to the serving configuration.
246Added:
247Added: ## Input
248Added:
249Added: - **Input Type(s):** Text, images, and video
250Added: - **Input Format(s):** Text strings, images, and sampled video frames
251Added: - Video: mp4, up to 2 minutes.
252Added: - Image: Red, Green, Blue (RGB) (jpeg, png)
253Added: - **Input Parameters:**
254Added: - Video: Three-Dimensional (3D)
255Added: - Image: Two-Dimensional (2D)
256Added: - Text: One-Dimensional (1D)
257Added: - **Other Properties Related to Input:** Maximum context length up to 1M tokens. Documents can be supplied as page images with accompanying text.
258Added:
259Added: ## Output
260Added:
261Added: - **Output Type(s):** Text
262Added: - **Output Format:** String
263Added: - **Output Parameters:** One-dimensional sequences
264Added: - **Other Properties Related to Output:** Input and output tokens share the configured context window.
265Added:
266Added: Our AI models are designed and 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.
267Added:
268Added: ## Software Integration
269Added:
270Added: - **Runtime Engine(s):** vLLM; SGLang; TensorRT-LLM
271Added: - **Hardware:**
272Added: - NVIDIA Blackwell
273Added: - NVIDIA Hopper
274Added: - **Operating System(s):** Linux
275Added:
276Added: 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.
277Added:
278Added: ## Model Version(s)
279Added:
280Added: * v1.0 - NVFP4 GA
281Added:
282Added: ## Quick Start Guide
283Added:
284Added: ### Choose your deployment
285Added:
286Added: | Hardware | Runtime | Configuration |
287Added: |:---|:---|:---|
288Added: | 1× DGX Spark | vLLM | Text, image; 1M-token context; MTP with 5 draft tokens |
289Added: | 1x NVIDIA RTX PRO 6000 | vLLM | Text, image; 1M-token context; MTP with 5 draft tokens |
290Added: | 2× H100 | vLLM | Text, image, and video; 1M-token context; MTP with 3 draft tokens |
291Added: | 1× H200 | vLLM | Text, image, and video; 1M-token context; MTP with 3 draft tokens |
292Added: | 1× GB200 | vLLM | Text, image, and video; 1M-token context; MTP with 5 draft tokens |
293Added: | 1× GB200, 2× H100 or 1× DGX Spark | SGLang | Text, image; 1M-token context; MTP with 5 draft steps |
294Added: | 1× GB200 | TensorRT-LLM | 1M-token context; MTP with 5 draft tokens |
295Added:
296Added: ### NIM and Dynamo
297Added:
298Added: For production workloads, leverage our best-in-class deployment solutions:
299Added:
300Added: NVIDIA NIM packages the model with an optimized inference engine, validated configurations, and standard APIs for deployment in cloud and data center environments. Get started with the Nemotron 3.5 Super VL NIM [here](https://catalog.ngc.nvidia.com/orgs/nim/nvidia/containers/nemotron-3.5-super-vl-120b-a12b/-).
301Added:
302Added: NVIDIA Dynamo is a distributed inference framework. It supports KV-cache-aware routing, KV cache management, and disaggregated serving. Get started with Nemotron 3.5 Super VL Dynamo recipes optimized for 7 HW SKUs across Hopper, Blackwell, and Rubin [here](https://docs.nvidia.com/dynamo/dev/recipes/nemotron-3-5-super-vl).
303Added:
304Added: ### Running on Local Hardware
305Added:
306Added: For Local inference on DGX Spark, RTX Spark, and RTX Pro 6000 you can find details on running the model through the following libraries:
307Added:
308Added: - llama.cpp available [here](https://huggingface.co/collections/ggml-org/nvidia-nemotron-3.5-super-vl)
309Added: - Unsloth available [here](https://unsloth.ai/docs/models/nemotron-3.5-super-vl)
310Added:
311Added: ### Speculative Decoding
312Added:
313Added: The serving examples enable the model's native MTP head. No separate drafter download is required for these vLLM and SGLang recipes leveraging MTP. In vLLM, `num_speculative_tokens` controls draft length; in SGLang, the MTP draft length uses `--speculative-num-steps` to config.
314Added:
315Added: For DGX Spark, we also provide a [LiLiCorr](https://huggingface.co/nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4-LiLiCorr) speculative drafter, which accelerates decoding by drafting multiple future tokens in parallel and using a lightweight correlation head to select compatible candidates across adjacent positions. Nemotron Super 3.5 VL verifies the proposed block, allowing generation to advance by multiple accepted tokens per verification step while preserving the target model's output distribution with correct speculative verification. It is recommended to use LiLiCorr for DGX Spark deployments in all scenarios.
316Added:
317Added: Performance depends on hardware, request length, and concurrency. To compare with standard decoding, remove the speculative configuration while keeping the model, workload, sampling parameters, and other server settings the same.
318Added:
319Added: ### vLLM
320Added:
321Added: Use `vllm/vllm-openai:nightly-3f1bcfd82bb2e93fcd364fc7a5491718453a77e2` for these commands (or `vllm/vllm-openai:v0.32.0`).
322Added:
323Added: #### 2× H100 (up to 1M Context Length)
324Added:
325Added: Use this command if you need to serve the model with up to 1M context length.
326Added:
327Added: ```bash
328Added: vllm serve $MODEL \
329Added: --served-model-name nemotron-3.5-super-vl \
330Added: --tensor-parallel-size 2 \
331Added: --max-num-seqs 128 \
332Added: --trust-remote-code \
333Added: --gpu-memory-utilization 0.89 \
334Added: --max-num-batched-tokens 16384 \
335Added: --block-size 64 \
336Added: --prefix-match-unit 64 \
337Added: --compilation_config.max_cudagraph_capture_size 256 \
338Added: --mamba-backend flashinfer \
339Added: --mamba-ssm-cache-dtype float16 \
340Added: --enable-mamba-cache-stochastic-rounding \
341Added: --mamba-cache-philox-rounds 5 \
342Added: --enable-mamba-shared-prefix-checkpoint \
343Added: --mamba-cache-mode align \
344Added: --speculative-config.method mtp \
345Added: --speculative-config.num_speculative_tokens 3 \
346Added: --video-pruning-rate 0.5 \
347Added: --media-io-kwargs '{"video": {"fps": 2, "num_frames": 256}}' \
348Added: --enable-auto-tool-choice \
349Added: --tool-call-parser qwen3_coder \
350Added: --reasoning-parser nemotron_v3
351Added: ```
352Added:
353Added: For **one H200**, use the same command with `--tensor-parallel-size 1`.
354Added:
355Added: #### 1× GB200 (up to 1M Context Length)
356Added:
357Added: Use this command if you need to serve the model with up to 1M context length.
358Added:
359Added: ```bash
360Added: vllm serve $MODEL \
361Added: --served-model-name nemotron-3.5-super-vl \
362Added: --trust-remote-code \
363Added: --max-num-seqs 512 \
364Added: --enable-prefix-caching \
365Added: --max-num-batched-tokens 32768 \
366Added: --prefix-match-unit 16 \
367Added: --enable-mamba-shared-prefix-checkpoint \
368Added: --async-scheduling \
369Added: --kernel-config '{"linear_backend_per_quant":{"fp8_w8a8":"torch"}}' \
370Added: --compilation-config '{"pass_config":{"fuse_attn_quant":true},"use_inductor_graph_partition":true,"cudagraph_mode":"FULL_AND_PIECEWISE"}' \
371Added: --mamba-backend flashinfer \
372Added: --mamba-ssm-cache-dtype float16 \
373Added: --enable-mamba-cache-stochastic-rounding \
374Added: --mamba-cache-philox-rounds 5 \
375Added: --mamba-cache-mode align \
376Added: --video-pruning-rate 0.5 \
377Added: --media-io-kwargs '{"video": {"fps": 2, "num_frames": 256}}' \
378Added: --enable-auto-tool-choice \
379Added: --speculative_config.method mtp \
380Added: --speculative_config.num_speculative_tokens 5 \
381Added: --tool-call-parser qwen3_coder \
382Added: --reasoning-parser nemotron_v3
383Added: ```
384Added:
385Added: For the multimodal examples, each request can contain one image and one video. The video configuration samples up to 256 frames at 2 FPS with a pruning rate of 0.5. For 1080p videos, use 1 FPS and up to 128 frames; 2 FPS and 256 frames can be used for lower-resolution video such as 720p. Start with short MP4 clips of one to two minutes.
386Added:
387Added: ### SGLang
388Added:
389Added: Use Docker with NVIDIA GPU support and the `lmsysorg/sglang:nemotron3-5-super` image.
390Added:
391Added: ```bash
392Added: export MODEL=nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4
393Added: export DRAFT_MODEL=nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4-LiLiCorr
394Added: ```
395Added:
396Added: #### 1× GB200
397Added:
398Added: ```bash
399Added: sglang serve \
400Added: --model-path $MODEL \
401Added: --host 0.0.0.0 \
402Added: --port 8000 \
403Added: --trust-remote-code \
404Added: --kv-cache-dtype fp8_e4m3 \
405Added: --tp-size 1 \
406Added: --max-running-requests 512 \
407Added: --attention-backend trtllm_mha \
408Added: --mamba-backend flashinfer \
409Added: --mamba-ssm-dtype bfloat16 \
410Added: --enable-mamba-cache-stochastic-rounding \
411Added: --mamba-cache-philox-rounds 5 \
412Added: --mamba-radix-cache-strategy extra_buffer \
413Added: --reasoning-parser nemotron_3 \
414Added: --tool-call-parser qwen3_coder \
415Added: --speculative-algorithm EAGLE \
416Added: --speculative-num-steps 5 \
417Added: --speculative-eagle-topk 1 \
418Added: --speculative-num-draft-tokens 6
419Added: ```
420Added:
421Added: #### 2× H100
422Added:
423Added: ```bash
424Added: sglang serve \
425Added: --model-path $MODEL \
426Added: --host 0.0.0.0 \
427Added: --port 8000 \
428Added: --trust-remote-code \
429Added: --kv-cache-dtype fp8_e4m3 \
430Added: --tp-size 2 \
431Added: --max-running-requests 512 \
432Added: --attention-backend flashinfer \
433Added: --mamba-backend flashinfer \
434Added: --mamba-ssm-dtype bfloat16 \
435Added: --enable-mamba-cache-stochastic-rounding \
436Added: --mamba-cache-philox-rounds 5 \
437Added: --mamba-radix-cache-strategy extra_buffer \
438Added: --reasoning-parser nemotron_3 \
439Added: --tool-call-parser qwen3_coder \
440Added: --speculative-algorithm EAGLE \
441Added: --speculative-num-steps 5 \
442Added: --speculative-eagle-topk 1 \
443Added: --speculative-num-draft-tokens 6
444Added: ```
445Added:
446Added: #### 1× DGX Spark(use `LiLiCorr` speculative drafter)
447Added:
448Added: ```bash
449Added: sglang serve \
450Added: --model-path $MODEL \
451Added: --host 0.0.0.0 \
452Added: --port 8000 \
453Added: --trust-remote-code \
454Added: --kv-cache-dtype fp8_e4m3 \
455Added: --tp-size 1 \
456Added: --max-running-requests 1 \
457Added: --attention-backend flashinfer \
458Added: --mamba-backend flashinfer \
459Added: --mamba-ssm-dtype bfloat16 \
460Added: --enable-mamba-cache-stochastic-rounding \
461Added: --mamba-cache-philox-rounds 5 \
462Added: --mamba-radix-cache-strategy extra_buffer \
463Added: --reasoning-parser nemotron_3 \
464Added: --tool-call-parser qwen3_coder \
465Added: --speculative-algorithm DFLASH \
466Added: --speculative-draft-model-path $DRAFT_MODEL
467Added: ```
468Added:
469Added: ### TensorRT-LLM
470Added:
471Added: The following configurations use TensorRT-LLM **1.3.0rc28**, built from commit `55f7eca861613bd60e1ac34d5916f091cd89d558` with Python 3.12 and the [Mamba cache patch](https://github.com/NVIDIA/TensorRT-LLM/pull/19597).
472Added:
473Added: Download the NVFP4 checkpoint locally:
474Added:
475Added: ```bash
476Added: hf download "$MODEL_CKPT" --local-dir ./models/super-vl-nvfp4
477Added: ```
478Added:
479Added: #### 1× GB200
480Added:
481Added: Save the following as `super-vl-gb200.yaml`:
482Added:
483Added: ```yaml
484Added: tensor_parallel_size: 1
485Added: moe_expert_parallel_size: 1
486Added: trust_remote_code: true
487Added: enable_chunked_prefill: true
488Added: disable_overlap_scheduler: false
489Added: max_batch_size: 16
490Added: max_num_tokens: 8192
491Added: max_seq_len: 1048576
492Added: attn_backend: TRTLLM
493Added: moe_config:
494Added: backend: TRTLLM
495Added: kv_cache_config:
496Added: dtype: fp8
497Added: tokens_per_block: 32
498Added: mamba_ssm_cache_dtype: float16
499Added: mamba_ssm_stochastic_rounding: false
500Added: free_gpu_memory_fraction: 0.85
501Added: enable_block_reuse: true
502Added: mamba_state_config:
503Added: periodic_snapshot_interval: 0
504Added: additional_snapshot_offsets_from_start: [50016]
505Added: additional_snapshot_offsets_from_end: [0]
506Added: enable_branch_snapshot: true
507Added: cuda_graph_config:
508Added: enable_padding: true
509Added: batch_sizes: [1, 2, 4, 8, 12, 16]
510Added: speculative_config:
511Added: decoding_type: MTP
512Added: max_draft_len: 5
513Added: guided_decoding_backend: xgrammar
514Added: ```
515Added:
516Added: ```bash
517Added: trtllm-serve ./models/super-vl-nvfp4 \
518Added: --config super-vl-gb200.yaml \
519Added: --served_model_name nemotron-3.5-super-vl \
520Added: --host 0.0.0.0 \
521Added: --port 8000 \
522Added: --tool_parser qwen3_coder \
523Added: --reasoning_parser nemotron-v3
524Added: ```
525Added:
526Added: `max_seq_len` sets the context limit; `max_num_tokens` controls the token batch size. For TensorRT-LLM clients, use the model identifier returned by `/v1/models`.
527Added:
528Added: #### 1× DGX Spark
529Added:
530Added: Save the following as `super-vl-gb200.yaml`:
531Added:
532Added: ```yaml
533Added: trust_remote_code: true
534Added: dtype: bfloat16
535Added: tensor_parallel_size: 1
536Added: moe_expert_parallel_size: 1
537Added: max_batch_size: 2
538Added: max_num_tokens: 4096
539Added: max_seq_len: 131072
540Added:
541Added: enable_chunked_prefill: true
542Added: disable_overlap_scheduler: false
543Added: cuda_graph_config: null
544Added: attn_backend: TRTLLM
545Added:
546Added: kv_cache_config:
547Added: dtype: fp8
548Added: free_gpu_memory_fraction: 0.9
549Added: max_gpu_total_bytes: 5368709120
550Added: host_cache_size: 0
551Added: mamba_ssm_cache_dtype: float16
552Added: mamba_ssm_stochastic_rounding: false
553Added: enable_block_reuse: true
554Added: use_kv_cache_manager_v2: true
555Added: mamba_state_config:
556Added: enable_branch_snapshot: true
557Added:
558Added: nvfp4_gemm_config:
559Added: allowed_backends: [cutlass, cublaslt, cuda_core]
560Added:
561Added: moe_config:
562Added: backend: CUTEDSL
563Added:
564Added: speculative_config:
565Added: decoding_type: DFlash
566Added: speculative_model: ./models/super-vl-lilicorr
567Added: max_draft_len: 7
568Added: attention_backend: TRTLLM
569Added: context_recompute_tail: 0
570Added:
571Added: guided_decoding_backend: xgrammar
572Added: ```
573Added:
574Added: ```bash
575Added: trtllm-serve ./models/super-vl-nvfp4 \
576Added: --config super-vl-spark-lilicorr.yaml \
577Added: --served_model_name nemotron-3.5-super-vl \
578Added: --host 0.0.0.0 \
579Added: --port 8000 \
580Added: --reasoning_parser nemotron-v3
581Added: ```
582Added:
583Added: ### API Client
584Added:
585Added: Install the OpenAI-compatible client:
586Added:
587Added: ```bash
588Added: pip install openai
589Added: ```
590Added:
591Added: #### Text and reasoning
592Added:
593Added: ```python
594Added: from openai import OpenAI
595Added:
596Added: client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
597Added: model = "nemotron-3.5-super-vl"
598Added:
599Added: response = client.chat.completions.create(
600Added: model=model,
601Added: messages=[{"role": "user", "content": "Explain why binary search takes logarithmic time."}],
602Added: temperature=1.0,
603Added: top_p=0.95,
604Added: max_tokens=16384,
605Added: extra_body={"chat_template_kwargs": {"enable_thinking": True}},
606Added: )
607Added: choice = response.choices[0]
608Added: if choice.finish_reason == "length":
609Added: raise RuntimeError("The response reached max_tokens; increase the output budget.")
610Added: print(choice.message.content)
611Added: ```
612Added:
613Added: Set `enable_thinking` to `False` to disable reasoning. For medium reasoning effort, use `{"enable_thinking": True, "medium_effort": True}`. Reasoning tokens and the final answer share the `max_tokens` budget.
614Added:
615Added: #### Images
616Added:
617Added: Use a multimodal server configuration. The example below sends a local image as a base64 data URL.
618Added:
619Added: ```python
620Added: import base64
621Added: from pathlib import Path
622Added: from openai import OpenAI
623Added:
624Added: client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
625Added: image_bytes = Path("image.png").read_bytes()
626Added: image_url = "data:image/png;base64," + base64.b64encode(image_bytes).decode()
627Added:
628Added: response = client.chat.completions.create(
629Added: model="nemotron-3.5-super-vl",
630Added: messages=[{"role": "user", "content": [
631Added: {"type": "text", "text": "Describe the image and any visible text."},
632Added: {"type": "image_url", "image_url": {"url": image_url}},
633Added: ]}],
634Added: temperature=1.0,
635Added: top_p=0.95,
636Added: max_tokens=16384,
637Added: )
638Added: if response.choices[0].finish_reason == "length":
639Added: raise RuntimeError("The response reached max_tokens; increase the output budget.")
640Added: print(response.choices[0].message.content)
641Added: ```
642Added:
643Added: #### Video with vLLM
644Added:
645Added: Use a multimodal vLLM configuration with the video sampling settings above.
646Added:
647Added: ```python
648Added: import base64
649Added: from pathlib import Path
650Added: from openai import OpenAI
651Added:
652Added: client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
653Added: video_bytes = Path("video.mp4").read_bytes()
654Added: video_url = "data:video/mp4;base64," + base64.b64encode(video_bytes).decode()
655Added:
656Added: response = client.chat.completions.create(
657Added: model="nemotron-3.5-super-vl",
658Added: messages=[{"role": "user", "content": [
659Added: {"type": "text", "text": "Summarize the events in this video in order."},
660Added: {"type": "video_url", "video_url": {"url": video_url}},
661Added: ]}],
662Added: temperature=1.0,
663Added: top_p=0.95,
664Added: max_tokens=16384,
665Added: )
666Added: if response.choices[0].finish_reason == "length":
667Added: raise RuntimeError("The response reached max_tokens; increase the output budget.")
668Added: print(response.choices[0].message.content)
669Added: ```
670Added:
671Added: #### Tool calling
672Added:
673Added: The model requests a tool call; the application executes it and returns the result. This complete example uses a local inventory lookup.
674Added:
675Added: ```python
676Added: import json
677Added: from openai import OpenAI
678Added:
679Added: client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
680Added: model = "nemotron-3.5-super-vl"
681Added: inventory = {"keyboard": 12, "monitor": 5}
682Added: tools = [{"type": "function", "function": {
683Added: "name": "get_inventory",
684Added: "description": "Return the inventory count for a product.",
685Added: "parameters": {
686Added: "type": "object",
687Added: "properties": {"product": {"type": "string", "enum": ["keyboard", "monitor"]}},
688Added: "required": ["product"],
689Added: "additionalProperties": False,
690Added: },
691Added: }}]
692Added: messages = [{"role": "user", "content": "How many keyboards are in stock?"}]
693Added:
694Added: def complete(history, tool_choice="auto"):
695Added: response = client.chat.completions.create(
696Added: model=model,
697Added: messages=history,
698Added: tools=tools,
699Added: tool_choice=tool_choice,
700Added: temperature=1.0,
701Added: top_p=0.95,
702Added: max_tokens=16384,
703Added: extra_body={"chat_template_kwargs": {"enable_thinking": True}},
704Added: )
705Added: choice = response.choices[0]
706Added: if choice.finish_reason == "length":
707Added: raise RuntimeError("The response was truncated; increase max_tokens.")
708Added: return choice.message
709Added:
710Added: message = complete(messages)
711Added: messages.append(message.model_dump(exclude_none=True))
712Added: if not message.tool_calls:
713Added: print(message.content)
714Added: else:
715Added: for call in message.tool_calls:
716Added: arguments = json.loads(call.function.arguments)
717Added: if (call.function.name != "get_inventory"
718Added: or not isinstance(arguments, dict)
719Added: or set(arguments) != {"product"}
720Added: or not isinstance(arguments["product"], str)
721Added: or arguments["product"] not in inventory):
722Added: raise ValueError("Invalid inventory tool call")
723Added: product = arguments["product"]
724Added: messages.append({
725Added: "role": "tool",
726Added: "tool_call_id": call.id,
727Added: "content": json.dumps({"product": product, "count": inventory[product]}),
728Added: })
729Added: print(complete(messages, tool_choice="none").content)
730Added: ```
731Added:
732Added: ## Training, Testing, and Evaluation Datasets
733Added:
734Added: ### Training
735Added:
736Added: **Data Modality:** Text, images, and video
737Added: **Foundation Training Data Size:** More than 20 trillion tokens
738Added: **Image Training Data Size:** 1 Million to 1 Billion Images
739Added: **Text Training Data Size:** More than 10 Trillion Tokens
740Added: **Video Training Data Size:** 10,000 to 1 Million Hours
741Added: **Foundation Data Collection Period:** 2013 to December 2025
742Added: **Data Collection Method:** Hybrid: automated, manually-collected, and synthetic
743Added: **Labeling Method:** Hybrid: automated, manually-labeled, and synthetic
744Added:
745Added: The foundation corpus contains curated and synthetic text covering English, 19 other spoken languages, and 43 programming languages. Sources include webpages, dialogue, articles, code, and other written materials across math, science, legal, finance, and general knowledge domains.
746Added:
747Added: The post-training corpus includes reasoning, coding, tool use, instruction following, structured outputs, chat, safety, and long-context tasks, together with image and video understanding. Synthetic trajectories are filtered for structural correctness, repetition, and task validity.
748Added:
749Added: For more information about the datasets used to train this model, please see the [Public Summary of Training Content](https://assets.ngc.nvidia.com/products/api-catalog/nemotron-3.5-super-vl/Nemotron_3.5_Super_VL_EU_Training_Content_Summary.pdf)
750Added:
751Added: <details>
752Added: <summary>Detailed dataset information</summary>
753Added:
754Added: #### **Base Pre-Training Corpus (Nemotron 3 Foundation)**
755Added:
756Added: The foundation of the model is trained on the Nemotron 3 corpus, comprising the following datasets from the [Nemotron Pretraining Datasets collection](https://huggingface.co/collections/nvidia/nemotron-pre-training-datasets):
757Added:
758Added: | Dataset Collection | Token Counts | Description |
759Added: | :--- | :--- | :--- |
760Added: | **Nemotron-CC-v2** & **v2.1** | 9.1T | A massive collection of English web data filtered from Common Crawl, including 2.5T+ tokens of new organic, translated, and synthetically rephrased content. |
761Added: | **Nemotron-CC-Code-v1** | 427.9B | High-quality code tokens extracted from Common Crawl using the Lynx + LLM pipeline to preserve structure and equations. |
762Added: | **Nemotron-Pretraining-Code-v1** & **v2** & **v3** | 1.7T | Curated GitHub code references with multi-stage filtering, deduplication, and large-scale synthetic code data. |
763Added: | **Nemotron-CC-Math-v1** | 133.3B | High-quality math pre-training dataset preserving LaTeX formatting and mathematical structures. |
764Added: | **Nemotron-Pretraining-Specialized-v1** & **v1.1** & **v1.2** & **Nemotron-Pretraining-SFT-v1** | 660.0B | Synthetic datasets targeting specialized domains such as STEM reasoning and scientific coding. |
765Added: | **Nemotron-Pretraining-Legal-v1** | 4.3B | Synthetic datasets targeting the legal domain. |
766Added:
767Added: ### Public Datasets
768Added:
769Added: | Dataset | Collection Period |
770Added: | :---- | :---- |
771Added: | [GSM8K](https://github.com/openai/grade-school-math) | 4/23/2025 |
772Added: | [CC-NEWS](https://commoncrawl.org/blog/news-dataset-available) | 4/23/2025 |
773Added: | [Common Crawl](https://commoncrawl.org/) | 4/23/2025 |
774Added: | [Wikimedia](https://dumps.wikimedia.org/) | 4/23/2025 |
775Added: | [Bespoke-Stratos-17k](https://huggingface.co/datasets/bespokelabs/Bespoke-Stratos-17k) | 4/23/2025 |
776Added: | [tigerbot-kaggle-leetcodesolutions-en-2k](https://huggingface.co/datasets/TigerResearch/tigerbot-kaggle-leetcodesolutions-en-2k) | 4/23/2025 |
777Added: | [glaive-function-calling-v2](https://huggingface.co/datasets/glaiveai/glaive-function-calling-v2) | 4/23/2025 |
778Added: | [APIGen Function-Calling](https://huggingface.co/datasets/Salesforce/xlam-function-calling-60k) | 4/23/2025 |
779Added: | [LMSYS-Chat-1M](https://huggingface.co/datasets/lmsys/lmsys-chat-1m) | 4/23/2025 |
780Added: | [Open Textbook Library - CC BY-SA & GNU subset](https://open.umn.edu/opentextbooks/textbooks/) and [OpenStax - CC BY-SA subset](https://openstax.org/) | 4/23/2025 |
781Added: | [Advanced Reasoning Benchmark](https://github.com/TheDuckAI/arb), [tigerbot-kaggle-leetcodesolutions-en-2k](https://huggingface.co/datasets/TigerResearch/tigerbot-kaggle-leetcodesolutions-en-2k), [PRM800K](https://github.com/openai/prm800k), and [SciBench](https://github.com/mandyyyyii/scibench) | 4/23/2025 |
782Added: | [FineWeb-2](https://huggingface.co/datasets/HuggingFaceFW/fineweb-2) | 4/23/2025 |
783Added: | [Court Listener](https://www.courtlistener.com/help/api/bulk-data/) | Legacy Download |
784Added: | [peS2o](https://huggingface.co/datasets/allenai/peS2o) | Legacy Download |
785Added: | [OpenWebMath](https://huggingface.co/datasets/open-web-math/open-web-math) | Legacy Download |
786Added: | [BioRxiv](https://www.biorxiv.org/tdm) | Legacy Download |
787Added: | [PMC Open Access Subset](https://pmc.ncbi.nlm.nih.gov/tools/openftlist/) | Legacy Download |
788Added: | [OpenWebText2](https://openwebtext2.readthedocs.io/en/latest/) | Legacy Download |
789Added: | [Stack Exchange Data Dump](https://archive.org/details/stackexchange) | Legacy Download |
790Added: | [PubMed Abstracts](https://github.com/thoppe/The-Pile-PubMed) | Legacy Download |
791Added: | [NIH ExPorter](https://exporter.nih.gov/ExPORTER_Catalog.aspx) | Legacy Download |
792Added: | [arXiv](https://info.arxiv.org/help/bulk_data/index.html) | Legacy Download |
793Added: | [BigScience Workshop Datasets](https://github.com/bigscience-workshop/bigscience/tree/master/train/tr11-176B-ml#datasets) | Legacy Download |
794Added: | [SEC's Electronic Data Gathering, Analysis, and Retrieval (EDGAR)](https://www.sec.gov/search-filings) | Legacy Download |
795Added: | [Advanced Mathematical Problem Solving](https://github.com/hendrycks/math?tab=readme-ov-file) | Legacy Download |
796Added: | [MathPile](https://github.com/GAIR-NLP/MathPile/) | Legacy Download |
797Added: | [NuminaMath CoT](https://huggingface.co/datasets/AI-MO/NuminaMath-CoT) | Legacy Download |
798Added: | [PMC Article](https://pmc.ncbi.nlm.nih.gov/tools/textmining/) | Legacy Download |
799Added: | [FLAN](https://github.com/google-research/FLAN) | Legacy Download |
800Added: | [Advanced Reasoning Benchmark](https://github.com/TheDuckAI/arb) | Legacy Download |
801Added: | [SciBench](https://github.com/mandyyyyii/scibench) | Legacy Download |
802Added: | [WikiTableQuestions](https://huggingface.co/datasets/wikitablequestions) | Legacy Download |
803Added: | [FinQA](https://finqasite.github.io/) | Legacy Download |
804Added: | [Riddles](https://github.com/crawsome/riddles) | Legacy Download |
805Added: | [Problems in Elementary Mathematics for Home Study](https://archive.org/details/AntonovVygodskyNikitinSankinProblemsInElementaryMathematicsForHomeStudyMir1982) | Legacy Download |
806Added: | [MedMCQA](https://huggingface.co/datasets/openlifescienceai/medmcqa) | Legacy Download |
807Added: | [Cosmos QA](https://huggingface.co/datasets/allenai/cosmos_qa) | Legacy Download |
808Added: | [MCTest](https://huggingface.co/datasets/sagnikrayc/mctest) | Legacy Download |
809Added: | [AI2's Reasoning Challenge](https://huggingface.co/datasets/ai2_arc) | Legacy Download |
810Added: | [OpenBookQA](https://github.com/allenai/OpenBookQA) | Legacy Download |
811Added: | [MMLU Auxiliary Train](https://huggingface.co/datasets/cais/mmlu/viewer/all/auxiliary_train) | Legacy Download |
812Added: | [social-chemestry-101](https://huggingface.co/datasets/tasksource/social-chemestry-101) | Legacy Download |
813Added: | [Moral Stories](https://huggingface.co/datasets/demelin/moral_stories) | Legacy Download |
814Added: | [The Common Pile v0.1](https://huggingface.co/common-pile) | Legacy Download |
815Added: | [FineMath](https://huggingface.co/datasets/HuggingFaceTB/finemath) | Legacy Download |
816Added: | [MegaMath](https://huggingface.co/datasets/LLM360/MegaMath) | Legacy Download |
817Added: | [MultiverseMathHard](https://huggingface.co/datasets/Nexusflow/MultiverseMathHard) | 10/2/2025 |
818Added: | [SWE-Gym](https://huggingface.co/datasets/SWE-Gym/SWE-Gym) | 10/2/2025 |
819Added: | [WorkBench](https://github.com/olly-styles/WorkBench/tree/main/data/raw) | 10/2/2025 |
820Added: | [WildChat-1M](https://huggingface.co/datasets/allenai/WildChat-1M) | 10/2/2025 |
821Added: | [OpenCodeReasoning-2](https://huggingface.co/datasets/nvidia/OpenCodeReasoning-2) | 10/2/2025 |
822Added: | [HelpSteer3](https://huggingface.co/datasets/nvidia/HelpSteer3) | 10/2/2025 |
823Added: | [opc-sft-stage2](https://huggingface.co/datasets/OpenCoder-LLM/opc-sft-stage2) | 10/2/2025 |
824Added: | [Big-Math-RL-Verified](https://huggingface.co/datasets/SynthLabsAI/Big-Math-RL-Verified) | 10/2/2025 |
825Added: | [MetaMathQA](https://huggingface.co/datasets/meta-math/MetaMathQA) | 10/2/2025 |
826Added: | [simple-arithmetic-problems](https://huggingface.co/datasets/garrethlee/simple-arithmetic-problems) | 10/2/2025 |
827Added: | [arithmetic](https://huggingface.co/datasets/EleutherAI/arithmetic) | 10/2/2025 |
828Added: | [Skywork-OR1-RL-Data](https://huggingface.co/datasets/Skywork/Skywork-OR1-RL-Data) | 10/2/2025 |
829Added: | [FastChat](https://github.com/lm-sys/FastChat/blob/main/playground/data/dummy.json) | 10/2/2025 |
830Added: | [News Commentary](https://opus.nlpl.eu/News-Commentary.php) | 10/2/2025 |
831Added: | [Essential-Web](https://huggingface.co/datasets/EssentialAI/essential-web-v1.0) | 10/2/2025 |
832Added: | [finepdfs](https://huggingface.co/datasets/HuggingFaceFW/finepdfs) | 10/2/2025 |
833Added: | [HotpotQA](https://huggingface.co/hotpot_qa/datasets) | 10/2/2025 |
834Added: | [SQuAD2.0](https://rajpurkar.github.io/SQuAD-explorer/) | 10/2/2025 |
835Added: | [NLTK Words Lists](https://www.nltk.org/nltk_data/) | 10/2/2025 |
836Added: | NVClip (NV-CC-Img-Text-Dataset) | 2022-2026 |
837Added: | [ScaleCUA, Processed Training Subset](https://huggingface.co/datasets/OpenGVLab/ScaleCUA-Data) | 2022-2026 |
838Added: | [RoboInter-VQA](https://huggingface.co/datasets/InternRobotics/RoboInter-VQA) | 2022-2026 |
839Added: | [Open Images V6, Object-Detection Training Records](https://storage.googleapis.com/openimages/web/index.html) | 2022-2026 |
840Added: | YT1B PLM Video QA, Custom No-Thinking and Safety-Filtered | 2022-2026 |
841Added: | YT1B PLM Dense Captions, No-Thinking and Safety-Filtered | 2022-2026 |
842Added: | [RoboVQA](https://robovqa.github.io/) | 2022-2026 |
843Added: | YT1B PLM Thinking Traces, Safety-Filtered | 2022-2026 |
844Added: | Boyi Short-Video QA | 2022-2026 |
845Added: | Boyi Short-Video QA, Custom No-Thinking and Safety-Filtered | 2022-2026 |
846Added: | K710 Video Classification, Full Training Snapshot | 2022-2026 |
847Added: | Molmo2-VideoCapQA | 2022-2026 |
848Added: | Molmo2-VideoCapQA, Custom No-Thinking and Safety-Filtered | 2022-2026 |
849Added: | Molmo2-VideoPoint, Custom No-Thinking and Safety-Filtered | 2022-2026 |
850Added: | Molmo2-VideoPoint | 2022-2026 |
851Added:
852Added: ### **Crawled and Scraped from Online Sources by NVIDIA**
853Added:
854Added: The English Common Crawl data was downloaded from the Common Crawl Foundation (see their FAQ for details on their crawling) and includes the snapshots CC-MAIN-2013-20 through CC-MAIN-2025-13. The data was subsequently deduplicated and filtered in various ways used in the Nemotron-CC data pipeline. Additionally, we extracted data for fifteen languages from the following three Common Crawl snapshots: CC-MAIN-2024-51, CC-MAIN-2025-08, CC-MAIN-2025-18. The fifteen languages included were Arabic, Chinese, Danish, Dutch, French, German, Italian, Japanese, Korean, Polish, Portuguese, Russian, Spanish, Swedish, and Thai. As we did not have reliable multilingual model-based quality classifiers available, we applied just heuristic filtering instead—similar to what we did for lower quality English data in the Nemotron-CC pipeline, but selectively removing some filters for some languages that did not work well. Deduplication was done in the same way as for Nemotron-CC.
855Added:
856Added: The GitHub Crawl was collected using the GitHub REST API and the Amazon S3 API. Each crawl was operated in accordance with the rate limits set by its respective source, either GitHub or S3. We collect raw source code and subsequently remove any having a license which does not exist in our permissive-license set.
857Added:
858Added: | Dataset | Modality | Dataset Size | Collection Period | Collecting Organisation |
859Added: | :---- | :---- | :---- | :---- | :---- |
860Added: | English Common Crawl | Text | 3.36T | 4/8/2025 | NVIDIA Advanced Deep Learning Research |
861Added: | English Common Crawl 1.1 | Text | Not disclosed | 10/2/2025 | NVIDIA Advanced Deep Learning Research |
862Added: | Multilingual Common Crawl | Text | 812.7B | 5/1/2025 | NVIDIA Advanced Deep Learning Research |
863Added: | GitHub Crawl | Text | 747.4B | 4/29/2025 | NVIDIA Advanced Deep Learning Research |
864Added: | GitHub Crawl 1.1 | Text | 172.7B | 9/30/2025 | NVIDIA Advanced Deep Learning Research |
865Added: | [Sangraha](https://huggingface.co/datasets/ai4bharat/sangraha) | Text | 109,263,115 indexed source sequences: 77,231,480 verified and 32,031,635 unverified | Undisclosed | NVIDIA Advanced Deep Learning Research |
866Added: | LITA Chunked Video Labels, Custom No-Thinking Dense Captions | Text (video labels) | 151,349 records | Undisclosed | NVIDIA Advanced Deep Learning Research|
867Added: | LITA Chunked Video Labels, Cleaned v2 | Text (video labels) | 150,434 records | Undisclosed | NVIDIA Advanced Deep Learning Research |
868Added: | Single-Page Document Labels, Qwen3.5 v2 | Text and images | 50,930 records | Undisclosed | NVIDIA Advanced Deep Learning Research |
869Added: | Processed YouTube Videos, Cosmos Dense Captions | Text and video | 274,472 records | Undisclosed | NVIDIA Advanced Deep Learning Research |
870Added:
871Added: ## Private Non-publicly Accessible Datasets of Third Parties
872Added:
873Added: | Dataset | Model(s) used |
874Added: |---------|---------------|
875Added: | Global Regulation | Unknown |
876Added: | TAUS Translation Memory | Unknown |
877Added: | Scale HLE | Unknown |
878Added: | HackerRank Coding | Unknown |
879Added: | RL data for Search | Gemini 3; GPT-5 |
880Added: | Mercor SWE-AgentsV1 | Undisclosed |
881Added: | KeenSight Batch 1, Relabeled Subset | Qwen3.5-122B-A10B |
882Added: | KeenSight Batch 1, Remaining Subset | Qwen3.5-122B-A10B |
883Added: | Camio Multilingual OCR and Document Layout | Undisclosed |
884Added: | Chinese Visual Question Answering, Relabeled Subset | Qwen3.5-122B-A10B |
885Added: | Camio Chinese OCR, Cleaned Variant | Qwen3.5-122B-A10B |
886Added: | Camio English OCR, Cleaned Variant | Qwen3.5-122B-A10B |
887Added: | KeenSight Batch 2, Remaining Subset | Qwen3.5-122B-A10B |
888Added: | KeenSight Batch 1, Safety-Filtered Trace Variant | Qwen3.5-122B-A10B |
889Added: | Chinese Visual Question Answering, Safety-Filtered Trace Variant | Qwen3.5-122B-A10B |
890Added: | Camio Chinese Question Answering, Verified-Correct Subset | Qwen3.5 |
891Added: | KeenSight Chinese OCR, Filtered Subset | DeepSeek-OCR |
892Added: | Camio Synthetic Trading-Graph Question Answering | Undisclosed |
893Added: | Camio Synthetic Menu and Receipt Question Answering | Qwen3.5-122B-A10B |
894Added: | Camio Chinese OCR, Formatted Variant | Qwen3.5-122B-A10B |
895Added: | Camio Synthetic Time-Series Question Answering | Undisclosed |
896Added: | Camio English OCR, Formatted Variant | Qwen3.5-122B-A10B |
897Added: | Lean Formal Proofs — RL | Undisclosed |
898Added: | Document-Grounded Finance Reasoning, Patch Tasks — RL | Undisclosed |
899Added: | Math CoT — SFT | Kimi K3 |
900Added: | Chat — SFT | Undisclosed |
901Added: | Chat, Reasoning Off — SFT | Undisclosed |
902Added: | Conversational Tool-Use Simulation — RL | Undisclosed |
903Added: | Math CoT, Low Variant — SFT | Kimi K3 |
904Added: | Document-Grounded Finance Reasoning — SFT | Undisclosed |
905Added: | Safety Preference v0.3 — RL | Undisclosed |
906Added: | Response-Length Instruction Following, Reasoning Off — SFT | Undisclosed |
907Added: | Math Python TIR, Low Variant — SFT | Kimi K3 |
908Added: | Math Python TIR — SFT | Kimi K3 |
909Added: | General-Purpose Tool Calling — SFT | Qwen3.5-397B-A17B; Gemma-4-31B-it |
910Added: | Knowledge Agent — SFT | Undisclosed |
911Added: | DataFunnel arXiv Science4 v1.0 — RL | DeepSeek-V4-Flash (problem extraction); GLM-5.2 (refinement); Kimi K3 and K3 V5 (verification and filtering); Super 3.5 r14 (difficulty profiling); Qwen3-235B-A22B-Instruct-2507-FP8 (reward judging) |
912Added: | Structured Outputs v3 — RL | gpt-oss-120b |
913Added: | Response-Length Instruction Following — SFT | Undisclosed |
914Added: | Filtered CUDA Coding — SFT | Undisclosed |
915Added: | Reasoning Gym — RL | Undisclosed |
916Added: | Competitive Coding Challenges v2 — SFT | GLM-5.2 |
917Added: | Multi-Turn Instruction Following, Reasoning Off — SFT | Undisclosed |
918Added: | Multi-Turn Instruction Following — SFT | Undisclosed |
919Added: | Instruction Following, Filtered RLHF Prompts — SFT | Undisclosed |
920Added: | Citation Formatting — RL | gpt-oss-120b |
921Added: | Long-Context General Data — SFT | Undisclosed |
922Added: | Free-Form Formatting — RL | gpt-oss-120b |
923Added: | Structured Outputs v4 — RL | Undisclosed |
924Added: | Tool-Call Schema — RL | No model used for RL conversion; source-generation models undisclosed |
925Added: | Competitive Coding, OCR Python — SFT | DeepSeek-V4-Pro |
926Added: | Lean Formal Proofs — SFT | gpt-oss-120b; Goedel-Prover-V2-32B; Qwen2.5-32B-Instruct |
927Added: | Citation Instruction Following — RL | Undisclosed |
928Added: | Search Graph Walks — SFT | MiniMax-M2 |
929Added: | General-Purpose Tool Calling, Reasoning Off — SFT | Undisclosed |
930Added: | Knowledge Agent Tau3, Reasoning Off — SFT | Undisclosed |
931Added: | ARC-AGI Puzzle Reasoning — SFT | Kimi-K2.5; Qwen3-235B-A22B-Thinking-2507; DeepSeek-V3.2; Qwen3-Next-80B-A3B-Thinking; GLM-4.5-Air-FP8; gpt-oss-120b; GLM-4.7-FP8; Ring-1T; Ministral-3-14B-Reasoning-2512 |
932Added: | Calendar — RL | Undisclosed |
933Added: | ACEProof — SFT | Undisclosed |
934Added: | Long Translation — SFT | Undisclosed |
935Added: | Agentless Software Engineering — SFT | Undisclosed |
936Added: | Long-Context PDF Translation v1.0 — SFT | DeepSeek-V4-Flash (translation generation); GPT-5.6 Sol (filtering and judging) |
937Added: | KeenSight Batch 2, Relabeled and Filtered Subset | Qwen3.5-122B-A10B; Gemini 3 Flash Preview (filtering) |
938Added: | Camio Chinese Letter QA, Cleaned `entrace_cleaned` Variant | Qwen3-VL-30B-A3B-Thinking-FP8; gpt-oss-120b; Qwen3.5-122B-A10B; GPT-4o mini (filtering and quality checks) |
939Added: | Camio Chinese Letter QA, Cleaned Variant | Qwen3-VL-30B-A3B-Thinking-FP8; gpt-oss-120b; Qwen3.5-122B-A10B; GPT-4o mini (filtering and quality checks) |
940Added: | Camio Chinese Text QA, Cleaned `entrace_cleaned` Variant | Qwen3-VL-30B-A3B-Thinking-FP8; gpt-oss-120b; Qwen3.5-122B-A10B; GPT-4o mini (filtering and quality checks) |
941Added:
942Added:
943Added: ## Private Non-publicly Accessible Datasets by NVIDIA
944Added:
945Added: | Dataset | Model(s) used |
946Added: |---------|---------------|
947Added: | Simple Minesweeper | Undisclosed |
948Added: | Simple Sudoku | Undisclosed |
949Added: | Multitool Typewriter Hard | Undisclosed |
950Added: | Machine Translation of News Commentary and TAUS Translation Memory | Undisclosed |
951Added: | Machine Translation of STEM - | [Qwen2.5-14B-Instruct](https://huggingface.co/Qwen/Qwen2.5-14B-Instruct) |
952Added: | Competitive Coding RL data from Nemotron Cascade | Undisclosed |
953Added: | Long context RL | Undisclosed |
954Added: | Single-step SWE RL for patch generation | Undisclosed |
955Added: | OpenHands SWE | Undisclosed |
956Added:
957Added: ## NVIDIA-Sourced Synthetic Datasets (Pre-Training)
958Added:
959Added: | Dataset | Modality | Dataset Size | Seed Dataset | Model(s) used for generation |
960Added: | :---- | :---- | :---- | :---- | :---- |
961Added: | Nemotron-Pretraining-Fact-Seeking | Text | 35.0B | [FineWiki](https://huggingface.co/datasets/HuggingFaceFW/finewiki) | [Qwen3-30B-A3B-Instruct-2507](https://huggingface.co/Qwen/Qwen3-30B-A3B-Instruct-2507) |
962Added: | Nemotron-Pretraining-Legal | Text | 4.3B | CommonPile (caselaw_access_project_filtered); California Code of Regulations; Judicial Ethics Opinions; [GLOBALCIT](https://globalcit.eu/); [CUAD](https://www.atticusprojectai.org/cuad); Nemotron Personas; [ToSDR Terms of Service Corpus](https://www.kaggle.com/datasets/sonu1607/tosdr-terms-of-service-corpus); CodeHima/TOS_Dataset; [ContractNLI](https://stanfordnlp.github.io/contract-nli/); CaseHOLD; Code of Federal Regulations; [Canadian Case Law](https://huggingface.co/datasets/a2aj/canadian-case-law) (subsets that allow commercial use) | [Qwen3-235B-A22B-Thinking-2507](https://huggingface.co/Qwen/Qwen3-235B-A22B-Thinking-2507) |
963Added: | Nemotron-Pretraining-Formal-Logic | Text | 128M | [Nemotron Personas](https://huggingface.co/datasets/nvidia/Nemotron-Personas-USA) | [Qwen3-235B-A22B-Thinking-2507](https://huggingface.co/Qwen/Qwen3-235B-A22B-Thinking-2507) |
964Added: | Nemotron-Pretraining-Economics | Text | 73.4M | - | [Qwen3-235B-A22B-Thinking-2507](https://huggingface.co/Qwen/Qwen3-235B-A22B-Thinking-2507) |
965Added: | Nemotron-Pretraining-Multiple-Choice | Text | 1.6B | [MMLU Auxiliary Train](https://huggingface.co/datasets/cais/mmlu/viewer/all/auxiliary_train) | [DeepSeek-V3](https://huggingface.co/deepseek-ai/DeepSeek-V3); [Qwen3-235B-A22B](https://huggingface.co/Qwen/Qwen3-235B-A22B) |
966Added: | Nemotron-Pretraining-Code-Concepts | Text | 7.3B | - | [gpt-oss-20b](https://huggingface.co/openai/gpt-oss-20b); [gpt-oss-120b](https://huggingface.co/openai/gpt-oss-120b) |
967Added: | Nemotron-Pretraining-Unconditional-Algorithmic | Text | 196.5M | - | [gpt-oss-120b](https://huggingface.co/openai/gpt-oss-120b); [Qwen3-235B-A22B](https://huggingface.co/Qwen/Qwen3-235B-A22B) |
968Added: | More Synthetic Tasks from DeepSeek-V3 and Qwen3-235B-A22B | Text | 1.1B | train splits of acp_bench; ai2_arc; babi; gsm8k; hendrycks_math; IFEval; MedText; mediqa_qa; mlqa; MMLU-Pro; mmlu-pro-plus; MMLU-ProX; nq_open; tinyGSM8k; truthful_qa; truthfulqa-multi; MATH-lighteval; mmlu; awesome-chatgpt-prompts; super_glue | [DeepSeek v3](https://huggingface.co/deepseek-ai/DeepSeek-V3); [Qwen3-235B-A22B](https://huggingface.co/Qwen/Qwen3-235B-A22B) |
969Added: | Synthetic Tasks from DeepSeek-V3 and Qwen3-235B-A22B | Text | 6.7B | train splits of Into the Unknown; AI2 ARC (AI2 Reasoning Challenge); BLiMP (Benchmark of Linguistic Minimal Pairs); CommonSenseQA; GLUE; HeadQA; Hendrycks Ethics; Memo Trap; modus-tollens; NeQA; pattern-matching-suppression; mastermind_24_mcq_random; mastermind_24_mcq_close; quote-repetition; redefine-math; Repetitive Algebra; sig-figs; MMLU-Pro; MC-TACO; MedConceptsQA; MMLU_dataset; OpenbooksQA; PIQA (Physical Interaction Question Answering); SocialIQA; SuperGLUE; tinyAI2_arc; tinyMMLU; tinyWinogrande; TruthfulQA; WebQuestions; Winogrande; GPQA; MBPP | [DeepSeek v3](https://huggingface.co/deepseek-ai/DeepSeek-V3); [Qwen3-235B-A22B](https://huggingface.co/Qwen/Qwen3-235B-A22B) |
970Added: | Synthetic Art of Problem Solving from DeepSeek-R1 | Text | 40B | [Art of Problem Solving](https://artofproblemsolving.com/company); [American Mathematics Competitions 8](https://artofproblemsolving.com/wiki/index.php/AMC_8_Problems_and_Solutions); [American Mathematics Competitions 10](https://artofproblemsolving.com/wiki/index.php/AMC_10_Problems_and_Solutions) | [DeepSeek-R1](https://huggingface.co/deepseek-ai/DeepSeek-R1) |
971Added: | Synthetic Moral Stories and Social Chemistry from Qwen3-235B-A22B-Thinking-2507 and Mixtral-8x22B-v0.1 | Text | 15.2M | [social-chemestry-101](https://huggingface.co/datasets/tasksource/social-chemestry-101); [Moral Stories](https://huggingface.co/datasets/demelin/moral_stories) | [Qwen3-235B-A22B-Thinking-2507](https://huggingface.co/Qwen/Qwen3-235B-A22B-Thinking-2507); [Mixtral-8x22B-v0.1](https://huggingface.co/mistralai/Mixtral-8x22B-v0.1) |
972Added: | Synthetic Moral Stories and Social Chemistry from Mixtral-8x22B-v0.1 | Text | 327M | [social-chemestry-101](https://huggingface.co/datasets/tasksource/social-chemestry-101); [Moral Stories](https://huggingface.co/datasets/demelin/moral_stories) | [Mixtral-8x22B-v0.1](https://huggingface.co/mistralai/Mixtral-8x22B-v0.1) |
973Added: | Synthetic Social Sciences seeded with OpenStax from DeepSeek-V3, Mixtral-8x22B-v0.1, and Qwen2.5-72B | Text | 83.6M | [OpenStax - CC BY-SA subset](https://openstax.org/) | [DeepSeek-V3](https://huggingface.co/deepseek-ai/DeepSeek-V3); [Mixtral-8x22B-v0.1](https://huggingface.co/mistralai/Mixtral-8x22B-v0.1); [Qwen2.5-72B](https://huggingface.co/Qwen/Qwen2.5-72B) |
974Added: | Synthetic Health Sciences seeded with OpenStax from DeepSeek-V3, Mixtral-8x22B-v0.1, and Qwen2.5-72B | Text | 9.7M | [OpenStax - CC BY-SA subset](https://openstax.org/) | [DeepSeek-V3](https://huggingface.co/deepseek-ai/DeepSeek-V3); [Mixtral-8x22B-v0.1](https://huggingface.co/mistralai/Mixtral-8x22B-v0.1); [Qwen2.5-72B](https://huggingface.co/Qwen/Qwen2.5-72B) |
975Added: | Synthetic STEM seeded with OpenStax, Open Textbook Library, and GSM8K from DeepSeek-R1, DeepSeek-V3, DeepSeek-V3-0324, and Qwen2.5-72B | Text | 175M | [OpenStax - CC BY-SA subset](https://openstax.org/); [GSM8K](https://github.com/openai/grade-school-math); [Open Textbook Library - CC BY-SA & GNU subset](https://open.umn.edu/opentextbooks/textbooks/) | [DeepSeek-R1](https://huggingface.co/deepseek-ai/DeepSeek-R1), [DeepSeek-V3](https://huggingface.co/deepseek-ai/DeepSeek-V3); [DeepSeek-V3-0324](https://huggingface.co/deepseek-ai/DeepSeek-V3-0324); [Qwen2.5-72B](https://huggingface.co/Qwen/Qwen2.5-72B) |
976Added: | [Nemotron-PrismMath](https://huggingface.co/datasets/nvidia/Nemotron-PrismMath) | Text | 4.6B | [Big-Math-RL-Verified](https://huggingface.co/datasets/SynthLabsAI/Big-Math-RL-Verified); [OpenR1-Math-220k](https://huggingface.co/datasets/open-r1/OpenR1-Math-220k) | [Qwen2.5-0.5B-instruct](https://huggingface.co/Qwen/Qwen2.5-0.5B-Instruct), [Qwen2.5-72B-Instruct](https://huggingface.co/Qwen/Qwen2.5-72B-Instruct); [DeepSeek-R1-Distill-Qwen-32B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-32B) |
977Added: | Synthetic Question Answering Data from Papers and Permissible Books from Qwen2.5-72B-Instruct | Text | 350M | [arXiv](https://info.arxiv.org/help/bulk_data/index.html); [National Institutes of Health ExPorter](https://www.nih.gov/); [BioRxiv](https://www.biorxiv.org/tdm); [PMC Article](https://pmc.ncbi.nlm.nih.gov/tools/textmining/); [USPTO Backgrounds](https://data.uspto.gov/apis/transition-guide/bdss#pats); [peS2o](https://huggingface.co/datasets/allenai/peS2o); Global Regulation; [CORE](https://core.ac.uk/documentation/dataset); [PG-19](https://github.com/google-deepmind/pg19); [DOAB CC BY & CC BY-SA subset](https://www.doabooks.org/en); [NDLTD](https://ndltd.org/thesis-resources/global-etd-search/) | [Qwen2.5-72B-Instruct](https://huggingface.co/Qwen/Qwen2.5-72B-Instruct) |
978Added: | Synthetic Rephrased [Math Data from Common Crawl](https://huggingface.co/datasets/nvidia/Nemotron-MIND) from phi-4 | Text | 73B | [Common Crawl](https://commoncrawl.org/latest-crawl) | [phi-4](https://huggingface.co/microsoft/phi-4) |
979Added: | Synthetic Math Data from Common Crawl 4plus | Text | 52.3B | [Common Crawl](https://commoncrawl.org/latest-crawl) | [phi-4](https://huggingface.co/microsoft/phi-4) |
980Added: | Synthetic Math Data from Common Crawl 3 | Text | 80.9B | [Common Crawl](https://commoncrawl.org/latest-crawl) | [phi-4](https://huggingface.co/microsoft/phi-4) |
981Added: | Synthetic AGIEval seeded with AQUA-RAT, LogiQA, and AR-LSAT from DeepSeek-V3 and DeepSeek-V3-0324 | Text | 4.0B | [AQUA-RAT](https://huggingface.co/datasets/deepmind/aqua_rat); [LogiQA](https://huggingface.co/datasets/lucasmccabe/logiqa); [AR-LSAT](https://github.com/zhongwanjun/AR-LSAT) | [DeepSeek-V3](https://huggingface.co/deepseek-ai/DeepSeek-V3); [DeepSeek-V3-0324](https://huggingface.co/deepseek-ai/DeepSeek-V3-0324) |
982Added: | Synthetic AGIEval seeded with AQUA-RAT, LogiQA, and AR-LSAT from Qwen3-30B-A3B | Text | 4.2B | [AQUA-RAT](https://huggingface.co/datasets/deepmind/aqua_rat); [LogiQA](https://huggingface.co/datasets/lucasmccabe/logiqa); [AR-LSAT](https://github.com/zhongwanjun/AR-LSAT) | [Qwen3-30B-A3B](https://huggingface.co/Qwen/Qwen3-30B-A3B) |
983Added: | Synthetic Art of Problem Solving from Qwen2.5-32B-Instruct, Qwen2.5-Math-72B, Qwen2.5-Math-7B, and Qwen2.5-72B-Instruct | Text | Undisclosed | [Art of Problem Solving](https://artofproblemsolving.com/company); [American Mathematics Competitions 8](https://artofproblemsolving.com/wiki/index.php/AMC_8_Problems_and_Solutions); [American Mathematics Competitions 10](https://artofproblemsolving.com/wiki/index.php/AMC_10_Problems_and_Solutions); [GSM8K](https://github.com/openai/grade-school-math); [PRM800K](https://github.com/openai/prm800k) | [Qwen2.5-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-32B-Instruct); [Qwen2.5-Math-72B](https://huggingface.co/Qwen/Qwen2.5-Math-72B); [Qwen2.5-Math-7B](https://huggingface.co/Qwen/Qwen2.5-Math-7B); [Qwen2.5-72B-Instruct](https://huggingface.co/Qwen/Qwen2.5-72B-Instruct) |
984Added: | Synthetic MMLU Auxiliary Train from DeepSeek-R1 | Text | 0.5B | [MMLU Auxiliary Train](https://huggingface.co/datasets/cais/mmlu/viewer/all/auxiliary_train) | [DeepSeek-R1](https://huggingface.co/deepseek-ai/DeepSeek-R1) |
985Added: | Synthetic Long Context Continued Post-Training Data from Papers and Permissible Books from Qwen2.5-72B-Instruct | Text | Undisclosed | [arXiv](https://info.arxiv.org/help/bulk_data/index.html); [National Institutes of Health ExPorter](https://www.nih.gov/); [BioRxiv](https://www.biorxiv.org/tdm); [PMC Article](https://pmc.ncbi.nlm.nih.gov/tools/textmining/); [USPTO Backgrounds](https://data.uspto.gov/apis/transition-guide/bdss#pats); [peS2o](https://huggingface.co/datasets/allenai/peS2o); Global Regulation; [CORE](https://core.ac.uk/documentation/dataset); [PG-19](https://github.com/google-deepmind/pg19); [DOAB CC BY & CC BY-SA subset](https://www.doabooks.org/en); [NDLTD](https://ndltd.org/thesis-resources/global-etd-search/) | [Qwen2.5-72B-Instruct](https://huggingface.co/Qwen/Qwen2.5-72B-Instruct) |
986Added: | Synthetic Common Crawl from Qwen3-30B-A3B and Mistral-Nemo-12B-Instruct | Text | 415.8B | [Common Crawl](https://commoncrawl.org/) | [Qwen3-30B-A3B](https://huggingface.co/Qwen/Qwen3-30B-A3B); [Mistral-NeMo-12B-Instruct](https://huggingface.co/nvidia/Mistral-NeMo-12B-Instruct) |
987Added: | Synthetic Multilingual Data from Common Crawl from Qwen3-30B-A3B | Text | Undisclosed | [Common Crawl](https://commoncrawl.org/) | [Qwen3-30B-A3B](https://huggingface.co/Qwen/Qwen3-30B-A3B) |
988Added: | Synthetic Multilingual Data from Wikimedia from Qwen3-30B-A3B | Text | Undisclosed | [Wikimedia](https://dumps.wikimedia.org/) | [Qwen3-30B-A3B](https://huggingface.co/Qwen/Qwen3-30B-A3B) |
989Added: | Synthetic Math Data from Wikimedia from Nemotron-4-340B-Instruct | Text | Undisclosed | - | [Nemotron-4-340B-Instruct](https://huggingface.co/nvidia/Nemotron-4-340B-Instruct) |
990Added: | Synthetic Common Crawl Code from phi-4 | Text | 427.9B | [Common Crawl](https://commoncrawl.org/latest-crawl) | [phi-4](https://huggingface.co/microsoft/phi-4) |
991Added: | Synthetic Scientific Coding from Qwen3-235B-A22B | Text | 1.2B | [Wikimedia](https://dumps.wikimedia.org/) | [Qwen3-235B-A22B](https://huggingface.co/Qwen/Qwen3-235B-A22B-Instruct-2507) |
992Added: | Tool Calling Data | Text | 26.2B | - | [Qwen3-235B-A22B-2507](https://huggingface.co/Qwen/Qwen3-235B-A22B-Instruct-2507); [gpt-oss-120b](https://huggingface.co/openai/gpt-oss-120b) |
993Added: | Synthetic Essential-Web from QwQ-32B | Text | 28.1B | [Essential-Web](https://huggingface.co/datasets/EssentialAI/essential-web-v1.0) | [QwQ-32B](https://huggingface.co/Qwen/QwQ-32B) |
994Added: | Translated Synthetic Crawl | Text | 389.9B | [Common Crawl](https://commoncrawl.org/) | [Qwen3-30B-A3B](https://huggingface.co/Qwen/Qwen3-30B-A3B) |
995Added: | Translated Synthetic Wikipedia | Text | 7.9B | [Wikimedia](https://dumps.wikimedia.org/) | [Qwen3-30B-A3B](https://huggingface.co/Qwen/Qwen3-30B-A3B) |
996Added: | Synthetic Long Context from Qwen3-235B-A22B-Instruct-2507 | Text | Undisclosed | [CORE](https://core.ac.uk/documentation/dataset); [PG-19](https://github.com/google-deepmind/pg19); [DOAB CC BY & CC BY-SA subset](https://www.doabooks.org/en); [NDLTD](https://ndltd.org/thesis-resources/global-etd-search/) | [Qwen3-235B-A22B-Instruct-2507](https://huggingface.co/Qwen/Qwen3-235B-A22B-Instruct-2507) |
997Added: | Synthetic Search STEM OPENQ from DeepSeek-R1-0528 | Text | Undisclosed | - | [DeepSeek-R1-0528](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528) |
998Added: | Synthetic MCQ from Qwen2.5-32B-Instruct and DeepSeek-R1-0528 | Text | Undisclosed | - | [Qwen2.5-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-32B-Instruct); [DeepSeek-R1-0528](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528) |
999Added: | Synthetic Offline Search MCQA HLE from DeepSeek-R1-0528 | Text | Undisclosed | - | [DeepSeek-R1-0528](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528) |
1000Added: | Synthetic Offline Search MCQA GPQA from Qwen3-235B-A22B and DeepSeek-R1-0528 | Text | Undisclosed | - | [Qwen3-235B-A22B](https://huggingface.co/Qwen/Qwen3-235B-A22B); [DeepSeek-R1-0528](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528) |
1001Added: | Synthetic Human Preference from QwQ-32B, Qwen3-30B-A3B, Qwen3-235B-A22B, Qwen3-235B-A22B-Instruct-2507, Mistral-Small-3.1-24B-Instruct-2503, Mistral-Small-3.2-24B-Instruct-2506, MiniMax-M1-80k, MiniMax-M1-40k, Kimi-K2-Instruct, DeepSeek-V3-0324, DeepSeek-R1-0528 | Text | Undisclosed | - | [QwQ-32B](https://huggingface.co/Qwen/QwQ-32B); [Qwen3-30B-A3B](https://huggingface.co/Qwen/Qwen3-30B-A3B); [Qwen3-235B-A22B](https://huggingface.co/Qwen/Qwen3-235B-A22B); [Qwen3-235B-A22B-Instruct-2507](https://huggingface.co/Qwen/Qwen3-235B-A22B-Instruct-2507); [Mistral-Small-3.1-24B-Instruct-2503](https://huggingface.co/mistralai/Mistral-Small-3.1-24B-Instruct-2503); [Mistral-Small-3.2-24B-Instruct-2506](https://huggingface.co/mistralai/Mistral-Small-3.2-24B-Instruct-2506); [MiniMax-M1-80k](https://huggingface.co/MiniMaxAI/MiniMax-M1-80k); [MiniMax-M1-40k](https://huggingface.co/MiniMaxAI/MiniMax-M1-40k); [Kimi-K2-Instruct](https://huggingface.co/moonshotai/Kimi-K2-Instruct); [DeepSeek-V3-0324](https://huggingface.co/deepseek-ai/DeepSeek-V3-0324); [DeepSeek-R1-0528](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528) |
1002Added: | Synthetic WildChat-1M and arena-human-preference-140k from DeepSeek-R1, gemma-2-2b-it, gemma-3-27b-it, gpt-oss-20b, gpt-oss-120b, Mistral-7B-Instruct-v0.3, Mixtral-8x22B-Instruct-v0.1, Nemotron-4-340B-Instruct, NVIDIA-Nemotron-Nano-9B-v2, Phi-4-mini-instruct, Phi-3-small-8k-instruct, Phi-3-medium-4k-instruct, Qwen3-235B-A22B, QwQ-32B | Text | Undisclosed | [WildChat-1M](https://huggingface.co/datasets/allenai/WildChat-1M); [arena-human-preference-140k](https://huggingface.co/datasets/lmarena-ai/arena-human-preference-140k) | [DeepSeek-R1](https://huggingface.co/deepseek-ai/DeepSeek-R1); [gemma-2-2b-it](https://huggingface.co/google/gemma-2-2b-it); [gemma-3-27b-it](https://huggingface.co/google/gemma-3-27b-it); [gpt-oss-20b](https://huggingface.co/openai/gpt-oss-20b); [gpt-oss-120b](https://huggingface.co/openai/gpt-oss-120b); [Mistral-7B-Instruct-v0.3](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3); [Mixtral-8x22B-Instruct-v0.1](https://huggingface.co/mistralai/Mixtral-8x22B-Instruct-v0.1); [Nemotron-4-340B-Instruct](https://huggingface.co/nvidia/Nemotron-4-340B-Instruct); [NVIDIA-Nemotron-Nano-9B-v2](https://huggingface.co/nvidia/NVIDIA-Nemotron-Nano-9B-v2); [Phi-4-mini-instruct](https://huggingface.co/microsoft/Phi-4-mini-instruct); [Phi-3-small-8k-instruct](https://huggingface.co/microsoft/Phi-3-small-8k-instruct); [Phi-3-medium-4k-instruct](https://huggingface.co/microsoft/Phi-3-medium-4k-instruct); [Qwen3-235B-A22B](https://huggingface.co/Qwen/Qwen3-235B-A22B); [QwQ-32B](https://huggingface.co/Qwen/QwQ-32B) |
1003Added: | Synthetic Code from Qwen3-32B | Text | Undisclosed | English Common Crawl; English Common Crawl 1.1 | [Qwen3-32B](https://huggingface.co/Qwen/Qwen3-32B) |
1004Added: | Synthetic OpenCodeReasoning from DeepSeek-R1 | Text | Undisclosed | [OpenCodeReasoning](https://huggingface.co/datasets/nvidia/OpenCodeReasoning) | [DeepSeek-R1](https://huggingface.co/deepseek-ai/DeepSeek-R1) |
1005Added: | Synthetic OpenCodeReasoning from DeepSeek-R1-0528 | Text | Undisclosed | [OpenCodeReasoning](https://huggingface.co/datasets/nvidia/OpenCodeReasoning) | [DeepSeek-R1-0528](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528) |
1006Added: | Synthetic HackerRank Coding from DeepSeek-R1-0528 | Text | Undisclosed | HackerRank Coding Dataset | [DeepSeek-R1-0528](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528) |
1007Added: | Synthetic LIMO from DeepSeek-R1-0528 | Text | Undisclosed | [LIMO](https://huggingface.co/datasets/GAIR/LIMO) | [DeepSeek-R1-0528](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528) |
1008Added: | Synthetic SCP from DeepSeek-R1-0528 | Text | Undisclosed | [SCP-116K](https://huggingface.co/datasets/EricLu/SCP-116K) | [DeepSeek-R1-0528](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528) |
1009Added: | Synthetic Stack Exchange from DeepSeek-R1-0528 | Text | Undisclosed | [Stack Exchange](https://archive.org/details/stackexchange) | [DeepSeek-R1-0528](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528) |
1010Added: | Synthetic Stack Exchange from gpt-oss-120b and Qwen2.5-32B-Instruct | Text | Undisclosed | [Stack Exchange](https://archive.org/details/stackexchange) | [gpt-oss-120b](https://huggingface.co/openai/gpt-oss-120b); [Qwen2.5-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-32B-Instruct) |
1011Added: | Synthetic Stack Exchange from gpt-oss-120b | Text | Undisclosed | [Stack Exchange](https://archive.org/details/stackexchange) | [gpt-oss-120b](https://huggingface.co/openai/gpt-oss-120b) |
1012Added: | Synthetic Art of Problem Solving from gpt-oss-120b and Qwen2.5-32B-Instruct | Text | Undisclosed | [Art of Problem Solving](https://artofproblemsolving.com/company); [American Mathematics Competitions 8](https://artofproblemsolving.com/wiki/index.php/AMC_8_Problems_and_Solutions); [American Mathematics Competitions 10](https://artofproblemsolving.com/wiki/index.php/AMC_10_Problems_and_Solutions) | [gpt-oss-120b](https://huggingface.co/openai/gpt-oss-120b); [Qwen2.5-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-32B-Instruct) |
1013Added: | Synthetic Common Crawl from Qwen3-30B-A3B | Text | Undisclosed | [Common Crawl](https://commoncrawl.org/) | [Qwen3-30B-A3B](https://huggingface.co/Qwen/Qwen3-30B-A3B) |
1014Added: | Synthetic Wikipedia from Qwen3-30B-A3B | Text | Undisclosed | [Wikimedia](https://dumps.wikimedia.org/) | [Qwen3-30B-A3B](https://huggingface.co/Qwen/Qwen3-30B-A3B) |
1015Added: | Synthetic Essential-Web from Qwen3-30B-A3B and Qwen3-235B-A22B-Thinking-2507 | Text | Undisclosed | [Essential-Web](https://huggingface.co/datasets/EssentialAI/essential-web-v1.0) | [Qwen3-30B-A3B](https://huggingface.co/Qwen/Qwen3-30B-A3B); [Qwen3-235B-A22B-Thinking-2507](https://huggingface.co/Qwen/Qwen3-235B-A22B-Thinking-2507) |
1016Added: | Synthetic Essential-Web from gpt-oss-120b | Text | Undisclosed | [Essential-Web](https://huggingface.co/datasets/EssentialAI/essential-web-v1.0) | [gpt-oss-120b](https://huggingface.co/openai/gpt-oss-120b) |
1017Added: | Synthetic Textbook Math from Qwen3-30B-A3B, Qwen3-235B-A22B, phi-4 | Text | Undisclosed | [Common Crawl](https://commoncrawl.org/); [FineMath](https://huggingface.co/datasets/HuggingFaceTB/finemath) | [Qwen3-30B-A3B](https://huggingface.co/Qwen/Qwen3-30B-A3B); [Qwen3-235B-A22B](https://huggingface.co/Qwen/Qwen3-235B-A22B); [phi-4](https://huggingface.co/microsoft/phi-4) |
1018Added: | Synthetic Math and Code from DeepSeek-R1 and DeepSeek-R1-0528 | Text | Undisclosed | [Magicoder-Evol-Instruct-110K](https://huggingface.co/datasets/ise-uiuc/Magicoder-Evol-Instruct-110K); [opc-sft-stage2](https://huggingface.co/datasets/OpenCoder-LLM/opc-sft-stage2); [TACO](https://huggingface.co/datasets/BAAI/TACO); [OpenCodeReasoning](https://huggingface.co/datasets/nvidia/OpenCodeReasoning); [OpenMathReasoning](https://huggingface.co/datasets/nvidia/OpenMathReasoning); [NuminaMath CoT](https://huggingface.co/datasets/AI-MO/NuminaMath-CoT) | [DeepSeek-R1](https://huggingface.co/deepseek-ai/DeepSeek-R1); [DeepSeek-R1-0528](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528) |
1019Added: | Synthetic Math from gpt-oss-120b and Qwen2.5-32B-Instruct | Text | Undisclosed | - | [gpt-oss-120b](https://huggingface.co/openai/gpt-oss-120b); [Qwen2.5-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-32B-Instruct) |
1020Added: | Synthetic OpenMathReasoning from gpt-oss-120b and Qwen2.5-32B-Instruct | Text | Undisclosed | [OpenMathReasoning](https://huggingface.co/datasets/nvidia/OpenMathReasoning) | [gpt-oss-120b](https://huggingface.co/openai/gpt-oss-120b); [Qwen2.5-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-32B-Instruct) |
1021Added: | Synthetic KernelBook from DeepSeek-R1-0528 | Text | Undisclosed | [KernelBook](https://huggingface.co/datasets/GPUMODE/KernelBook) | [DeepSeek-R1-0528](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528) |
1022Added: | Synthetic Scale HLE from gpt-oss-120b | Text | Undisclosed | Scale HLE | [gpt-oss-120b](https://huggingface.co/openai/gpt-oss-120b) |
1023Added: | Synthetic CDQuestions from gpt-oss-120b | Text | Undisclosed | [CDQuestions](https://cdquestions.com/) | [gpt-oss-120b](https://huggingface.co/openai/gpt-oss-120b) |
1024Added: | Synthetic GPQA from gpt-oss-120b and Qwen2.5-32B-Instruct | Text | Undisclosed | [Stack Exchange](https://archive.org/details/stackexchange) | [gpt-oss-120b](https://huggingface.co/openai/gpt-oss-120b); [Qwen2.5-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-32B-Instruct) |
1025Added: | Synthetic Vedantu from gpt-oss-120b | Text | Undisclosed | [Vedantu](https://www.vedantu.com/) | [gpt-oss-120b](https://huggingface.co/openai/gpt-oss-120b) |
1026Added: | Synthetic Search STEM MCQ from Qwen3-235B-A22B and DeepSeek-R1-0528 | Text | Undisclosed | - | [Qwen3-235B-A22B](https://huggingface.co/Qwen/Qwen3-235B-A22B); [DeepSeek-R1-0528](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528) |
1027Added: | Synthetic OpenSTEM from Qwen2.5-32B-Instruct and DeepSeek-R1-0528 | Text | Undisclosed | - | [Qwen2.5-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-32B-Instruct); [DeepSeek-R1-0528](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528) |
1028Added: | Synthetic MCQ10 from DeepSeek-R1-0528 | Text | Undisclosed | - | [DeepSeek-R1-0528](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528) |
1029Added: | Synthetic MCQ4 from Qwen3-235B-A22B, DeepSeek-R1-0528, and Qwen3-235B-A22B-Instruct-2507 | Text | Undisclosed | - | [Qwen3-235B-A22B](https://huggingface.co/Qwen/Qwen3-235B-A22B); [DeepSeek-R1-0528](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528); [Qwen3-235B-A22B-Instruct-2507](https://huggingface.co/Qwen/Qwen3-235B-A22B-Instruct-2507) |
1030Added: | Indic SDG for Nemotron | Text | 711,276,565 indexed source-sequence entries; final training-blend count not confirmed | nvidia/Nemotron-CC-v2 | google/gemma-4-31B-it; google/gemma-4-31B-it-assistant |
1031Added:
1032Added: ## NVIDIA-Sourced Synthetic Datasets (Post-Training)
1033Added:
1034Added: | Dataset | Modality | Dataset Size | Seed Dataset | Model(s) used for generation |
1035Added: | :---- | :---- | :---- | :---- | :---- |
1036Added: | Synthetic Single-Step Tool Use — RL | Text | Approximately 1,433,203 samples | Handwritten prompts; no external seed data | DeepSeek-V3.2; DeepSeek-R1-0528; Qwen3-235B-A22B-Thinking-2507; Qwen3-32B |
1037Added: | Synthetic Sparse Tables with Mixed Prompts | Text and images | 100,000 records | Generated in-house; no external seed data | None; generated without an SDG model |
1038Added: | Synthetic Single-Step Tool Use — RL | Text | Approximately 1,433,203 samples | Handwritten prompts; no external seed data | DeepSeek-V3.2; DeepSeek-R1-0528; Qwen3-235B-A22B-Thinking-2507; Qwen3-32B |
1039Added: | Synthetic Sparse Tables with Mixed Prompts | Text and images | 100,000 records | Generated in-house; no external seed data | None; generated without an SDG model |
1040Added: | Synthetic Competitive MATH Proofs from DeepSeek-V4-Pro | Text | Undisclosed | [AMC 8 Problems and Solutions, AMC 10 Problems and Solution, and AIME Problems and Solutions] | [deepseek-ai/DeepSeek-V4-Pro] |
1041Added: | Synthetic Hermes Agent Reasoning Traces | Text | Undisclosed | [lambda/hermes-agent-reasoning-traces] | [hermes-agent-generator] |
1042Added: | Synthetic Competitive Coding from DeepSeek-V4-Pro | Text | Undisclosed | [NVCompetitiveCodingV1] | [deepseek-ai/DeepSeek-V4-Pro] |
1043Added: | Synthetic Competitive Science Reasoning from DeepSeek-V4-Pro | Text | Undisclosed | [AMC 8 Problems and Solutions, AMC 10 Problems and Solution, and AIME Problems and Solutions]; [EssentialAI/essential-web-v1.0]; [cdquestions.com]; [Pile-FreeLaw]; [Vedantu]; [askfilo]; [doubtnut]; [ICHO-IPH0 Dataset]; [LIMO dataset (Less is More for Reasoning)]; [AAPT]; [ChemData 700K]; [oMeBench]; [Flavor Analysis and Recognition Transformer]; [ChemCoTBench]; [Llama Nemotron Dataset] | [deepseek-ai/DeepSeek-V4-Pro] |
1044Added: | Synthetic Competitive MATH CoT and TIR from Nemotron 5.5 | Text | Undisclosed | [Pile-FreeLaw]; [AMC 8 Problems and Solutions, AMC 10 Problems and Solution, and AIME Problems and Solutions] | [Nemotron 5.5] |
1045Added: | Vendor Terminal Bench-like Tasks from Mercor | Text | Undisclosed | [Terminal bench like tasks curated by the vendor] | [Undisclosed - purchased dataset] |
1046Added: | Turing Math Data Pack | Text | Undisclosed | [Turing Math Data Pack dataset] | [Undisclosed - purchased dataset] |
1047Added: | Synthetic Holdout, Skywork, DAPO, and Turing Math from GPT-5.5 | Text | Undisclosed | [DocQA-RL-1.6K]; [DAPO-Math-17k] | [GPT-5.5] |
1048Added: | Synthetic Long Context RL from QwenLong L1 and DocQA-RL-1.6K | Text | Undisclosed | [DocQA-RL-1.6K] | Undisclosed |
1049Added: | Synthetic Competitive Coding Gym Tasks | Text | Undisclosed | [NVCompetitiveCodingV1.1] | Undisclosed |
1050Added: | Synthetic Finance SEC Search Agent from GPT-OSS-120B and Qwen3 | Text | Undisclosed | [SEC filings from sec.gov] | [GPT-OSS-120B]; [Qwen3-235B-A22B-Instruct]; [Qwen3-4B-Instruct] |
1051Added: | Synthetic Structured Outputs from Qwen3-30B-A3B-Instruct-2507, Qwen3-30B-A3B-Thinking-2507, Qwen3-235B-A22B-Instruct-2507, and Qwen3-235B-A22B-Thinking-2507 | Text | Undisclosed | [Nemotron-RL-agent-structured-outputs-v1] | [Qwen3-30B-A3B-Instruct-2507]; [Qwen3-235B-A22B-Instruct-2507] |
1052Added: | Synthetic Long Context Equivalence Rule from Qwen3-235B-A22B-Thinking-2507 and DeepSeek-R1 | Text | Undisclosed | [Long-context SFT data] | [Qwen/Qwen3-235B-A22B-Thinking-2507]; [Deepseek-ai/DeepSeek-R1] |
1053Added: | Synthetic Science RL Data Blend from Qwen2.5-32B | Text | Undisclosed | [doubtnut]; [Pile-FreeLaw]; [Llama Nemotron Dataset]; [askfilo]; [EssentialAI/essential-web-v1.0]; [Vedantu]; [auxiliary_train]; [cdquestions.com]; [AMC 8 Problems and Solutions, AMC 10 Problems and Solution, and AIME Problems and Solutions]; [AAPT]; [ICHO-IPH0 Dataset]; [LIMO dataset (Less is More for Reasoning)] | [Qwen2.5-32B] |
1054Added: | Synthetic Abstention Data from Nemotron Super v3 | Text | Undisclosed | [Go abstention Dataset] | [nvidia/nvidia/nemotron-3-super-v3] |
1055Added: | Synthetic Chemistry Data from Nemotron Super v3 | Text | Undisclosed | [ChemData 700K] | [nvidia/nvidia/nemotron-3-super-v3] |
1056Added: | Synthetic Tool Call Schema for RL | Text | 469,983 | [UltraTool]; [ToolEyes]; [AutoTools]; [API-Bank]; [Nemotron-Personas-USA]; [Salesforce xLAM function-calling]; [Glaive function-calling-v2]; [Agent-Ark/Toucan-1.5M] | [DeepSeek-V3.2]; [GLM-4.6]; [gpt-oss-120b]; [Kimi-K2-Instruct] |
1057Added: | Synthetic Freeform Text Formatting from GPT-OSS-120B | Text | Undisclosed | [In-house data] | [GPT OSS 120B - Apache 2.0] |
1058Added: | Synthetic Citation Formatting from GPT-OSS-120B | Text | Undisclosed | [In-house data] | [GPT OSS 120B - Apache 2.0] |
1059Added: | Droid Harness Pivot Vendor Data | Text | Undisclosed | [Droid Harness Pivot vendor data] | Undisclosed |
1060Added: | Synthetic HotpotQA Training Data from Qwen3-235B | Text | Undisclosed | [HotpotQA] | [Qwen3-235B] |
1061Added: | Synthetic Natural Language Math Proofs from Nemotron 5.5 | Text | Undisclosed | [AMC8, AMC10, and AIME problem sets hosted on Art of Problem Solving]; [Pile-StackExchange] | [Nemotron 5.5] |
1062Added: | Synthetic Stack Overflow OpenQ | Text | Undisclosed | [Pile-FreeLaw] | Undisclosed |
1063Added: | Chemistry Ether0 Vendor Data | Text | Undisclosed | [Chemistry ether0 vendor data] | Undisclosed |
1064Added: | Synthetic Litmus-Bench Chemistry from ChEMBL | Text | Undisclosed | [ChEMBL]; [Nemo Gym RL dataset generated from ChEMBL with RDKit] | Undisclosed |
1065Added: | Synthetic ZINC Chemistry from Nemotron Super v3 | Text | Undisclosed | [ZINC] | [Nemotron Super v3] |
1066Added: | ARC-AGI Gym Environment | Text | Undisclosed | [ARC-AGI-2] | [ARC-AGI-2] |
1067Added: | Synthetic Agentic Search Tool-Use from DeepSeek-V3.2 | Text | Undisclosed | [Mercor Data] | [DeepSeek-V3.2] |
1068Added: | Synthetic Text-To-SQL | Text | 96,564 | [In-house Text-to-SQL data] | [gpt-oss-120b] |
1069Added: | Dialog Memory Vendor Data | Text | Undisclosed | [Patronus external vendor agreement] | Undisclosed |
1070Added: | Synthetic Indirect Prompt Injection from Nemotron Super v3 and Qwen3-Next-80B-A3B-Instruct | Text | Undisclosed | [In-house indirect prompt injection data] | [nvidia/nemotron-3-super-v3, qwen/qwen3-next-80b-a3b-instruct] |
1071Added: | Synthetic Malicious Code and Agentic Security | Text | Undisclosed | [In-house malicious-code / agentic-security data] | Undisclosed |
1072Added: | Synthetic Single-Step SWE Patch Selection | Text | Undisclosed | [SWE-Gym Dataset]; [SWE Bench Verified Benchmark] | [ground truth and task checks] |
1073Added: | Synthetic Natural Language Math Final Answers from Nemotron 5.5 | Text | Undisclosed | [AMC8, AMC10, and AIME problem sets hosted on Art of Problem Solving]; [Pile-StackExchange] | [nemotron 5.5] |
1074Added: | Synthetic Simple Math Prompts for Token Efficiency | Text | Undisclosed | [In-house simple math prompts] | Undisclosed |
1075Added: | Synthetic Abstention Data from Nemotron Super v3 (CRAG) | Text | Undisclosed | [CRAG] | [nvidia/nvidia/nemotron-3-super-v3] |
1076Added: | Synthetic Agentless SWE | Text | 242,536 | [SWE-Rebench-V2]; [SWEbench Training Set]; [R2E-Gym/R2E-Gym-Subset]; [SWE-Gym/SWE-Gym]; [SWE-Rebench] | [openai/gpt-oss-120b] |
1077Added: | Synthetic Agentless SWE from DeepSeek-R1-0528 | Text | 209,976 | [SWE-Bench-Train]; [SWE-Fixer-Train]; [SWE-reBench]; [SWE-Smith] | [deepseek-ai/DeepSeek-R1-0528] |
1078Added: | Synthetic Agentic CUDA Traces from GLM-4.7 | Text | 2,276 | [Internal CUDA task data] | [GLM-4.7] |
1079Added: | Synthetic Math Proofs from DeepSeek-V3.2-Speciale | Text | 820,772 | [Nemotron-Math-Proofs-v1] | [SDG: DeepSeek-V3.2-Speciale]; [Filter: proof validation] |
1080Added: | Synthetic Multilingual SFT from DeepSeek-V3 | Text | 1,245,284 | [Nano v3 SFT data] | [DeepSeek-V3] |
1081Added: | Synthetic Agentic Code from gpt-oss-120b | Text | 109,086 | [NVAgenticCLIPrompts-v1]; [NVAgenticSkills-v1]; [NVAgenticCLIMultiTurnPrompts-v1] | [openai/gpt-oss-120b] |
1082Added: | Synthetic Agentic CLI and Web Skills from gpt-oss-120b | Text | 27,418 | [NVAgenticCLIPrompts-v1]; [NVAgenticSkills-v1]; [NVAgenticCLIMultiTurnPrompts-v1]; [NVAgenticCLIPrompts-Web-v1] | [openai/gpt-oss-120b] |
1083Added: | Synthetic Agentic Coding from gpt-oss-120b | Text | 160,531 | [NVAgenticCLIPrompts-v1]; [NVAgenticSkills-v1]; [NVAgenticCLIMultiTurnPrompts-v1]; [NVAgenticCLIPrompts-Web-v1] | [openai/gpt-oss-120b] |
1084Added: | Synthetic OpenCode Agentic Tasks from gpt-oss-120b | Text | 614,773 | [NVAgenticCLIPrompts-v1]; [NVAgenticSkills-v1]; [NVAgenticCLIMultiTurnPrompts-v1]; [NVAgenticCLIPrompts-Web-v1] | [openai/gpt-oss-120b] |
1085Added: | Synthetic SWE Unverified | Text | Undisclosed | [NVAgenticCLIPrompts-v1]; [NVAgenticSkills-v1]; [NVAgenticCLIMultiTurnPrompts-v1]; [NVAgenticCLIPrompts-Web-v1] | [gpt-oss-120b]; [Qwen/Qwen3-Coder-480B-A35B-Instruct]; [GLM-4.7-Flash] |
1086Added: | Synthetic ARC-AGI Ultra Data | Text | 192,016 | [ARC-AGI-2]; [arc dataset collection] | [ARC-AGI-2] |
1087Added: | Synthetic LiveCodeBench TIR from DeepSeek-R1-0528 | Text | 1,283,398 | [Nemotron-X training datasets] | [DeepSeek-R1-0528] |
1088Added: | Synthetic Verilog and SystemVerilog Code from DeepSeek-R1-0528 and GPT-OSS-120B | Text | 1,233,247 | [Verilog/SystemVerilog seed code] | [SDR: DeepSeek R1 0528 and GPT-OSS-120B]; [Filtering: Claude 4 Sonnet] |
1089Added: | Synthetic Aider Python Tasks from DeepSeek-R1-0528 | Text | 236,099 | [Exercism (GitHub Python)] | [Deepseek R1 0528] |
1090Added: | Synthetic Chat Reasoning-Off Data from GLM-5 | Text | 646,738 | [lmarena-ai/repochat-arena-preference-4k user prompts] | [Multi-turn conversations generated by GLM-5 with best-of-4 selection via Qwen3-Nemotron-235B-A22B-GenRM] |
1091Added: | Synthetic Chat Reasoning-On Data from GLM-5 | Text | 644,286 | [lmarena-ai/repochat-arena-preference-4k user prompts]; [lmarena-ai/arena-expert-5k user prompts]; [lmarena-ai/arena-human-preference-55k user prompts]; [lmarena-ai/arena-human-preference-100k user prompts]; [lmarena-ai/arena-human-preference-140k user prompts] | [Multi-turn conversations generated by GLM-5 with best-of-4 selection via Qwen3-Nemotron-235B-A22B-GenRM] |
1092Added: | Synthetic Multilingual Safety from Riva-Translate-4B-Instruct-v1.1 | Text | 132,067 | [Safety SFT Data: Ultra] | [nvidia/Riva-Translate-4B-Instruct-v1.1] |
1093Added: | Synthetic Science Reasoning Effort Medium | Text | 502,722 | [science-reasoning-effort-medium-v0] | Undisclosed |
1094Added: | Synthetic Telecom Tool-Use Trajectories from gpt-oss-120b | Text | 12,455 | [Existing Tau2 telecom trajectories originally generated with DeepSeek V3.2] | [gpt-oss-120b] |
1095Added: | Synthetic Terminal Bench Data from OpenReasoningv2 | Text | Undisclosed | [OpenCodeReasoningv2]; [OpenMathReasoning]; [nemo-swe-bench-repos]; [SWE-Rebench]; [SWE-Fixer-110K] | [OpenReasoningv2] |
1096Added: | Synthetic Tulu Instruction Following from DeepSeek-R1-0528 | Text | 105,361 | [Nemotron-X training datasets] | [DeepSeek-R1-0528] |
1097Added: | Synthetic Instruction Following from gpt-oss-120b | Text | 151,988 | [IFEval]; [IFEvalG] | [gpt-oss-120b] |
1098Added: | Synthetic Instruction Following for RL | Text | Undisclosed | [WildChat-1M]; [LMSYS-340B-Eval Dataset]; [LMSYS-Chat-1M Prompts]; [IFEval]; [IFEvalG] | [Qwen/Qwen3-235B-A22B-Thinking-2507]; [gpt-oss-120b]; [Qwen3-235B-A22B-Instruct-2507] |
1099Added: | Synthetic Identity Data from Qwen3-Next-80B-A3B-Instruct and Qwen3-235B-A22B-Instruct-2507 | Text | 25,992 | [Hand-written prompts] | [Qwen3-Next-80B-A3B-Instruct]; [Qwen3-235B-A22B-Instruct-2507] |
1100Added: | Synthetic Terminus Ultra Agentic Reasoning Blend | Text | 96,881 | [ARC-AGI-2]; [OpenCodeReasoningv2]; [OpenMathReasoning]; [SWE-Fixer-110K]; [SWE-Rebench]; [SWE-Smith] | [DeepSeek-V3.2]; [Qwen3-235B-A22B-Thinking-2507]; [Ring-1T]; [Kimi-K2.5]; [GLM-4.7-FP8]; [Qwen3-Next-80B-A3B-Thinking]; [gpt-oss-120b]; [Ministral-3-14B-Reasoning-2512]; [LM-4.5-Air-FP8] |
1101Added: | Synthetic STEM from Qwen3-235B-A22B-Thinking-2507 | Text | 1,174,694 | [IChO-IPhO-RL-v2]; [Physics-Big Dataset]; Scale HLE; [OpenMathReasoning]; [OpenCodeReasoning] | [Qwen3-235B-A22B-Thinking-2507] |
1102Added: | Synthetic STEM from Qwen3-235B-A22B-Instruct-2507 and gpt-oss-120b | Text | Undisclosed | [arXiv]; [National Institutes of Health ExPorter]; [BioRxiv]; [PMC Article]; [USPTO Backgrounds]; [peS2o]; Global Regulation; [CORE]; [PG-19]; [DOAB CC BY & CC BY-SA subset]; [NDLTD] | [Qwen3-235B-A22B-Instruct-2507]; [gpt-oss-120b] |
1103Added: | Translation Data from TAUS | Text | 1,618,055 | [TAUS proprietary dataset] | Undisclosed |
1104Added: | Synthetic Art of Problem Solving and Stack Exchange from gpt-oss-120b, Qwen2.5-32B-Instruct, and Goedel-Prover-V2-32B | Text | 860,469 | [Nemotron-Math-Proofs-v1] | [Goedel-Prover-V2-32B] |
1105Added: | Synthetic Art of Problem Solving and Stack Exchange from gpt-oss-120b | Text | 1,201,815 | [Upstream released math dataset]; [AoPS]; [StackOverflow / StackExchange] | [gpt-oss-120b] |
1106Added: | Synthetic Multilingual Science and Code data from DeepSeek-R1, DeepSeek-R1-0528, Qwen2.5-32B-Instruct, and Qwen3-235B-A22B, translated with Qwen2.5-32B-Instruct and Qwen2.5-14B-Instruct | Text | Undisclosed | [Nano-V3 SFT Data (without tool call)] | [Qwen/Qwen2.5-14B-Instruct]; [Qwen/Qwen3-4B-Thinking-2507] |
1107Added: | Synthetic Multilingual Science and Code data from DeepSeek-R1, DeepSeek-R1-0528, Qwen2.5-32B-Instruct, and Qwen3-235B-A22B, translated with Qwen2.5-32B-Instruct and Qwen2.5-14B-Instruct (Stack Exchange lineage) | Text | Undisclosed | [Stack Exchange]; [SCP-116K]; [LIMO]; [TACO]; Code Contest; Codeforces | [DeepSeek-R1]; [DeepSeek-R1-0528]; [Qwen2.5-32B-Instruct]; [Qwen3-235B-A22B] |
1108Added: | Synthetic Search Graph Walk | Text | 6,977 | [Wikidata / Wikipedia KnowledgeBase] | [MiniMaxAI/MiniMax-M2] |
1109Added: | Synthetic Agentic Diverse Domains | Text | 281,537 | [Handwritten prompts (synthetic; no external seed data used)] | [SDG model: deepseek-ai/DeepSeek-V3.2, deepseek-ai/DeepSeek-R1-0528, Qwen/Qwen3-235B-A22B-Thinking-2507, Qwen/Qwen3-32B]; [Filtering model: openai/gpt-oss-120b, Qwen/Qwen3-32B, Qwen/Qwen3-235B-A22B-Instruct-2507] |
1110Added: | Synthetic Long Context from Qwen3-235B-A22B-Instruct-2507 | Text | Undisclosed | [Long-context SFT seed blend (pre-training blend + nano-v1 post-training data)]; [Long-context SFT data: lc_nothink 256k, MRCR 200k, RULER 256k]; [AALCR seed blend: SEC Filings, CC, Wikipedia, FinePDFs, ArXiv, Pile-NIH ExPorter, BioRxiv, PMC Article, USPTO Backgrounds, peS2o, Global Regulations, CORE, Gutenberg (PG-19), DOAB CC-BY, NDLTD, Amps, StackExchange, MathPile, Numinas] | [Qwen/Qwen3-235B-A22B-Thinking-2507]; [deepseek-ai/DeepSeek-R1]; [Qwen3-30B-A3B] |
1111Added: | Synthetic Nemotron Math SFT from DeepSeek-V3.2-Speciale | Text | 1,900,553 | [Nemotron-Math-v2 (AOPS and StackExchange-math problems)] | [DeepSeek-V3.2-Speciale] |
1112Added: | Synthetic Nemotron Math TIR from DeepSeek-V3.2 | Text | 1,789,258 | [Nemotron-Math-v2 (AOPS and StackExchange-math problems)] | [DeepSeek-V3.2] |
1113Added: | Synthetic NemoCascade OCR Distillation from gpt-oss-120b | Text | 682,864 | [Nemotron-X training datasets] | [gpt-oss-120b] |
1114Added: | Synthetic CUDA 100k | Text | 93,086 | [KernelBook]; [HuggingFace Transformers]; [FlashInfer] | [gpt-oss-120b]; [DeepSeek-R1-0528] |
1115Added: | Synthetic Science MCQ and QA Diversity from GPT-OSS and Kimi-K2 | Text | 30,358 | [doubtnut]; [Pile-FreeLaw]; [Llama Nemotron Dataset]; [askfilo]; [EssentialAI/essential-web-v1.0]; [Vedantu]; [auxiliary_train]; [cdquestions.com]; [AMC 8 Problems and Solutions, AMC 10 Problems and Solution, and AIME Problems and Solutions]; [AAPT]; [ICHO-IPH0 Dataset]; [LIMO dataset (Less is More for Reasoning)] | [GPT-OSS]; [Kimi-K2] |
1116Added: | Synthetic Science HLE with Python from GPT-OSS and Kimi-K2 | Text | 85,184 | [doubtnut]; [Pile-FreeLaw]; [Llama Nemotron Dataset]; [askfilo]; [EssentialAI/essential-web-v1.0]; [Vedantu]; [auxiliary_train]; [cdquestions.com]; [AMC 8 Problems and Solutions, AMC 10 Problems and Solution, and AIME Problems and Solutions]; [AAPT]; [ICHO-IPH0 Dataset]; [LIMO dataset (Less is More for Reasoning)] | [GPT-OSS]; [Kimi-K2] |
1117Added: | Synthetic Science Search and Python from GPT-OSS and Kimi-K2 | Text | 6,179 | [doubtnut]; [Pile-FreeLaw]; [Llama Nemotron Dataset]; [askfilo]; [EssentialAI/essential-web-v1.0]; [Vedantu]; [auxiliary_train]; [cdquestions.com]; [AMC 8 Problems and Solutions, AMC 10 Problems and Solution, and AIME Problems and Solutions]; [AAPT]; [ICHO-IPH0 Dataset]; [LIMO dataset (Less is More for Reasoning)] | [GPT-OSS]; [Kimi-K2] |
1118Added: | Synthetic Science Search from GPT-OSS and Kimi-K2 | Text | 32,554 | [doubtnut]; [Pile-FreeLaw]; [Llama Nemotron Dataset]; [askfilo]; [EssentialAI/essential-web-v1.0]; [Vedantu]; [auxiliary_train]; [cdquestions.com]; [AMC 8 Problems and Solutions, AMC 10 Problems and Solution, and AIME Problems and Solutions]; [AAPT]; [ICHO-IPH0 Dataset]; [LIMO dataset (Less is More for Reasoning)] | [GPT-OSS]; [Kimi-K2] |
1119Added: | Synthetic Finance Reasoning from GPT-OSS-120B and Qwen3-235B-A22B-Instruct-2507 | Text | 326,700 | [SEC filings] | [GPT-OSS-120B, Qwen3-235B-A22B-Instruct-2507] |
1120Added: | Synthetic Science Diversity MCQ from GPT-OSS and Kimi-K2 | Text | 532,942 | [doubtnut]; [Pile-FreeLaw]; [Llama Nemotron Dataset]; [askfilo]; [EssentialAI/essential-web-v1.0]; [Vedantu]; [auxiliary_train]; [cdquestions.com]; [AMC 8 Problems and Solutions, AMC 10 Problems and Solution, and AIME Problems and Solutions]; [AAPT]; [ICHO-IPH0 Dataset]; [LIMO dataset (Less is More for Reasoning)] | [GPT-OSS]; [Kimi-K2] |
1121Added: | Synthetic Science Diversity OpenQ from GPT-OSS and Kimi-K2 | Text | 131,045 | [doubtnut]; [Pile-FreeLaw]; [Llama Nemotron Dataset]; [askfilo]; [EssentialAI/essential-web-v1.0]; [Vedantu]; [auxiliary_train]; [cdquestions.com]; [AMC 8 Problems and Solutions, AMC 10 Problems and Solution, and AIME Problems and Solutions]; [AAPT]; [ICHO-IPH0 Dataset]; [LIMO dataset (Less is More for Reasoning)] | [GPT-OSS]; [Kimi-K2] |
1122Added: | Synthetic Science Reasoning No-Tool from GPT-OSS and Kimi-K2 | Text | 2,085,600 | [doubtnut]; [Pile-FreeLaw]; [Llama Nemotron Dataset]; [askfilo]; [EssentialAI/essential-web-v1.0]; [Vedantu]; [auxiliary_train]; [cdquestions.com]; [AMC 8 Problems and Solutions, AMC 10 Problems and Solution, and AIME Problems and Solutions]; [AAPT]; [ICHO-IPH0 Dataset]; [LIMO dataset (Less is More for Reasoning)] | [GPT-OSS]; [Kimi-K2] |
1123Added: | Synthetic Text-To-SQL from gpt-oss-120b | Text | Undisclosed | [In-house Text-to-SQL data] | [gpt-oss-120b] |
1124Added: | Synthetic Tool Call Schema for RL (extended) | Text | 707,967 | [UltraTool]; [ToolEyes]; [AutoTools]; [API-Bank]; [Nemotron-Personas-USA]; [Salesforce xLAM function-calling]; [Glaive function-calling-v2]; [Agent-Ark/Toucan-1.5M] | [DeepSeek-V3.2]; [GLM-4.6]; [gpt-oss-120b]; [Kimi-K2-Instruct] |
1125Added: | Synthetic Safety from gemma-3-4b-it, Nemotron-Nano-9B-v2, and gpt-oss-120b | Text | 44,091 | [Safety SFT Data] | [google/gemma-3-4b-it]; [Nemotron-Nano-9B-v2]; [gpt-oss-120b] |
1126Added: | Synthetic Safety from DeepSeek-R1-0528, gpt-oss-120b, DeepSeek-R1-Distill-Qwen-7B, and Mixtral-8x7B-v0.1 | Text | Undisclosed | [Nemotron Content Safety Dataset V2]; [Gretel Synthetic Safety Alignment Dataset]; [RedTeam-2K]; [Malicious Tasks]; [Nemotron-Personas-USA] | [DeepSeek-R1-0528]; [gpt-oss-120b]; [DeepSeek-R1-Distill-Qwen-7B]; [Qwen3-30B-A3B-Thinking-2507]; [Qwen3-235B-A22B-Instruct-2507]; [Mixtral-8x7B-v0.1] |
1127Added: | Synthetic Tool Calling from Qwen3-235B-A22B-Thinking-2507 and Qwen3-Next-80B-A3B-Thinking | Text | Undisclosed | [ToolBench]; [glaive-function-calling-v2]; [APIGen Function-Calling]; [Nemotron-Personas-USA] | [Qwen3-235B-A22B-Thinking-2507]; [Qwen3-Next-80B-A3B-Thinking] |
1128Added: | Synthetic Chat from gpt-oss-120b, Mixtral-8x22B-Instruct-v0.1, Qwen3-235B-A22B-Instruct-2507, and Qwen3-235B-A22B-Thinking-2507 | Text | Undisclosed | [C4]; [LMSYS-Chat-1M]; [ShareGPT]; [GSM8K]; [PRM800K]; [FinQA]; [WikiTableQuestions]; [Riddles]; [glaive-function-calling-v2]; [SciBench]; [tigerbot-kaggle-leetcodesolutions-en-2k]; [OpenBookQA]; [Advanced Reasoning Benchmark]; Software Heritage; [Khan Academy Math Keywords]; [WildChat-1M]; [Nemotron-Personas-USA] | [gpt-oss-120b]; [Mixtral-8x22B-Instruct-v0.1]; [Qwen3-235B-A22B-Instruct-2507]; [Qwen3-235B-A22B-Thinking-2507] |
1129Added: | Synthetic Tool Use Interactive Agent from gpt-oss-120b, DeepSeek-R1-0528, Qwen3-32B, and Qwen3-235B-A22B-Thinking-2507 | Text | Undisclosed | NVIDIA Internal | [gpt-oss-120b]; [DeepSeek-R1-0528]; [Qwen3-32B]; [Qwen3-235B-A22B-Thinking-2507] |
1130Added: | Synthetic DocFinQA and SWE-smith from Qwen3-Coder-480B-A35B-Instruct and Kimi-K2-Thinking | Text | Undisclosed | [DocFinQA]; [SWE-smith] | [Qwen3-Coder-480B-A35B-Instruct]; [Kimi-K2-Thinking] |
1131Added: | Synthetic SWE-Gym from Qwen3-Coder-480B-A35B-Instruct | Text | Undisclosed | [SWE-Gym] | [Qwen3-Coder-480B-A35B-Instruct] |
1132Added: | Synthetic SWE-Gym and R2E-Gym-Subset from Qwen3-Coder-480B-A35B-Instruct | Text | Undisclosed | [SWE-Gym]; [R2E-Gym-Subset] | [Qwen3-Coder-480B-A35B-Instruct] |
1133Added: | Synthetic SWE-Gym and R2E-Gym-Subset from DeepSeek-R1-0528 | Text | Undisclosed | [SWE-Gym]; [R2E-Gym-Subset] | [DeepSeek-R1-0528] |
1134Added: | Synthetic HelpSteer, LMSYS-Chat-1M, and Nemotron-Personas-USA from gpt-oss-120b, Qwen3-235B-A22B-Instruct-2507, and Qwen3-235B-A22B-Thinking-2507 | Text | Undisclosed | [HelpSteer2]; [HelpSteer3]; [LMSYS-Chat-1M]; [Nemotron-Personas-USA] | [gpt-oss-120b]; [Qwen3-235B-A22B-Instruct-2507]; [Qwen3-235B-A22B-Thinking-2507] |
1135Added: | Synthetic Nemotron-Personas-USA from gpt-oss-120b and Qwen3-8B | Text | Undisclosed | [Nemotron-Personas-USA] | [gpt-oss-120b]; [Qwen3-8B] |
1136Added: | Vendor Terminal Bench-like Tasks (Droid) | Text | Undisclosed | [Droid Harness Pivot vendor data] | Undisclosed |
1137Added: | Synthetic BabyVisionQA Reasoning — Combined SFT | Text and images | 135,207 records | Procedurally generated BabyVision-style visual-reasoning images | Qwen3.5-397B-A17B-FP8 |
1138Added: | Synthetic BabyVision Tool-Calling SFT, Relative-Path-Corrected Variant | Text and images | 81,494 records | NVIDIA internal BabyVision tool-calling prompts and media | Qwen3.5-397B-A17B-FP8; Kimi-K2.6 |
1139Added: | Synthetic Chinese OCR v5, NMH5R | Text and images | 29,108 records | Webster's Unabridged Dictionary; rendered Chinese text mixed with English words | Undisclosed; synthetic text rendering is described |
1140Added: | Synthetic Chinese OCR v5, Augmented and Cleaned | Text and images | 28,576 records | Webster's Unabridged Dictionary; augmented synthetic Chinese OCR images | Undisclosed; synthetic text rendering is described |
1141Added: | Synthetic Multimodal Safety, Energon Format | Text and images | 22,560 records | NVIDIA Safety-team text prompts and safe responses | Edify (image generation) |
1142Added: | Synthetic Multimodal Safety, NMH5R and Safety-Filtered | Text and images | 22,541 records | Multimodal safety records with Edify-generated images | Edify (image generation) |
1143Added: | Synthetic ASCII OCR v5, NMH5R | Text and images | 14,533 records | Webster's Unabridged Dictionary; synthetic ASCII renderings | Undisclosed; synthetic text rendering is described |
1144Added: | Synthetic English OCR v5, NMH5R | Text and images | 14,525 records | Webster's Unabridged Dictionary; synthetic English renderings | Undisclosed; synthetic text rendering is described |
1145Added:
1146Added: ## Language Distribution in Post-Training
1147Added:
1148Added: For our post-training recipe, we focused on the following languages in addition to English: French, German, Italian, Japanese, Spanish, and Chinese. Those languages were represented in the form of multilingual reasoning and translation tasks.
1149Added:
1150Added: </details>
1151Added:
1152Added: ### Additional Training Data
1153Added:
1154Added: | Data | Composition and Purpose |
1155Added: |:---|:---|
1156Added: | Indic continued pre-training | 100B tokens: 10B selected Indic tokens and 90B tokens from the preceding blend. |
1157Added: | Software-engineering mid-training | 67B tokens: whole repositories (20%), issue–pull-request pairs (41%), commit diffs (3%), build and CI logs (1%), agent traces (10%), pre-training replay (20%), and long-context data (5%). Sources are decontaminated against SWE-bench and Terminal-Bench repositories. |
1158Added: | Long-context pre-training | A 35B-token extension to 1M context, followed by a 9B-token long-context recovery stage. |
1159Added: | Vision-language data | Image and video data from the Nemotron 3 Nano Omni training corpus, including visual question answering, charts, tables, OCR, multi-page documents, visual grounding, and video understanding. |
1160Added:
1161Added: | Post-Training Data | Composition and Purpose |
1162Added: |:---|:---|
1163Added: | Additional synthetic vision data | Chart understanding, grounded perception, multimodal reasoning, and visual tool-use trajectories, including data generated with Qwen3.5 and Kimi models. |
1164Added: | Reasoning trajectories | Mathematics and STEM responses generated with Kimi K3; mathematical proofs generated with DeepSeek V4 Pro; competitive-programming trajectories generated with GLM-5.2. |
1165Added: | Chat and safety | Refreshed chat responses from Qwen, Kimi, and Gemma models, with additional safety data. |
1166Added: | Long-context supervised data | 512K-context data, synthetic graph reasoning and transduction tasks, long-horizon search and coding trajectories, and documents containing up to hundreds of pages. |
1167Added: | Long-document translation | Chunked translations of PG19 and FinePDFs-Edu documents generated with DeepSeek V4 Flash. |
1168Added:
1169Added: ## Testing Datasets
1170Added:
1171Added: **Data Collection Method:** Hybrid: automated, manually-collected, and synthetic
1172Added: **Labeling Method:** Hybrid: automated, manually-labeled, and synthetic
1173Added: **Properties:** Standard benchmarks and task-specific test suites covering reasoning, coding, tool use, instruction following, long context, and visual understanding.
1174Added:
1175Added: ## Evaluation Datasets
1176Added:
1177Added: **Data Collection Method:** Hybrid: automated, manually-collected, and synthetic
1178Added: **Labeling Method:** Hybrid: automated, manually-labeled, and synthetic
1179Added: **Properties:** Standard benchmarks and task-specific test suites covering reasoning, coding, tool use, instruction following, long context, and visual understanding.
1180Added:
1181Added: ## Inference
1182Added:
1183Added: * **Acceleration Engine:** PyTorch
1184Added:
1185Added: * **Test Hardware:**
1186Added: * NVIDIA Hopper
1187Added: * H100
1188Added: * H200
1189Added: * NVIDIA Grace Blackwell
1190Added: * GB200
1191Added: * GB300
1192Added: * NVIDIA Blackwell
1193Added: * B200
1194Added: * B300
1195Added: * NVIDIA DGX Spark
1196Added: * NVIDIA RTX PRO 6000
1197Added:
1198Added:
1199Added: The deployment examples above provide configurations for NVIDIA Hopper and Blackwell systems. Choose the precision, context length, and concurrency appropriate for the application and available memory.
1200Added:
1201Added: ## Ethical Considerations
1202Added:
1203Added: 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.
1204Added:
1205Added: We advise against circumvention of any provided safety guardrails contained in the Model without a substantially similar guardrail appropriate for your use case. For more details: [Safety](./safety.md) and [Explainability](./explainability.md) subcards. For more detailed information on ethical considerations for this model, please see the Model Card++ [Bias](./bias.md), and [Privacy](./privacy.md) subcards.
1206Added:
1207Added: Please report model quality, risk, security vulnerabilities or NVIDIA AI Concerns [here](https://www.nvidia.com/en-us/support/submit-security-vulnerability/).(no newline at end of file)

model-00045-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 105 MB

model-00046-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 1.5 GB

model-00047-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 105 MB

model-00048-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 34 MB

model-00049-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 1.5 GB

model-00050-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 105 MB

model-00051-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 1.5 GB

model-00052-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 105 MB

model-00053-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 1.5 GB

model-00054-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 105 MB

model-00055-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 1.5 GB

model-00056-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 105 MB

model-00057-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 1.5 GB

model-00058-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 105 MB

model-00059-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 34 MB

model-00060-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 1.5 GB

model-00061-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 105 MB

model-00062-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 1.5 GB

model-00064-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 1.5 GB

model-00065-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 105 MB

model-00066-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 1.5 GB

model-00067-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 105 MB

model-00068-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 1.5 GB

model-00069-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 105 MB

model-00070-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 34 MB

model-00071-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 1.5 GB

model-00072-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 105 MB

model-00073-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 1.5 GB

model-00074-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 105 MB

model-00075-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 1.5 GB

model-00076-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 105 MB

model-00077-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 1.5 GB

model-00078-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 105 MB

model-00079-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 34 MB

model-00083-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 105 MB

model-00084-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 1.5 GB

model-00085-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 105 MB

model-00086-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 1.5 GB

model-00088-of-00088.safetensors

Added

Large (LFS-tracked) file content changed — 3.7 GB

modeling_nemotron_h_omni.py

Added+484 -0
Lines 0 to 0 become lines 1 to 484
@@ -0,0 +1,484 @@
1Added: # 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨
2Added: # This file was automatically generated from src/transformers/models/nemotron_h_omni/modular_nemotron_h_omni.py.
3Added: # Do NOT edit this file manually as any edits will be overwritten by the generation of
4Added: # the file from the modular. If any change should be done, please apply the change to the
5Added: # modular_nemotron_h_omni.py file directly. One of our CI enforces this.
6Added: # 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨
7Added: # Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved.
8Added: #
9Added: # Licensed under the Apache License, Version 2.0 (the "License");
10Added: # you may not use this file except in compliance with the License.
11Added: # You may obtain a copy of the License at
12Added: #
13Added: # http://www.apache.org/licenses/LICENSE-2.0
14Added: #
15Added: # Unless required by applicable law or agreed to in writing, software
16Added: # distributed under the License is distributed on an "AS IS" BASIS,
17Added: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18Added: # See the License for the specific language governing permissions and
19Added: # limitations under the License.
20Added:
21Added: import warnings
22Added:
23Added: import torch
24Added: from torch import nn
25Added: from torch.nn import CrossEntropyLoss
26Added: from transformers.activations import ACT2FN
27Added: from transformers.generation import GenerationMixin
28Added: from transformers.integrations import use_kernel_forward_from_hub
29Added: from transformers.modeling_outputs import CausalLMOutputWithPast
30Added: from transformers.modeling_utils import PreTrainedModel
31Added: from transformers.conversion_mapping import register_checkpoint_conversion_mapping
32Added: from transformers.core_model_loading import WeightRenaming
33Added: from transformers.models.auto import CONFIG_MAPPING, FEATURE_EXTRACTOR_MAPPING, AutoModel, AutoModelForCausalLM
34Added:
35Added: from .configuration_nemotron_h_omni import NemotronH_Omni_Reasoning_V3_Config
36Added:
37Added: # Transformers 5.8 only copies direct sibling imports into its dynamic-module cache.
38Added: from .configuration_radio import RadioConfig as _RadioConfig # noqa: F401
39Added: from .modeling_radio import RadioModel
40Added:
41Added:
42Added: def register_nemotron_h_omni_conversion_mapping():
43Added: """
44Added: Register the conversion mapping for the Omni composition level (projector and sound prefixes).
45Added:
46Added: See `register_radio_conversion_mapping` in `modeling_radio.py` for why this lives in the
47Added: remote code rather than in the global `conversion_mapping.py`. The vision mapping is registered
48Added: there and the `nemotron_h` mapping ships with Transformers itself (upstream since v5.3.0); this
49Added: entry covers the keys owned by the top-level model.
50Added: """
51Added:
52Added: register_checkpoint_conversion_mapping(
53Added: "nemotron_h_omni",
54Added: [
55Added: WeightRenaming(r"^mlp1\.0\.", r"vision_projector\.mlp1\.norm\."),
56Added: WeightRenaming(r"^mlp1\.1\.", r"vision_projector\.mlp1\.linear1\."),
57Added: WeightRenaming(r"^mlp1\.3\.", r"vision_projector\.mlp1\.linear2\."),
58Added: WeightRenaming(r"^sound_encoder\.", r"sound_projector\.sound_encoder\."),
59Added: WeightRenaming(r"^sound_projection\.", r"sound_projector\.sound_projection\."),
60Added: ],
61Added: overwrite=True,
62Added: )
63Added:
64Added:
65Added: @use_kernel_forward_from_hub("RMSNorm")
66Added: class NemotronH_Omni_RMSNorm(nn.Module):
67Added: def __init__(self, hidden_size, eps: float = 1e-6) -> None:
68Added: """
69Added: NemotronHOmniRMSNorm is equivalent to T5LayerNorm
70Added: """
71Added: super().__init__()
72Added: self.weight = nn.Parameter(torch.ones(hidden_size))
73Added: self.variance_epsilon = eps
74Added:
75Added: def forward(self, hidden_states) -> torch.Tensor:
76Added: input_dtype = hidden_states.dtype
77Added: hidden_states = hidden_states.to(torch.float32)
78Added: variance = hidden_states.pow(2).mean(-1, keepdim=True)
79Added: hidden_states = hidden_states * torch.rsqrt(variance + self.variance_epsilon)
80Added: return (self.weight.to(torch.float32) * hidden_states).to(input_dtype)
81Added:
82Added: def extra_repr(self):
83Added: return f"{tuple(self.weight.shape)}, eps={self.variance_epsilon}"
84Added:
85Added:
86Added: class NemotronH_Omni_Reasoning_V3SoundEncoder(nn.Module):
87Added: """Thin wrapper exposing the Parakeet encoder's `last_hidden_state` for audio embedding."""
88Added:
89Added: def __init__(self, config):
90Added: super().__init__()
91Added: self.config = config
92Added: self.encoder = AutoModel.from_config(config)
93Added:
94Added: def forward(self, input_features: torch.Tensor, attention_mask: torch.Tensor | None = None) -> torch.Tensor:
95Added: return self.encoder(input_features=input_features, attention_mask=attention_mask).last_hidden_state
96Added:
97Added: @property
98Added: def hidden_size(self) -> int:
99Added: return self.config.hidden_size
100Added:
101Added:
102Added: class NemotronH_Omni_Reasoning_V3SoundProjector(nn.Module):
103Added: """Single-forward audio pipeline: feature-extract raw clip(s), encode with Parakeet and project,
104Added: returning flattened LLM-space embeddings ready to scatter onto `<audio>` positions.
105Added: """
106Added:
107Added: def __init__(self, config, llm_hidden_size: int):
108Added: super().__init__()
109Added: feature_extractor_class = FEATURE_EXTRACTOR_MAPPING[CONFIG_MAPPING["parakeet_encoder"]]
110Added: self.feature_extractor = feature_extractor_class(
111Added: sampling_rate=getattr(config, "sampling_rate", 16000),
112Added: feature_size=config.num_mel_bins,
113Added: )
114Added: self.sound_encoder = NemotronH_Omni_Reasoning_V3SoundEncoder(config)
115Added: self.sound_projection = NemotronH_Omni_Reasoning_V3MLP(
116Added: config.hidden_size,
117Added: config.projection_hidden_size,
118Added: llm_hidden_size,
119Added: bias=config.projection_bias,
120Added: )
121Added:
122Added: def forward(self, sound_clips) -> torch.Tensor:
123Added: weight = self.sound_encoder.encoder.subsampling.linear.weight
124Added: device, dtype = weight.device, weight.dtype
125Added:
126Added: if isinstance(sound_clips, torch.Tensor) and sound_clips.dim() >= 3:
127Added: input_features = sound_clips.to(device=device, dtype=dtype)
128Added: attention_mask = None
129Added: else:
130Added: # `.tolist()` keeps a raw waveform tensor within the feature extractor's accepted input
131Added: # types (`list[float]` / `list[list[float]]`) without pulling in numpy here.
132Added: raw_speech = sound_clips.tolist() if isinstance(sound_clips, torch.Tensor) else sound_clips
133Added: audio_inputs = self.feature_extractor(
134Added: raw_speech, sampling_rate=self.feature_extractor.sampling_rate, return_tensors="pt"
135Added: )
136Added: input_features = audio_inputs.input_features.to(device=device, dtype=dtype)
137Added: attention_mask = audio_inputs.get("attention_mask", None)
138Added: if attention_mask is not None:
139Added: attention_mask = attention_mask.to(device=device)
140Added:
141Added: sound_embeds = self.sound_projection(self.sound_encoder(input_features, attention_mask).to(torch.bfloat16))
142Added:
143Added: # Multiple clips are batch-padded; keep only each clip's real (subsampled) length before flattening.
144Added: if sound_embeds.dim() == 3 and sound_embeds.shape[0] > 1 and attention_mask is not None:
145Added: lengths = self.sound_encoder.encoder._get_subsampling_output_length(attention_mask.sum(-1) + 1)
146Added: return torch.cat([sound_embeds[i, : int(n)] for i, n in enumerate(lengths.tolist())], dim=0)
147Added: return sound_embeds.reshape(-1, sound_embeds.shape[-1])
148Added:
149Added:
150Added: class NemotronH_Omni_Reasoning_V3MLP(nn.Module):
151Added: """Projector MLP: RMSNorm -> linear1 -> ReLU² -> linear2 (NemotronHMLP-style).
152Added:
153Added: Used both for the vision-to-LLM projector (`mlp1`) and the sound-to-LLM projection. The
154Added: `linear1`/`linear2` submodule names match the Megatron sound-projection checkpoint structure
155Added: (`sound_projection.{norm,linear1,linear2}.weight`); pass `bias=True` for the sound projection.
156Added: """
157Added:
158Added: def __init__(
159Added: self, in_features: int, hidden_features: int, out_features: int, bias: bool = False, eps: float = 1e-5
160Added: ):
161Added: super().__init__()
162Added: self.norm = NemotronH_Omni_RMSNorm(in_features, eps=eps)
163Added: self.linear1 = nn.Linear(in_features, hidden_features, bias=bias)
164Added: self.linear2 = nn.Linear(hidden_features, out_features, bias=bias)
165Added: self.act_fn = ACT2FN["relu2"]
166Added:
167Added: def forward(self, x):
168Added: return self.linear2(self.act_fn(self.linear1(self.norm(x))))
169Added:
170Added:
171Added: class NemotronH_Omni_Reasoning_V3VisionProjector(nn.Module):
172Added: """Single-forward vision pipeline: run the vision tower (image, or temporally-packed video) through
173Added: pixel-shuffle downsampling and the projection MLP (`mlp1`) into LLM-space embeddings. The
174Added: weight-bearing `vision_model` is passed in so its checkpoint keys stay at the top level.
175Added: """
176Added:
177Added: def __init__(self, config):
178Added: super().__init__()
179Added: self.downsample_ratio = config.downsample_ratio
180Added: self.video_temporal_patch_dim = config.video_temporal_patch_size
181Added: self.ps_version = config.ps_version
182Added: self.mlp1 = NemotronH_Omni_Reasoning_V3MLP(
183Added: config.vit_hidden_size * int(1 / config.downsample_ratio) ** 2,
184Added: config.projector_hidden_size,
185Added: config.llm_config.hidden_size,
186Added: )
187Added: # Mirror Megatron training behavior: when the language model has MTP,
188Added: # Megatron-Core's TransformerBlock places a final LayerNorm with the last
189Added: # layer of every block built from the (shared) config -- including the
190Added: # vision tower, whose config inherits `mtp_num_layers` from the language
191Added: # model. The vision tower output is therefore layer-normalized before the
192Added: # projector. LayerNorm is applied per token, so normalizing the RADIO
193Added: # features here is exactly equivalent to Megatron's block-internal
194Added: # placement before class-token stripping.
195Added: if (getattr(config.llm_config, "num_nextn_predict_layers", 0) or 0) > 0:
196Added: self.vision_final_layernorm = nn.LayerNorm(
197Added: config.vit_hidden_size, eps=config.vision_config.layer_norm_eps
198Added: )
199Added: else:
200Added: self.vision_final_layernorm = None
201Added:
202Added: def pixel_shuffle(self, x, scale_factor=0.5):
203Added: n, w, h, c = x.size()
204Added: x = x.view(n, w, int(h * scale_factor), int(c / scale_factor))
205Added: x = x.permute(0, 2, 1, 3).contiguous()
206Added: x = x.view(
207Added: n,
208Added: int(h * scale_factor),
209Added: int(w * scale_factor),
210Added: int(c / (scale_factor * scale_factor)),
211Added: )
212Added: if self.ps_version == "v1":
213Added: warnings.warn(
214Added: "In ps_version 'v1', the height and width have not been swapped back, "
215Added: "which results in a transposed image."
216Added: )
217Added: else:
218Added: x = x.permute(0, 2, 1, 3).contiguous()
219Added: return x
220Added:
221Added: def _project(self, vit_embeds, h, w):
222Added: if self.vision_final_layernorm is not None:
223Added: vit_embeds = self.vision_final_layernorm(vit_embeds)
224Added: vit_embeds = vit_embeds.reshape(vit_embeds.shape[0], h, w, -1)
225Added: vit_embeds = self.pixel_shuffle(vit_embeds, scale_factor=self.downsample_ratio)
226Added: vit_embeds = vit_embeds.reshape(vit_embeds.shape[0], -1, vit_embeds.shape[-1])
227Added: return self.mlp1(vit_embeds)
228Added:
229Added: def forward(self, pixel_values, vision_model):
230Added: if isinstance(pixel_values, (list, tuple)):
231Added: return torch.cat([self.forward(pv, vision_model) for pv in pixel_values], dim=0)
232Added: pixel_values = pixel_values.to(dtype=vision_model.config.torch_dtype)
233Added: vit_embeds = vision_model(pixel_values).features
234Added: _, _, H, W = pixel_values.shape
235Added: patch_size = vision_model.patch_size
236Added: return self._project(vit_embeds, H // patch_size, W // patch_size)
237Added:
238Added: def forward_video(self, pixel_values_videos, vision_model):
239Added: pixel_values_videos = pixel_values_videos.to(dtype=vision_model.config.torch_dtype)
240Added: T = self.video_temporal_patch_dim
241Added: N, C, H, W = pixel_values_videos.shape
242Added:
243Added: if N % T != 0:
244Added: pad = pixel_values_videos[-1:].expand(T - (N % T), -1, -1, -1)
245Added: pixel_values_videos = torch.cat([pixel_values_videos, pad], dim=0)
246Added: N = pixel_values_videos.shape[0]
247Added: num_groups = N // T
248Added:
249Added: x = pixel_values_videos.reshape(num_groups, T * C, H, W)
250Added: vit_embeds = vision_model(x, use_video_patch_projection=True).features
251Added: patch_size = vision_model.patch_size
252Added: return self._project(vit_embeds, H // patch_size, W // patch_size)
253Added:
254Added:
255Added: def compute_retention_mask(
256Added: *,
257Added: video_embeds: torch.FloatTensor,
258Added: thw: torch.LongTensor,
259Added: spatial_merge_size: int,
260Added: q: float,
261Added: ):
262Added: """
263Added: Computes the retention mask for video embeddings based on the grid dimensions.
264Added:
265Added: Args:
266Added: video_embeds (`torch.FloatTensor` of shape `(T * H * W, hidden_size)`):
267Added: The video embeddings to compute the retention mask for.
268Added: thw (`torch.LongTensor` of shape `(3)`):
269Added: The temporal, height and width of feature shape of each video in LLM.
270Added: spatial_merge_size (`int`): The spatial merge size of the video embeddings.
271Added: If embeddings will be downsampled *later*, this should be the downsampling factor.
272Added: q: (`float`): Pruning rate factor, indicating number of tokens to prune (remove)
273Added:
274Added: Returns:
275Added: `torch.Tensor`: The retention mask for the video embeddings (T * H * W).
276Added: 1 for tokens to keep, 0 for tokens to prune.
277Added: """
278Added: T, H, W = thw
279Added:
280Added: # Use reshape instead of einops to avoid graph breaks
281Added: video_embeds = video_embeds.reshape(T, H // spatial_merge_size, W // spatial_merge_size, video_embeds.size(-1))
282Added:
283Added: # Core EVS
284Added: similarity = torch.nn.functional.cosine_similarity(video_embeds[1:, ...], video_embeds[:-1, ...], dim=-1)
285Added: dissimilarity = 1 - similarity
286Added:
287Added: # Always ensure we include all tokens from the first frame
288Added: dissimilarity = torch.cat([255 * torch.ones_like(video_embeds[:1, :, :, 0]), dissimilarity], dim=0)
289Added: dissimilarity_flat = dissimilarity.view(-1)
290Added:
291Added: min_num_tokens = (H // spatial_merge_size) * (W // spatial_merge_size) # a single frame
292Added: evs_num_tokens = int(T * min_num_tokens * (1 - q))
293Added: num_tokens_to_keep = max(min_num_tokens, evs_num_tokens)
294Added:
295Added: order = torch.argsort(dissimilarity_flat, dim=-1, descending=True, stable=True)
296Added: topk_indices = order[:num_tokens_to_keep]
297Added:
298Added: retention_mask = torch.zeros_like(dissimilarity_flat, dtype=torch.bool)
299Added: retention_mask[topk_indices] = True
300Added: retention_mask = retention_mask.reshape(dissimilarity.size())
301Added:
302Added: mask = retention_mask.view(-1) # "T H W -> (T H W)"
303Added: return mask
304Added:
305Added:
306Added: class NemotronH_Omni_Reasoning_V3(PreTrainedModel, GenerationMixin):
307Added: config_class = NemotronH_Omni_Reasoning_V3_Config
308Added: main_input_name = "input_ids"
309Added: _supports_flash_attn_2 = True
310Added: _supports_flash_attn = True
311Added: _no_split_modules = ["NemotronHBlock"]
312Added: # Released checkpoints carry multi-token-prediction weights (no module here builds them) and
313Added: # input-conditioner statistics (the vision preprocessor is external in this composition).
314Added: _keys_to_ignore_on_load_unexpected = [r"mtp\.", r"input_conditioner\."]
315Added:
316Added: def __init__(self, config: NemotronH_Omni_Reasoning_V3_Config):
317Added: super().__init__(config)
318Added: register_nemotron_h_omni_conversion_mapping()
319Added:
320Added: image_size = config.force_image_size
321Added: patch_size = config.patch_size
322Added: self.patch_size = patch_size
323Added: self.template = config.template
324Added: self.num_image_token = int((image_size // patch_size) ** 2 * (config.downsample_ratio**2))
325Added: self.downsample_ratio = config.downsample_ratio
326Added: self.image_tag_type = config.image_tag_type
327Added: self.img_context_token_id = config.img_context_token_id
328Added: self.video_context_token_id = config.video_context_token_id
329Added:
330Added: self.language_model = AutoModelForCausalLM.from_config(config.llm_config)
331Added: self.vision_model = RadioModel(config.vision_config)
332Added: self.vision_model.make_preprocessor_external()
333Added:
334Added: self.drop_vision_class_token = True
335Added:
336Added: llm_hidden_size = config.llm_config.hidden_size
337Added:
338Added: self.video_pruning_rate = config.video_pruning_rate
339Added:
340Added: self.vision_projector = NemotronH_Omni_Reasoning_V3VisionProjector(config)
341Added:
342Added: self.sound_context_token_id = config.sound_context_token_id
343Added: if config.sound_config is not None:
344Added: self.sound_projector = NemotronH_Omni_Reasoning_V3SoundProjector(config.sound_config, llm_hidden_size)
345Added: else:
346Added: self.sound_projector = None
347Added:
348Added: self.all_tied_weights_keys = {}
349Added:
350Added: self.post_init()
351Added:
352Added: def get_input_embeddings(self):
353Added: return self.language_model.get_input_embeddings()
354Added:
355Added: def set_input_embeddings(self, value):
356Added: self.language_model.set_input_embeddings(value)
357Added:
358Added: def forward(
359Added: self,
360Added: input_ids: torch.LongTensor = None,
361Added: pixel_values: torch.FloatTensor | None = None,
362Added: pixel_values_videos: torch.FloatTensor | None = None,
363Added: sound_clips: torch.FloatTensor | None = None,
364Added: attention_mask: torch.Tensor | None = None,
365Added: position_ids: torch.LongTensor | None = None,
366Added: image_flags: torch.LongTensor | None = None,
367Added: past_key_values: list[torch.FloatTensor] | None = None,
368Added: labels: torch.LongTensor | None = None,
369Added: inputs_embeds=None,
370Added: use_cache: bool | None = None,
371Added: output_attentions: bool | None = None,
372Added: output_hidden_states: bool | None = None,
373Added: return_dict: bool | None = None,
374Added: **kwargs,
375Added: ) -> CausalLMOutputWithPast:
376Added: if inputs_embeds is None:
377Added: inputs_embeds = self.get_input_embeddings()(input_ids)
378Added:
379Added: # Multimodal merges need `input_ids` to locate the placeholder tokens; skip them on the
380Added: # cached decode steps and the inputs-embeds-only path where `input_ids` is absent.
381Added: if pixel_values is not None and input_ids is not None:
382Added: image_embeds = self.vision_projector(pixel_values, self.vision_model)
383Added: if image_flags is not None:
384Added: image_embeds = image_embeds[image_flags.squeeze(-1) == 1]
385Added: image_embeds = image_embeds.to(inputs_embeds.device, inputs_embeds.dtype)
386Added: image_mask = (input_ids == self.img_context_token_id).unsqueeze(-1).expand_as(inputs_embeds)
387Added: inputs_embeds = inputs_embeds.masked_scatter(image_mask.to(inputs_embeds.device), image_embeds)
388Added:
389Added: if pixel_values_videos is not None and input_ids is not None:
390Added: video_embeds = self.vision_projector.forward_video(pixel_values_videos, self.vision_model)
391Added: video_embeds = video_embeds.to(inputs_embeds.device, inputs_embeds.dtype)
392Added: video_mask = (input_ids == self.img_context_token_id).unsqueeze(-1).expand_as(inputs_embeds)
393Added: inputs_embeds = inputs_embeds.masked_scatter(video_mask.to(inputs_embeds.device), video_embeds)
394Added:
395Added: if self.video_pruning_rate > 0:
396Added: h = w = int(video_embeds.shape[1] ** 0.5)
397Added: evs_mask = compute_retention_mask(
398Added: video_embeds=video_embeds,
399Added: thw=(video_embeds.shape[0], h, w),
400Added: spatial_merge_size=1,
401Added: q=self.video_pruning_rate,
402Added: )
403Added: retention_mask = torch.ones_like(input_ids, dtype=torch.bool)
404Added: retention_mask[input_ids == self.img_context_token_id] = evs_mask.view(-1)
405Added: inputs_embeds = inputs_embeds[retention_mask].unsqueeze(0)
406Added: if attention_mask is not None:
407Added: attention_mask = attention_mask[retention_mask].unsqueeze(0)
408Added: input_ids = input_ids[retention_mask].unsqueeze(0)
409Added:
410Added: if sound_clips is not None and self.sound_projector is not None and input_ids is not None:
411Added: sound_embeds = self.sound_projector(sound_clips)
412Added: sound_embeds = sound_embeds.to(inputs_embeds.device, inputs_embeds.dtype)
413Added: sound_mask = (input_ids == self.sound_context_token_id).unsqueeze(-1).expand_as(inputs_embeds)
414Added: inputs_embeds = inputs_embeds.masked_scatter(sound_mask.to(inputs_embeds.device), sound_embeds)
415Added:
416Added: outputs = self.language_model(
417Added: inputs_embeds=inputs_embeds,
418Added: attention_mask=attention_mask,
419Added: position_ids=position_ids,
420Added: past_key_values=past_key_values,
421Added: use_cache=use_cache,
422Added: output_attentions=output_attentions,
423Added: output_hidden_states=output_hidden_states,
424Added: return_dict=True,
425Added: )
426Added: logits = outputs.logits
427Added:
428Added: loss = None
429Added: if labels is not None:
430Added: shift_logits = logits[..., :-1, :].contiguous()
431Added: shift_labels = labels[..., 1:].contiguous()
432Added: loss_fct = CrossEntropyLoss()
433Added: shift_logits = shift_logits.view(-1, self.language_model.config.vocab_size)
434Added: shift_labels = shift_labels.view(-1)
435Added: shift_labels = shift_labels.to(shift_logits.device)
436Added: loss = loss_fct(shift_logits, shift_labels)
437Added:
438Added: return CausalLMOutputWithPast(
439Added: loss=loss,
440Added: logits=logits,
441Added: past_key_values=outputs.past_key_values,
442Added: hidden_states=outputs.hidden_states,
443Added: attentions=outputs.attentions,
444Added: )
445Added:
446Added: def prepare_inputs_for_generation(
447Added: self,
448Added: input_ids,
449Added: past_key_values=None,
450Added: attention_mask=None,
451Added: inputs_embeds=None,
452Added: pixel_values=None,
453Added: pixel_values_videos=None,
454Added: sound_clips=None,
455Added: image_flags=None,
456Added: use_cache=True,
457Added: is_first_iteration=False,
458Added: **kwargs,
459Added: ):
460Added: model_inputs = super().prepare_inputs_for_generation(
461Added: input_ids,
462Added: past_key_values=past_key_values,
463Added: attention_mask=attention_mask,
464Added: inputs_embeds=inputs_embeds,
465Added: pixel_values=pixel_values,
466Added: pixel_values_videos=pixel_values_videos,
467Added: sound_clips=sound_clips,
468Added: image_flags=image_flags,
469Added: use_cache=use_cache,
470Added: is_first_iteration=is_first_iteration,
471Added: **kwargs,
472Added: )
473Added:
474Added: # The multimodal inputs are only merged on the prefill step; drop them once the cache is warm.
475Added: if not is_first_iteration and use_cache:
476Added: model_inputs["pixel_values"] = None
477Added: model_inputs["pixel_values_videos"] = None
478Added: model_inputs["sound_clips"] = None
479Added: model_inputs["image_flags"] = None
480Added:
481Added: return model_inputs
482Added:
483Added:
484Added: __all__ = ["NemotronH_Omni_Reasoning_V3"]

modeling_radio.py

Added+512 -0
Lines 0 to 0 become lines 1 to 512
@@ -0,0 +1,512 @@
1Added: # 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨
2Added: # This file was automatically generated from src/transformers/models/radio/modular_radio.py.
3Added: # Do NOT edit this file manually as any edits will be overwritten by the generation of
4Added: # the file from the modular. If any change should be done, please apply the change to the
5Added: # modular_radio.py file directly. One of our CI enforces this.
6Added: # 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨
7Added: # Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved.
8Added: #
9Added: # Licensed under the Apache License, Version 2.0 (the "License");
10Added: # you may not use this file except in compliance with the License.
11Added: # You may obtain a copy of the License at
12Added: #
13Added: # http://www.apache.org/licenses/LICENSE-2.0
14Added: #
15Added: # Unless required by applicable law or agreed to in writing, software
16Added: # distributed under the License is distributed on an "AS IS" BASIS,
17Added: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18Added: # See the License for the specific language governing permissions and
19Added: # limitations under the License.
20Added:
21Added: from collections.abc import Callable
22Added: from dataclasses import dataclass
23Added:
24Added: import torch
25Added: import torch.nn.functional as F
26Added: from torch import nn
27Added: from transformers import initialization as init
28Added: from transformers.activations import ACT2FN
29Added: from transformers.modeling_layers import GradientCheckpointingLayer
30Added: from transformers.modeling_outputs import BaseModelOutput, ModelOutput
31Added: from transformers.modeling_utils import ALL_ATTENTION_FUNCTIONS, PreTrainedModel
32Added: from transformers.processing_utils import Unpack
33Added: from transformers.utils import TransformersKwargs, auto_docstring, can_return_tuple
34Added: from transformers.utils.generic import merge_with_config_defaults
35Added: from transformers.utils.output_capturing import capture_outputs
36Added:
37Added: from transformers.conversion_mapping import register_checkpoint_conversion_mapping
38Added: from transformers.core_model_loading import Chunk, WeightConverter, WeightRenaming
39Added:
40Added: from .configuration_radio import RadioConfig
41Added:
42Added:
43Added: def register_radio_conversion_mapping():
44Added: """
45Added: Register the conversion mapping for RADIO vision models.
46Added:
47Added: Note: This is done here instead of in the global `conversion_mapping.py` because Transformers
48Added: 5.8 predates the radio architecture and therefore ships no mapping for it. The language model
49Added: needs no equivalent: `nemotron_h` has been upstream since v5.3.0, including its conversion
50Added: mapping. The mapping rewrites released C-RADIO checkpoints (timm-style
51Added: `radio_model.model.blocks` with fused qkv) into this implementation's module tree.
52Added: """
53Added:
54Added: register_checkpoint_conversion_mapping(
55Added: "radio",
56Added: [
57Added: WeightRenaming("radio_model.model.patch_generator.video_embedder", "embeddings.video_patch_projection"),
58Added: WeightRenaming("radio_model.model.patch_generator.embedder", "embeddings.patch_projection"),
59Added: WeightRenaming("radio_model.model.patch_generator.pos_embed", "embeddings.position_embedding"),
60Added: WeightRenaming("radio_model.model.patch_generator.cls_token.token", "embeddings.cls_register_token"),
61Added: WeightRenaming("radio_model.model.blocks", "encoder.layer"),
62Added: WeightRenaming("attn.proj", "attention.output.dense"),
63Added: WeightRenaming("radio_model.input_conditioner", "input_conditioner"),
64Added: WeightRenaming("radio_model.summary_idxs", "summary_idxs"),
65Added: WeightConverter(
66Added: source_patterns="attn.qkv",
67Added: target_patterns=[
68Added: "attention.attention.query",
69Added: "attention.attention.key",
70Added: "attention.attention.value",
71Added: ],
72Added: operations=[Chunk(dim=0)],
73Added: ),
74Added: ],
75Added: overwrite=True,
76Added: )
77Added:
78Added:
79Added: @dataclass
80Added: class RadioModelOutput(ModelOutput):
81Added: """Output of [`RadioModel`].
82Added:
83Added: Args:
84Added: summary (`torch.FloatTensor` of shape `(batch_size, num_summary_idxs * hidden_size)`):
85Added: Flattened summary embedding, gathered from the cls tokens selected by `config.summary_idxs`.
86Added: features (`torch.FloatTensor` of shape `(batch_size, num_patches, hidden_size)`):
87Added: Dense spatial patch features.
88Added: last_hidden_state (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`):
89Added: Full token sequence (prefix tokens + patches) from the final encoder layer.
90Added: hidden_states (`tuple[torch.FloatTensor]`, *optional*, returned when `output_hidden_states=True`):
91Added: Tuple of `(batch_size, sequence_length, hidden_size)` tensors, one for the embedding output plus one for
92Added: each encoder layer.
93Added: attentions (`tuple[torch.FloatTensor]`, *optional*, returned when `output_attentions=True`):
94Added: Tuple of `(batch_size, num_heads, sequence_length, sequence_length)` attention weights, one per layer.
95Added: """
96Added:
97Added: summary: torch.FloatTensor | None = None
98Added: features: torch.FloatTensor | None = None
99Added: last_hidden_state: torch.FloatTensor | None = None
100Added: hidden_states: tuple[torch.FloatTensor] | None = None
101Added: attentions: tuple[torch.FloatTensor] | None = None
102Added:
103Added:
104Added: class RadioInputConditioner(nn.Module):
105Added: """Normalizes pixel values; arithmetic is done in float32 then cast back."""
106Added:
107Added: def __init__(self, config: RadioConfig):
108Added: super().__init__()
109Added: self.register_buffer("norm_mean", torch.tensor(config.norm_mean).view(-1, 1, 1), persistent=True)
110Added: self.register_buffer("norm_std", torch.tensor(config.norm_std).view(-1, 1, 1), persistent=True)
111Added:
112Added: def forward(self, pixel_values: torch.Tensor) -> torch.Tensor:
113Added: normalized = (pixel_values.float() - self.norm_mean.float()) / self.norm_std.float()
114Added: return normalized.to(pixel_values.dtype)
115Added:
116Added:
117Added: class RadioPatchEmbeddings(nn.Module):
118Added: """Cropped Position Embedding (CPE) patch generator.
119Added:
120Added: Splits the image into patches, projects them, adds a resolution-interpolated
121Added: absolute position embedding, and prepends learned cls + register tokens.
122Added: """
123Added:
124Added: def __init__(self, config: RadioConfig):
125Added: super().__init__()
126Added: self.patch_size = config.patch_size
127Added: self.embed_dim = config.hidden_size
128Added: self.num_cls_tokens = config.num_cls_tokens
129Added: self.num_registers = config.num_registers
130Added:
131Added: self.max_rows = config.max_img_size // config.patch_size
132Added: self.max_cols = config.max_img_size // config.patch_size
133Added: num_positions = self.max_rows * self.max_cols
134Added:
135Added: self.patch_projection = nn.Linear(config.num_channels * config.patch_size**2, config.hidden_size, bias=False)
136Added: if config.video_temporal_patch_size is not None:
137Added: self.video_patch_projection = nn.Linear(
138Added: config.video_temporal_patch_size * config.num_channels * config.patch_size**2,
139Added: config.hidden_size,
140Added: bias=False,
141Added: )
142Added: self.position_embedding = nn.Parameter(torch.zeros(1, num_positions, config.hidden_size))
143Added: self.cls_register_token = nn.Parameter(
144Added: torch.zeros(config.num_cls_tokens + config.num_registers, config.hidden_size)
145Added: )
146Added:
147Added: def _image_to_patches(self, pixel_values: torch.Tensor) -> torch.Tensor:
148Added: ps = self.patch_size
149Added: batch, channels, height, width = pixel_values.shape
150Added: rows, cols = height // ps, width // ps
151Added: patches = pixel_values.reshape(batch, channels, rows, ps, cols, ps)
152Added: patches = patches.permute(0, 2, 4, 1, 3, 5).reshape(batch, rows * cols, channels * ps * ps)
153Added: return patches
154Added:
155Added: def _interpolate_position_embedding(self, input_dims: tuple[int, int], dtype: torch.dtype) -> torch.Tensor:
156Added: pos = self.position_embedding.reshape(1, self.max_rows, self.max_cols, -1).permute(0, 3, 1, 2)
157Added: max_dim = max(input_dims)
158Added: pos = F.interpolate(pos.float(), size=(max_dim, max_dim), mode="bilinear", align_corners=False).to(dtype)
159Added: if input_dims[0] < pos.shape[-2]:
160Added: pos = pos[..., : input_dims[0], :]
161Added: if input_dims[1] < pos.shape[-1]:
162Added: pos = pos[..., :, : input_dims[1]]
163Added: if pos.shape[-2:] != tuple(input_dims):
164Added: pos = F.interpolate(pos.float(), size=tuple(input_dims), mode="bilinear", align_corners=False).to(dtype)
165Added: return pos.flatten(2).permute(0, 2, 1)
166Added:
167Added: def forward(self, pixel_values: torch.Tensor, use_video_patch_projection: bool = False) -> torch.Tensor:
168Added: projection = self.video_patch_projection if use_video_patch_projection else self.patch_projection
169Added: patches = projection(self._image_to_patches(pixel_values))
170Added: input_dims = (pixel_values.shape[-2] // self.patch_size, pixel_values.shape[-1] // self.patch_size)
171Added: patches = patches + self._interpolate_position_embedding(input_dims, patches.dtype)
172Added: prefix = self.cls_register_token.unsqueeze(0).expand(patches.shape[0], -1, -1)
173Added: return torch.cat([prefix, patches], dim=1)
174Added:
175Added:
176Added: class RadioMLP(nn.Module):
177Added: def __init__(self, config) -> None:
178Added: super().__init__()
179Added: in_features = out_features = config.hidden_size
180Added: hidden_features = int(config.hidden_size * config.mlp_ratio)
181Added: self.fc1 = nn.Linear(in_features, hidden_features, bias=True)
182Added: if isinstance(config.hidden_act, str):
183Added: self.activation = ACT2FN[config.hidden_act]
184Added: else:
185Added: self.activation = config.hidden_act
186Added: self.fc2 = nn.Linear(hidden_features, out_features, bias=True)
187Added:
188Added: def forward(self, hidden_state: torch.Tensor) -> torch.Tensor:
189Added: hidden_state = self.fc1(hidden_state)
190Added: hidden_state = self.activation(hidden_state)
191Added: hidden_state = self.fc2(hidden_state)
192Added: return hidden_state
193Added:
194Added:
195Added: class RadioLayerScale(nn.Module):
196Added: def __init__(self, config) -> None:
197Added: super().__init__()
198Added: self.lambda1 = nn.Parameter(config.layerscale_value * torch.ones(config.hidden_size))
199Added:
200Added: def forward(self, hidden_state: torch.Tensor) -> torch.Tensor:
201Added: return hidden_state * self.lambda1
202Added:
203Added:
204Added: def eager_attention_forward(
205Added: module: nn.Module,
206Added: query: torch.Tensor,
207Added: key: torch.Tensor,
208Added: value: torch.Tensor,
209Added: attention_mask: torch.Tensor | None,
210Added: scaling: float | None = None,
211Added: dropout: float = 0.0,
212Added: **kwargs: Unpack[TransformersKwargs],
213Added: ):
214Added: if scaling is None:
215Added: scaling = query.size(-1) ** -0.5
216Added:
217Added: # Take the dot product between "query" and "key" to get the raw attention scores.
218Added: attn_weights = torch.matmul(query, key.transpose(2, 3)) * scaling
219Added:
220Added: if attention_mask is not None:
221Added: attn_weights = attn_weights + attention_mask
222Added:
223Added: attn_weights = nn.functional.softmax(attn_weights, dim=-1)
224Added: attn_weights = nn.functional.dropout(attn_weights, p=dropout, training=module.training)
225Added:
226Added: attn_output = torch.matmul(attn_weights, value)
227Added: attn_output = attn_output.transpose(1, 2).contiguous()
228Added:
229Added: return attn_output, attn_weights
230Added:
231Added:
232Added: # Todo - Refactor as part of vision refactor. Copied from transformers.models.vit.modeling_vit.ViTAttention with ViT->Radio
233Added: class RadioSelfAttention(nn.Module):
234Added: def __init__(self, config: RadioConfig):
235Added: super().__init__()
236Added: if config.hidden_size % config.num_attention_heads != 0 and not hasattr(config, "embedding_size"):
237Added: raise ValueError(
238Added: f"The hidden size {config.hidden_size} is not a multiple of the number of attention "
239Added: f"heads {config.num_attention_heads}."
240Added: )
241Added:
242Added: self.config = config
243Added: self.num_attention_heads = config.num_attention_heads
244Added: self.attention_head_size = int(config.hidden_size / config.num_attention_heads)
245Added: self.all_head_size = self.num_attention_heads * self.attention_head_size
246Added: self.dropout_prob = config.attention_probs_dropout_prob
247Added: self.scaling = self.attention_head_size**-0.5
248Added: self.is_causal = False
249Added:
250Added: self.query = nn.Linear(config.hidden_size, self.all_head_size, bias=config.qkv_bias)
251Added: self.key = nn.Linear(config.hidden_size, self.all_head_size, bias=config.qkv_bias)
252Added: self.value = nn.Linear(config.hidden_size, self.all_head_size, bias=config.qkv_bias)
253Added:
254Added: def forward(
255Added: self,
256Added: hidden_states: torch.Tensor,
257Added: **kwargs: Unpack[TransformersKwargs],
258Added: ) -> tuple[torch.Tensor, torch.Tensor]:
259Added: batch_size = hidden_states.shape[0]
260Added: new_shape = batch_size, -1, self.num_attention_heads, self.attention_head_size
261Added:
262Added: key_layer = self.key(hidden_states).view(*new_shape).transpose(1, 2)
263Added: value_layer = self.value(hidden_states).view(*new_shape).transpose(1, 2)
264Added: query_layer = self.query(hidden_states).view(*new_shape).transpose(1, 2)
265Added:
266Added: attention_interface: Callable = ALL_ATTENTION_FUNCTIONS.get_interface(
267Added: self.config._attn_implementation, eager_attention_forward
268Added: )
269Added:
270Added: context_layer, attention_probs = attention_interface(
271Added: self,
272Added: query_layer,
273Added: key_layer,
274Added: value_layer,
275Added: None,
276Added: is_causal=self.is_causal,
277Added: scaling=self.scaling,
278Added: dropout=0.0 if not self.training else self.dropout_prob,
279Added: **kwargs,
280Added: )
281Added:
282Added: new_context_layer_shape = context_layer.size()[:-2] + (self.all_head_size,)
283Added: context_layer = context_layer.reshape(new_context_layer_shape)
284Added:
285Added: return context_layer, attention_probs
286Added:
287Added:
288Added: # Todo - Refactor as part of vision refactor. Copied from transformers.models.vit.modeling_vit.ViTAttention with ViT->Radio
289Added: class RadioSelfOutput(nn.Module):
290Added: """
291Added: The residual connection is defined in RadioLayer instead of here (as is the case with other models), due to the
292Added: layernorm applied before each block.
293Added: """
294Added:
295Added: def __init__(self, config: RadioConfig):
296Added: super().__init__()
297Added: self.dense = nn.Linear(config.hidden_size, config.hidden_size)
298Added: self.dropout = nn.Dropout(config.hidden_dropout_prob)
299Added:
300Added: def forward(self, hidden_states: torch.Tensor, input_tensor: torch.Tensor) -> torch.Tensor:
301Added: hidden_states = self.dense(hidden_states)
302Added: hidden_states = self.dropout(hidden_states)
303Added: return hidden_states
304Added:
305Added:
306Added: # Todo - Refactor as part of vision refactor. Copied from transformers.models.vit.modeling_vit.ViTAttention with ViT->Radio
307Added: class RadioAttention(nn.Module):
308Added: def __init__(self, config: RadioConfig):
309Added: super().__init__()
310Added: self.attention = RadioSelfAttention(config)
311Added: self.output = RadioSelfOutput(config)
312Added:
313Added: def forward(
314Added: self,
315Added: hidden_states: torch.Tensor,
316Added: **kwargs: Unpack[TransformersKwargs],
317Added: ) -> torch.Tensor:
318Added: self_attn_output, _ = self.attention(hidden_states, **kwargs)
319Added: output = self.output(self_attn_output, hidden_states)
320Added: return output
321Added:
322Added:
323Added: class RadioSwiGLUFFN(nn.Module):
324Added: def __init__(self, config) -> None:
325Added: super().__init__()
326Added: in_features = out_features = config.hidden_size
327Added: hidden_features = int(config.hidden_size * config.mlp_ratio)
328Added: hidden_features = (int(hidden_features * 2 / 3) + 7) // 8 * 8
329Added:
330Added: self.weights_in = nn.Linear(in_features, 2 * hidden_features, bias=True)
331Added: self.weights_out = nn.Linear(hidden_features, out_features, bias=True)
332Added:
333Added: def forward(self, hidden_state: torch.Tensor) -> torch.Tensor:
334Added: hidden_state = self.weights_in(hidden_state)
335Added: x1, x2 = hidden_state.chunk(2, dim=-1)
336Added: hidden = nn.functional.silu(x1) * x2
337Added: return self.weights_out(hidden)
338Added:
339Added:
340Added: class RadioDropPath(nn.Module):
341Added: """Stochastic depth (DropPath) per sample, for residual blocks.
342Added:
343Added: Identity when ``drop_prob`` is 0 or outside training. See `Deep Networks with Stochastic Depth
344Added: <https://arxiv.org/abs/1603.09382>`_.
345Added: """
346Added:
347Added: def __init__(self, drop_prob: float = 0.0) -> None:
348Added: super().__init__()
349Added: self.drop_prob = drop_prob
350Added:
351Added: def forward(self, hidden_states: torch.Tensor) -> torch.Tensor:
352Added: if self.drop_prob == 0.0 or not self.training:
353Added: return hidden_states
354Added: keep_prob = 1 - self.drop_prob
355Added: shape = (hidden_states.shape[0],) + (1,) * (hidden_states.ndim - 1)
356Added: random_tensor = torch.rand(shape, dtype=hidden_states.dtype, device=hidden_states.device)
357Added: random_tensor = torch.floor(random_tensor + keep_prob)
358Added: return hidden_states.div(keep_prob) * random_tensor
359Added:
360Added: def extra_repr(self) -> str:
361Added: return f"p={self.drop_prob}"
362Added:
363Added:
364Added: class RadioLayer(GradientCheckpointingLayer):
365Added: """This corresponds to the Block class in the original implementation."""
366Added:
367Added: def __init__(self, config: RadioConfig) -> None:
368Added: super().__init__()
369Added:
370Added: self.norm1 = nn.LayerNorm(config.hidden_size, eps=config.layer_norm_eps)
371Added: self.attention = RadioAttention(config)
372Added: self.layer_scale1 = RadioLayerScale(config)
373Added: self.drop_path = RadioDropPath(config.drop_path_rate) if config.drop_path_rate > 0.0 else nn.Identity()
374Added:
375Added: self.norm2 = nn.LayerNorm(config.hidden_size, eps=config.layer_norm_eps)
376Added:
377Added: if config.use_swiglu_ffn:
378Added: self.mlp = RadioSwiGLUFFN(config)
379Added: else:
380Added: self.mlp = RadioMLP(config)
381Added: self.layer_scale2 = RadioLayerScale(config)
382Added:
383Added: def forward(
384Added: self,
385Added: hidden_states: torch.Tensor,
386Added: ) -> torch.Tensor:
387Added: hidden_states_norm = self.norm1(hidden_states)
388Added: self_attention_output = self.attention(hidden_states_norm)
389Added: self_attention_output = self.layer_scale1(self_attention_output)
390Added:
391Added: # first residual connection
392Added: hidden_states = self.drop_path(self_attention_output) + hidden_states
393Added:
394Added: # in Radio, layernorm is also applied after self-attention
395Added: layer_output = self.norm2(hidden_states)
396Added: layer_output = self.mlp(layer_output)
397Added: layer_output = self.layer_scale2(layer_output)
398Added:
399Added: # second residual connection
400Added: layer_output = self.drop_path(layer_output) + hidden_states
401Added:
402Added: return layer_output
403Added:
404Added:
405Added: @auto_docstring
406Added: class RadioPreTrainedModel(PreTrainedModel):
407Added: config_class = RadioConfig
408Added: base_model_prefix = "model"
409Added: main_input_name = "pixel_values"
410Added: supports_gradient_checkpointing = True
411Added: _no_split_modules = ["RadioLayer"]
412Added: _keys_to_ignore_on_load_missing = [r"layer_scale\d+\.lambda1"]
413Added: _supports_sdpa = True
414Added: _supports_flash_attn = True
415Added: _can_record_outputs = {
416Added: "hidden_states": RadioLayer,
417Added: "attentions": RadioSelfAttention,
418Added: }
419Added:
420Added: @torch.no_grad()
421Added: def _init_weights(self, module):
422Added: # Use `transformers.initialization` (not in-place `.data` ops) so the
423Added: # framework's `_is_hf_initialized` guard skips already-loaded params.
424Added: std = self.config.initializer_range
425Added: if isinstance(module, nn.Linear):
426Added: init.trunc_normal_(module.weight, mean=0.0, std=std)
427Added: if module.bias is not None:
428Added: init.zeros_(module.bias)
429Added: elif isinstance(module, nn.LayerNorm):
430Added: init.zeros_(module.bias)
431Added: init.ones_(module.weight)
432Added: elif isinstance(module, RadioPatchEmbeddings):
433Added: init.trunc_normal_(module.position_embedding, mean=0.0, std=std)
434Added: init.trunc_normal_(module.cls_register_token, mean=0.0, std=std)
435Added: elif isinstance(module, RadioLayerScale):
436Added: init.constant_(module.lambda1, self.config.layerscale_value)
437Added: elif isinstance(module, RadioInputConditioner):
438Added: init.copy_(module.norm_mean, torch.tensor(self.config.norm_mean).view(-1, 1, 1))
439Added: init.copy_(module.norm_std, torch.tensor(self.config.norm_std).view(-1, 1, 1))
440Added: elif isinstance(module, RadioModel):
441Added: init.copy_(module.summary_idxs, torch.tensor(self.config.summary_idxs, dtype=torch.long))
442Added:
443Added:
444Added: class RadioEncoder(RadioPreTrainedModel):
445Added: def __init__(self, config: RadioConfig):
446Added: super().__init__(config)
447Added: self.layer = nn.ModuleList([RadioLayer(config) for _ in range(config.num_hidden_layers)])
448Added: self.post_init()
449Added:
450Added: @merge_with_config_defaults
451Added: @capture_outputs(tie_last_hidden_states=False)
452Added: def forward(self, hidden_states: torch.Tensor, **kwargs: Unpack[TransformersKwargs]) -> BaseModelOutput:
453Added: for layer in self.layer:
454Added: hidden_states = layer(hidden_states)
455Added: return BaseModelOutput(last_hidden_state=hidden_states)
456Added:
457Added:
458Added: @auto_docstring
459Added: class RadioModel(RadioPreTrainedModel):
460Added: def __init__(self, config: RadioConfig):
461Added: super().__init__(config)
462Added: register_radio_conversion_mapping()
463Added: self.config = config
464Added: self.input_conditioner = RadioInputConditioner(config)
465Added: self.embeddings = RadioPatchEmbeddings(config)
466Added: self.encoder = RadioEncoder(config)
467Added: self.register_buffer("summary_idxs", torch.tensor(config.summary_idxs, dtype=torch.long), persistent=True)
468Added: self.post_init()
469Added:
470Added: @property
471Added: def patch_size(self) -> int:
472Added: return self.config.patch_size
473Added:
474Added: def make_preprocessor_external(self):
475Added: """Detach the input conditioner (caller applies normalization itself)."""
476Added: conditioner = self.input_conditioner
477Added: self.input_conditioner = nn.Identity()
478Added: return conditioner
479Added:
480Added: @can_return_tuple
481Added: @auto_docstring
482Added: def forward(
483Added: self,
484Added: pixel_values: torch.Tensor,
485Added: use_video_patch_projection: bool = False,
486Added: **kwargs: Unpack[TransformersKwargs],
487Added: ) -> RadioModelOutput:
488Added: r"""
489Added: use_video_patch_projection (`bool`, *optional*, defaults to `False`):
490Added: Use the `video_patch_projection` for temporally-packed video patches instead of the image
491Added: `patch_projection`. Requires `config.video_temporal_patch_size` to be set.
492Added: """
493Added: pixel_values = self.input_conditioner(pixel_values)
494Added: hidden_states = self.embeddings(pixel_values, use_video_patch_projection=use_video_patch_projection)
495Added: encoder_outputs: BaseModelOutput = self.encoder(hidden_states, **kwargs)
496Added: last_hidden_state = encoder_outputs.last_hidden_state
497Added:
498Added: num_skip = self.config.num_summary_tokens
499Added: all_summary = last_hidden_state[:, : self.config.num_cls_tokens]
500Added: summary = all_summary[:, self.summary_idxs].flatten(1)
501Added: features = last_hidden_state[:, num_skip:]
502Added:
503Added: return RadioModelOutput(
504Added: summary=summary,
505Added: features=features,
506Added: last_hidden_state=last_hidden_state,
507Added: hidden_states=encoder_outputs.hidden_states,
508Added: attentions=encoder_outputs.attentions,
509Added: )
510Added:
511Added:
512Added: __all__ = ["RadioModel", "RadioPreTrainedModel"]

preprocessor_config.json

Added+26 -0
Lines 0 to 0 become lines 1 to 26
@@ -0,0 +1,26 @@
1Added: {
2Added: "_downsample_factor": 2,
3Added: "auto_map": {
4Added: "AutoImageProcessor": "image_processing_nemotron_h_omni.NemotronH_Omni_Reasoning_V3ImageProcessor",
5Added: "AutoProcessor": "processing_nemotron_h_omni.NemotronH_Omni_Reasoning_V3Processor"
6Added: },
7Added: "downsample_ratio": 0.5,
8Added: "image_processor_type": "NemotronH_Omni_Reasoning_V3ImageProcessor",
9Added: "max_model_len": 16384,
10Added: "max_num_patches": 13312,
11Added: "min_num_patches": 1024,
12Added: "norm_mean": [
13Added: 0.48145466,
14Added: 0.4578275,
15Added: 0.40821073
16Added: ],
17Added: "norm_std": [
18Added: 0.26862954,
19Added: 0.26130258,
20Added: 0.27577711
21Added: ],
22Added: "patch_size": 16,
23Added: "rescale_factor": 0.00392156862745098,
24Added: "video_maintain_aspect_ratio": true,
25Added: "video_target_num_patches": 1024
26Added: }

privacy.md

Added+5 -0
Lines 0 to 0 become lines 1 to 5
@@ -0,0 +1,5 @@
1Added: | Privacy Information |
2Added: | :--- |
3Added: | Nemotron 3.5 Super VL was trained on large-scale publicly available data that may contain images, audio-video, and text relating to people. NVIDIA collected and used this data in compliance with applicable data protection and privacy laws. This model was not designed to derive insights or otherwise learn from any personal data contained in the datasets. |
4Added: | NVIDIA uses a combination of filters, data minimization techniques, and other guardrails to help prevent personal data from being recited by our models. We employ automated tools and data processing techniques during pre-training or training to identify and filter certain categories of personal data. |
5Added: | Please review NVIDIA's [Privacy Policy](https://www.nvidia.com/en-us/about-nvidia/privacy-policy/) for more information. |(no newline at end of file)

processing_nemotron_h_omni.py

Added+361 -0
Lines 0 to 0 become lines 1 to 361
@@ -0,0 +1,361 @@
1Added: # Copyright (c) 2026, NVIDIA CORPORATION. All rights reserved.
2Added: #
3Added: # Licensed under the Apache License, Version 2.0 (the "License");
4Added: # you may not use this file except in compliance with the License.
5Added: # You may obtain a copy of the License at
6Added: #
7Added: # http://www.apache.org/licenses/LICENSE-2.0
8Added: #
9Added: # Unless required by applicable law or agreed to in writing, software
10Added: # distributed under the License is distributed on an "AS IS" BASIS,
11Added: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12Added: # See the License for the specific language governing permissions and
13Added: # limitations under the License.
14Added: """Processor for the NemotronH Omni model (image + video + audio + text)."""
15Added:
16Added: import math
17Added: from typing import Union
18Added:
19Added: import numpy as np
20Added: from transformers.feature_extraction_utils import BatchFeature
21Added: from transformers.image_utils import ImageInput
22Added: from transformers.processing_utils import ImagesKwargs, ProcessingKwargs, ProcessorMixin, Unpack, VideosKwargs
23Added: from transformers.tokenization_utils_base import PreTokenizedInput, TextInput
24Added: from transformers.utils import is_torch_available
25Added: from transformers.video_utils import VideoInput
26Added:
27Added:
28Added: if is_torch_available():
29Added: import torch
30Added:
31Added:
32Added: # Audio input type - file paths, numpy arrays, or torch tensors (or lists thereof).
33Added: AudioInput = Union[str, "np.ndarray", "torch.Tensor", list]
34Added:
35Added:
36Added: class NemotronH_Omni_Reasoning_V3ImagesKwargs(ImagesKwargs):
37Added: min_pixels: int | None
38Added: max_pixels: int | None
39Added: patch_size: int | None
40Added: temporal_patch_size: int | None
41Added: merge_size: int | None
42Added:
43Added:
44Added: class NemotronH_Omni_Reasoning_V3ProcessorKwargs(ProcessingKwargs, total=False):
45Added: images_kwargs: NemotronH_Omni_Reasoning_V3ImagesKwargs
46Added: videos_kwargs: VideosKwargs
47Added: # `ProcessingKwargs` is a TypedDict, so `_defaults` is not inherited by subclasses and must be
48Added: # (re)declared. Left empty on purpose — no defaults are overridden here (`padding` already
49Added: # defaults to `False` in the tokenizer), so nothing needs to live in `processor_config.json`.
50Added: _defaults = {}
51Added:
52Added:
53Added: class NemotronH_Omni_Reasoning_V3Processor(ProcessorMixin):
54Added: r"""
55Added: Constructs a NemotronH Omni processor which wraps an image processor and a tokenizer into a
56Added: single processor.
57Added:
58Added: [`NemotronH_Omni_Reasoning_V3Processor`] offers all the functionalities of the image
59Added: processor and tokenizer. See [`~NemotronH_Omni_Reasoning_V3Processor.__call__`] and
60Added: [`~NemotronH_Omni_Reasoning_V3Processor.decode`] for more information.
61Added:
62Added: Args:
63Added: image_processor ([`NemotronH_Omni_Reasoning_V3ImageProcessor`], *optional*):
64Added: The image processor.
65Added: tokenizer ([`AutoTokenizer`], *optional*):
66Added: The tokenizer.
67Added: chat_template (`str`, *optional*):
68Added: A Jinja template which will be used to convert lists of messages in a chat into a
69Added: tokenizable string.
70Added: audio_sampling_rate (`int`, *optional*, defaults to 16000):
71Added: Sampling rate for audio processing.
72Added: audio_subsampling_factor (`int`, *optional*, defaults to 8):
73Added: Subsampling factor for the audio encoder.
74Added: audio_hop_length (`int`, *optional*, defaults to 160):
75Added: Hop length in samples for feature extraction.
76Added: video_temporal_patch_dim (`int`, *optional*, defaults to 2):
77Added: Number of frames collapsed into a single temporal patch by the model's video embedder.
78Added: """
79Added:
80Added: attributes = ["image_processor", "tokenizer"]
81Added: tokenizer_class = "AutoTokenizer"
82Added:
83Added: def __init__(
84Added: self,
85Added: image_processor=None,
86Added: tokenizer=None,
87Added: chat_template=None,
88Added: audio_sampling_rate: int = 16000,
89Added: audio_subsampling_factor: int = 8,
90Added: audio_hop_length: int = 160,
91Added: video_temporal_patch_dim: int = 2,
92Added: **kwargs,
93Added: ):
94Added: # Number of frames collapsed into a single temporal patch by the model's video embedder.
95Added: self.video_temporal_patch_dim = video_temporal_patch_dim
96Added: self.image_token = "<image>" if not hasattr(tokenizer, "image_token") else tokenizer.image_token
97Added: self.video_token = "<video>" if not hasattr(tokenizer, "video_token") else tokenizer.video_token
98Added: self.audio_token = "<so_embedding>" if not hasattr(tokenizer, "audio_token") else tokenizer.audio_token
99Added: self.audio_start_token = "<so_start>"
100Added: self.audio_end_token = "<so_end>"
101Added: self.image_start_token = (
102Added: "<img>" if not hasattr(tokenizer, "image_start_token") else tokenizer.image_start_token
103Added: )
104Added: self.image_end_token = "</img>" if not hasattr(tokenizer, "image_end_token") else tokenizer.image_end_token
105Added: self.image_token_id = (
106Added: tokenizer.image_token_id
107Added: if getattr(tokenizer, "image_token_id", None)
108Added: else tokenizer.convert_tokens_to_ids(self.image_token)
109Added: )
110Added: self.video_token_id = (
111Added: tokenizer.video_token_id
112Added: if getattr(tokenizer, "video_token_id", None)
113Added: else tokenizer.convert_tokens_to_ids(self.video_token)
114Added: )
115Added: self.audio_token_id = (
116Added: tokenizer.audio_token_id
117Added: if getattr(tokenizer, "audio_token_id", None)
118Added: else tokenizer.convert_tokens_to_ids(self.audio_token)
119Added: )
120Added:
121Added: self.audio_sampling_rate = audio_sampling_rate
122Added: self.audio_subsampling_factor = audio_subsampling_factor
123Added: self.audio_hop_length = audio_hop_length
124Added:
125Added: super().__init__(image_processor, tokenizer, chat_template=chat_template)
126Added:
127Added: def __call__(
128Added: self,
129Added: images: ImageInput = None,
130Added: text: TextInput | PreTokenizedInput | list[TextInput] | list[PreTokenizedInput] = None,
131Added: videos: VideoInput = None,
132Added: audio: AudioInput = None,
133Added: **kwargs: Unpack[NemotronH_Omni_Reasoning_V3ProcessorKwargs],
134Added: ) -> BatchFeature:
135Added: """
136Added: Prepare multimodal inputs (text, images, videos, audio) for the model.
137Added:
138Added: Text `<image>` / `<video>` / `<audio>` tokens are expanded into placeholder sequences sized
139Added: by the corresponding media, images/videos are run through the image processor, and audio is
140Added: turned into raw waveforms with an estimated token count. Returns a [`BatchFeature`] with (as
141Added: applicable) `input_ids`, `attention_mask`, `pixel_values`, `num_patches`,
142Added: `pixel_values_videos`, and `sound_clips`.
143Added: """
144Added: output_kwargs = self._merge_kwargs(
145Added: NemotronH_Omni_Reasoning_V3ProcessorKwargs,
146Added: tokenizer_init_kwargs=self.tokenizer.init_kwargs,
147Added: **kwargs,
148Added: )
149Added: image_inputs, videos_inputs, audio_inputs = {}, {}, {}
150Added:
151Added: if images is not None:
152Added: image_inputs = self.image_processor(images=images, **output_kwargs["images_kwargs"])
153Added: image_num_tokens = image_inputs["num_tokens"]
154Added:
155Added: if videos is not None:
156Added: # One tile per frame, but sized with the video rule (aspect ratio preserved). We flip a
157Added: # flag on the image processor around the call rather than routing a new kwarg through
158Added: # the strict `ImagesKwargs` dataclass.
159Added: self.image_processor._is_video_mode = True
160Added: try:
161Added: videos_inputs = self.image_processor(images=videos, **output_kwargs["images_kwargs"])
162Added: finally:
163Added: self.image_processor._is_video_mode = False
164Added: video_num_patches = [sum(videos_inputs["num_patches"])]
165Added: videos_inputs["pixel_values_videos"] = videos_inputs["pixel_values"]
166Added: del videos_inputs["pixel_values"]
167Added:
168Added: audio_num_tokens = []
169Added: if audio is not None:
170Added: audio_clips, audio_num_tokens = self._process_audio(audio, output_kwargs.get("audio_kwargs", {}))
171Added: audio_inputs["sound_clips"] = audio_clips
172Added:
173Added: if not isinstance(text, list):
174Added: text = [text]
175Added:
176Added: text = text.copy() # below lines change text in-place
177Added: if images is not None:
178Added: index = 0
179Added: for i in range(len(text)):
180Added: while self.image_token in text[i]:
181Added: n_tokens = image_num_tokens[index]
182Added: text[i] = text[i].replace(
183Added: self.image_token,
184Added: self.image_start_token + "<|placeholder|>" * n_tokens + self.image_end_token,
185Added: 1,
186Added: )
187Added: index += 1
188Added: text[i] = text[i].replace("<|placeholder|>", self.image_token)
189Added:
190Added: if videos is not None:
191Added: assert len(text) == 1, "Video is not supported for batch size > 1"
192Added: video_metadata = output_kwargs.get("videos_kwargs", {}).get("video_metadata", None)
193Added: i = 0
194Added: index = 0
195Added: if self.video_token in text[i]:
196Added: # One `<img>...</img>` chunk per temporal patch (tubelet), labeled with the per-frame
197Added: # timestamps joined by " and " ("Frame" for the first frame in the tubelet, "frame"
198Added: # for the rest).
199Added: tokens_per_tubelet = videos_inputs["num_tokens"][0]
200Added: each_group = self.image_start_token + "<|placeholder|>" * tokens_per_tubelet + self.image_end_token
201Added: T = self.video_temporal_patch_dim
202Added: n_frames = video_num_patches[index]
203Added: n_groups = (n_frames + T - 1) // T
204Added:
205Added: source_fps = video_metadata.fps if (video_metadata is not None and video_metadata.fps) else None
206Added: frames_indices = video_metadata.frames_indices if video_metadata is not None else None
207Added: if source_fps is not None:
208Added: frame_duration_ms = int(1000.0 / source_fps)
209Added:
210Added: frame_labels = []
211Added: for g in range(n_groups):
212Added: parts = []
213Added: for j in range(T):
214Added: fi = g * T + j
215Added: if fi >= n_frames:
216Added: break # last group may be short
217Added: prefix = "Frame" if j == 0 else "frame"
218Added: if source_fps is not None and frames_indices is not None and fi < len(frames_indices):
219Added: ts = int(frames_indices[fi]) * frame_duration_ms / 1000.0
220Added: parts.append(f"{prefix} {fi + 1} sampled at {ts:.2f} seconds")
221Added: elif source_fps is not None:
222Added: ts = fi / source_fps
223Added: parts.append(f"{prefix} {fi + 1} sampled at {ts:.2f} seconds")
224Added: else:
225Added: parts.append(f"{prefix} {fi + 1}")
226Added: frame_labels.append(" and ".join(parts) + ": ")
227Added:
228Added: video_prompt = ""
229Added: for g, label in enumerate(frame_labels):
230Added: if g > 0:
231Added: video_prompt += "\n"
232Added: video_prompt += label + each_group
233Added:
234Added: text[i] = text[i].replace(self.video_token, video_prompt, 1)
235Added: # The tokenizer has no real `<video>` token, so we reuse `<image>` as the placeholder.
236Added: # The model distinguishes image vs. video by which `pixel_values_*` arg was passed.
237Added: text[i] = text[i].replace("<|placeholder|>", self.image_token)
238Added:
239Added: if audio is not None:
240Added: index = 0
241Added: for i in range(len(text)):
242Added: while self.audio_token in text[i]:
243Added: num_tokens = audio_num_tokens[index] if index < len(audio_num_tokens) else 1
244Added: text[i] = text[i].replace(
245Added: self.audio_token,
246Added: self.audio_start_token + "<|audio_placeholder|>" * num_tokens + self.audio_end_token,
247Added: 1,
248Added: )
249Added: index += 1
250Added: text[i] = text[i].replace("<|audio_placeholder|>", self.audio_token)
251Added:
252Added: return_tensors = output_kwargs["text_kwargs"].pop("return_tensors", None)
253Added: text_inputs = self.tokenizer(text, **output_kwargs["text_kwargs"])
254Added:
255Added: output_data = {**text_inputs, **image_inputs, **videos_inputs}
256Added: result = BatchFeature(data=output_data, tensor_type=return_tensors)
257Added:
258Added: # Audio clips stay as raw waveforms (list of numpy arrays), not tensors.
259Added: if audio_inputs:
260Added: result["sound_clips"] = audio_inputs["sound_clips"]
261Added:
262Added: return result
263Added:
264Added: def _process_audio(self, audio: AudioInput, audio_kwargs: dict) -> tuple:
265Added: """Load/normalize audio to waveforms and estimate the number of audio embedding tokens."""
266Added: sampling_rate = audio_kwargs.get("sampling_rate", self.audio_sampling_rate)
267Added:
268Added: if not isinstance(audio, list):
269Added: audio = [audio]
270Added:
271Added: audio_clips = []
272Added: num_tokens = []
273Added: for audio_item in audio:
274Added: if isinstance(audio_item, str):
275Added: waveform = self._load_audio(audio_item, sampling_rate)
276Added: elif is_torch_available() and isinstance(audio_item, torch.Tensor):
277Added: waveform = audio_item.numpy() if audio_item.dim() == 1 else audio_item.squeeze().numpy()
278Added: elif isinstance(audio_item, np.ndarray):
279Added: waveform = audio_item.squeeze() if audio_item.ndim > 1 else audio_item
280Added: else:
281Added: raise ValueError(f"Unsupported audio type: {type(audio_item)}")
282Added:
283Added: audio_clips.append(waveform)
284Added: n_tokens = self._estimate_audio_num_embeddings(len(waveform))
285Added: num_tokens.append(max(1, n_tokens))
286Added:
287Added: return audio_clips, num_tokens
288Added:
289Added: def _estimate_audio_num_embeddings(self, audio_length_samples: int) -> int:
290Added: """Predict the number of `<so_embedding>` tokens the sound encoder emits for a raw clip.
291Added:
292Added: Mirrors `ParakeetFeatureExtractor` (center-padded STFT -> ``1 + L // hop`` mel frames)
293Added: followed by the encoder's conv-subsampling (``log2(subsampling_factor)`` stride-2 stages).
294Added: """
295Added: n_frames = 1 + audio_length_samples // self.audio_hop_length
296Added: kernel_size = getattr(self, "audio_subsampling_conv_kernel_size", 3)
297Added: stride = getattr(self, "audio_subsampling_conv_stride", 2)
298Added: num_layers = int(math.log2(self.audio_subsampling_factor))
299Added: all_paddings = (kernel_size - 1) // 2 * 2
300Added: add_pad = all_paddings - kernel_size
301Added: length = n_frames
302Added: for _ in range(num_layers):
303Added: length = (length + add_pad) // stride + 1
304Added: return length
305Added:
306Added: def _load_audio(self, audio_path: str, target_sr: int) -> np.ndarray:
307Added: """Load (and resample) audio from a file path, using librosa or soundfile if available."""
308Added: try:
309Added: import librosa
310Added:
311Added: waveform, _ = librosa.load(audio_path, sr=target_sr, mono=True)
312Added: return waveform
313Added: except ImportError:
314Added: pass
315Added:
316Added: try:
317Added: import soundfile as sf
318Added:
319Added: waveform, sr = sf.read(audio_path)
320Added: if waveform.ndim > 1:
321Added: waveform = waveform.mean(axis=1)
322Added: if sr != target_sr:
323Added: import scipy.signal
324Added:
325Added: num_samples = int(len(waveform) * target_sr / sr)
326Added: waveform = scipy.signal.resample(waveform, num_samples)
327Added: return waveform.astype(np.float32)
328Added: except ImportError:
329Added: pass
330Added:
331Added: raise ImportError(
332Added: "Audio loading requires either librosa or soundfile. Install with: pip install librosa soundfile"
333Added: )
334Added:
335Added: def batch_decode(self, *args, **kwargs):
336Added: """Forward to the tokenizer's [`~PreTrainedTokenizer.batch_decode`]."""
337Added: return self.tokenizer.batch_decode(*args, **kwargs)
338Added:
339Added: def decode(self, *args, **kwargs):
340Added: """Forward to the tokenizer's [`~PreTrainedTokenizer.decode`]."""
341Added: return self.tokenizer.decode(*args, **kwargs)
342Added:
343Added: def post_process_image_text_to_text(
344Added: self, generated_outputs, skip_special_tokens=True, clean_up_tokenization_spaces=False, **kwargs
345Added: ):
346Added: """Decode the model's generated token ids into text."""
347Added: return self.tokenizer.batch_decode(
348Added: generated_outputs,
349Added: skip_special_tokens=skip_special_tokens,
350Added: clean_up_tokenization_spaces=clean_up_tokenization_spaces,
351Added: **kwargs,
352Added: )
353Added:
354Added: @property
355Added: def model_input_names(self):
356Added: tokenizer_input_names = self.tokenizer.model_input_names
357Added: image_processor_input_names = self.image_processor.model_input_names
358Added: return list(dict.fromkeys(tokenizer_input_names + image_processor_input_names))
359Added:
360Added:
361Added: __all__ = ["NemotronH_Omni_Reasoning_V3Processor"]

processor_config.json

Added+36 -0
Lines 0 to 0 become lines 1 to 36
@@ -0,0 +1,36 @@
1Added: {
2Added: "audio_hop_length": 160,
3Added: "audio_sampling_rate": 16000,
4Added: "audio_subsampling_factor": 8,
5Added: "auto_map": {
6Added: "AutoProcessor": "processing_nemotron_h_omni.NemotronH_Omni_Reasoning_V3Processor"
7Added: },
8Added: "image_processor": {
9Added: "_downsample_factor": 2,
10Added: "auto_map": {
11Added: "AutoImageProcessor": "image_processing_nemotron_h_omni.NemotronH_Omni_Reasoning_V3ImageProcessor",
12Added: "AutoProcessor": "processing_nemotron_h_omni.NemotronH_Omni_Reasoning_V3Processor"
13Added: },
14Added: "downsample_ratio": 0.5,
15Added: "image_processor_type": "NemotronH_Omni_Reasoning_V3ImageProcessor",
16Added: "max_model_len": 16384,
17Added: "max_num_patches": 13312,
18Added: "min_num_patches": 1024,
19Added: "norm_mean": [
20Added: 0.48145466,
21Added: 0.4578275,
22Added: 0.40821073
23Added: ],
24Added: "norm_std": [
25Added: 0.26862954,
26Added: 0.26130258,
27Added: 0.27577711
28Added: ],
29Added: "patch_size": 16,
30Added: "rescale_factor": 0.00392156862745098,
31Added: "video_maintain_aspect_ratio": true,
32Added: "video_target_num_patches": 1024
33Added: },
34Added: "processor_class": "NemotronH_Omni_Reasoning_V3Processor",
35Added: "video_temporal_patch_dim": 2
36Added: }

safety.md

Added+9 -0
Lines 0 to 0 become lines 1 to 9
@@ -0,0 +1,9 @@
1Added: | Field | Response |
2Added: | :---- | :---- |
3Added: | Model Application Field(s): | Chat, Instruction Following, Chatbot Development, Code Generation, Reasoning, Customer Service |
4Added: | Describe the life critical impact (if present). | Not Applicable |
5Added: | Description of methods implemented in data acquisition or processing, if any, to address other types of potentially harmful data in the training, testing, and validation data: | We used a guard model for content safety to exclude potentially harmful data from training. |
6Added: | Description of any methods implemented in data acquisition or processing, if any, to address illegal or harmful content in the training data, including, but not limited to, child sexual abuse material (CSAM) and non-consensual intimate imagery (NCII) | We used a Gemma-3 4B-based guard model trained on [Nemotron Content Safety Dataset v2](https://huggingface.co/datasets/nvidia/Aegis-AI-Content-Safety-Dataset-2.0) for content safety to exclude potentially illegal or harmful content from the training. |
7Added: | Use Case Restrictions: | Use of this model is governed by the [OpenMDW License Agreement, version 1.1](https://raw.githubusercontent.com/OpenMDW/OpenMDW/refs/heads/main/1.1/LICENSE.OpenMDW-1.1) (OpenMDW-1.1).|
8Added: | 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. |
9Added: | This AI model was developed based on our policies to ensure responsible data handling and risk mitigation. The datasets used for training have been scanned for harmful content and illegal content, consistent with our policies including scanning for Child Sexual Abuse Material (CSAM). Ongoing review and monitoring mechanisms are in place based on our policies and to maintain data integrity. | True. We use [Nemotron Content Safety Dataset V2](https://huggingface.co/datasets/nvidia/Aegis-AI-Content-Safety-Dataset-2.0) and an internal safety dataset specialized for minority sexuality for content safety evaluation to ensure the safety of this model. |(no newline at end of file)

tokenizer.json

Added

Large (LFS-tracked) file content changed — 16 MB

tokenizer_config.json

Added+23 -0
Lines 0 to 0 become lines 1 to 23
@@ -0,0 +1,23 @@
1Added: {
2Added: "add_prefix_space": false,
3Added: "auto_map": {
4Added: "AutoProcessor": "processing_nemotron_h_omni.NemotronH_Omni_Reasoning_V3Processor"
5Added: },
6Added: "backend": "tokenizers",
7Added: "bos_token": "<s>",
8Added: "clean_up_tokenization_spaces": false,
9Added: "eos_token": "<|im_end|>",
10Added: "fix_mistral_regex": true,
11Added: "is_local": false,
12Added: "local_files_only": false,
13Added: "model_input_names": [
14Added: "input_ids",
15Added: "attention_mask"
16Added: ],
17Added: "model_max_length": 1048576,
18Added: "pad_token": "<|im_end|>",
19Added: "padding_side": "left",
20Added: "processor_class": "NemotronH_Omni_Reasoning_V3Processor",
21Added: "tokenizer_class": "TokenizersBackend",
22Added: "unk_token": "<unk>"
23Added: }

ultra_v3_reasoning_parser.py

Added+53 -0
Lines 0 to 0 become lines 1 to 53
@@ -0,0 +1,53 @@
1Added: from vllm.reasoning.abs_reasoning_parsers import ReasoningParserManager
2Added: from vllm.reasoning.deepseek_r1_reasoning_parser import DeepSeekR1ReasoningParser
3Added:
4Added:
5Added: @ReasoningParserManager.register_module("ultra_v3")
6Added: class UltraV3ReasoningParser(DeepSeekR1ReasoningParser):
7Added: def extract_reasoning(self, model_output, request):
8Added: chat_template_kwargs = getattr(request, "chat_template_kwargs", None) or {}
9Added:
10Added: if chat_template_kwargs.get("enable_thinking") is False:
11Added: """
12Added: The chat template ends the prompt with `<think></think>`, so the model
13Added: never emits `</think>` and there is no reasoning channel at all. The
14Added: `deepseek_r1` parser this inherits from assumes reasoning always comes
15Added: first, so it would return the whole answer as reasoning content with an
16Added: empty content field. Everything generated is content here, including any
17Added: stray `</think>` the model echoes.
18Added: """
19Added: return None, model_output or None
20Added:
21Added: reasoning_content, final_content = super().extract_reasoning(
22Added: model_output, request
23Added: )
24Added:
25Added: if (
26Added: reasoning_content
27Added: and reasoning_content.startswith("\n")
28Added: and self.start_token in model_output
29Added: ):
30Added: """
31Added: The chat template owns the newline in `<think>\n` and re-adds it when it
32Added: replays the turn, so `reasoning_content` must not carry it or the next
33Added: prompt drifts by a token. Live vLLM output never contains the start token
34Added: (the template prefilled it), so this only fires when the parser is handed
35Added: a full assistant span: offline replay, the chat-template verifier, or
36Added: re-parsing training data.
37Added: """
38Added: reasoning_content = reasoning_content[1:]
39Added:
40Added: if (
41Added: final_content is None
42Added: and chat_template_kwargs.get("force_nonempty_content") is True
43Added: ):
44Added: """
45Added: There are rare cases where the model will output only reasoning without an
46Added: end-think token `</think>` (e.g. reasoning exceeds max length), which
47Added: results in empty content returned. End users may want to unilaterally
48Added: avoid such cases and always have a content response even if the model does
49Added: not finish its reasoning.
50Added: """
51Added: reasoning_content, final_content = None, reasoning_content
52Added:
53Added: return reasoning_content, final_content