Text Generation
Transformers
Safetensors
PyTorch
English
nemotron_h
nvidia
nemotron-3
latent-moe
mtp
conversational
custom_code
Instructions to use nvidia/Nemotron-3-Labs-Ultra-Math-RL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nvidia/Nemotron-3-Labs-Ultra-Math-RL with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nvidia/Nemotron-3-Labs-Ultra-Math-RL", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("nvidia/Nemotron-3-Labs-Ultra-Math-RL", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("nvidia/Nemotron-3-Labs-Ultra-Math-RL", trust_remote_code=True, device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nvidia/Nemotron-3-Labs-Ultra-Math-RL with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nvidia/Nemotron-3-Labs-Ultra-Math-RL" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nvidia/Nemotron-3-Labs-Ultra-Math-RL", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/nvidia/Nemotron-3-Labs-Ultra-Math-RL
- SGLang
How to use nvidia/Nemotron-3-Labs-Ultra-Math-RL 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 "nvidia/Nemotron-3-Labs-Ultra-Math-RL" \ --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": "nvidia/Nemotron-3-Labs-Ultra-Math-RL", "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 "nvidia/Nemotron-3-Labs-Ultra-Math-RL" \ --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": "nvidia/Nemotron-3-Labs-Ultra-Math-RL", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use nvidia/Nemotron-3-Labs-Ultra-Math-RL with Docker Model Runner:
docker model run hf.co/nvidia/Nemotron-3-Labs-Ultra-Math-RL
Add files using upload-large-folder tool
Browse files- model-00020-of-00225.safetensors +3 -0
- model-00026-of-00225.safetensors +3 -0
- model-00031-of-00225.safetensors +3 -0
- model-00057-of-00225.safetensors +3 -0
- model-00069-of-00225.safetensors +3 -0
- model-00126-of-00225.safetensors +3 -0
- model-00175-of-00225.safetensors +3 -0
- model-00186-of-00225.safetensors +3 -0
- model-00197-of-00225.safetensors +3 -0
- model-00205-of-00225.safetensors +3 -0
- model-00221-of-00225.safetensors +3 -0
model-00020-of-00225.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:85a6c6fe73f09ed5f4721430e2b5945860847881d27a831f63d8c7dba21af3a7
|
| 3 |
+
size 4991252664
|
model-00026-of-00225.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:73894ef00bb5a2d179f34eed11de4e463bdde5eb7d52c7907cc79f233bbcad7f
|
| 3 |
+
size 4991252840
|
model-00031-of-00225.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f03cf4faf09b17857e8c532b44ca6b30407ccf2c88d5f7fa75078b6dde39e27c
|
| 3 |
+
size 4991252840
|
model-00057-of-00225.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4e3a4c9518e46ac3413a956c69be91db5ad3a044d8398aa61e41c724c28f6d4a
|
| 3 |
+
size 4991252776
|
model-00069-of-00225.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8c9efa4cb60cc334d5b3736ebfed6b9cc7f2f7db943b37c49b76d5d4a150bcef
|
| 3 |
+
size 4941123984
|
model-00126-of-00225.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0eea9d070c65a053ac86c8e6a136dcd1f5cb98875421ae15036d4799c8b0b8d2
|
| 3 |
+
size 4991252840
|
model-00175-of-00225.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:85c8bd8fca8b6c0e19b1ba6607def17212d40325a062e6ff0528d7f96afc00c4
|
| 3 |
+
size 4987305816
|
model-00186-of-00225.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9a7421e12122373af956b1500b7f30f8e91cd4b6d7113fc3b24d92663991ceca
|
| 3 |
+
size 4991252840
|
model-00197-of-00225.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9fac3189b83ab15ffe064d63536914aec453480209ac6d1a4e18db9f50c66dd
|
| 3 |
+
size 4962095640
|
model-00205-of-00225.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f45e0ee6bf7292fef0f35f8f7e3903676141d8f72e7a84f8edf695738a35f44f
|
| 3 |
+
size 4991253080
|
model-00221-of-00225.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7d78836ccbed0aeb52628c38c109de4c3fde88ee46dfd42bd7e6366b18c65c82
|
| 3 |
+
size 4999690568
|