Text Generation
Transformers
GGUF
PyTorch
English
nemotron-nas
nvidia
llama-3
custom_code
conversational
Instructions to use unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: llama cli -hf unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF:UD-Q4_K_XL
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: llama cli -hf unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF:UD-Q4_K_XL
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: ./llama-cli -hf unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF:UD-Q4_K_XL
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: ./build/bin/llama-cli -hf unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF:UD-Q4_K_XL
Use Docker
docker model run hf.co/unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF:UD-Q4_K_XL
- LM Studio
- Jan
- vLLM
How to use unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF:UD-Q4_K_XL
- SGLang
How to use unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF with Ollama:
ollama run hf.co/unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF:UD-Q4_K_XL
- Unsloth Desktop
- Docker Model Runner
How to use unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF with Docker Model Runner:
docker model run hf.co/unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF:UD-Q4_K_XL
- Lemonade
How to use unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull unsloth/Llama-3_1-Nemotron-Ultra-253B-v1-GGUF:UD-Q4_K_XL
Run and chat with the model
lemonade run user.Llama-3_1-Nemotron-Ultra-253B-v1-GGUF-UD-Q4_K_XL
List all available models
lemonade list
- Atomic Chat
Add files using upload-large-folder tool
Browse files- Q8_0/Llama-3_1-Nemotron-Ultra-253B-v1-Q8_0-00001-of-00006.gguf +2 -2
- README.md +24 -3
- config.json +3 -2
Q8_0/Llama-3_1-Nemotron-Ultra-253B-v1-Q8_0-00001-of-00006.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2b4e9c564a4c0a4b5fd57fbeb9f9293d69238cff7112055815536d92b02ed45
|
| 3 |
+
size 49762372032
|
README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
license: other
|
| 4 |
-
base_model: nvidia/Llama-3_1-Nemotron-Ultra-253B-v1
|
| 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 |
language:
|
| 10 |
- en
|
|
@@ -28,7 +28,7 @@ The model underwent a multi-phase post-training process to enhance both its reas
|
|
| 28 |
|
| 29 |
This model is ready for commercial use.
|
| 30 |
|
| 31 |
-
For more details on how the model was trained, please see [
|
| 32 |
|
| 33 |

|
| 34 |
|
|
@@ -55,6 +55,7 @@ Developers designing AI Agent systems, chatbots, RAG systems, and other AI-power
|
|
| 55 |
|
| 56 |
## References
|
| 57 |
|
|
|
|
| 58 |
* [\[2502.00203\] Reward-aware Preference Optimization: A Unified Mathematical Framework for Model Alignment](https://arxiv.org/abs/2502.00203)
|
| 59 |
* [\[2411.19146\]Puzzle: Distillation-Based NAS for Inference-Optimized LLMs](https://arxiv.org/abs/2411.19146)
|
| 60 |
* [\[2503.18908\]FFN Fusion: Rethinking Sequential Computation in Large Language Models](https://arxiv.org/abs/2503.18908)
|
|
@@ -107,6 +108,7 @@ Llama-3.1-Nemotron-Ultra-253B-v1 is a general purpose reasoning and chat model i
|
|
| 107 |
3. We recommend using greedy decoding (temperature 0\) for Reasoning OFF mode
|
| 108 |
4. We do not recommend to add additional system prompts besides the control prompt, all instructions should be put into user query
|
| 109 |
5. We have provided a list of prompts to use for evaluation for each benchmark where a specific template is required
|
|
|
|
| 110 |
|
| 111 |
You can try this model out through the preview API, using this link: [Llama-3\_1-Nemotron-Ultra-253B-v1](https://build.nvidia.com/nvidia/llama-3\_1-nemotron-ultra-253b-v1).
|
| 112 |
|
|
@@ -340,10 +342,29 @@ User Prompt Template:
|
|
| 340 |
"Below is a math question. I want you to reason through the steps and then give a final answer. Your final answer should be in \boxed{}.\nQuestion: {question}"
|
| 341 |
```
|
| 342 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 343 |
## Ethical Considerations:
|
| 344 |
|
| 345 |
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.
|
| 346 |
|
| 347 |
For more detailed information on ethical considerations for this model, please see the Model Card++ [Explainability](./EXPLAINABILITY.md), [Bias](./BIAS.md), [Safety & Security](./SAFETY_and_SECURITY.md), and [Privacy](./PRIVACY.md) Subcards.
|
| 348 |
|
| 349 |
-
Please report security vulnerabilities or NVIDIA AI Concerns [here](https://www.nvidia.com/en-us/support/submit-security-vulnerability/).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
license: other
|
|
|
|
| 4 |
license_name: nvidia-open-model-license
|
| 5 |
license_link: >-
|
| 6 |
https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/
|
| 7 |
+
|
| 8 |
pipeline_tag: text-generation
|
| 9 |
language:
|
| 10 |
- en
|
|
|
|
| 28 |
|
| 29 |
This model is ready for commercial use.
|
| 30 |
|
| 31 |
+
For more details on how the model was trained, please see our [technical report](https://arxiv.org/abs/2505.00949) and [blog](https://developer.nvidia.com/blog/build-enterprise-ai-agents-with-advanced-open-nvidia-llama-nemotron-reasoning-models/).
|
| 32 |
|
| 33 |

|
| 34 |
|
|
|
|
| 55 |
|
| 56 |
## References
|
| 57 |
|
| 58 |
+
* [\[2505.00949\] Llama-Nemotron: Efficient Reasoning Models](https://arxiv.org/abs/2505.00949)
|
| 59 |
* [\[2502.00203\] Reward-aware Preference Optimization: A Unified Mathematical Framework for Model Alignment](https://arxiv.org/abs/2502.00203)
|
| 60 |
* [\[2411.19146\]Puzzle: Distillation-Based NAS for Inference-Optimized LLMs](https://arxiv.org/abs/2411.19146)
|
| 61 |
* [\[2503.18908\]FFN Fusion: Rethinking Sequential Computation in Large Language Models](https://arxiv.org/abs/2503.18908)
|
|
|
|
| 108 |
3. We recommend using greedy decoding (temperature 0\) for Reasoning OFF mode
|
| 109 |
4. We do not recommend to add additional system prompts besides the control prompt, all instructions should be put into user query
|
| 110 |
5. We have provided a list of prompts to use for evaluation for each benchmark where a specific template is required
|
| 111 |
+
6. The model will include `<think></think>` if no reasoning was necessary in Reasoning ON model, this is expected behaviour
|
| 112 |
|
| 113 |
You can try this model out through the preview API, using this link: [Llama-3\_1-Nemotron-Ultra-253B-v1](https://build.nvidia.com/nvidia/llama-3\_1-nemotron-ultra-253b-v1).
|
| 114 |
|
|
|
|
| 342 |
"Below is a math question. I want you to reason through the steps and then give a final answer. Your final answer should be in \boxed{}.\nQuestion: {question}"
|
| 343 |
```
|
| 344 |
|
| 345 |
+
### JudgeBench
|
| 346 |
+
|
| 347 |
+
| Reasoning Mode | Knowledge Score | Reasoning Score | Math Score | Coding Score | Overall Score |
|
| 348 |
+
|--------------|------------|------------|------------|------------|------------|
|
| 349 |
+
| Reasoning On | 70.13 | 81.63 | 89.29 | 92.86 | 79.14 |
|
| 350 |
+
|
| 351 |
## Ethical Considerations:
|
| 352 |
|
| 353 |
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.
|
| 354 |
|
| 355 |
For more detailed information on ethical considerations for this model, please see the Model Card++ [Explainability](./EXPLAINABILITY.md), [Bias](./BIAS.md), [Safety & Security](./SAFETY_and_SECURITY.md), and [Privacy](./PRIVACY.md) Subcards.
|
| 356 |
|
| 357 |
+
Please report security vulnerabilities or NVIDIA AI Concerns [here](https://www.nvidia.com/en-us/support/submit-security-vulnerability/).
|
| 358 |
+
|
| 359 |
+
## Citation
|
| 360 |
+
```
|
| 361 |
+
@misc{bercovich2025llamanemotronefficientreasoningmodels,
|
| 362 |
+
title={Llama-Nemotron: Efficient Reasoning Models},
|
| 363 |
+
author={Akhiad Bercovich and Itay Levy and Izik Golan and Mohammad Dabbah and Ran El-Yaniv and Omri Puny and Ido Galil and Zach Moshe and Tomer Ronen and Najeeb Nabwani and Ido Shahaf and Oren Tropp and Ehud Karpas and Ran Zilberstein and Jiaqi Zeng and Soumye Singhal and Alexander Bukharin and Yian Zhang and Tugrul Konuk and Gerald Shen and Ameya Sunil Mahabaleshwarkar and Bilal Kartal and Yoshi Suhara and Olivier Delalleau and Zijia Chen and Zhilin Wang and David Mosallanezhad and Adi Renduchintala and Haifeng Qian and Dima Rekesh and Fei Jia and Somshubra Majumdar and Vahid Noroozi and Wasi Uddin Ahmad and Sean Narenthiran and Aleksander Ficek and Mehrzad Samadi and Jocelyn Huang and Siddhartha Jain and Igor Gitman and Ivan Moshkov and Wei Du and Shubham Toshniwal and George Armstrong and Branislav Kisacanin and Matvei Novikov and Daria Gitman and Evelina Bakhturina and Jane Polak Scowcroft and John Kamalu and Dan Su and Kezhi Kong and Markus Kliegl and Rabeeh Karimi and Ying Lin and Sanjeev Satheesh and Jupinder Parmar and Pritam Gundecha and Brandon Norick and Joseph Jennings and Shrimai Prabhumoye and Syeda Nahida Akter and Mostofa Patwary and Abhinav Khattar and Deepak Narayanan and Roger Waleffe and Jimmy Zhang and Bor-Yiing Su and Guyue Huang and Terry Kong and Parth Chadha and Sahil Jain and Christine Harvey and Elad Segal and Jining Huang and Sergey Kashirsky and Robert McQueen and Izzy Putterman and George Lam and Arun Venkatesan and Sherry Wu and Vinh Nguyen and Manoj Kilaru and Andrew Wang and Anna Warno and Abhilash Somasamudramath and Sandip Bhaskar and Maka Dong and Nave Assaf and Shahar Mor and Omer Ullman Argov and Scot Junkin and Oleksandr Romanenko and Pedro Larroy and Monika Katariya and Marco Rovinelli and Viji Balas and Nicholas Edelman and Anahita Bhiwandiwalla and Muthu Subramaniam and Smita Ithape and Karthik Ramamoorthy and Yuting Wu and Suguna Varshini Velury and Omri Almog and Joyjit Daw and Denys Fridman and Erick Galinkin and Michael Evans and Katherine Luna and Leon Derczynski and Nikki Pope and Eileen Long and Seth Schneider and Guillermo Siman and Tomasz Grzegorzek and Pablo Ribalta and Monika Katariya and Joey Conway and Trisha Saar and Ann Guan and Krzysztof Pawelec and Shyamala Prayaga and Oleksii Kuchaiev and Boris Ginsburg and Oluwatobi Olabiyi and Kari Briski and Jonathan Cohen and Bryan Catanzaro and Jonah Alben and Yonatan Geifman and Eric Chung and Chris Alexiuk},
|
| 364 |
+
year={2025},
|
| 365 |
+
eprint={2505.00949},
|
| 366 |
+
archivePrefix={arXiv},
|
| 367 |
+
primaryClass={cs.CL},
|
| 368 |
+
url={https://arxiv.org/abs/2505.00949},
|
| 369 |
+
}
|
| 370 |
+
```
|
config.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "llama_nemotron_ultra",
|
| 3 |
"architectures": [
|
| 4 |
"DeciLMForCausalLM"
|
| 5 |
],
|
|
@@ -2943,6 +2942,7 @@
|
|
| 2943 |
"num_attention_heads": 128,
|
| 2944 |
"num_hidden_layers": 162,
|
| 2945 |
"num_key_value_heads": null,
|
|
|
|
| 2946 |
"pretraining_tp": 1,
|
| 2947 |
"rms_norm_eps": 1e-05,
|
| 2948 |
"rope_scaling": {
|
|
@@ -2955,7 +2955,8 @@
|
|
| 2955 |
"rope_theta": 500000.0,
|
| 2956 |
"tie_word_embeddings": false,
|
| 2957 |
"torch_dtype": "bfloat16",
|
| 2958 |
-
"transformers_version": "4.
|
|
|
|
| 2959 |
"use_cache": true,
|
| 2960 |
"vocab_size": 128256
|
| 2961 |
}
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"DeciLMForCausalLM"
|
| 4 |
],
|
|
|
|
| 2942 |
"num_attention_heads": 128,
|
| 2943 |
"num_hidden_layers": 162,
|
| 2944 |
"num_key_value_heads": null,
|
| 2945 |
+
"pad_token_id": 128004,
|
| 2946 |
"pretraining_tp": 1,
|
| 2947 |
"rms_norm_eps": 1e-05,
|
| 2948 |
"rope_scaling": {
|
|
|
|
| 2955 |
"rope_theta": 500000.0,
|
| 2956 |
"tie_word_embeddings": false,
|
| 2957 |
"torch_dtype": "bfloat16",
|
| 2958 |
+
"transformers_version": "4.52.3",
|
| 2959 |
+
"unsloth_fixed": true,
|
| 2960 |
"use_cache": true,
|
| 2961 |
"vocab_size": 128256
|
| 2962 |
}
|