Text Generation
Transformers
Safetensors
PyTorch
nemotron_h
nvidia
nemotron-3
latent-moe
mtp
conversational
Eval Results
8-bit precision
modelopt
Instructions to use nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4") model = AutoModelForCausalLM.from_pretrained("nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4", 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]:])) - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4" # 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/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4
- SGLang
How to use nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4 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/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4" \ --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/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4", "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/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4" \ --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/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4 with Docker Model Runner:
docker model run hf.co/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4
Update SGLang serving commands
#9
by b8zhong - opened
README.md
CHANGED
|
@@ -345,9 +345,9 @@ vllm serve $MODEL_CKPT \
|
|
| 345 |
|
| 346 |
### **SGLang**
|
| 347 |
|
| 348 |
-
**Container (tested on 4× B200):** `docker pull lmsysorg/sglang:v0.5.
|
| 349 |
|
| 350 |
-
For more detailed information, please see
|
| 351 |
|
| 352 |
**4× B200 single-node deployment (NVFP4):**
|
| 353 |
|
|
@@ -362,9 +362,7 @@ docker run -d --name nemotron-ultra-sglang \
|
|
| 362 |
--ulimit stack=67108864 \
|
| 363 |
-v $MODEL_CKPT:/model:ro \
|
| 364 |
-e SAFETENSORS_FAST_GPU=1 \
|
| 365 |
-
|
| 366 |
-
-e SGLANG_DISABLE_DEEP_GEMM=1 \
|
| 367 |
-
lmsysorg/sglang:v0.5.12.post1 \
|
| 368 |
python3 -m sglang.launch_server \
|
| 369 |
--model-path /model \
|
| 370 |
--host 0.0.0.0 \
|
|
@@ -374,20 +372,16 @@ docker run -d --name nemotron-ultra-sglang \
|
|
| 374 |
--ep-size 4 \
|
| 375 |
--context-length 262144 \
|
| 376 |
--mem-fraction-static 0.85 \
|
| 377 |
-
--
|
| 378 |
-
--
|
| 379 |
-
--
|
| 380 |
-
--mamba-scheduler-strategy no_buffer \
|
| 381 |
-
--disable-piecewise-cuda-graph \
|
| 382 |
--reasoning-parser nemotron_3 \
|
| 383 |
--tool-call-parser qwen3_coder \
|
| 384 |
--speculative-algorithm EAGLE \
|
| 385 |
-
--speculative-num-steps
|
| 386 |
--speculative-eagle-topk 1 \
|
| 387 |
-
--speculative-num-draft-tokens
|
| 388 |
-
--
|
| 389 |
-
--trust-remote-code \
|
| 390 |
-
--log-level info
|
| 391 |
```
|
| 392 |
|
| 393 |
* **Context length:** Defaults to 256k above. To use up to 1M, set `SGLANG_ALLOW_OVERWRITE_LONGER_CONTEXT_LEN=1` and `--context-length 1048576`.
|
|
|
|
| 345 |
|
| 346 |
### **SGLang**
|
| 347 |
|
| 348 |
+
**Container (tested on 4× B200):** `docker pull lmsysorg/sglang:v0.5.13`
|
| 349 |
|
| 350 |
+
For more detailed information, please see the official [SGLang cookbook](https://docs.sglang.io/cookbook/autoregressive/NVIDIA/Nemotron3-Ultra).
|
| 351 |
|
| 352 |
**4× B200 single-node deployment (NVFP4):**
|
| 353 |
|
|
|
|
| 362 |
--ulimit stack=67108864 \
|
| 363 |
-v $MODEL_CKPT:/model:ro \
|
| 364 |
-e SAFETENSORS_FAST_GPU=1 \
|
| 365 |
+
lmsysorg/sglang:v0.5.13 \
|
|
|
|
|
|
|
| 366 |
python3 -m sglang.launch_server \
|
| 367 |
--model-path /model \
|
| 368 |
--host 0.0.0.0 \
|
|
|
|
| 372 |
--ep-size 4 \
|
| 373 |
--context-length 262144 \
|
| 374 |
--mem-fraction-static 0.85 \
|
| 375 |
+
--mamba-scheduler-strategy extra_buffer \
|
| 376 |
+
--mamba-backend flashinfer \
|
| 377 |
+
--attention-backend trtllm_mha \
|
|
|
|
|
|
|
| 378 |
--reasoning-parser nemotron_3 \
|
| 379 |
--tool-call-parser qwen3_coder \
|
| 380 |
--speculative-algorithm EAGLE \
|
| 381 |
+
--speculative-num-steps 3 \
|
| 382 |
--speculative-eagle-topk 1 \
|
| 383 |
+
--speculative-num-draft-tokens 4 \
|
| 384 |
+
--trust-remote-code
|
|
|
|
|
|
|
| 385 |
```
|
| 386 |
|
| 387 |
* **Context length:** Defaults to 256k above. To use up to 1M, set `SGLANG_ALLOW_OVERWRITE_LONGER_CONTEXT_LEN=1` and `--context-length 1048576`.
|