deploy/compose, README: Gemma 4 31B i8g and heretic-ara-i8g

This commit is contained in:
keptn42 authored and StillDeadcode committed 2026-11-01 20:56:46 +01:00
1 parent 34c52ebe96
commit b34b1ac844
3 files changed
+33

No files matched your search

+2
View File
@@ -35,6 +35,8 @@ To support the development of radiance: [Patreon](https://patreon.com/StillDeadC
| 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 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` |
| 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` |
@@ -0,0 +1,15 @@
# Gemma 4 31B-it heretic-ara (Gemma 4 with its refusals removed by Heretic's ARA): the same container
# as gemma4-31b-i8g.yaml, built from that checkpoint. 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-heretic-ara-i8g
services:
radiance:
extends: { file: common.yaml, service: radiance }
container_name: radiance-gemma4-31b-heretic-ara-i8g
command: >
--model /models/gemma4-31b-heretic-ara-i8g.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
--num-speculative-tokens 3 --max-num-batched-tokens 2048 --vision-tower-placement ram
--temp 1.0 --top-p 0.95 --top-k 64
+16
View File
@@ -0,0 +1,16 @@
# Gemma 4 31B-it: int8 trunk (one scale per 128 weights, no calibration) and int8 lm_head, Google's
# assistant head merged in 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. Sampling defaults are the checkpoint's
# generation_config; thinking is switched per request (chat_template_kwargs).
# For the full 262,144-token context use --max-model-len 262144 --max-num-seqs 2.
name: radiance-gemma4-31b-i8g
services:
radiance:
extends: { file: common.yaml, service: radiance }
container_name: radiance-gemma4-31b-i8g
command: >
--model /models/gemma4-31b-i8g.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
--num-speculative-tokens 3 --max-num-batched-tokens 2048 --vision-tower-placement ram
--temp 1.0 --top-p 0.95 --top-k 64