From 55cf057a3076adab94ea6d72cb7922e21684067a Mon Sep 17 00:00:00 2001 From: keptn42 Date: Sun, 25 Oct 2026 22:06:32 +0100 Subject: [PATCH] deploy: NVIDIA-Nemotron-3.5-Bolt-E4B on two cards by default Since #239 the E4B form runs at two ranks. The three compose files now use --tp 2 and name the audio encoder; the one-card profiles move to nemotron-3.5-bolt-e4b-{bf16,i8g,a4}-tp1.yaml. --- README.md | 6 +++--- deploy/compose/nemotron-3.5-bolt-e4b-a4-tp1.yaml | 13 +++++++++++++ deploy/compose/nemotron-3.5-bolt-e4b-a4.yaml | 10 +++++----- deploy/compose/nemotron-3.5-bolt-e4b-bf16-tp1.yaml | 13 +++++++++++++ deploy/compose/nemotron-3.5-bolt-e4b-bf16.yaml | 12 ++++++------ deploy/compose/nemotron-3.5-bolt-e4b-i8g-tp1.yaml | 13 +++++++++++++ deploy/compose/nemotron-3.5-bolt-e4b-i8g.yaml | 10 +++++----- 7 files changed, 58 insertions(+), 19 deletions(-) create mode 100644 deploy/compose/nemotron-3.5-bolt-e4b-a4-tp1.yaml create mode 100644 deploy/compose/nemotron-3.5-bolt-e4b-bf16-tp1.yaml create mode 100644 deploy/compose/nemotron-3.5-bolt-e4b-i8g-tp1.yaml diff --git a/README.md b/README.md index 01e47e1a..708bc5a0 100644 --- a/README.md +++ b/README.md @@ -38,9 +38,9 @@ To support the development of radiance: [Patreon](https://patreon.com/StillDeadC | Gemma 4 31B: int4 trunk, int8 activations and lm_head, DFlash drafter, vision | `gemma4-31b-dense-w4a8-df.rad` (22 GiB) | [download](https://huggingface.co/Ashlyn4202025/gemma4-31b-w4a8-dflash) | `gemma4-31b-w4a8-df.yaml` | | Gemma 4 31B Q8: int8 trunk and lm_head (Q8_0's grid at group 128), int8 DFlash drafter, vision | `gemma4-31b-dense-q8-df.rad` (33 GiB) | [convert](#convert-a-checkpoint) | `gemma4-31b-q8-df.yaml` | | Gemma 4 31B on four cards: int4 trunk, int8 activations and lm_head, RedHatAI's DFlash2 drafter, vision | `gemma4-31b-dense-w4a8-df2-qkv.rad` (23 GiB) | [download](https://huggingface.co/Ashlyn4202025/gemma4-31b-w4a8-dflash2) | `gemma4-31b-w4a8-df2-tp4.yaml` | -| NVIDIA-Nemotron-3.5-Bolt-E4B bf16 (Gemma 4 E4B), NVIDIA's DFlash drafter, vision, audio, one card | `nemotron-3.5-bolt-e4b-bf16.rad` (17 GiB) | [download](https://huggingface.co/keptn/nemotron-3.5-bolt-e4b-bf16) | `nemotron-3.5-bolt-e4b-bf16.yaml` | -| NVIDIA-Nemotron-3.5-Bolt-E4B int8 (i8a8, Gemma 4 E4B), NVIDIA's DFlash drafter, vision, audio, one card | `nemotron-3.5-bolt-e4b-i8g.rad` (13 GiB) | [download](https://huggingface.co/keptn/nemotron-3.5-bolt-e4b-i8g) | `nemotron-3.5-bolt-e4b-i8g.yaml` | -| NVIDIA-Nemotron-3.5-Bolt-E4B 4-bit (int4 feed-forward, GPTQ, Gemma 4 E4B), NVIDIA's DFlash drafter, vision, audio, one card | `nemotron-3.5-bolt-e4b-a4.rad` (12 GiB) | [download](https://huggingface.co/keptn/nemotron-3.5-bolt-e4b-a4) | `nemotron-3.5-bolt-e4b-a4.yaml` | +| NVIDIA-Nemotron-3.5-Bolt-E4B bf16 (Gemma 4 E4B), NVIDIA's DFlash drafter, vision, audio | `nemotron-3.5-bolt-e4b-bf16.rad` (17 GiB) | [download](https://huggingface.co/keptn/nemotron-3.5-bolt-e4b-bf16) | `nemotron-3.5-bolt-e4b-bf16.yaml` | +| NVIDIA-Nemotron-3.5-Bolt-E4B int8 (i8a8, Gemma 4 E4B), NVIDIA's DFlash drafter, vision, audio | `nemotron-3.5-bolt-e4b-i8g.rad` (13 GiB) | [download](https://huggingface.co/keptn/nemotron-3.5-bolt-e4b-i8g) | `nemotron-3.5-bolt-e4b-i8g.yaml` | +| NVIDIA-Nemotron-3.5-Bolt-E4B 4-bit (int4 feed-forward, GPTQ, Gemma 4 E4B), NVIDIA's DFlash drafter, vision, audio | `nemotron-3.5-bolt-e4b-a4.rad` (12 GiB) | [download](https://huggingface.co/keptn/nemotron-3.5-bolt-e4b-a4) | `nemotron-3.5-bolt-e4b-a4.yaml` | | Qwen-Image 2.1 FP8: text to image and image edits | `qwen-image-2.1-fp8.rad` (16 GiB) | [download](https://huggingface.co/StillDeadcode/radiance-qwen-image-2.1-fp8) | `qwen-image-2.1.yaml` | | Qwen-Image 2.1 Turbo FP8: the same in 8 steps | `qwen-image-2.1-turbo-fp8.rad` (16 GiB) | [download](https://huggingface.co/StillDeadcode/radiance-qwen-image-2.1-turbo-fp8) | `qwen-image-2.1-turbo.yaml` | | Krea 2 Turbo FP8: text to image, one card | `krea-2-turbo-fp8.rad` (16 GiB) | [download](https://huggingface.co/StillDeadcode/krea-2-turbo-radiance-fp8) | `krea-2-turbo.yaml` | diff --git a/deploy/compose/nemotron-3.5-bolt-e4b-a4-tp1.yaml b/deploy/compose/nemotron-3.5-bolt-e4b-a4-tp1.yaml new file mode 100644 index 00000000..b117476e --- /dev/null +++ b/deploy/compose/nemotron-3.5-bolt-e4b-a4-tp1.yaml @@ -0,0 +1,13 @@ +# NVIDIA-Nemotron-3.5-Bolt-E4B on one card: the container of nemotron-3.5-bolt-e4b-a4.yaml at --tp 1. +# BetterBench combined on a R9700: 302 tok/s here, 346 tok/s on two cards. +name: radiance-nemotron-3.5-bolt-e4b-a4-tp1 +services: + radiance: + extends: { file: common.yaml, service: radiance } + container_name: radiance-nemotron-3.5-bolt-e4b-a4-tp1 + command: > + --model /models/nemotron-3.5-bolt-e4b-a4.rad + --host :: --port ${PORT:-8000} --api-key ${RADIANCE_API_KEY:?set RADIANCE_API_KEY in .env} + --tp 1 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype bf16 + --num-speculative-tokens 7 --mm-max-patches 2520 --vision-tower-placement ram + --temp 1.0 --top-p 0.95 --top-k 64 --chat-template-kwargs '{"enable_thinking":false}' diff --git a/deploy/compose/nemotron-3.5-bolt-e4b-a4.yaml b/deploy/compose/nemotron-3.5-bolt-e4b-a4.yaml index 0b61c0ca..2bfa2cf7 100644 --- a/deploy/compose/nemotron-3.5-bolt-e4b-a4.yaml +++ b/deploy/compose/nemotron-3.5-bolt-e4b-a4.yaml @@ -1,8 +1,8 @@ -# NVIDIA-Nemotron-3.5-Bolt-E4B (Gemma 4 E4B, post-trained by NVIDIA) at 4 bits on one card: the +# NVIDIA-Nemotron-3.5-Bolt-E4B (Gemma 4 E4B, post-trained by NVIDIA) at 4 bits on two cards: the # feed-forward as asymmetric int4 (GPTQ; w4a8i8_asym, w4a16_asym at decode heights), attention and -# layers 19-23 at i8a8, NVIDIA's DFlash drafter (7 tokens a pass) and the bf16 vision tower in pinned -# host memory. bf16 KV. Thinking is off, as in NVIDIA's template; switch it per request -# (chat_template_kwargs). Sampling as NVIDIA states it (temperature 1.0, top_p 0.95) and the +# layers 19-23 at i8a8, NVIDIA's DFlash drafter (7 tokens a pass) and the bf16 vision tower and audio +# encoder in pinned host memory. bf16 KV. Thinking is off, as in NVIDIA's template; switch it per +# request (chat_template_kwargs). Sampling as NVIDIA states it (temperature 1.0, top_p 0.95) and the # checkpoint's top_k 64. name: radiance-nemotron-3.5-bolt-e4b-a4 services: @@ -12,6 +12,6 @@ services: command: > --model /models/nemotron-3.5-bolt-e4b-a4.rad --host :: --port ${PORT:-8000} --api-key ${RADIANCE_API_KEY:?set RADIANCE_API_KEY in .env} - --tp 1 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype bf16 + --tp 2 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype bf16 --num-speculative-tokens 7 --mm-max-patches 2520 --vision-tower-placement ram --temp 1.0 --top-p 0.95 --top-k 64 --chat-template-kwargs '{"enable_thinking":false}' diff --git a/deploy/compose/nemotron-3.5-bolt-e4b-bf16-tp1.yaml b/deploy/compose/nemotron-3.5-bolt-e4b-bf16-tp1.yaml new file mode 100644 index 00000000..26093631 --- /dev/null +++ b/deploy/compose/nemotron-3.5-bolt-e4b-bf16-tp1.yaml @@ -0,0 +1,13 @@ +# NVIDIA-Nemotron-3.5-Bolt-E4B on one card: the container of nemotron-3.5-bolt-e4b-bf16.yaml at --tp 1. +# BetterBench combined on a R9700: 155 tok/s here, 241 tok/s on two cards. +name: radiance-nemotron-3.5-bolt-e4b-bf16-tp1 +services: + radiance: + extends: { file: common.yaml, service: radiance } + container_name: radiance-nemotron-3.5-bolt-e4b-bf16-tp1 + command: > + --model /models/nemotron-3.5-bolt-e4b-bf16.rad + --host :: --port ${PORT:-8000} --api-key ${RADIANCE_API_KEY:?set RADIANCE_API_KEY in .env} + --tp 1 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype bf16 + --num-speculative-tokens 7 --mm-max-patches 2520 --vision-tower-placement ram + --temp 1.0 --top-p 0.95 --top-k 64 --chat-template-kwargs '{"enable_thinking":false}' diff --git a/deploy/compose/nemotron-3.5-bolt-e4b-bf16.yaml b/deploy/compose/nemotron-3.5-bolt-e4b-bf16.yaml index 728bcf26..3e5a0ff3 100644 --- a/deploy/compose/nemotron-3.5-bolt-e4b-bf16.yaml +++ b/deploy/compose/nemotron-3.5-bolt-e4b-bf16.yaml @@ -1,8 +1,8 @@ -# NVIDIA-Nemotron-3.5-Bolt-E4B (Gemma 4 E4B, post-trained by NVIDIA) in bf16 on one card, with NVIDIA's -# DFlash drafter (7 tokens a pass, the block it was trained at) and the vision tower in pinned host -# memory. bf16 KV: fp8 KV costs this model 9x the KL. Thinking is off, as in NVIDIA's template; switch -# it per request (chat_template_kwargs). Sampling as NVIDIA states it (temperature 1.0, top_p 0.95) -# and the checkpoint's top_k 64. +# NVIDIA-Nemotron-3.5-Bolt-E4B (Gemma 4 E4B, post-trained by NVIDIA) in bf16 on two cards, with NVIDIA's +# DFlash drafter (7 tokens a pass, the block it was trained at) and the vision tower and the audio +# encoder in pinned host memory. bf16 KV: fp8 KV costs this model 9x the KL. Thinking is off, as in +# NVIDIA's template; switch it per request (chat_template_kwargs). Sampling as NVIDIA states it +# (temperature 1.0, top_p 0.95) and the checkpoint's top_k 64. name: radiance-nemotron-3.5-bolt-e4b-bf16 services: radiance: @@ -11,6 +11,6 @@ services: command: > --model /models/nemotron-3.5-bolt-e4b-bf16.rad --host :: --port ${PORT:-8000} --api-key ${RADIANCE_API_KEY:?set RADIANCE_API_KEY in .env} - --tp 1 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype bf16 + --tp 2 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype bf16 --num-speculative-tokens 7 --mm-max-patches 2520 --vision-tower-placement ram --temp 1.0 --top-p 0.95 --top-k 64 --chat-template-kwargs '{"enable_thinking":false}' diff --git a/deploy/compose/nemotron-3.5-bolt-e4b-i8g-tp1.yaml b/deploy/compose/nemotron-3.5-bolt-e4b-i8g-tp1.yaml new file mode 100644 index 00000000..b6a1748e --- /dev/null +++ b/deploy/compose/nemotron-3.5-bolt-e4b-i8g-tp1.yaml @@ -0,0 +1,13 @@ +# NVIDIA-Nemotron-3.5-Bolt-E4B on one card: the container of nemotron-3.5-bolt-e4b-i8g.yaml at --tp 1. +# BetterBench combined on a R9700: 253 tok/s here, 325 tok/s on two cards. +name: radiance-nemotron-3.5-bolt-e4b-i8g-tp1 +services: + radiance: + extends: { file: common.yaml, service: radiance } + container_name: radiance-nemotron-3.5-bolt-e4b-i8g-tp1 + command: > + --model /models/nemotron-3.5-bolt-e4b-i8g.rad + --host :: --port ${PORT:-8000} --api-key ${RADIANCE_API_KEY:?set RADIANCE_API_KEY in .env} + --tp 1 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype bf16 + --num-speculative-tokens 7 --mm-max-patches 2520 --vision-tower-placement ram + --temp 1.0 --top-p 0.95 --top-k 64 --chat-template-kwargs '{"enable_thinking":false}' diff --git a/deploy/compose/nemotron-3.5-bolt-e4b-i8g.yaml b/deploy/compose/nemotron-3.5-bolt-e4b-i8g.yaml index 8282c7e6..68329eb2 100644 --- a/deploy/compose/nemotron-3.5-bolt-e4b-i8g.yaml +++ b/deploy/compose/nemotron-3.5-bolt-e4b-i8g.yaml @@ -1,8 +1,8 @@ -# NVIDIA-Nemotron-3.5-Bolt-E4B (Gemma 4 E4B, post-trained by NVIDIA) at int8 on one card: every trunk +# NVIDIA-Nemotron-3.5-Bolt-E4B (Gemma 4 E4B, post-trained by NVIDIA) at int8 on two cards: every trunk # linear int8 at i8a8 (activation scale per row and 128 columns), NVIDIA's DFlash drafter (7 tokens a -# pass, the block it was trained at) and the bf16 vision tower in pinned host memory. bf16 KV. Thinking -# is off, as in NVIDIA's template; switch it per request (chat_template_kwargs). Sampling as NVIDIA -# states it (temperature 1.0, top_p 0.95) and the checkpoint's top_k 64. +# pass, the block it was trained at) and the bf16 vision tower and audio encoder in pinned host memory. +# bf16 KV. Thinking is off, as in NVIDIA's template; switch it per request (chat_template_kwargs). +# Sampling as NVIDIA states it (temperature 1.0, top_p 0.95) and the checkpoint's top_k 64. name: radiance-nemotron-3.5-bolt-e4b-i8g services: radiance: @@ -11,6 +11,6 @@ services: command: > --model /models/nemotron-3.5-bolt-e4b-i8g.rad --host :: --port ${PORT:-8000} --api-key ${RADIANCE_API_KEY:?set RADIANCE_API_KEY in .env} - --tp 1 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype bf16 + --tp 2 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype bf16 --num-speculative-tokens 7 --mm-max-patches 2520 --vision-tower-placement ram --temp 1.0 --top-p 0.95 --top-k 64 --chat-template-kwargs '{"enable_thinking":false}'