Archived
radiance 1.13.0
New models: - Tencent Hy-Memory (HYV3) from its BF16, FP8 and GGUF checkpoints, with its native tool calls - M2XFP4: metadata-augmented MXFP4 weights for Qwen3.8-27B and its DFlash2 drafter (top-1 89.1% -> 92.4% against plain MXFP4), its quantiser and recipe, and ParoQuant's M2XFP4 checkpoints - Gemma 4 E2B/E4B audio input; NVIDIA-Nemotron-3.5-Bolt-E4B in int8 and 4-bit, on two cards by default; Ornith-1.5-122B compose files Speed: - Weight reads beside the decode all-reduces (qwen35_fp8, gemma3; --weight-prefetch, on by default): the 27B MXFP4 with DFlash2 61.2 -> 67.9 tok/s at c1, TranslateGemma 27B +13% - Head-256 split-KV decode attention at 256 workgroups and without bank conflicts (27B: +3-5% a step at 25-41K context), and the prefill KV split for small launches (a short turn over a long context decodes the other sequences 27% faster in that step) - MXFP4 decode gate_up, activation and fp8 quantiser in one launch (27B, Gemma 3 up to 64 rows: TranslateGemma +2-5% at 2-8 streams) - ParoQuant int4/int5 tiled GEMMs 6-9% faster - Speculation: a step's tokens are sent before the drafter's passes end, no step waits behind one that ends its requests, and the MTP head's first draft no longer collapses after short chats in the prefix cache Features: - --kv-resident N: KV streaming for a context bigger than VRAM (qwen4exp_fp8, GLM-5.3) - MiniMax-H3: reference media and keyframe conditioning with the VAE encoders - Krea 2 rebalance presets balanced, detail and subtle - The dashboard's request history; a stall watch that reports a frozen step's thread and stack - rad-tune at the served configuration, collectives measured as the exchange; Gemma 4 E2B/E4B's per-layer embeddings read ahead off the step path - A GPTQ calibration tap and recipe for Gemma 4 31B's w4a8 container Fixes: - The two-rank all-reduce checks that a peer's push has landed before reducing it - z-lab's DFlash drafter on Gemma 4 31B keeps drafting after a prefix-cache hit - MiniMax-H3's modulation rows Changes: Plugin ABI 31: out-of-tree plugins must be rebuilt. RADIANCE_PREFETCH_BESIDE is --weight-prefetch now; RADIANCE_NO_HUGE_PAGES, RADIANCE_IDS_EARLY, RADIANCE_ATTN_BAND_SPLIT, R4D_PREFILL_SPLITS, RAD_PLE_TIMING and RAD_PLE_CACHE_ROWS are gone.
This commit is contained in:
commit
6645337f69
198 files changed
+20904
-3240
No files matched your search
@@ -366,16 +366,11 @@ extern "C" int r4d_rad_gemm_mxfp4a8_gemv(const RadArgs* a, RadStream s) {
|
||||
// to arrive (an agent-scope counter per group, keyed on the output as the decode row's) takes the
|
||||
// group's amax and writes its codes and scales.
|
||||
//
|
||||
// Why a tile pair a block: one block a 128-column group, each wave running every K partial of one of
|
||||
// its sixteen tiles, left the grid at n / 128 blocks, 68 at Qwen's per-rank gate_up on 32 WGPs, so a
|
||||
// few WGPs ran a third block while the rest idled, and the fold (97..101 us) lost to the gemv row and
|
||||
// gated_quant_fp8 it replaces (78 + 7 us). Splitting K across a group's blocks instead moved an fp32
|
||||
// partial of the whole product per split through memory (4.4 MB at eight rows; 106 us). A tile pair
|
||||
// a block is the gemv row's own grid and K order; what crosses blocks is the bf16 product and the
|
||||
// amaxes, M * n * 2 bytes and n / 16 * M floats: Qwen 78..81 us, TranslateGemma 99 (as before), at
|
||||
// TP1 148 against the pair's 152 (r4d_selftest --perfmx). End to end the gain is smaller, since a
|
||||
// replayed step overlaps the old fold's idle WGPs with other work: Qwen without speculation x1 / x4 /
|
||||
// x8 +1.4 / +1.8 / +1.5 % (three alternating rounds).
|
||||
// Why a tile pair a block: a block per 128-column group leaves too few blocks (68 for Qwen's
|
||||
// per-rank gate_up on 32 WGPs), and splitting K across a group's blocks moves an fp32 partial of
|
||||
// the whole product through memory; both lost to the gemv row plus gated_quant_fp8. A tile pair a
|
||||
// block is the gemv row's own grid and K order, and only the bf16 product and the amaxes cross
|
||||
// blocks: Qwen 78..81 us against the pair's 85 (r4d_selftest --perfmx), about +1.5 % end to end.
|
||||
//
|
||||
// Byte-identical to the WMMA form above followed by gated_quant_fp8. Wave v of a tile runs what wave
|
||||
// v of that form runs (partial v sums chunks v, v + KW, .. in order), and the partials are added
|
||||
@@ -511,14 +506,13 @@ void r4d_gemm_mxfp4a8_gated_kernel(
|
||||
// (gemm_mxfp4a8_gated_gemv_wide)
|
||||
//
|
||||
// From 9 rows the GEMM the fold replaces is gemv_wide's (r4d_gemm_mxfp4a8_gemvw_kernel, RT row tiles).
|
||||
// This is that kernel over a tile PAIR, gate tile j and up tile n / 16 + j, in place of two adjacent
|
||||
// This is that kernel over a tile pair, gate tile j and up tile n / 16 + j, in place of two adjacent
|
||||
// tiles (its TN = 2): eight K waves, each loading both tiles' words of its chunks and running one WMMA
|
||||
// chain per row tile over each, so a chunk's activation fragments are read once for both halves. The
|
||||
// narrow form's sixteen waves (eight a half, each reading the activation for its own tile) would be
|
||||
// gemv_wide at TN = 1, which at 25..64 rows took TranslateGemma's gate_up 21504 x 5376 from 111 to 154
|
||||
// us at 32 rows and from 150 to 183 at 64 (the comment above r4d_gemm_mxfp4a8_gemvw_kernel). Then the
|
||||
// narrow form's epilogue: a thread a (row, column) of the pair, the GeGLU or SwiGLU product rounded to
|
||||
// bf16, each row's amax over the tile, and the 128-column group's last block quantising it.
|
||||
// chain per row tile over each, so a chunk's activation fragments are read once for both halves.
|
||||
// (The narrow form's sixteen waves, eight a half, would be gemv_wide at TN = 1: 20-40 % slower at
|
||||
// 32-64 rows on TranslateGemma's gate_up.) Then the narrow form's epilogue: a thread a (row, column)
|
||||
// of the pair, the GeGLU or SwiGLU product rounded to bf16, each row's amax over the tile, and the
|
||||
// 128-column group's last block quantising it.
|
||||
//
|
||||
// Byte-identical to gemv_wide followed by gelu_mul and quant_act_fp8 (or gated_quant_fp8). A row's sum
|
||||
// in gemv_wide is its row tile's chain alone, the same at every RT and TN; wave v here sums chunks v,
|
||||
|
||||
Reference in new issue
Block a user