Archived
deploy: Gemma 4 12B composes and README rows
gemma4-12b-bf16.yaml (two cards) and gemma4-12b-i8g.yaml (one card), both with bf16 KV, MTP depth 3 and 1120 patches for pictures.
This commit is contained in:
1 parent
a72686b7e7
commit
3af8065cc6
4 files changed
+36
No files matched your search
@@ -44,6 +44,8 @@ To support the development of radiance: [Patreon](https://patreon.com/StillDeadC
|
||||
| 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` |
|
||||
| Gemma 4 31B on four or two cards: int4 trunk, int8 activations and lm_head, a block-16 DFlash2 drafter (15 drafts a step, verified as a tree), vision | `gemma4-31b-dense-w4a8-df2b16-qkv.rad` (23 GiB) | [download](https://huggingface.co/Ashlyn4202025/gemma4-31b-w4a8-dflash2-b16) | `gemma4-31b-w4a8-df2b16-tp4.yaml`, `gemma4-31b-w4a8-df2b16-tp2.yaml` |
|
||||
| Gemma 4 12B bf16: MTP, vision, audio | `gemma4-12b-bf16.rad` (25 GiB) | [download](https://huggingface.co/keptn/gemma4-12b-bf16) | `gemma4-12b-bf16.yaml` |
|
||||
| Gemma 4 12B int8 (i8a8): MTP, vision, audio | `gemma4-12b-i8g.rad` (14 GiB) | [download](https://huggingface.co/keptn/gemma4-12b-i8g) | `gemma4-12b-i8g.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` |
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
# Gemma 4 12B-it at bf16 on two cards: every weight as Google released it, Google's assistant head
|
||||
# merged in as the MTP drafter (depth 3). Pictures and audio go in through the 12B's own embedders (no
|
||||
# vision tower, no audio encoder). bf16 KV: fp8 KV costs the 12B more than it saves. Thinking is off,
|
||||
# as in Google's template; switch it per request (chat_template_kwargs). Sampling as the checkpoint's
|
||||
# generation_config states it (temperature 1.0, top_p 0.95, top_k 64).
|
||||
name: radiance-gemma4-12b-bf16
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-gemma4-12b-bf16
|
||||
command: >
|
||||
--model /models/gemma4-12b-bf16.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 2 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype bf16
|
||||
--num-speculative-tokens 3 --max-num-batched-tokens 2048 --mm-max-patches 1120
|
||||
--temp 1.0 --top-p 0.95 --top-k 64 --chat-template-kwargs '{"enable_thinking":false}'
|
||||
@@ -0,0 +1,16 @@
|
||||
# Gemma 4 12B-it at int8 on one card: every trunk linear int8 at i8a8 (activation scale per row and
|
||||
# 128 columns), Google's assistant head merged in as the MTP drafter (depth 3), the image and audio
|
||||
# embedders at bf16. bf16 KV: fp8 KV costs the 12B more than it saves. Thinking is off, as in Google's
|
||||
# template; switch it per request (chat_template_kwargs). Sampling as the checkpoint's generation_config
|
||||
# states it (temperature 1.0, top_p 0.95, top_k 64).
|
||||
name: radiance-gemma4-12b-i8g
|
||||
services:
|
||||
radiance:
|
||||
extends: { file: common.yaml, service: radiance }
|
||||
container_name: radiance-gemma4-12b-i8g
|
||||
command: >
|
||||
--model /models/gemma4-12b-i8g.rad
|
||||
--host :: --port ${PORT:-8000} --api-key-env RADIANCE_API_KEY
|
||||
--tp 1 --max-num-seqs 8 --max-model-len 65536 --kv-cache-dtype bf16
|
||||
--num-speculative-tokens 3 --max-num-batched-tokens 2048 --mm-max-patches 1120
|
||||
--temp 1.0 --top-p 0.95 --top-k 64 --chat-template-kwargs '{"enable_thinking":false}'
|
||||
@@ -148,6 +148,8 @@ the cards the engine runs on.
|
||||
| `qwen3.8-27b-bf16.yaml` | `qwen3.8-27b-bf16.rad` | Qwen3.8-27B in bf16 |
|
||||
| `gemma4-31b-w4a8.yaml` | `gemma4-31b-w4a8.rad` | Gemma 4 31B, int4 trunk with int8 activations, its assistant head as the MTP drafter, vision tower |
|
||||
| `gemma4-31b-heretic-ara-w4a8.yaml` | `gemma4-31b-heretic-ara-w4a8.rad` | The same for Gemma 4 31B heretic-ara (refusals removed) |
|
||||
| `gemma4-12b-bf16.yaml` | `gemma4-12b-bf16.rad` | Gemma 4 12B in bf16, its assistant head as the MTP drafter, pictures and audio through the 12B's embedders, on two cards |
|
||||
| `gemma4-12b-i8g.yaml` | `gemma4-12b-i8g.rad` | The same with the trunk at int8 (i8a8), on one card |
|
||||
| `nemotron-3.5-bolt-e4b-bf16.yaml` | `nemotron-3.5-bolt-e4b-bf16.rad` | NVIDIA-Nemotron-3.5-Bolt-E4B (Gemma 4 E4B) in bf16 with NVIDIA's DFlash drafter, the vision tower in pinned host memory, on one card |
|
||||
| `nemotron-3.5-bolt-e4b-i8g.yaml` | `nemotron-3.5-bolt-e4b-i8g.rad` | The same with the trunk at int8 (i8a8) |
|
||||
| `nemotron-3.5-bolt-e4b-a4.yaml` | `nemotron-3.5-bolt-e4b-a4.rad` | The same with the feed-forward at four bits (GPTQ), attention and layers 19-23 at i8a8 |
|
||||
|
||||
Reference in new issue
Block a user