Text Generation
Transformers
GGUF
PyTorch
nvidia
aashish1904 commited on
Commit
17af0aa
·
verified ·
1 Parent(s): ea84a1b

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +813 -0
README.md ADDED
@@ -0,0 +1,813 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+
4
+ license: other
5
+ license_name: nvidia-open-model-license
6
+ license_link: >-
7
+ https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/
8
+ pipeline_tag: text-generation
9
+ datasets:
10
+ - nvidia/Nemotron-Post-Training-Dataset-v1
11
+ - nvidia/Nemotron-Post-Training-Dataset-v2
12
+ - nvidia/Nemotron-Pretraining-Dataset-sample
13
+ - nvidia/Nemotron-CC-v2
14
+ - nvidia/Nemotron-CC-Math-v1
15
+ - nvidia/Nemotron-Pretraining-SFT-v1
16
+ language:
17
+ - en
18
+ - es
19
+ - fr
20
+ - de
21
+ - it
22
+ - ja
23
+ library_name: transformers
24
+ tags:
25
+ - nvidia
26
+ - pytorch
27
+ track_downloads: true
28
+ base_model:
29
+ - nvidia/NVIDIA-Nemotron-Nano-12B-v2-Base
30
+
31
+ ---
32
+
33
+ [![QuantFactory Banner](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)](https://hf.co/QuantFactory)
34
+
35
+
36
+ # QuantFactory/NVIDIA-Nemotron-Nano-12B-v2-GGUF
37
+ This is quantized version of [nvidia/NVIDIA-Nemotron-Nano-12B-v2](https://huggingface.co/nvidia/NVIDIA-Nemotron-Nano-12B-v2) created using llama.cpp
38
+
39
+ # Original Model Card
40
+
41
+ # NVIDIA-Nemotron-Nano-12B-v2
42
+
43
+ **Model Developer:** NVIDIA Corporation
44
+
45
+ **Model Dates:**
46
+
47
+ June 2025 \- August 2025
48
+
49
+ **Data Freshness:**
50
+
51
+ September 2024
52
+
53
+ The pretraining data has a cutoff date of September 2024.
54
+
55
+ ## Model Overview
56
+
57
+ NVIDIA-Nemotron-Nano-12B-v2 is a large language model (LLM) trained from scratch by NVIDIA, and designed as a unified model for both reasoning and non-reasoning tasks. It responds to user queries and tasks by first generating a reasoning trace and then concluding with a final response. The model's reasoning capabilities can be controlled via a system prompt. If the user prefers the model to provide its final answer without intermediate reasoning traces, it can be configured to do so, albeit with a slight decrease in accuracy for harder prompts that require reasoning. Conversely, allowing the model to generate reasoning traces first generally results in higher-quality final solutions to queries and tasks. The model was fine-tuned from [NVIDIA-Nemotron-Nano-12B-v2-Base](https://huggingface.co/nvidia/NVIDIA-Nemotron-Nano-12B-v2-Base) was further compressed into [NVIDIA-Nemotron-Nano-9B-v2](https://huggingface.co/nvidia/NVIDIA-Nemotron-Nano-9B-v2).
58
+
59
+ The model uses a hybrid architecture consisting primarily of Mamba-2 and MLP layers combined with just four Attention layers. For the architecture, please refer to the [Nemotron-H tech report](https://arxiv.org/abs/2504.03624).
60
+ The model was trained using [Megatron-LM](https://github.com/NVIDIA/Megatron-LM) and [NeMo-RL](https://github.com/NVIDIA-NeMo/RL).
61
+
62
+ The supported languages include: English, German, Spanish, French, Italian, and Japanese. Improved using Qwen.
63
+
64
+ This model is ready for commercial use.
65
+
66
+
67
+ ## License/Terms of Use
68
+
69
+ GOVERNING TERMS: Use of this model is governed by the [NVIDIA Open Model License Agreement](https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/).
70
+
71
+
72
+ ## Evaluation Results
73
+
74
+ ### Benchmark Results (Reasoning On)
75
+
76
+ We evaluated our model in **Reasoning-On** mode across all benchmarks, except RULER, which is evaluated in **Reasoning-Off** mode.
77
+
78
+
79
+ | Benchmark | NVIDIA-Nemotron-Nano-12B-v2 |
80
+ | :---- | ----- |
81
+ | AIME25 | 76.25% |
82
+ | MATH500 | 97.75% |
83
+ | GPQA | 64.48% |
84
+ | LCB | 70.79% |
85
+ | BFCL v3 | 66.98% |
86
+ | IFEVAL-Prompt | 84.70% |
87
+ | IFEVAL-Instruction | 89.81% |
88
+
89
+
90
+ All evaluations were done using [NeMo-Skills](https://github.com/NVIDIA/NeMo-Skills).
91
+ We published a [tutorial](https://nvidia.github.io/NeMo-Skills/tutorials/2025/08/22/reproducing-nvidia-nemotron-nano-9b-v2-evals/) with all details necessary to reproduce our evaluation results.
92
+
93
+ ## Reasoning Budget Control
94
+
95
+ This model supports runtime “thinking” budget control. During inference, the user can specify how many tokens the model is allowed to "think".
96
+
97
+ ![](./acc-vs-budget.png)
98
+
99
+ ## Model Architecture
100
+
101
+ - Architecture Type: Mamba2-Transformer Hybrid
102
+ - Network Architecture: Nemotron-Hybrid
103
+
104
+ ### Deployment Geography: Global
105
+
106
+ ### Use Case
107
+
108
+ NVIDIA-Nemotron-Nano-12B-v2 is a general purpose reasoning and chat model intended to be used in English and coding languages. Other non-English languages (German, French, Italian, Spanish and Japanese) are also supported. Developers designing AI Agent systems, chatbots, RAG systems, and other AI-powered applications. Also suitable for typical instruction-following tasks.
109
+
110
+ ### Release Date: 08/29/2025
111
+
112
+ - Huggingface 08/29/2025 via https://huggingface.co/nvidia/NVIDIA-Nemotron-Nano-12B-v2
113
+
114
+ ## References
115
+
116
+ - [NVIDIA Nemotron Nano 2: An Accurate and Efficient Hybrid Mamba-Transformer Reasoning Model](https://arxiv.org/abs/2508.14444)
117
+
118
+
119
+ ## Input
120
+
121
+ - Input Type(s): Text
122
+ - Input Format(s): String
123
+ - Input Parameters: One-Dimensional (1D): Sequences
124
+ - Other Properties Related to Input: Context length up to 128K. Supported languages include German, Spanish, French, Italian, Korean, Portuguese, Russian, Japanese, Chinese and English.
125
+
126
+ ## Output
127
+
128
+ - Output Type(s): Text
129
+ - Output Format: String
130
+ - Output Parameters: One-Dimensional (1D): Sequences up to 128K
131
+
132
+ Our 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.
133
+
134
+ ## Software Integration
135
+
136
+ - Runtime Engine(s): NeMo 25.07.nemotron-nano-v2
137
+ - Supported Hardware Microarchitecture Compatibility: NVIDIA A10G, NVIDIA H100-80GB, NVIDIA A100
138
+ - Operating System(s): Linux
139
+
140
+ ### **Use it with Transformers**
141
+
142
+ The snippet below shows how to use this model with Huggingface Transformers (tested on version 4.48.3).
143
+
144
+ ```
145
+ import torch
146
+ from transformers import AutoTokenizer, AutoModelForCausalLM
147
+
148
+ # Load tokenizer and model
149
+ tokenizer = AutoTokenizer.from_pretrained("nvidia/NVIDIA-Nemotron-Nano-12B-v2")
150
+ model = AutoModelForCausalLM.from_pretrained(
151
+ "nvidia/NVIDIA-Nemotron-Nano-12B-v2",
152
+ torch_dtype=torch.bfloat16,
153
+ trust_remote_code=True,
154
+ device_map="auto"
155
+ )
156
+ ```
157
+
158
+ Case 1: `/think` or no reasoning signal is provided in the system prompt, reasoning will be set to `True`
159
+
160
+ ```
161
+ messages = [
162
+ {"role": "system", "content": "/think"},
163
+ {"role": "user", "content": "Write a haiku about GPUs"},
164
+ ]
165
+ ```
166
+
167
+ Case 2: `/no_think` is provided, reasoning will be set to `False`
168
+
169
+ ```
170
+ messages = [
171
+ {"role": "system", "content": "/no_think"},
172
+ {"role": "user", "content": "Write a haiku about GPUs"},
173
+ ]
174
+ ```
175
+
176
+ Note: `/think` or `/no_think` keywords can also be provided in “user” messages for turn-level reasoning control.
177
+
178
+ The rest of the inference snippet remains the same
179
+
180
+ ```
181
+ tokenized_chat = tokenizer.apply_chat_template(
182
+ messages,
183
+ tokenize=True,
184
+ add_generation_prompt=True,
185
+ return_tensors="pt"
186
+ ).to(model.device)
187
+
188
+ outputs = model.generate(
189
+ tokenized_chat,
190
+ max_new_tokens=32,
191
+ eos_token_id=tokenizer.eos_token_id
192
+ )
193
+ print(tokenizer.decode(outputs[0]))
194
+ ```
195
+
196
+ We recommend setting `temperature` to `0.6`, `top_p` to `0.95` for reasoning True and greedy search for reasoning False, and increase `max_new_tokens` to `1024` or higher for reasoning True.
197
+
198
+ ### **Use it with TRT-LLM**
199
+
200
+ The snippet below shows how to use this model with TRT-LLM. We tested this on the following [commit](https://github.com/NVIDIA/TensorRT-LLM/tree/46c5a564446673cdd0f56bcda938d53025b6d04e) and followed these [instructions](https://github.com/NVIDIA/TensorRT-LLM/blob/46c5a564446673cdd0f56bcda938d53025b6d04e/docs/source/installation/build-from-source-linux.md#option-2-build-tensorrt-llm-step-by-step) to build and install TRT-LLM in a docker container.
201
+
202
+ ```
203
+ from tensorrt_llm import SamplingParams
204
+ from tensorrt_llm._torch import LLM
205
+ from tensorrt_llm._torch.pyexecutor.config import PyTorchConfig
206
+ from tensorrt_llm.llmapi import KvCacheConfig
207
+ from transformers import AutoTokenizer
208
+ pytorch_config = PyTorchConfig(
209
+ disable_overlap_scheduler=True, enable_trtllm_decoder=True
210
+ )
211
+ kv_cache_config = KvCacheConfig(
212
+ enable_block_reuse=False,
213
+ )
214
+ ```
215
+
216
+ ```
217
+ model_id = "nvidia/NVIDIA-Nemotron-Nano-12B-v2"
218
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
219
+
220
+ llm = LLM(
221
+ model=model_id,
222
+ max_seq_len=32678,
223
+ max_batch_size=4,
224
+ pytorch_backend_config=pytorch_config,
225
+ kv_cache_config=kv_cache_config,
226
+ tensor_parallel_size=8,
227
+ )
228
+ messages = [
229
+ {"role": "system", "content": "/think"},
230
+ {"role": "user", "content": "Write a haiku about GPUs"},
231
+ ]
232
+ prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
233
+ sampling_params = SamplingParams(
234
+ max_tokens=512,
235
+ temperature=0.6,
236
+ top_p=0.95,
237
+ add_special_tokens=False,
238
+ )
239
+ outputs = llm.generate([prompt], sampling_params)
240
+ print(outputs[0].outputs[0].text)
241
+ ```
242
+
243
+ ### **Use it with vLLM**
244
+
245
+ The snippet below shows how to use this model with vLLM. Use the latest version of vLLM and follow these instructions to build and install vLLM.
246
+
247
+ ```shell
248
+ pip install -U "vllm>=0.10.1"
249
+ ```
250
+
251
+ Now you can run run the server with:
252
+
253
+ ```shell
254
+ vllm serve nvidia/NVIDIA-Nemotron-Nano-12B-v2 \
255
+ --trust-remote-code \
256
+ --max-num-seqs 64 \
257
+ --mamba_ssm_cache_dtype float32
258
+ ```
259
+
260
+ Note:
261
+ - Remember to add \`--mamba\_ssm\_cache\_dtype float32\` for accurate quality. Without this option, the model’s accuracy may degrade.
262
+ - If you encounter a CUDA OOM issue, try `--max-num-seqs 64` and consider lower the value further if the error persists.
263
+
264
+
265
+
266
+ Alternativly, you can use Docker to launch a vLLM server.
267
+
268
+ ```
269
+ export TP_SIZE=1 # Adjust this value based on the number of GPUs you want to use
270
+ docker run --runtime nvidia --gpus all \
271
+ -v ~/.cache/huggingface:/root/.cache/huggingface \
272
+ --env "HUGGING_FACE_HUB_TOKEN=$HF_TOKEN" \
273
+ -p 8000:8000 \
274
+ --ipc=host \
275
+ vllm/vllm-openai:v0.10.1 \
276
+ --model nvidia/NVIDIA-Nemotron-Nano-12B-v2 \
277
+ --tensor-parallel-size ${TP_SIZE} \
278
+ --max-num-seqs 64 \
279
+ --max-model-len 131072 \
280
+ --trust-remote-code \
281
+ --mamba_ssm_cache_dtype float32
282
+ ```
283
+
284
+ #### Using Budget Control with a vLLM Server
285
+
286
+ The thinking budget allows developers to keep accuracy high and meet response‑time targets \- which is especially crucial for customer support, autonomous agent steps, and edge devices where every millisecond counts.
287
+
288
+ With budget control, you can set a limit for internal reasoning:
289
+
290
+ * `max_thinking_tokens`: This is a threshold that will attempt to end the reasoning trace at the next newline encountered in the reasoning trace. If no newline is encountered within 500 tokens, it will abruptly end the reasoning trace at \`max\_thinking\_tokens \+ 500\`.
291
+
292
+ Start a vLLM server:
293
+
294
+ ```shell
295
+ vllm serve nvidia/NVIDIA-Nemotron-Nano-12B-v2 \
296
+ --trust-remote-code \
297
+ --mamba_ssm_cache_dtype float32
298
+ ```
299
+
300
+ Client for supporting budget control:
301
+
302
+ ```py
303
+ from typing import Any, Dict, List
304
+
305
+ import openai
306
+ from transformers import AutoTokenizer
307
+
308
+
309
+ class ThinkingBudgetClient:
310
+ def __init__(self, base_url: str, api_key: str, tokenizer_name_or_path: str):
311
+ self.base_url = base_url
312
+ self.api_key = api_key
313
+ self.tokenizer = AutoTokenizer.from_pretrained(tokenizer_name_or_path)
314
+ self.client = openai.OpenAI(base_url=self.base_url, api_key=self.api_key)
315
+
316
+
317
+ def chat_completion(
318
+ self,
319
+ model: str,
320
+ messages: List[Dict[str, Any]],
321
+ max_thinking_budget: int = 512,
322
+ max_tokens: int = 1024,
323
+ **kwargs,
324
+ ) -> Dict[str, Any]:
325
+ assert (
326
+ max_tokens > max_thinking_budget
327
+ ), f"thinking budget must be smaller than maximum new tokens. Given {max_tokens=} and {max_thinking_budget=}"
328
+
329
+
330
+ # 1. first call chat completion to get reasoning content
331
+ response = self.client.chat.completions.create(
332
+ model=model, messages=messages, max_tokens=max_thinking_budget, **kwargs
333
+ )
334
+ content = response.choices[0].message.content
335
+
336
+
337
+ reasoning_content = content
338
+ if not "</think>" in reasoning_content:
339
+ # reasoning content is too long, closed with a period (.)
340
+ reasoning_content = f"{reasoning_content}.\n</think>\n\n"
341
+ reasoning_tokens_len = len(
342
+ self.tokenizer.encode(reasoning_content, add_special_tokens=False)
343
+ )
344
+ remaining_tokens = max_tokens - reasoning_tokens_len
345
+ assert (
346
+ remaining_tokens > 0
347
+ ), f"remaining tokens must be positive. Given {remaining_tokens=}. Increase the max_tokens or lower the max_thinking_budget."
348
+
349
+
350
+ # 2. append reasoning content to messages and call completion
351
+ messages.append({"role": "assistant", "content": reasoning_content})
352
+ prompt = self.tokenizer.apply_chat_template(
353
+ messages,
354
+ tokenize=False,
355
+ continue_final_message=True,
356
+ )
357
+ response = self.client.completions.create(
358
+ model=model, prompt=prompt, max_tokens=remaining_tokens, **kwargs
359
+ )
360
+
361
+
362
+ response_data = {
363
+ "reasoning_content": reasoning_content.strip().strip("</think>").strip(),
364
+ "content": response.choices[0].text,
365
+ "finish_reason": response.choices[0].finish_reason,
366
+ }
367
+ return response_data
368
+ ```
369
+
370
+ Calling the server with a budget (Restricted to 32 tokens here as an example)
371
+
372
+ ```py
373
+ tokenizer_name_or_path = "nvidia/NVIDIA-Nemotron-Nano-12B-v2"
374
+ client = ThinkingBudgetClient(
375
+ base_url="http://localhost:8000/v1", # Nano 12B v2 deployed in thinking mode
376
+ api_key="EMPTY",
377
+ tokenizer_name_or_path=tokenizer_name_or_path,
378
+ )
379
+
380
+
381
+ result = client.chat_completion(
382
+ model="nvidia/NVIDIA-Nemotron-Nano-12B-v2",
383
+ messages=[
384
+ {"role": "system", "content": "You are a helpful assistant. /think"},
385
+ {"role": "user", "content": "What is 2+2?"},
386
+ ],
387
+ max_thinking_budget=32,
388
+ max_tokens=512,
389
+ temperature=0.6,
390
+ top_p=0.95,
391
+ )
392
+ print(result)
393
+ ```
394
+
395
+ You should see output similar to the following:
396
+
397
+ ```
398
+ {'reasoning_content': "Okay, the user asked, What is 2+2? Let me think. Well, 2 plus 2 equals 4. That's a basic.", 'content': '2 + 2 equals **4**.\n', 'finish_reason': 'stop'}
399
+ ```
400
+
401
+ #### Using Tool-Calling with a vLLM Server
402
+
403
+ Start a vLLM server with native tool-calling:
404
+
405
+ ```shell
406
+ git clone https://huggingface.co/nvidia/NVIDIA-Nemotron-Nano-12B-v2
407
+
408
+ vllm serve nvidia/NVIDIA-Nemotron-Nano-12B-v2 \
409
+ --trust-remote-code \
410
+ --mamba_ssm_cache_dtype float32 \
411
+ --enable-auto-tool-choice \
412
+ --tool-parser-plugin "NVIDIA-Nemotron-Nano-12B-v2/nemotron_toolcall_parser_no_streaming.py" \
413
+ --tool-call-parser "nemotron_json"
414
+ ```
415
+
416
+ ## After launching a vLLM server, you can call the server with tool-call support using a Python script like below:
417
+
418
+ ```py
419
+ from openai import OpenAI
420
+
421
+ client = OpenAI(
422
+ base_url="http://0.0.0.0:5000/v1",
423
+ api_key="dummy",
424
+ )
425
+
426
+ completion = client.chat.completions.create(
427
+ model="nvidia/NVIDIA-Nemotron-Nano-12B-v2",
428
+ messages=[
429
+ {"role": "system", "content": ""},
430
+ {"role": "user", "content": "My bill is $100. What will be the amount for 18% tip?"}
431
+ ],
432
+ tools=[
433
+ {
434
+ "type": "function",
435
+ "function": {
436
+ "name": "calculate_tip",
437
+ "parameters": {
438
+ "type": "object",
439
+ "properties": {
440
+ "bill_total": {
441
+ "type": "integer",
442
+ "description": "The total amount of the bill"
443
+ },
444
+ "tip_percentage": {
445
+ "type": "integer",
446
+ "description": "The percentage of tip to be applied"
447
+ }
448
+ },
449
+ "required": ["bill_total", "tip_percentage"]
450
+ }
451
+ }
452
+ },
453
+ {
454
+ "type": "function",
455
+ "function": {
456
+ "name": "convert_currency",
457
+ "parameters": {
458
+ "type": "object",
459
+ "properties": {
460
+ "amount": {
461
+ "type": "integer",
462
+ "description": "The amount to be converted"
463
+ },
464
+ "from_currency": {
465
+ "type": "string",
466
+ "description": "The currency code to convert from"
467
+ },
468
+ "to_currency": {
469
+ "type": "string",
470
+ "description": "The currency code to convert to"
471
+ }
472
+ },
473
+ "required": ["from_currency", "amount", "to_currency"]
474
+ }
475
+ }
476
+ }
477
+ ],
478
+ temperature=0.6,
479
+ top_p=0.95,
480
+ max_tokens=32768,
481
+ stream=False
482
+ )
483
+
484
+ print(completion.choices[0].message.content)
485
+ print(completion.choices[0].message.tool_calls)
486
+ ```
487
+
488
+ You should see output similar to the following:
489
+
490
+ ```
491
+ <think>
492
+ Okay, let's see. The user has a bill of $100 and wants to know the amount for an 18% tip. Hmm, I need to calculate the tip based on the bill total and the percentage. The tools provided include calculate_tip, which takes bill_total and tip_percentage as parameters. So the bill_total here is 100, and the tip_percentage is 18. I should call the calculate_tip function with these values. Wait, do I need to check if the parameters are integers? The bill is $100, which is an integer, and 18% is also an integer. So that fits the function's requirements. I don't need to convert any currency here because the user is asking about a tip in the same currency. So the correct tool to use is calculate_tip with those parameters.
493
+ </think>
494
+
495
+ [ChatCompletionMessageToolCall(id='chatcmpl-tool-e341c6954d2c48c2a0e9071c7bdefd8b', function=Function(arguments='{"bill_total": 100, "tip_percentage": 18}', name='calculate_tip'), type='function')]
496
+ ```
497
+
498
+ ## Model Version
499
+
500
+ - v1.0
501
+
502
+ ## Prompt Format
503
+
504
+ We follow the jinja chat template provided below. This template conditionally adds `<think>\n` to the start of the Assistant response if `/think` is found in either the system prompt or any user message. If no reasoning signal is added, the model defaults to reasoning "on" mode. The chat template adds `<think></think>` to the start of the Assistant response if `/no_think` is found in the system prompt. Thus enforcing reasoning on/off behavior.
505
+
506
+ ```
507
+ {%- set ns = namespace(enable_thinking = true) %}
508
+
509
+ {%- for message in messages -%}
510
+ {%- set content = message['content'] -%}
511
+ {%- if message['role'] == 'user' or message['role'] == 'system' -%}
512
+ {%- if '/think' in content -%}
513
+ {%- set ns.enable_thinking = true -%}
514
+ {%- elif '/no_think' in content -%}
515
+ {%- set ns.enable_thinking = false -%}
516
+ {%- endif -%}
517
+ {%- endif -%}
518
+ {%- endfor -%}
519
+
520
+ {%- if messages[0]['role'] != 'system' -%}
521
+ {%- set ns.non_tool_system_content = '' -%}
522
+ {{- '<SPECIAL_10>System\n' -}}
523
+ {%- else -%}
524
+ {%- set ns.non_tool_system_content = messages[0]['content']
525
+ .replace('/think', '')
526
+ .replace('/no_think', '')
527
+ .strip()
528
+ -%}
529
+ {{- '<SPECIAL_10>System\n' + ns.non_tool_system_content }}
530
+ {%- endif -%}
531
+
532
+ {%- if tools -%}
533
+ {%- if ns.non_tool_system_content is defined and ns.non_tool_system_content != '' -%}
534
+ {{- '\n\n' -}}
535
+ {%- endif -%}
536
+
537
+ {{- 'You can use the following tools to assist the user if required:' -}}
538
+ {{- '\n<AVAILABLE_TOOLS>[' -}}
539
+ {%- for tool in tools -%}
540
+ {{- (tool.function if tool.function is defined else tool) | tojson -}}
541
+ {{- ', ' if not loop.last else '' -}}
542
+ {%- endfor -%}
543
+ {{- ']</AVAILABLE_TOOLS>\n\n' -}}
544
+
545
+ {{- 'If you decide to call any tool(s), use the following format:\n' -}}
546
+ {{- '<TOOLCALL>[{{"name": "tool_name1", "arguments": "tool_args1"}}, ' -}}
547
+ {{- '{{"name": "tool_name2", "arguments": "tool_args2"}}]</TOOLCALL>\n\n' -}}
548
+
549
+ {{- 'The user will execute tool-calls and return responses from tool(s) in this format:\n' -}}
550
+ {{- '<TOOL_RESPONSE>[{{"tool_response1"}}, {{"tool_response2"}}]</TOOL_RESPONSE>\n\n' -}}
551
+
552
+ {{- 'Based on the tool responses, you can call additional tools if needed, correct tool calls if any errors are found, or just respond to the user.' -}}
553
+ {%- endif -%}
554
+
555
+ {{- '\n' -}}
556
+
557
+ {%- set messages = messages[1:] if messages[0]['role'] == 'system' else messages -%}
558
+
559
+ {%- if messages[-1]['role'] == 'assistant' -%}
560
+ {%- set ns.last_turn_assistant_content = messages[-1]['content'].strip() -%}
561
+ {%- set messages = messages[:-1] -%}
562
+ {%- endif -%}
563
+
564
+ {%- for message in messages -%}
565
+ {%- set content = message['content'] -%}
566
+
567
+ {%- if message['role'] == 'user' -%}
568
+ {{- '<SPECIAL_11>User\n' + content.replace('/think', '').replace('/no_think', '').strip() + '\n' }}
569
+
570
+ {%- elif message['role'] == 'tool' -%}
571
+ {%- if loop.first or (messages[loop.index0 - 1].role != 'tool') -%}
572
+ {{- '<SPECIAL_11>User\n' + '<TOOL_RESPONSE>[' }}
573
+ {%- endif -%}
574
+ {{- message['content'] -}}
575
+ {{- ', ' if not loop.last and (messages[loop.index0 + 1].role == 'tool') else '' -}}
576
+ {%- if loop.last or (messages[loop.index0 + 1].role != 'tool') -%}
577
+ {{- ']</TOOL_RESPONSE>\n' -}}
578
+ {%- endif -%}
579
+
580
+ {%- elif message['role'] == 'assistant' -%}
581
+ {%- if '</think>' in content -%}
582
+ {%- set content = content.split('</think>')[1].strip() %}
583
+ {%- endif -%}
584
+
585
+ {{- '<SPECIAL_11>Assistant\n' + content.strip() }}
586
+
587
+ {%- if message.tool_calls -%}
588
+ {%- if content.strip() != '' -%}
589
+ {{- '\n\n' -}}
590
+ {%- endif -%}
591
+ {{- '<TOOLCALL>[' -}}
592
+ {%- for call in message.tool_calls -%}
593
+ {%- set fn = call.function if call.function is defined else call -%}
594
+ {{- '{"name": "' + fn.name + '", "arguments": ' -}}
595
+ {%- if fn.arguments is string -%}
596
+ {{- fn.arguments -}}
597
+ {%- else -%}
598
+ {{- fn.arguments | tojson -}}
599
+ {%- endif -%}
600
+ {{- '}' + (', ' if not loop.last else '') -}}
601
+ {%- endfor -%}
602
+ {{- ']</TOOLCALL>' -}}
603
+ {%- endif -%}
604
+
605
+ {{- '\n<SPECIAL_12>\n' -}}
606
+ {%- endif -%}
607
+ {%- endfor -%}
608
+
609
+ {%- if add_generation_prompt -%}
610
+ {{- '<SPECIAL_11>Assistant\n' -}}
611
+ {%- if ns.enable_thinking is defined and ns.enable_thinking is false -%}
612
+ {{- '<think></think>' -}}
613
+ {%- else -%}
614
+ {{- '<think>\n' -}}
615
+ {%- endif -%}
616
+ {%- if ns.last_turn_assistant_content is defined and ns.last_turn_assistant_content != '' -%}
617
+ {{- ns.last_turn_assistant_content -}}
618
+ {%- endif -%}
619
+
620
+ {%- else -%}
621
+ {%- if ns.last_turn_assistant_content is defined and ns.last_turn_assistant_content != '' -%}
622
+ {{- '<SPECIAL_11>Assistant\n' -}}
623
+ {%- if ns.enable_thinking is defined and ns.enable_thinking is false -%}
624
+ {{- '<think></think>' -}}
625
+ {%- else -%}
626
+ {{- '<think>\n' -}}
627
+ {%- endif -%}
628
+ {{- ns.last_turn_assistant_content -}}
629
+
630
+ {%- if continue_final_message is defined -%}
631
+ {%- if continue_final_message is false -%}
632
+ {{- '\n<SPECIAL_12>\n' -}}
633
+ {%- endif -%}
634
+ {%- else -%}
635
+ {{- '\n<SPECIAL_12>\n' -}}
636
+ {%- endif -%}
637
+ {%- endif -%}
638
+ {%- endif -%}
639
+ ```
640
+
641
+ ##
642
+
643
+ ## Training, Testing, and Evaluation Datasets
644
+
645
+ ### Training datasets
646
+
647
+ * Data Modality: Text
648
+ * Text Training Data Size: More than 10 Trillion Tokens
649
+ * Train/Test/Valid Split: We used 100% of the corpus for pre-training and relied on external benchmarks for testing.
650
+ * Data Collection Method by dataset: Hybrid: Automated, Human, Synthetic
651
+ * Labeling Method by dataset: Hybrid: Automated, Human, Synthetic
652
+
653
+
654
+ **Properties:** The post-training corpus for NVIDIA-Nemotron-Nano-12B-v2 consists of English and multilingual text (German, Spanish, French, Italian, Korean, Portuguese, Russian, Japanese, Chinese and English). Our sources cover a variety of document types such as: webpages, dialogue, articles, and other written materials. The corpus spans domains including code, legal, math, science, finance, and more. We also include a small portion of question-answering, and alignment style data to improve model accuracies. For several of the domains listed above we used synthetic data, specifically reasoning traces, from DeepSeek R1/R1-0528, Qwen3-235B-A22B, Nemotron 4 340B, Qwen2.5-32B-Instruct-AWQ, Qwen2.5-14B-Instruct, Qwen 2.5 72B.
655
+
656
+ The pre-training corpus for NVIDIA-Nemotron-Nano-12B-v2 consists of high-quality curated and synthetically-generated data. It is trained in the English language, as well as 15 multilingual languages and 43 programming languages. Our sources cover a variety of document types such as: webpages, dialogue, articles, and other written materials. The corpus spans domains including legal, math, science, finance, and more. We also include a small portion of question-answering, and alignment style data to improve model accuracy. The model was pre-trained for approximately twenty trillion tokens.
657
+
658
+ Alongside the model, we release our [final pretraining data](https://huggingface.co/collections/nvidia/nemotron-pre-training-dataset-689d9de36f84279d83786b35), as outlined in this section. For ease of analysis, there is a sample set that is ungated. For all remaining code, math and multilingual data, gating and approval is required, and the dataset is permissively licensed for model training purposes.
659
+
660
+ More details on the datasets and synthetic data generation methods can be found in the technical report [NVIDIA Nemotron Nano 2: An Accurate and Efficient Hybrid Mamba-Transformer Reasoning Model](https://research.nvidia.com/labs/adlr/files/NVIDIA-Nemotron-Nano-2-Technical-Report.pdf) .
661
+
662
+
663
+ ## Public Datasets
664
+
665
+ | Dataset | Collection Period |
666
+ | :---- | :---- |
667
+ | [Problems in Elementary Mathematics for Home Study](https://archive.org/details/AntonovVygodskyNikitinSankinProblemsInElementaryMathematicsForHomeStudyMir1982) | 4/23/2025 |
668
+ | [GSM8K](https://github.com/openai/grade-school-math) | 4/23/2025 |
669
+ | [PRM800K](https://github.com/openai/prm800k) | 4/23/2025 |
670
+ | [CC-NEWS](https://commoncrawl.org/blog/news-dataset-available) | 4/23/2025 |
671
+ | [Common Crawl](https://commoncrawl.org/) | 4/23/2025 |
672
+ | [Wikimedia](https://dumps.wikimedia.org/) | 4/23/2025 |
673
+ | [Bespoke-Stratos-17k](https://huggingface.co/datasets/bespokelabs/Bespoke-Stratos-17k) | 4/23/2025 |
674
+ | [tigerbot-kaggle-leetcodesolutions-en-2k](https://huggingface.co/datasets/TigerResearch/tigerbot-kaggle-leetcodesolutions-en-2k) | 4/23/2025 |
675
+ | [glaive-function-calling-v2](https://huggingface.co/datasets/glaiveai/glaive-function-calling-v2) | 4/23/2025 |
676
+ | [APIGen Function-Calling](https://huggingface.co/datasets/Salesforce/xlam-function-calling-60k) | 4/23/2025 |
677
+ | [LMSYS-Chat-1M](https://huggingface.co/datasets/lmsys/lmsys-chat-1m) | 4/23/2025 |
678
+ | [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 |
679
+ | [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 |
680
+ | [FineWeb-2](https://huggingface.co/datasets/HuggingFaceFW/fineweb-2) | 4/23/2025 |
681
+ | [Court Listener](https://www.courtlistener.com/help/api/bulk-data/) | Legacy Download |
682
+ | [peS2o](https://huggingface.co/datasets/allenai/peS2o) | Legacy Download |
683
+ | [OpenWebMath](https://huggingface.co/datasets/open-web-math/open-web-math) | Legacy Download |
684
+ | [BioRxiv](https://www.biorxiv.org/tdm) | Legacy Download |
685
+ | [PMC Open Access Subset](https://pmc.ncbi.nlm.nih.gov/tools/openftlist/) | Legacy Download |
686
+ | [OpenWebText2](https://openwebtext2.readthedocs.io/en/latest/) | Legacy Download |
687
+ | [Stack Exchange Data Dump](https://archive.org/details/stackexchange) | Legacy Download |
688
+ | [PubMed Abstracts](https://github.com/thoppe/The-Pile-PubMed) | Legacy Download |
689
+ | [NIH ExPorter](https://exporter.nih.gov/ExPORTER_Catalog.aspx) | Legacy Download |
690
+ | [arXiv](https://info.arxiv.org/help/bulk_data/index.html) | Legacy Download |
691
+ | [BigScience Workshop Datasets](https://github.com/bigscience-workshop/bigscience/tree/master/train/tr11-176B-ml#datasets) | Legacy Download |
692
+ | [Reddit Dataset](https://files.pushshift.io/reddit/) | Legacy Download |
693
+ | [SEC's Electronic Data Gathering, Analysis, and Retrieval (EDGAR)](https://www.sec.gov/search-filings) | Legacy Download |
694
+ | [Public Software Heritage S3](https://docs.softwareheritage.org/devel/swh-export/graph/dataset.html#summary-of-dataset-versions) | Legacy Download |
695
+ | [The Stack](https://huggingface.co/datasets/bigcode/the-stack) | Legacy Download |
696
+ | [mC4](https://huggingface.co/datasets/legacy-datasets/mc4) | Legacy Download |
697
+ | [Advanced Mathematical Problem Solving](https://github.com/hendrycks/math?tab=readme-ov-file) | Legacy Download |
698
+ | [MathPile](https://github.com/GAIR-NLP/MathPile/) | Legacy Download |
699
+ | [NuminaMath CoT](https://huggingface.co/datasets/AI-MO/NuminaMath-CoT) | Legacy Download |
700
+ | [PMC Article](https://pmc.ncbi.nlm.nih.gov/tools/textmining/) | Legacy Download |
701
+ | [FLAN](https://github.com/google-research/FLAN) | Legacy Download |
702
+ | [Advanced Reasoning Benchmark](https://github.com/TheDuckAI/arb) | Legacy Download |
703
+ | [SciBench](https://github.com/mandyyyyii/scibench) | Legacy Download |
704
+ | [WikiTableQuestions](https://huggingface.co/datasets/wikitablequestions) | Legacy Download |
705
+ | [FinQA](https://finqasite.github.io/) | Legacy Download |
706
+ | [Riddles](https://github.com/crawsome/riddles) | Legacy Download |
707
+ | [Problems in Elementary Mathematics for Home Study](https://archive.org/details/AntonovVygodskyNikitinSankinProblemsInElementaryMathematicsForHomeStudyMir1982) | Legacy Download |
708
+ | [MedMCQA](https://huggingface.co/datasets/openlifescienceai/medmcqa) | Legacy Download |
709
+ | [Cosmos QA](https://huggingface.co/datasets/allenai/cosmos_qa) | Legacy Download |
710
+ | [MCTest](https://huggingface.co/datasets/sagnikrayc/mctest) | Legacy Download |
711
+ | [AI2's Reasoning Challenge](https://huggingface.co/datasets/ai2_arc) | Legacy Download |
712
+ | [OpenBookQA](https://github.com/allenai/OpenBookQA) | Legacy Download |
713
+ | [MMLU Auxiliary Train](https://huggingface.co/datasets/cais/mmlu/viewer/all/auxiliary_train) | Legacy Download |
714
+ | [social-chemestry-101](https://huggingface.co/datasets/tasksource/social-chemestry-101) | Legacy Download |
715
+ | [Moral Stories](https://huggingface.co/datasets/demelin/moral_stories) | Legacy Download |
716
+ | [The Common Pile v0.1](https://huggingface.co/common-pile) | Legacy Download |
717
+ | [FineMath](https://huggingface.co/datasets/HuggingFaceTB/finemath) | Legacy Download |
718
+ | [MegaMath](https://huggingface.co/datasets/LLM360/MegaMath) | Legacy Download |
719
+ | [FastChat](https://github.com/lm-sys/FastChat) | 6/30/2025 |
720
+
721
+ ## Private Non-publicly Accessible Datasets of Third Parties
722
+
723
+ | Dataset |
724
+ | :---- |
725
+ | Global Regulation |
726
+ | Workbench |
727
+
728
+ ## Online Dataset Sources
729
+
730
+ The English Common Crawl data was downloaded from the Common Crawl Foundation (see their [FAQ](https://commoncrawl.org/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 described in the [Nemotron-CC paper](https://arxiv.org/abs/2412.02595).
731
+
732
+ 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.
733
+
734
+ 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 (for additional details, refer to the technical report).
735
+
736
+ | Dataset | Modality | Dataset Size (Tokens) | Collection Period |
737
+ | :---- | :---- | :---- | :---- |
738
+ | English Common Crawl | Text | 3.360T | 4/8/2025 |
739
+ | Multilingual Common Crawl | Text | 812.7B | 5/1/2025 |
740
+ | GitHub Crawl | Text | 747.4B | 4/29/2025 |
741
+
742
+ ## NVIDIA-Sourced Synthetic Datasets
743
+
744
+ | Dataset | Modality | Dataset Size (Tokens) | Seed Dataset | Model(s) used for generation |
745
+ | :---- | :---- | :---- | :---- | :---- |
746
+ | Synthetic Art of Problem Solving from DeepSeek-R1 | Text | 25.5B | [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) |
747
+ | 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) |
748
+ | 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) |
749
+ | 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) |
750
+ | 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) |
751
+ | [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) |
752
+ | 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) |
753
+ | Synthetic FineMath-4+ Reprocessed from DeepSeek-V3 | Text | 9.2B | [Common Crawl](https://commoncrawl.org/latest-crawl) | [DeepSeek-V3](https://huggingface.co/deepseek-ai/DeepSeek-V3) |
754
+ | Synthetic FineMath-3+ Reprocessed from phi-4 | Text | 27.6B | [Common Crawl](https://commoncrawl.org/latest-crawl) | [phi-4](https://huggingface.co/microsoft/phi-4) |
755
+ | Synthetic Union-3+ Reprocessed from phi-4 | Text | 93.1B | [Common Crawl](https://commoncrawl.org/latest-crawl) | [phi-4](https://huggingface.co/microsoft/phi-4) |
756
+ | Refreshed [Nemotron-MIND](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) |
757
+ | Synthetic Union-4+ Reprocessed from phi-4 | Text | 14.12B | [Common Crawl](https://commoncrawl.org/latest-crawl) | [phi-4](https://huggingface.co/microsoft/phi-4) |
758
+ | Synthetic Union-3+ minus 4+ Reprocessed from phi-4 | Text | 78.95B | [Common Crawl](https://commoncrawl.org/latest-crawl) | [phi-4](https://huggingface.co/microsoft/phi-4) |
759
+ | Synthetic Union-3 Refreshed from phi-4 | Text | 80.94B | [Common Crawl](https://commoncrawl.org/latest-crawl) | [phi-4](https://huggingface.co/microsoft/phi-4) |
760
+ | Synthetic Union-4+ Refreshed from phi-4 | Text | 52.32B | [Common Crawl](https://commoncrawl.org/latest-crawl) | [phi-4](https://huggingface.co/microsoft/phi-4) |
761
+ | 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) |
762
+ | 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) |
763
+ | Synthetic Art of Problem Solving from Qwen2.5-32B-Instruct, Qwen2.5-Math-72B, Qwen2.5-Math-7B, and Qwen2.5-72B-Instruct | Text | 83.1B | [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) |
764
+ | 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) |
765
+ | Synthetic Long Context Continued Post-Training Data from Papers and Permissible Books from Qwen2.5-72B-Instruct | Text | 5.4B | [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) |
766
+ | Synthetic Common Crawl from Qwen3-30B-A3B and Mistral-Nemo-12B-Instruct | Text | 1.949T | [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) |
767
+ | Synthetic Multilingual Data from Common Crawl from Qwen3-30B-A3B | Text | 997.3B | [Common Crawl](https://commoncrawl.org/) | [Qwen3-30B-A3B](https://huggingface.co/Qwen/Qwen3-30B-A3B) |
768
+ | Synthetic Multilingual Data from Wikimedia from Qwen3-30B-A3B | Text | 55.1B | [Wikimedia](https://dumps.wikimedia.org/) | [Qwen3-30B-A3B](https://huggingface.co/Qwen/Qwen3-30B-A3B) |
769
+ | Synthetic OpenMathReasoning from DeepSeek-R1-0528 | Text | 1.5M | [OpenMathReasoning](https://huggingface.co/datasets/nvidia/OpenMathReasoning) | [DeepSeek-R1-0528](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528) |
770
+ | Synthetic OpenCodeReasoning from DeepSeek-R1-0528 | Text | 1.1M | [OpenCodeReasoning](https://huggingface.co/datasets/nvidia/OpenCodeReasoning) | [DeepSeek-R1-0528](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528) |
771
+ | Synthetic Science Data from DeepSeek-R1-0528 | Text | 1.5M | \- | [DeepSeek-R1-0528](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528) |
772
+ | Synthetic Humanity's Last Exam from DeepSeek-R1-0528 | Text | 460K | [Humanity's Last Exam](https://huggingface.co/datasets/cais/hle) | [DeepSeek-R1-0528](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528) |
773
+ | Synthetic ToolBench from Qwen3-235B-A22B | Text | 400K | [ToolBench](https://github.com/OpenBMB/ToolBench) | [Qwen3-235B-A22B](https://huggingface.co/Qwen/Qwen3-235B-A22B) |
774
+ | Synthetic Nemotron Content Safety Dataset V2, eval-safety, Gretel Synthetic Safety Alignment, and RedTeam\_2K from DeepSeek-R1-0528 | Text | 52K | [Nemotron Content Safety Dataset V2](https://huggingface.co/datasets/nvidia/Aegis-AI-Content-Safety-Dataset-2.0); [eval-safety](https://github.com/CrystalEye42/eval-safety/blob/main/malicious_tasks_dataset.yaml); [Gretel Synthetic Safety Alignment](https://huggingface.co/datasets/gretelai/gretel-safety-alignment-en-v1); [RedTeam\_2K](https://huggingface.co/datasets/JailbreakV-28K/JailBreakV-28k/viewer/RedTeam_2K) | [DeepSeek-R1-0528](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528) |
775
+ | Synthetic HelpSteer from Qwen3-235B-A22B | Text | 120K | [HelpSteer3](https://huggingface.co/datasets/nvidia/HelpSteer3); [HelpSteer2](https://huggingface.co/datasets/nvidia/HelpSteer2) | [Qwen3-235B-A22B](https://huggingface.co/Qwen/Qwen3-235B-A22B) |
776
+ | Synthetic Alignment data from Mixtral-8x22B-Instruct-v0.1, Mixtral-8x7B-Instruct-v0.1, and Nemotron-4 Family | Text | 400K | [HelpSteer2](https://huggingface.co/datasets/nvidia/HelpSteer2); [C4](https://huggingface.co/datasets/allenai/c4); [LMSYS-Chat-1M](https://huggingface.co/datasets/lmsys/lmsys-chat-1m); [ShareGPT52K](https://huggingface.co/datasets/RyokoAI/ShareGPT52K); [tigerbot-kaggle-leetcodesolutions-en-2k](https://huggingface.co/datasets/TigerResearch/tigerbot-kaggle-leetcodesolutions-en-2k); [GSM8K](https://github.com/openai/grade-school-math); [PRM800K](https://github.com/openai/prm800k); lm\_identity (NVIDIA internal); [FinQA](https://finqasite.github.io/); [WikiTableQuestions](https://huggingface.co/datasets/wikitablequestions); [Riddles](https://github.com/crawsome/riddles); ChatQA nvolve-multiturn (NVIDIA internal); [glaive-function-calling-v2](https://huggingface.co/datasets/glaiveai/glaive-function-calling-v2); [SciBench](https://github.com/mandyyyyii/scibench); [OpenBookQA](https://github.com/allenai/OpenBookQA); [Advanced Reasoning Benchmark](https://github.com/TheDuckAI/arb); [Public Software Heritage S3](https://docs.softwareheritage.org/devel/swh-export/graph/dataset.html#summary-of-dataset-versions); [Khan Academy Math Keywords](https://www.khanacademy.org/math) | Nemotron-4-15B-Base (NVIDIA internal); Nemotron-4-15B-Instruct (NVIDIA internal); [Nemotron-4-340B-Base](https://huggingface.co/nvidia/Nemotron-4-340B-Base); [Nemotron-4-340B-Instruct](https://huggingface.co/nvidia/Nemotron-4-340B-Instruct); [Nemotron-4-340B-Reward](https://huggingface.co/nvidia/Nemotron-4-340B-Reward); [Mixtral-8x7B-Instruct-v0.1](https://huggingface.co/mistralai/Mixtral-8x7B-Instruct-v0.1); [Mixtral-8x22B-Instruct-v0.1](https://huggingface.co/mistralai/Mixtral-8x22B-Instruct-v0.1) |
777
+ | Synthetic LMSYS-Chat-1M from Qwen3-235B-A22B | Text | 1M | [LMSYS-Chat-1M](https://huggingface.co/datasets/lmsys/lmsys-chat-1m) | [Qwen3-235B-A22B](https://huggingface.co/Qwen/Qwen3-235B-A22B) |
778
+ | Synthetic Multilingual Reasoning data from DeepSeek-R1-0528, Qwen2.5-32B-Instruct-AWQ, and Qwen2.5-14B-Instruct | Text | 25M | [OpenMathReasoning](https://huggingface.co/datasets/nvidia/OpenMathReasoning); [OpenCodeReasoning](https://huggingface.co/datasets/nvidia/OpenCodeReasoning) | [DeepSeek-R1-0528](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528); [Qwen2.5-32B-Instruct-AWQ](https://huggingface.co/Qwen/Qwen2.5-32B-Instruct-AWQ) (translation); [Qwen2.5-14B-Instruct](https://huggingface.co/Qwen/Qwen2.5-14B-Instruct) (translation); |
779
+ | Synthetic Multilingual Reasoning data from Qwen3-235B-A22B and Gemma 3 Post-Trained models | Text | 5M | [WildChat](https://huggingface.co/datasets/allenai/WildChat-1M) | [Qwen3-235B-A22B](https://huggingface.co/Qwen/Qwen3-235B-A22B); [Gemma 3 PT 12B](https://huggingface.co/google/gemma-3-12b-it); [Gemma 3 PT 27B](https://huggingface.co/google/gemma-3-27b-it) |
780
+
781
+ ### Evaluation Dataset:
782
+
783
+ * Data Collection Method by dataset: Hybrid: Human, Synthetic
784
+ * Labeling Method by dataset: Hybrid: Automated, Human, Synthetic
785
+
786
+ ## Inference
787
+
788
+ - ## Engines: HF, vLLM, TRT-LLM
789
+
790
+ - ## Test Hardware NVIDIA A10G 24GB, H100 80GB
791
+
792
+ ## Ethical Considerations
793
+
794
+ 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 [Trustworthy AI terms of service](https://www.nvidia.com/en-us/agreements/trustworthy-ai/terms/), 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.
795
+
796
+ For more detailed information on ethical considerations for this model, please see the Model Card++ [Bias](./bias.md), [Explainability](./explainability.md), [Safety & Security](./safety.md), and [Privacy](./privacy.md) Subcards.
797
+
798
+ Please report security vulnerabilities or NVIDIA AI Concerns [here](https://www.nvidia.com/en-us/support/submit-security-vulnerability/).
799
+
800
+
801
+ ## Citation
802
+
803
+ ```
804
+ @misc{nvidia2025nvidianemotronnano2,
805
+ title={NVIDIA Nemotron Nano 2: An Accurate and Efficient Hybrid Mamba-Transformer Reasoning Model},
806
+ author={NVIDIA},
807
+ year={2025},
808
+ eprint={2508.14444},
809
+ archivePrefix={arXiv},
810
+ primaryClass={cs.CL},
811
+ url={https://arxiv.org/abs/2508.14444},
812
+ }
813
+ ```