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
+
- nvidia
|
11 |
+
- math
|
12 |
+
library_name: transformers
|
13 |
+
---
|
14 |
+
|
15 |
+
# <span style="color: #7FFF7F;">OpenMath-Nemotron-14B GGUF Models</span>
|
16 |
+
|
17 |
+
|
18 |
+
## <span style="color: #7F7FFF;">Model Generation Details</span>
|
19 |
+
|
20 |
+
This model was generated using [llama.cpp](https://github.com/ggerganov/llama.cpp) at commit [`19e899c`](https://github.com/ggerganov/llama.cpp/commit/19e899ce21a7c9ffcf8bb2b22269a75f6e078f8f).
|
21 |
+
|
22 |
+
|
23 |
+
|
24 |
+
|
25 |
+
## <span style="color: #7FFF7F;">Ultra-Low-Bit Quantization with IQ-DynamicGate (1-2 bit)</span>
|
26 |
+
|
27 |
+
Our latest quantization method introduces **precision-adaptive quantization** for ultra-low-bit models (1-2 bit), with benchmark-proven improvements on **Llama-3-8B**. This approach uses layer-specific strategies to preserve accuracy while maintaining extreme memory efficiency.
|
28 |
+
|
29 |
+
### **Benchmark Context**
|
30 |
+
All tests conducted on **Llama-3-8B-Instruct** using:
|
31 |
+
- Standard perplexity evaluation pipeline
|
32 |
+
- 2048-token context window
|
33 |
+
- Same prompt set across all quantizations
|
34 |
+
|
35 |
+
### **Method**
|
36 |
+
- **Dynamic Precision Allocation**:
|
37 |
+
- First/Last 25% of layers → IQ4_XS (selected layers)
|
38 |
+
- Middle 50% → IQ2_XXS/IQ3_S (increase efficiency)
|
39 |
+
- **Critical Component Protection**:
|
40 |
+
- Embeddings/output layers use Q5_K
|
41 |
+
- Reduces error propagation by 38% vs standard 1-2bit
|
42 |
+
|
43 |
+
### **Quantization Performance Comparison (Llama-3-8B)**
|
44 |
+
|
45 |
+
| Quantization | Standard PPL | DynamicGate PPL | Δ PPL | Std Size | DG Size | Δ Size | Std Speed | DG Speed |
|
46 |
+
|--------------|--------------|------------------|---------|----------|---------|--------|-----------|----------|
|
47 |
+
| IQ2_XXS | 11.30 | 9.84 | -12.9% | 2.5G | 2.6G | +0.1G | 234s | 246s |
|
48 |
+
| IQ2_XS | 11.72 | 11.63 | -0.8% | 2.7G | 2.8G | +0.1G | 242s | 246s |
|
49 |
+
| IQ2_S | 14.31 | 9.02 | -36.9% | 2.7G | 2.9G | +0.2G | 238s | 244s |
|
50 |
+
| IQ1_M | 27.46 | 15.41 | -43.9% | 2.2G | 2.5G | +0.3G | 206s | 212s |
|
51 |
+
| IQ1_S | 53.07 | 32.00 | -39.7% | 2.1G | 2.4G | +0.3G | 184s | 209s |
|
52 |
+
|
53 |
+
**Key**:
|
54 |
+
- PPL = Perplexity (lower is better)
|
55 |
+
- Δ PPL = Percentage change from standard to DynamicGate
|
56 |
+
- Speed = Inference time (CPU avx2, 2048 token context)
|
57 |
+
- Size differences reflect mixed quantization overhead
|
58 |
+
|
59 |
+
**Key Improvements:**
|
60 |
+
- 🔥 **IQ1_M** shows massive 43.9% perplexity reduction (27.46 → 15.41)
|
61 |
+
- 🚀 **IQ2_S** cuts perplexity by 36.9% while adding only 0.2GB
|
62 |
+
- ⚡ **IQ1_S** maintains 39.7% better accuracy despite 1-bit quantization
|
63 |
+
|
64 |
+
**Tradeoffs:**
|
65 |
+
- All variants have modest size increases (0.1-0.3GB)
|
66 |
+
- Inference speeds remain comparable (<5% difference)
|
67 |
+
|
68 |
+
|
69 |
+
### **When to Use These Models**
|
70 |
+
📌 **Fitting models into GPU VRAM**
|
71 |
+
|
72 |
+
✔ **Memory-constrained deployments**
|
73 |
+
|
74 |
+
✔ **Cpu and Edge Devices** where 1-2bit errors can be tolerated
|
75 |
+
|
76 |
+
✔ **Research** into ultra-low-bit quantization
|
77 |
+
|
78 |
+
|
79 |
+
|
80 |
+
## **Choosing the Right Model Format**
|
81 |
+
|
82 |
+
Selecting the correct model format depends on your **hardware capabilities** and **memory constraints**.
|
83 |
+
|
84 |
+
### **BF16 (Brain Float 16) – Use if BF16 acceleration is available**
|
85 |
+
- A 16-bit floating-point format designed for **faster computation** while retaining good precision.
|
86 |
+
- Provides **similar dynamic range** as FP32 but with **lower memory usage**.
|
87 |
+
- Recommended if your hardware supports **BF16 acceleration** (check your device's specs).
|
88 |
+
- Ideal for **high-performance inference** with **reduced memory footprint** compared to FP32.
|
89 |
+
|
90 |
+
📌 **Use BF16 if:**
|
91 |
+
✔ Your hardware has native **BF16 support** (e.g., newer GPUs, TPUs).
|
92 |
+
✔ You want **higher precision** while saving memory.
|
93 |
+
✔ You plan to **requantize** the model into another format.
|
94 |
+
|
95 |
+
📌 **Avoid BF16 if:**
|
96 |
+
❌ Your hardware does **not** support BF16 (it may fall back to FP32 and run slower).
|
97 |
+
❌ You need compatibility with older devices that lack BF16 optimization.
|
98 |
+
|
99 |
+
---
|
100 |
+
|
101 |
+
### **F16 (Float 16) – More widely supported than BF16**
|
102 |
+
- A 16-bit floating-point **high precision** but with less of range of values than BF16.
|
103 |
+
- Works on most devices with **FP16 acceleration support** (including many GPUs and some CPUs).
|
104 |
+
- Slightly lower numerical precision than BF16 but generally sufficient for inference.
|
105 |
+
|
106 |
+
📌 **Use F16 if:**
|
107 |
+
✔ Your hardware supports **FP16** but **not BF16**.
|
108 |
+
✔ You need a **balance between speed, memory usage, and accuracy**.
|
109 |
+
✔ You are running on a **GPU** or another device optimized for FP16 computations.
|
110 |
+
|
111 |
+
📌 **Avoid F16 if:**
|
112 |
+
❌ Your device lacks **native FP16 support** (it may run slower than expected).
|
113 |
+
❌ You have memory limitations.
|
114 |
+
|
115 |
+
---
|
116 |
+
|
117 |
+
### **Quantized Models (Q4_K, Q6_K, Q8, etc.) – For CPU & Low-VRAM Inference**
|
118 |
+
Quantization reduces model size and memory usage while maintaining as much accuracy as possible.
|
119 |
+
- **Lower-bit models (Q4_K)** → **Best for minimal memory usage**, may have lower precision.
|
120 |
+
- **Higher-bit models (Q6_K, Q8_0)** → **Better accuracy**, requires more memory.
|
121 |
+
|
122 |
+
📌 **Use Quantized Models if:**
|
123 |
+
✔ You are running inference on a **CPU** and need an optimized model.
|
124 |
+
✔ Your device has **low VRAM** and cannot load full-precision models.
|
125 |
+
✔ You want to reduce **memory footprint** while keeping reasonable accuracy.
|
126 |
+
|
127 |
+
📌 **Avoid Quantized Models if:**
|
128 |
+
❌ You need **maximum accuracy** (full-precision models are better for this).
|
129 |
+
❌ Your hardware has enough VRAM for higher-precision formats (BF16/F16).
|
130 |
+
|
131 |
+
---
|
132 |
+
|
133 |
+
### **Very Low-Bit Quantization (IQ3_XS, IQ3_S, IQ3_M, Q4_K, Q4_0)**
|
134 |
+
These models are optimized for **extreme memory efficiency**, making them ideal for **low-power devices** or **large-scale deployments** where memory is a critical constraint.
|
135 |
+
|
136 |
+
- **IQ3_XS**: Ultra-low-bit quantization (3-bit) with **extreme memory efficiency**.
|
137 |
+
- **Use case**: Best for **ultra-low-memory devices** where even Q4_K is too large.
|
138 |
+
- **Trade-off**: Lower accuracy compared to higher-bit quantizations.
|
139 |
+
|
140 |
+
- **IQ3_S**: Small block size for **maximum memory efficiency**.
|
141 |
+
- **Use case**: Best for **low-memory devices** where **IQ3_XS** is too aggressive.
|
142 |
+
|
143 |
+
- **IQ3_M**: Medium block size for better accuracy than **IQ3_S**.
|
144 |
+
- **Use case**: Suitable for **low-memory devices** where **IQ3_S** is too limiting.
|
145 |
+
|
146 |
+
- **Q4_K**: 4-bit quantization with **block-wise optimization** for better accuracy.
|
147 |
+
- **Use case**: Best for **low-memory devices** where **Q6_K** is too large.
|
148 |
+
|
149 |
+
- **Q4_0**: Pure 4-bit quantization, optimized for **ARM devices**.
|
150 |
+
- **Use case**: Best for **ARM-based devices** or **low-memory environments**.
|
151 |
+
|
152 |
+
---
|
153 |
+
|
154 |
+
### **Summary Table: Model Format Selection**
|
155 |
+
|
156 |
+
| Model Format | Precision | Memory Usage | Device Requirements | Best Use Case |
|
157 |
+
|--------------|------------|---------------|----------------------|---------------|
|
158 |
+
| **BF16** | Highest | High | BF16-supported GPU/CPUs | High-speed inference with reduced memory |
|
159 |
+
| **F16** | High | High | FP16-supported devices | GPU inference when BF16 isn't available |
|
160 |
+
| **Q4_K** | Medium Low | Low | CPU or Low-VRAM devices | Best for memory-constrained environments |
|
161 |
+
| **Q6_K** | Medium | Moderate | CPU with more memory | Better accuracy while still being quantized |
|
162 |
+
| **Q8_0** | High | Moderate | CPU or GPU with enough VRAM | Best accuracy among quantized models |
|
163 |
+
| **IQ3_XS** | Very Low | Very Low | Ultra-low-memory devices | Extreme memory efficiency and low accuracy |
|
164 |
+
| **Q4_0** | Low | Low | ARM or low-memory devices | llama.cpp can optimize for ARM devices |
|
165 |
+
|
166 |
+
---
|
167 |
+
|
168 |
+
## **Included Files & Details**
|
169 |
+
|
170 |
+
### `OpenMath-Nemotron-14B-bf16.gguf`
|
171 |
+
- Model weights preserved in **BF16**.
|
172 |
+
- Use this if you want to **requantize** the model into a different format.
|
173 |
+
- Best if your device supports **BF16 acceleration**.
|
174 |
+
|
175 |
+
### `OpenMath-Nemotron-14B-f16.gguf`
|
176 |
+
- Model weights stored in **F16**.
|
177 |
+
- Use if your device supports **FP16**, especially if BF16 is not available.
|
178 |
+
|
179 |
+
### `OpenMath-Nemotron-14B-bf16-q8_0.gguf`
|
180 |
+
- **Output & embeddings** remain in **BF16**.
|
181 |
+
- All other layers quantized to **Q8_0**.
|
182 |
+
- Use if your device supports **BF16** and you want a quantized version.
|
183 |
+
|
184 |
+
### `OpenMath-Nemotron-14B-f16-q8_0.gguf`
|
185 |
+
- **Output & embeddings** remain in **F16**.
|
186 |
+
- All other layers quantized to **Q8_0**.
|
187 |
+
|
188 |
+
### `OpenMath-Nemotron-14B-q4_k.gguf`
|
189 |
+
- **Output & embeddings** quantized to **Q8_0**.
|
190 |
+
- All other layers quantized to **Q4_K**.
|
191 |
+
- Good for **CPU inference** with limited memory.
|
192 |
+
|
193 |
+
### `OpenMath-Nemotron-14B-q4_k_s.gguf`
|
194 |
+
- Smallest **Q4_K** variant, using less memory at the cost of accuracy.
|
195 |
+
- Best for **very low-memory setups**.
|
196 |
+
|
197 |
+
### `OpenMath-Nemotron-14B-q6_k.gguf`
|
198 |
+
- **Output & embeddings** quantized to **Q8_0**.
|
199 |
+
- All other layers quantized to **Q6_K** .
|
200 |
+
|
201 |
+
### `OpenMath-Nemotron-14B-q8_0.gguf`
|
202 |
+
- Fully **Q8** quantized model for better accuracy.
|
203 |
+
- Requires **more memory** but offers higher precision.
|
204 |
+
|
205 |
+
### `OpenMath-Nemotron-14B-iq3_xs.gguf`
|
206 |
+
- **IQ3_XS** quantization, optimized for **extreme memory efficiency**.
|
207 |
+
- Best for **ultra-low-memory devices**.
|
208 |
+
|
209 |
+
### `OpenMath-Nemotron-14B-iq3_m.gguf`
|
210 |
+
- **IQ3_M** quantization, offering a **medium block size** for better accuracy.
|
211 |
+
- Suitable for **low-memory devices**.
|
212 |
+
|
213 |
+
### `OpenMath-Nemotron-14B-q4_0.gguf`
|
214 |
+
- Pure **Q4_0** quantization, optimized for **ARM devices**.
|
215 |
+
- Best for **low-memory environments**.
|
216 |
+
- Prefer IQ4_NL for better accuracy.
|
217 |
+
|
218 |
+
# <span id="testllm" style="color: #7F7FFF;">🚀 If you find these models useful</span>
|
219 |
+
❤ **Please click "Like" if you find this useful!**
|
220 |
+
Help me test my **AI-Powered Network Monitor Assistant** with **quantum-ready security checks**:
|
221 |
+
👉 [Free Network Monitor](https://readyforquantum.com/dashboard/?assistant=open)
|
222 |
+
|
223 |
+
💬 **How to test**:
|
224 |
+
Choose an **AI assistant type**:
|
225 |
+
- `TurboLLM` (GPT-4o-mini)
|
226 |
+
- `HugLLM` (Hugginface Open-source)
|
227 |
+
- `TestLLM` (Experimental CPU-only)
|
228 |
+
|
229 |
+
### **What I’m Testing**
|
230 |
+
I’m pushing the limits of **small open-source models for AI network monitoring**, specifically:
|
231 |
+
- **Function calling** against live network services
|
232 |
+
- **How small can a model go** while still handling:
|
233 |
+
- Automated **Nmap scans**
|
234 |
+
- **Quantum-readiness checks**
|
235 |
+
- **Network Monitoring tasks**
|
236 |
+
|
237 |
+
🟡 **TestLLM** – Current experimental model (llama.cpp on 2 CPU threads):
|
238 |
+
- ✅ **Zero-configuration setup**
|
239 |
+
- ⏳ 30s load time (slow inference but **no API costs**)
|
240 |
+
- 🔧 **Help wanted!** If you’re into **edge-device AI**, let’s collaborate!
|
241 |
+
|
242 |
+
### **Other Assistants**
|
243 |
+
🟢 **TurboLLM** – Uses **gpt-4o-mini** for:
|
244 |
+
- **Create custom cmd processors to run .net code on Free Network Monitor Agents**
|
245 |
+
- **Real-time network diagnostics and monitoring**
|
246 |
+
- **Security Audits**
|
247 |
+
- **Penetration testing** (Nmap/Metasploit)
|
248 |
+
- 🔑 Get more tokens by logging in or [downloading our Free Network Monitor Agent with integrated AI Assistant](https://readyforquantum.com/download)
|
249 |
+
|
250 |
+
🔵 **HugLLM** – Latest Open-source models:
|
251 |
+
- 🌐 Runs on Hugging Face Inference API
|
252 |
+
|
253 |
+
### 💡 **Example commands to you could test**:
|
254 |
+
1. `"Give me info on my websites SSL certificate"`
|
255 |
+
2. `"Check if my server is using quantum safe encyption for communication"`
|
256 |
+
3. `"Run a comprehensive security audit on my server"`
|
257 |
+
4. '"Create a cmd processor to .. (what ever you want)" Note you need to install a Free Network Monitor Agent to run the .net code from. This is a very flexible and powerful feature. Use with caution!
|
258 |
+
|
259 |
+
|
260 |
+
|
261 |
+
# OpenMath-Nemotron-14B
|
262 |
+
|
263 |
+
OpenMath-Nemotron-14B is created by finetuning [Qwen/Qwen2.5-14B](https://huggingface.co/Qwen/Qwen2.5-14B) on [OpenMathReasoning](https://huggingface.co/datasets/nvidia/OpenMathReasoning) dataset.
|
264 |
+
This model is ready for commercial use.
|
265 |
+
|
266 |
+

|
267 |
+
|
268 |
+
|
269 |
+
OpenMath-Nemotron models achieve state-of-the-art results on popular mathematical benchmarks. We present metrics as pass@1 (maj@64) where pass@1
|
270 |
+
is an average accuracy across 64 generations and maj@64 is the result of majority voting.
|
271 |
+
Please see our [paper](https://arxiv.org/abs/2504.16891) for more details on the evaluation setup.
|
272 |
+
|
273 |
+
| Model | AIME24 | AIME25 | HMMT-24-25 | HLE-Math |
|
274 |
+
|-------------------------------|-----------------|-------|-------|-------------|
|
275 |
+
| DeepSeek-R1-Distill-Qwen-1.5B | 26.8 (60.0) | 21.4 (36.7) | 14.2 (26.5) | 2.9 (5.0) |
|
276 |
+
| [OpenMath-Nemotron-1.5B](https://huggingface.co/nvidia/OpenMath-Nemotron-1.5B) CoT | 61.6 (80.0) | 49.5 (66.7) | 39.9 (53.6) | 5.4 (5.4) |
|
277 |
+
| [OpenMath-Nemotron-1.5B](https://huggingface.co/nvidia/OpenMath-Nemotron-1.5B) TIR | 52.0 (83.3) | 39.7 (70.0) | 37.2 (60.7) | 2.5 (6.2) |
|
278 |
+
| + Self GenSelect | 83.3 | 70.0 | 62.2 | 7.9 |
|
279 |
+
| + 32B GenSelect | 83.3 | 70.0 | 62.8 | 8.3 |
|
280 |
+
| DeepSeek-R1-Distill-Qwen-7B | 54.4 (80.0) | 38.6 (53.3) | 30.6 (42.9) | 3.3 (5.2) |
|
281 |
+
| [OpenMath-Nemotron-7B](https://huggingface.co/nvidia/OpenMath-Nemotron-7B) CoT | 74.8 (80.0) | 61.2 (76.7) | 49.7 (57.7) | 6.6 (6.6) |
|
282 |
+
| [OpenMath-Nemotron-7B](https://huggingface.co/nvidia/OpenMath-Nemotron-7B) TIR | 72.9 (83.3) | 57.5 (76.7) | 54.6 (66.3) | 7.8 (10.8) |
|
283 |
+
| + Self GenSelect | 86.7 | 76.7 | 68.4 | 11.5 |
|
284 |
+
| + 32B GenSelect | 86.7 | 76.7 | 69.9 | 11.9 |
|
285 |
+
| DeepSeek-R1-Distill-Qwen-14B | 65.8 (80.0) | 48.4 (60.0) | 40.1 (52.0) | 4.2 (4.8) |
|
286 |
+
| [OpenMath-Nemotron-14B-MIX (kaggle)](https://huggingface.co/nvidia/OpenMath-Nemotron-14B-Kaggle) | 73.7 (86.7) | 57.9 (73.3) | 50.5 (64.8) | 5.7 (6.5) |
|
287 |
+
| [OpenMath-Nemotron-14B](https://huggingface.co/nvidia/OpenMath-Nemotron-14B) CoT | 76.3 (83.3) | 63.0 (76.7) | 52.1 (60.7) | 7.5 (7.6) |
|
288 |
+
| [OpenMath-Nemotron-14B](https://huggingface.co/nvidia/OpenMath-Nemotron-14B) TIR | 76.3 (86.7) | 61.3 (76.7) | 58.6 (70.9) | 9.5 (11.5) |
|
289 |
+
| + Self GenSelect | 86.7 | 76.7 | 72.4 | 14.1 |
|
290 |
+
| + 32B GenSelect | 90.0 | 76.7 | 71.9 | 13.7 |
|
291 |
+
| QwQ-32B | 78.1 (86.7) | 66.5 (76.7) | 55.9 (63.3) | 9.0 (9.5) |
|
292 |
+
| DeepSeek-R1-Distill-Qwen-32B | 66.9 (83.3) | 51.8 (73.3) | 39.9 (51.0) | 4.8 (6.0) |
|
293 |
+
| [OpenMath-Nemotron-32B](https://huggingface.co/nvidia/OpenMath-Nemotron-32B) CoT | 76.5 (86.7) | 62.5 (73.3) | 53.0 (59.2) | 8.3 (8.3) |
|
294 |
+
| [OpenMath-Nemotron-32B](https://huggingface.co/nvidia/OpenMath-Nemotron-32B) TIR | 78.4 (93.3) | 64.2 (76.7) | 59.7 (70.9) | 9.2 (12.5) |
|
295 |
+
| + Self GenSelect | 93.3 | 80.0 | 73.5 | 15.7 |
|
296 |
+
| DeepSeek-R1 | 79.1 (86.7) | 64.3 (73.3) | 53.0 (59.2) | 10.5 (11.4) |
|
297 |
+
|
298 |
+
We used [a version of OpenMath-Nemotron-14B](https://huggingface.co/nvidia/OpenMath-Nemotron-14B-Kaggle) model to secure
|
299 |
+
the first place in [AIMO-2 Kaggle competition](https://www.kaggle.com/competitions/ai-mathematical-olympiad-progress-prize-2/leaderboard)!
|
300 |
+
|
301 |
+
## Reproducing our results
|
302 |
+
|
303 |
+
The pipeline we used to produce the data and models is fully open-sourced!
|
304 |
+
|
305 |
+
- [Code](https://github.com/NVIDIA/NeMo-Skills)
|
306 |
+
- [Models](https://huggingface.co/collections/nvidia/openmathreasoning-68072c0154a5099573d2e730)
|
307 |
+
- [Dataset](https://huggingface.co/datasets/nvidia/OpenMathReasoning)
|
308 |
+
- [Paper](https://arxiv.org/abs/2504.16891)
|
309 |
+
|
310 |
+
We provide [all instructions](https://nvidia.github.io/NeMo-Skills/openmathreasoning1/)
|
311 |
+
to fully reproduce our results, including data generation.
|
312 |
+
|
313 |
+
## How to use the models?
|
314 |
+
|
315 |
+
Our models can be used in 3 inference modes: chain-of-thought (CoT), tool-integrated reasoning (TIR) and generative solution selection (GenSelect).
|
316 |
+
|
317 |
+
To run inference with CoT mode, you can use this example code snippet.
|
318 |
+
|
319 |
+
```python
|
320 |
+
import transformers
|
321 |
+
import torch
|
322 |
+
|
323 |
+
model_id = "nvidia/OpenMath-Nemotron-14B"
|
324 |
+
|
325 |
+
pipeline = transformers.pipeline(
|
326 |
+
"text-generation",
|
327 |
+
model=model_id,
|
328 |
+
model_kwargs={"torch_dtype": torch.bfloat16},
|
329 |
+
device_map="auto",
|
330 |
+
)
|
331 |
+
|
332 |
+
messages = [
|
333 |
+
{
|
334 |
+
"role": "user",
|
335 |
+
"content": "Solve the following math problem. Make sure to put the answer (and only answer) inside \\boxed{}.\n\n" +
|
336 |
+
"What is the minimum value of $a^2+6a-7$?"},
|
337 |
+
]
|
338 |
+
|
339 |
+
outputs = pipeline(
|
340 |
+
messages,
|
341 |
+
max_new_tokens=4096,
|
342 |
+
)
|
343 |
+
print(outputs[0]["generated_text"][-1]['content'])
|
344 |
+
```
|
345 |
+
|
346 |
+
To run inference with TIR or GenSelect modes, we highly recommend to use our
|
347 |
+
[reference implementation in NeMo-Skills](https://nvidia.github.io/NeMo-Skills/openmathreasoning1/evaluation/).
|
348 |
+
|
349 |
+
Please note that these models have not been instruction tuned on general data and thus might not provide good answers outside of math domain.
|
350 |
+
|
351 |
+
|
352 |
+
## Citation
|
353 |
+
|
354 |
+
If you find our work useful, please consider citing us!
|
355 |
+
|
356 |
+
```bibtex
|
357 |
+
@article{moshkov2025aimo2,
|
358 |
+
title = {AIMO-2 Winning Solution: Building State-of-the-Art Mathematical Reasoning Models with OpenMathReasoning dataset},
|
359 |
+
author = {Ivan Moshkov and Darragh Hanley and Ivan Sorokin and Shubham Toshniwal and Christof Henkel and Benedikt Schifferer and Wei Du and Igor Gitman},
|
360 |
+
year = {2025},
|
361 |
+
journal = {arXiv preprint arXiv:2504.16891}
|
362 |
+
}
|
363 |
+
```
|
364 |
+
|
365 |
+
## Additional information
|
366 |
+
|
367 |
+
### License/Terms of Use: <br>
|
368 |
+
|
369 |
+
GOVERNING TERMS: Use of this model is governed by [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/legalcode.en).
|
370 |
+
Additional Information: [Apache License Version 2.0](https://huggingface.co/Qwen/Qwen2.5-Math-1.5B/blob/main/LICENSE).
|
371 |
+
|
372 |
+
### Deployment Geography:
|
373 |
+
|
374 |
+
Global <br>
|
375 |
+
|
376 |
+
### Use Case: <br>
|
377 |
+
|
378 |
+
This model is intended to facilitate research in the area of mathematical reasoning.
|
379 |
+
|
380 |
+
|
381 |
+
|
382 |
+
### Release Date: <br>
|
383 |
+
|
384 |
+
Huggingface 04/23/2025 <br>
|
385 |
+
|
386 |
+
### Model Architecture: <br>
|
387 |
+
|
388 |
+
**Architecture Type:** Transformer decoder-only language model <br>
|
389 |
+
|
390 |
+
**Network Architecture:** Qwen2.5 <br>
|
391 |
+
|
392 |
+
|
393 |
+
**This model was developed based on Qwen2.5-1.5B <br>
|
394 |
+
|
395 |
+
** This model has 1.5B of model parameters. <br>
|
396 |
+
|
397 |
+
### Input: <br>
|
398 |
+
|
399 |
+
**Input Type(s):** Text <br>
|
400 |
+
|
401 |
+
**Input Format(s):** String <br>
|
402 |
+
|
403 |
+
**Input Parameters:** One-Dimensional (1D) <br>
|
404 |
+
|
405 |
+
**Other Properties Related to Input:** Context length up to 131,072 tokens <br>
|
406 |
+
|
407 |
+
|
408 |
+
|
409 |
+
### Output: <br>
|
410 |
+
|
411 |
+
**Output Type(s):** Text <br>
|
412 |
+
|
413 |
+
**Output Format:** String <br>
|
414 |
+
|
415 |
+
**Output Parameters:** One-Dimensional (1D) <br>
|
416 |
+
|
417 |
+
**Other Properties Related to Output:** Context length up to 131,072 tokens <br>
|
418 |
+
|
419 |
+
|
420 |
+
|
421 |
+
Our AI models are designed and/or optimized to run on NVIDIA GPU-accelerated systems. By leveraging NVIDIA’s hardware (e.g. GPU cores) and software frameworks (e.g., CUDA libraries), the model achieves faster training and inference times compared to CPU-only solutions. <br>
|
422 |
+
|
423 |
+
|
424 |
+
|
425 |
+
### Software Integration : <br>
|
426 |
+
|
427 |
+
**Runtime Engine(s):** <br>
|
428 |
+
|
429 |
+
* Tensor RT / Triton <br>
|
430 |
+
|
431 |
+
|
432 |
+
|
433 |
+
**Supported Hardware Microarchitecture Compatibility:** <br>
|
434 |
+
|
435 |
+
* NVIDIA Ampere <br>
|
436 |
+
|
437 |
+
* NVIDIA Hopper <br>
|
438 |
+
|
439 |
+
|
440 |
+
|
441 |
+
**Preferred Operating System(s):** <br>
|
442 |
+
|
443 |
+
* Linux <br>
|
444 |
+
|
445 |
+
|
446 |
+
|
447 |
+
### Model Version(s):
|
448 |
+
|
449 |
+
[OpenMath-Nemotron-1.5B](https://huggingface.co/nvidia/OpenMath-Nemotron-1.5B)
|
450 |
+
|
451 |
+
[OpenMath-Nemotron-7B](https://huggingface.co/nvidia/OpenMath-Nemotron-7B)
|
452 |
+
|
453 |
+
[OpenMath-Nemotron-14B](https://huggingface.co/nvidia/OpenMath-Nemotron-14B)
|
454 |
+
|
455 |
+
[OpenMath-Nemotron-32B](https://huggingface.co/nvidia/OpenMath-Nemotron-32B)
|
456 |
+
|
457 |
+
|
458 |
+
# Ethical Considerations:
|
459 |
+
|
460 |
+
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.
|
461 |
+
|
462 |
+
For more detailed information on ethical considerations for this model, please see the Model Card++ [Explainability](./EXPLAINABILITY.md), [Bias](./BIAS.md), [Safety & Security](./SAFETY.md), and [Privacy](./PRIVACY.md) Subcards.
|
463 |
+
|
464 |
+
Please report security vulnerabilities or NVIDIA AI Concerns [here](https://www.nvidia.com/en-us/support/submit-security-vulnerability/).
|