Merge Gemma 4 31B: PRs #74, #75, #81 and #86 (sfjes, keptn42), with fixes

The gemma4_bf16 architecture (sliding and global attention, the proportional RoPE ladder, the
assistant head as a drafter that reads the trunk's cache, the vision tower), its w4a8 decode
junctions, the h512/gqa8 and h256/gqa2 attention kernels, compressed-tensors int4 import, multi-EOS
from generation_config, the call/reasoning reply format, a window group that keeps the keys a
prefill chunk still reads, and window snapshots in checkpoint slots so a prefix hit on a
sliding-window trunk resumes.

Fixes on top: the investigation switches and diagnostic blocks out of the served paths; int4 import
through the checkpoint import framework; attention_k_eq_v from the config; the fused junctions only
where every reader takes their pair; a shared-KV head binds no group of its own; the compose file
without HSA_ENABLE_IPC_MODE_LEGACY (TP2 fails with it on ROCm 10.1); a checkpoint carries a window
only where a hit resumes from it; the README says the linked container is keptn42's calibrated GPTQ
build and what the in-tree recipe gives.
This commit is contained in:
Deadcode committed 2026-10-12 20:46:37 +02:00
84 files changed
+10292 -230

No files matched your search

+15 -12
View File
@@ -6,18 +6,21 @@ MXFP4 GEMM, the A-tiled MXFP4 prefill GEMM and the GDN kernels' overflow guards)
MXFP4 decode and prefill GEMMs, the MXFP4 linear and the DFlash2 drafter's MXFP4 linears, stop
strings after the reasoning block, and the draft refill on a prefix hit), goodman-b (four-rank
tensor parallelism for Qwen3.8-Flash-Next), keptn42 (the four-rank all-reduce served in place, the
fused four-rank writes, the n-gram table in RAM, the four-class expert split, the Grafana
dashboard, the routed GEMM's decode loads and run search, the gated residual's prefill read form
and row groups, the fused router launch, the adaptive draft window, the MoE prefill forms and the
sorted operand's decode kernel), mechkbfan (the token embedding in the pinned host pool), Code000
(the n-gram gather on the card and the MTP head's history-pass skip), baKon (three-rank tensor
parallelism, serving any world size from the shipped container, the request log, an uneven world's
per-rank KV and weights split, --rope-scaling, the model entry's context length, root and
capabilities, /props, the three-rank two-shot all-reduce and tiered-int8 wire, the diagnosis of
the three-rank lossy-wire crash, cardclock.py, --busy-prefill-chunk, and curl, jq and a CA bundle
in the image with hfget.sh under its busybox), hazyumps (static YaRN for the Qwen rotary paths),
redxherring (--model taking a Hugging Face repo id) and zivius (LiquidAI's LFM2 and LFM2-VL and
d1's /v1/systemone, after the design of their Codeberg PR 50).
fused four-rank writes, the n-gram table in RAM, the four-class expert split, the Grafana dashboard,
the routed GEMM's decode loads and run search, the gated residual's prefill read form and row
groups, the fused router launch, the adaptive draft window, the MoE prefill forms, the sorted
operand's decode kernel, and for Gemma 4 its assistant head as a drafter that reads the trunk's
cache, bf16 checkpoints, the fused w4a8 decode step, the vision tower and window snapshots that let
a prefix hit resume), mechkbfan (the token embedding in the pinned host pool), Code000 (the n-gram
gather on the card and the MTP head's history-pass skip), baKon (three-rank tensor parallelism,
serving any world size from the shipped container, the request log, an uneven world's per-rank KV
and weights split, --rope-scaling, the model entry's context length, root and capabilities, /props,
the three-rank two-shot all-reduce and tiered-int8 wire, the diagnosis of the three-rank lossy-wire
crash, cardclock.py, --busy-prefill-chunk, and curl, jq and a CA bundle in the image with hfget.sh
under its busybox), hazyumps (static YaRN for the Qwen rotary paths), redxherring (--model taking a
Hugging Face repo id), sfjes (Gemma 4 31B dense: its plugin, its two attention classes and their
kernels, and prefix reuse that leaves a windowed group alone) and zivius (LiquidAI's LFM2 and
LFM2-VL and d1's /v1/systemone, after the design of their Codeberg PR 50).
This product includes software from the following projects, each under the MIT License. The
license text is in the file named beside each.