Archived
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:
1 parent
dccc6329a9
commit
44490c859a
5 files changed
+87
No files matched your search
@@ -385,6 +385,13 @@ int r4d_rad_attn_prefill_h128_gqa2_bf16(const RadArgs*, RadStream);
|
||||
int r4d_rad_attn_decode_h128_gqa2_fp8 (const RadArgs*, RadStream);
|
||||
int r4d_rad_attn_decode_h128_gqa2_bf16 (const RadArgs*, RadStream);
|
||||
int64_t r4d_rad_attn_decode_h128_gqa2_scratch(const RadArgs*);
|
||||
/* Sixteen queries per KV head at head_dim 128 (Nemotron-H): the gqa8 body at gqa 16
|
||||
* (r4d_attn_paged_h128_gqa16.hip). */
|
||||
int r4d_rad_attn_prefill_h128_gqa16_fp8 (const RadArgs*, RadStream);
|
||||
int r4d_rad_attn_prefill_h128_gqa16_bf16(const RadArgs*, RadStream);
|
||||
int r4d_rad_attn_decode_h128_gqa16_fp8 (const RadArgs*, RadStream);
|
||||
int r4d_rad_attn_decode_h128_gqa16_bf16 (const RadArgs*, RadStream);
|
||||
int64_t r4d_rad_attn_decode_h128_gqa16_scratch(const RadArgs*);
|
||||
/* Twelve queries per KV head, head_dim 256 only: Qwen3.8-Flash-Next's QSA layers. Same body,
|
||||
* another instantiation (r4d_attn_paged_h256_gqa12.hip). */
|
||||
int r4d_rad_attn_prefill_h256_gqa12_fp8 (const RadArgs*, RadStream);
|
||||
|
||||
Reference in new issue
Block a user