Skip to content

Commit e199b36

Browse files
authored
Merge pull request #35 from dmvevents/add-nvfp4-bf16-toggle
nemotron/ultra: NVFP4/BF16 precision toggle via MODEL_VARIANT (.env, no template change)
2 parents 1da7dff + 3c2c14d commit e199b36

2 files changed

Lines changed: 32 additions & 4 deletions

File tree

  • Container-Root/eks/deployment/inference/agentic-ai/nemotron/ultra

Container-Root/eks/deployment/inference/agentic-ai/nemotron/ultra/agg/.env

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,22 @@ export INSTANCE_TYPE_FRONTEND=m5.8xlarge
1313
export INSTANCE_TYPE_WORKER=p5en.48xlarge
1414
export GPU_PER_WORKER=8
1515
export EFA_PER_WORKER=16
16-
export MODEL_NAME=nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16
17-
export MODEL_PATH=/shared/models/hf/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16
16+
# ---- Model precision toggle (Author: Anton Alexander) ----
17+
# Switch between the full-precision BF16 checkpoint and the NVFP4 (4-bit) checkpoint
18+
# WITHOUT editing the templates. BF16 is the default; set MODEL_VARIANT=NVFP4 to switch.
19+
# - bf16 : nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16 (~1.1 TB weights; needs the full node budget)
20+
# - nvfp4 : nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4 (4-bit weights; ~41 GiB/GPU, big KV headroom)
21+
# vLLM auto-detects the quantization from the checkpoint (no --quantization flag needed), so only the
22+
# model name/path change. Override MODEL_REPO to point at any other HF repo following the same -BF16/-NVFP4
23+
# suffix convention.
24+
export MODEL_VARIANT="${MODEL_VARIANT:-BF16}"
25+
export MODEL_REPO="${MODEL_REPO:-nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B}"
26+
case "${MODEL_VARIANT}" in
27+
nvfp4|NVFP4|fp4) _PREC_SUFFIX="NVFP4" ;;
28+
bf16|BF16|*) _PREC_SUFFIX="BF16" ;;
29+
esac
30+
export MODEL_NAME="${MODEL_REPO}-${_PREC_SUFFIX}"
31+
export MODEL_PATH="/shared/models/hf/${MODEL_NAME}"
1832

1933
export ETCD_URL=http://dynamo-platform-etcd.dynamo-system.svc.cluster.local:2379
2034
export NATS_URL=nats://dynamo-platform-nats.dynamo-system.svc.cluster.local:4222

Container-Root/eks/deployment/inference/agentic-ai/nemotron/ultra/disagg/.env

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,22 @@ export INSTANCE_TYPE_FRONTEND=m5.8xlarge
1313
export INSTANCE_TYPE_WORKER=p5en.48xlarge
1414
export GPU_PER_WORKER=8
1515
export EFA_PER_WORKER=16
16-
export MODEL_NAME=nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16
17-
export MODEL_PATH=/shared/models/hf/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16
16+
# ---- Model precision toggle (Author: Anton Alexander) ----
17+
# Switch between the full-precision BF16 checkpoint and the NVFP4 (4-bit) checkpoint
18+
# WITHOUT editing the templates. BF16 is the default; set MODEL_VARIANT=NVFP4 to switch.
19+
# - bf16 : nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16 (~1.1 TB weights; needs the full node budget)
20+
# - nvfp4 : nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-NVFP4 (4-bit weights; ~41 GiB/GPU, big KV headroom)
21+
# vLLM auto-detects the quantization from the checkpoint (no --quantization flag needed), so only the
22+
# model name/path change. Override MODEL_REPO to point at any other HF repo following the same -BF16/-NVFP4
23+
# suffix convention.
24+
export MODEL_VARIANT="${MODEL_VARIANT:-BF16}"
25+
export MODEL_REPO="${MODEL_REPO:-nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B}"
26+
case "${MODEL_VARIANT}" in
27+
nvfp4|NVFP4|fp4) _PREC_SUFFIX="NVFP4" ;;
28+
bf16|BF16|*) _PREC_SUFFIX="BF16" ;;
29+
esac
30+
export MODEL_NAME="${MODEL_REPO}-${_PREC_SUFFIX}"
31+
export MODEL_PATH="/shared/models/hf/${MODEL_NAME}"
1832

1933
export ETCD_URL=http://dynamo-platform-etcd.dynamo-system.svc.cluster.local:2379
2034
export NATS_URL=nats://dynamo-platform-nats.dynamo-system.svc.cluster.local:4222

0 commit comments

Comments
 (0)