From 77c266ce8fece665ec1f6a97838aebf592bf04b0 Mon Sep 17 00:00:00 2001 From: sfjes Date: Fri, 9 Oct 2026 23:56:09 -0700 Subject: [PATCH] docs: catalog the gemma4 arch and its eight attention kernels ARCHITECTURES.md gains the gemma4_bf16 row (two attention classes, CT-INT4 served form); KERNELS.md gains the h256/gqa2 and h512/gqa8 decode+prefill rows (bf16kv + fp8kv legs) the arch selects. --- docs/ARCHITECTURES.md | 1 + docs/KERNELS.md | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/docs/ARCHITECTURES.md b/docs/ARCHITECTURES.md index cbd4186d..c75711cf 100644 --- a/docs/ARCHITECTURES.md +++ b/docs/ARCHITECTURES.md @@ -14,6 +14,7 @@ into the id an architecture plugin claims. | `arch/qwen35moe_fp8` | `qwen35moe` | `fp8_e4m3` | `qwen35_fp8` with the feed-forward routed | | `arch/qwen4exp_fp8` | `qwen4exp` | *(empty)* | Qwen4-Exp (Qwen3.8-Flash-Next), a bf16 checkpoint quantised at convert | | `arch/embgemma2` | `embeddinggemma2` | *(empty)* | EmbeddingGemma 2: a bidirectional encoder with Gemma 4's vision tower and audio conformer, pooled to one vector | +| `arch/gemma4_bf16` | `gemma4_bf16` | `i4` (group-128 codes, f16 scale) | Gemma 4 31B dense (text): two attention classes — sliding-window and proportional-RoPE global (`attention_k_eq_v`) — over one GemmaRMSNorm stream, GELU ffn, two KV groups, softcapped logits, tied scaled embedding; served from a CT-INT4 (QAT w4a16) checkpoint | This document is the geometry of each, and the handful of readings that are **arithmetically silent** — wrong in a way that produces fluent output and no error anywhere. diff --git a/docs/KERNELS.md b/docs/KERNELS.md index 81b5bee7..302662f4 100644 --- a/docs/KERNELS.md +++ b/docs/KERNELS.md @@ -57,16 +57,24 @@ the core can tune, fuse and check against a container: | `attn_decode_h128_gqa8_fp8kv` | `attn_paged` | | `attn_decode_h256_gqa12_bf16kv` | `attn_paged` | | `attn_decode_h256_gqa12_fp8kv` | `attn_paged` | +| `attn_decode_h256_gqa2_bf16kv` | `attn_paged` | +| `attn_decode_h256_gqa2_fp8kv` | `attn_paged` | | `attn_decode_h256_gqa6_fp8kv` | `attn_paged` | | `attn_decode_h256_gqa8_bf16kv` | `attn_paged` | | `attn_decode_h256_gqa8_fp8kv` | `attn_paged` | +| `attn_decode_h512_gqa8_bf16kv` | `attn_paged` | +| `attn_decode_h512_gqa8_fp8kv` | `attn_paged` | | `attn_prefill_h128_gqa8_bf16kv` | `attn_paged` | | `attn_prefill_h128_gqa8_fp8kv` | `attn_paged` | | `attn_prefill_h256_gqa12_bf16kv` | `attn_paged` | | `attn_prefill_h256_gqa12_fp8kv` | `attn_paged` | +| `attn_prefill_h256_gqa2_bf16kv` | `attn_paged` | +| `attn_prefill_h256_gqa2_fp8kv` | `attn_paged` | | `attn_prefill_h256_gqa6_fp8kv` | `attn_paged` | | `attn_prefill_h256_gqa8_bf16kv` | `attn_paged` | | `attn_prefill_h256_gqa8_fp8kv` | `attn_paged` | +| `attn_prefill_h512_gqa8_bf16kv` | `attn_paged` | +| `attn_prefill_h512_gqa8_fp8kv` | `attn_paged` | | `attn_vit_h72_bf16` | `attn_dense` | | `dequant_w4_bf16` | `dequant_w4` | | `dflash_conv_t2_g16_bf16` | `dflash_conv` |