Text Generation
Transformers
Safetensors
PyTorch
nemotron_h
nvidia
nemotron-3
latent-moe
mtp
conversational
Eval Results
Instructions to use nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16 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-BF16 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-BF16") 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-BF16") model = AutoModelForCausalLM.from_pretrained("nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16", 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-BF16 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-BF16" # 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-BF16", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16
- SGLang
How to use nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16 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-BF16" \ --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-BF16", "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-BF16" \ --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-BF16", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16 with Docker Model Runner:
docker model run hf.co/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16
Update SGLang serving commands
Browse filesTo align with the commands given by https://docs.sglang.io/cookbook/autoregressive/NVIDIA/Nemotron3-Ultra
README.md
CHANGED
|
@@ -371,12 +371,12 @@ Context length defaults to 256k above. To use up to 1M, set `VLLM_ALLOW_LONG_MAX
|
|
| 371 |
Container (tested on 8× B200):
|
| 372 |
|
| 373 |
```shell
|
| 374 |
-
docker pull lmsysorg/sglang:v0.5.
|
| 375 |
```
|
| 376 |
|
| 377 |
For more detailed information, please see [this cookbook](https://github.com/NVIDIA-NeMo/Nemotron/blob/main/usage-cookbook/Nemotron-3-Ultra/sglang_cookbook.ipynb).
|
| 378 |
|
| 379 |
-
**8× B200 single-node deployment (
|
| 380 |
|
| 381 |
```shell
|
| 382 |
docker run -d --name nemotron-ultra-sglang \
|
|
@@ -389,9 +389,7 @@ docker run -d --name nemotron-ultra-sglang \
|
|
| 389 |
--ulimit stack=67108864 \
|
| 390 |
-v $MODEL_CKPT:/model:ro \
|
| 391 |
-e SAFETENSORS_FAST_GPU=1 \
|
| 392 |
-
|
| 393 |
-
-e SGLANG_DISABLE_DEEP_GEMM=1 \
|
| 394 |
-
lmsysorg/sglang:v0.5.12.post1 \
|
| 395 |
python3 -m sglang.launch_server \
|
| 396 |
--model-path /model \
|
| 397 |
--host 0.0.0.0 \
|
|
@@ -401,19 +399,16 @@ docker run -d --name nemotron-ultra-sglang \
|
|
| 401 |
--ep-size 8 \
|
| 402 |
--context-length 262144 \
|
| 403 |
--mem-fraction-static 0.85 \
|
| 404 |
-
--
|
| 405 |
-
--
|
| 406 |
-
--
|
| 407 |
-
--mamba-scheduler-strategy no_buffer \
|
| 408 |
-
--disable-piecewise-cuda-graph \
|
| 409 |
--reasoning-parser nemotron_v3 \
|
| 410 |
--tool-call-parser qwen3_coder \
|
| 411 |
--speculative-algorithm EAGLE \
|
| 412 |
-
--speculative-num-steps
|
| 413 |
--speculative-eagle-topk 1 \
|
| 414 |
-
--speculative-num-draft-tokens
|
| 415 |
-
--trust-remote-code
|
| 416 |
-
--log-level info
|
| 417 |
```
|
| 418 |
|
| 419 |
Context length defaults to 256k above. To use up to 1M, set `SGLANG_ALLOW_OVERWRITE_LONGER_CONTEXT_LEN=1` and `--context-length 1048576`.
|
|
|
|
| 371 |
Container (tested on 8× B200):
|
| 372 |
|
| 373 |
```shell
|
| 374 |
+
docker pull lmsysorg/sglang:v0.5.13
|
| 375 |
```
|
| 376 |
|
| 377 |
For more detailed information, please see [this cookbook](https://github.com/NVIDIA-NeMo/Nemotron/blob/main/usage-cookbook/Nemotron-3-Ultra/sglang_cookbook.ipynb).
|
| 378 |
|
| 379 |
+
**8× B200 single-node deployment (MTP on by default):**
|
| 380 |
|
| 381 |
```shell
|
| 382 |
docker run -d --name nemotron-ultra-sglang \
|
|
|
|
| 389 |
--ulimit stack=67108864 \
|
| 390 |
-v $MODEL_CKPT:/model:ro \
|
| 391 |
-e SAFETENSORS_FAST_GPU=1 \
|
| 392 |
+
lmsysorg/sglang:v0.5.13 \
|
|
|
|
|
|
|
| 393 |
python3 -m sglang.launch_server \
|
| 394 |
--model-path /model \
|
| 395 |
--host 0.0.0.0 \
|
|
|
|
| 399 |
--ep-size 8 \
|
| 400 |
--context-length 262144 \
|
| 401 |
--mem-fraction-static 0.85 \
|
| 402 |
+
--mamba-scheduler-strategy extra_buffer \
|
| 403 |
+
--mamba-backend flashinfer \
|
| 404 |
+
--attention-backend trtllm_mha \
|
|
|
|
|
|
|
| 405 |
--reasoning-parser nemotron_v3 \
|
| 406 |
--tool-call-parser qwen3_coder \
|
| 407 |
--speculative-algorithm EAGLE \
|
| 408 |
+
--speculative-num-steps 3 \
|
| 409 |
--speculative-eagle-topk 1 \
|
| 410 |
+
--speculative-num-draft-tokens 4 \
|
| 411 |
+
--trust-remote-code
|
|
|
|
| 412 |
```
|
| 413 |
|
| 414 |
Context length defaults to 256k above. To use up to 1M, set `SGLANG_ALLOW_OVERWRITE_LONGER_CONTEXT_LEN=1` and `--context-length 1048576`.
|