libr4d: windowed attention at head_dim 128 with 4 queries per kv head

LFM3's attention: 16 query heads over 4 kv heads at head_dim 128, in full
layers and in sliding layers with a 256-token window. The decode leg
(r4d_attn_paged_h128_gqa4.hip) serves q_len <= 16 and ranks above; every
longer q_len had no row at this geometry. A row pair (bf16 and int8
cache), its constraints, selftest launches and emulator cases (split
verify, ragged window, int8 cache, non-causal with a missing block, WMMA
prefill with and without the window).
This commit is contained in:
DokterSmol authored and StillDeadcode committed 2026-11-17 18:12:32 +01:00
1 parent 38c182a2ba
commit 660d410196
5 files changed
+40 -6

No files matched your search

+2
View File
@@ -161,6 +161,8 @@ int64_t r4d_rad_attn_qrow_h128_gqa8_scratch(const RadArgs*);
* row pitch, so they serve both attn_paged and attn_paged_qrow. */
int r4d_rad_attn_window_h128_gqa1_bf16(const RadArgs*, RadStream);
int r4d_rad_attn_window_h128_gqa1_i8 (const RadArgs*, RadStream);
int r4d_rad_attn_window_h128_gqa4_bf16(const RadArgs*, RadStream);
int r4d_rad_attn_window_h128_gqa4_i8 (const RadArgs*, RadStream);
/* h128 gqa16: Muse Glimmer's 32 query heads over 2 KV heads. */
int r4d_rad_attn_window_h128_gqa16_bf16(const RadArgs*, RadStream);
int r4d_rad_attn_window_h128_gqa16_i8 (const RadArgs*, RadStream);