From cfa6a668f69e75f363ea72b4d604e7898078448e Mon Sep 17 00:00:00 2001 From: keptn42 Date: Sat, 31 Oct 2026 15:59:50 +0100 Subject: [PATCH] deploy/compose, README: Gemma 4 31B w5 on two cards --- README.md | 1 + deploy/compose/gemma4-31b-w5.yaml | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 deploy/compose/gemma4-31b-w5.yaml diff --git a/README.md b/README.md index a6520147..f1895a36 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ To support the development of radiance: [Patreon](https://patreon.com/StillDeadC | MiniCPM5-2B FP8, DSpark drafter | `minicpm5-2b-fp8.rad` (3 GiB) | [download](https://huggingface.co/StillDeadcode/minicpm5-2b-fp8) | `minicpm5-2b.yaml` | | MiniCPM5-2B bf16, DSpark drafter | `minicpm5-2b-bf16.rad` (5 GiB) | [download](https://huggingface.co/StillDeadcode/minicpm5-2b-bf16) | `minicpm5-2b-bf16.yaml` | | Gemma 4 31B: GPTQ int4 trunk, int8 activations, MTP, vision | `gemma4-31b-w4a8.rad` (20 GiB) | [download](https://huggingface.co/keptn/gemma4-31b-w4a8) | `gemma4-31b-w4a8.yaml` | +| Gemma 4 31B w5: GPTQ int5 trunk (a scale and a zero point per 128 weights), MTP, vision | `gemma4-31b-w5.rad` (23 GiB) | [download](https://huggingface.co/keptn/gemma4-31b-w5) | `gemma4-31b-w5.yaml` | | Gemma 4 31B heretic-ara (refusals removed): GPTQ int4 trunk, int8 activations, MTP, vision | `gemma4-31b-heretic-ara-w4a8.rad` (20 GiB) | [download](https://huggingface.co/keptn/gemma4-31b-heretic-ara-w4a8) | `gemma4-31b-heretic-ara-w4a8.yaml` | | Gemma 4 31B: int8 trunk and lm_head (no calibration), MTP, vision | `gemma4-31b-i8g.rad` (33 GiB) | [download](https://huggingface.co/keptn/gemma4-31b-i8g) | `gemma4-31b-i8g.yaml` | | Gemma 4 31B heretic-ara (refusals removed): int8 trunk and lm_head (no calibration), MTP, vision | `gemma4-31b-heretic-ara-i8g.rad` (33 GiB) | [download](https://huggingface.co/keptn/gemma4-31b-heretic-ara-i8g) | `gemma4-31b-heretic-ara-i8g.yaml` | diff --git a/deploy/compose/gemma4-31b-w5.yaml b/deploy/compose/gemma4-31b-w5.yaml new file mode 100644 index 00000000..61a1f503 --- /dev/null +++ b/deploy/compose/gemma4-31b-w5.yaml @@ -0,0 +1,14 @@ +# Gemma 4 31B-it w5: every trunk linear asymmetric int5 (GPTQ from the bf16 checkpoint, a scale and a zero +# point per 128 weights), Google's assistant head as the MTP drafter (depth 3), and the vision tower. The +# vision tower stays in host memory, so its VRAM goes to the KV cache. For the full 262,144-token context +# use --max-model-len 262144 --max-num-seqs 2. +name: radiance-gemma4-31b-w5 +services: + radiance: + extends: { file: common.yaml, service: radiance } + container_name: radiance-gemma4-31b-w5 + command: > + --model /models/gemma4-31b-w5.rad + --host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY + --tp 2 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype fp8 --vision-tower-placement ram + --num-speculative-tokens 3 --max-num-batched-tokens 2048 --temp 1.0 --top-p 0.95 --top-k 64