libr4d: paged attention at head_dim 128 and gqa 16

Nemotron-H's attention layers have 32 query heads over 2 KV heads, gqa 16 at one and two ranks.
r4d_attn_paged_h128_gqa16.hip is the gqa8 body at that ratio: prefill blocks of 24 query
positions, decode q_len <= 4. Selftest cases at one rank.
This commit is contained in:
keptn42 committed 2026-11-04 22:08:06 +01:00
1 parent dccc6329a9
commit 44490c859a
5 files changed
+87

No files matched your search

+2
View File
@@ -68,6 +68,8 @@ set(R4D_UNITS
# Two queries per KV head at head_dim 128 only (Qwen3-1.7B's 16 over 8, Qwen3-ASR's decoder):
# the gqa8 body with the ratio set.
"r4d_attn_paged_h128_gqa2|"
# Sixteen queries per KV head at head_dim 128 (Nemotron-H's 32 over 2 at one or two ranks).
"r4d_attn_paged_h128_gqa16|"
"r4d_attn_vit_h72_bf16|"
# An encoder's dense attention (bidirectional, GQA in the workgroup, a two-sided window) and
# the small ops around it: act_mul, seg_mean, qk_norm_rope with a v norm, the f32 widening.