Archived
New models: - LTX-2.5 (base and distilled): video with a stereo soundtrack from text or from text and a first frame, on one card, with its duration head, tiled VAE decoding, the diffusion decoder and the x2 latent upsampler - Krea 2 Raw and Turbo, and FLUX.3 [klein] and its base: text to image, and for FLUX.3 edits from up to ten reference pictures, on one card - GLM-5.3-Flash from AMD's Quark MXFP4 export, on eight cards (John McDonough, Nunze) - Gemma 3 / TranslateGemma 27B with an optional DFlash2 drafter (mici81) Engine: - --kv-cache-dtype fp8_v4 and k6_v4 for Gemma 3 and Qwen3.8-Flash-Next (mici81) - the rotated int8 trunk (i8a8h) for Qwen3.8-27B (eddie168168) - eight-rank all-reduce bands, weighted shards and pieces (Nunze); --host-headroom-mib (sfjes) - the dashboard shows the single-stream decode floor and its most recent window (Memoria) Fixes: prefix-cache reservations kept until their save lands (baKon), tool calls in Responses namespaces (#119), system messages merged when a template refuses several (#137), a prefill continued with no open step (#127), calibration of a Gram accumulation (#122), JSON Schema patterns read unanchored (davetha), GLM-style tool calls, the KV floor counting every sequence's state. Plugin ABI 24.
24 lines
1.3 KiB
Plaintext
24 lines
1.3 KiB
Plaintext
// R4D attention at twelve queries per KV head, head_dim 256: Qwen3.8-Flash-Next's QSA layers
|
|
// (24 query heads over 2 KV heads). Geometry only; r4d_attn_paged_gqa8.hip is the body. The ratio
|
|
// changes two bounds, both stated in the row table:
|
|
//
|
|
// decode verify width 64 / gqa = 5. A wider speculative verify takes the prefill kernel.
|
|
// prefill block width 384 / gqa = 32 query positions.
|
|
//
|
|
// No head_dim 128 leg: nothing in scope is gqa 12 at 128, so those entry points are not built.
|
|
#define R4D_ATTN_GQA 12
|
|
#define R4D_ATTN_H128 0
|
|
// KV page of 4 tokens (as in the gqa6-bs4 unit for the same layers at four ranks; 16 elsewhere).
|
|
// The QSA indexer selects 4-token blocks, so a selected block is a page and sparse attention is
|
|
// this kernel with a different block table (docs/QSA.md). The only cost is reading NB = TILE / BS
|
|
// table entries per tile (4 at TILE 16), within step noise; output is identical.
|
|
//
|
|
// Note: the rows must agree. C_EQ("block_size", 4) on all four gqa12 rows makes the core size the
|
|
// pages at 4 (RadKVGroupDecl takes the block size from the resolved kernel). A row saying 16 here
|
|
// would refuse at issue rather than at declare.
|
|
#define G8_BLOCK_SIZE 4
|
|
// The fp8_v4 and k6_v4 caches (--kv-cache-dtype), which qwen4exp_fp8 offers for these layers.
|
|
#define R4D_ATTN_V4 1
|
|
|
|
#include "r4d_attn_paged_gqa8.hip"
|