Archived
libr4d: Gemma 3's rows -- windowed h128/gqa2 attention, qkv_norm_rope at h128 without a value norm, ar_rmsnorm_post_quant_fp8
- r4d_attn_paged_h128_gqa2w.hip: decode and query-tiled prefill at head_dim 128, gqa 2, window >= 1, instantiations of the h256/gqa6 templates with WIN = 1 (as h256_gqa2 for Gemma 4); the h128/gqa2 rows keep window 0. - qkv_norm_rope: head_dim 128, and an optional v_norm (0 leaves v alone). - ar_rmsnorm_post_quant_fp8: ar_rmsnorm_quant_fp8 with a post-norm of the reduced sum against w_post before the residual add (the sandwich junction), exact wire only. Its own op: an optional seventh operand on ar_rmsnorm_quant_fp8 broke every plugin issuing its six. r4d_selftest: the windowed rows against the inline oracle over a history past the window, and qkv_norm_rope at h128 / v_norm 0 byte-identical to its chain. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
37deff85ca
commit
f92cce07f1
11 files changed
+291
-19
No files matched your search
@@ -104,6 +104,13 @@ int r4d_rad_attn_prefill_h256_gqa2_bf16 (const RadArgs*, RadStream);
|
||||
int r4d_rad_attn_decode_h256_gqa2_fp8 (const RadArgs*, RadStream);
|
||||
int r4d_rad_attn_decode_h256_gqa2_bf16 (const RadArgs*, RadStream);
|
||||
int64_t r4d_rad_attn_decode_h256_gqa2_scratch(const RadArgs*);
|
||||
/* Gemma 3 sliding window (r4d_attn_paged_h128_gqa2w.hip): head_dim 128, 2 queries per KV head,
|
||||
* window >= 1. Decode (q_len*gqa <= 64) and windowed prefill, as the h256/gqa2 pair above. */
|
||||
int r4d_rad_attn_prefill_h128_gqa2w_fp8 (const RadArgs*, RadStream);
|
||||
int r4d_rad_attn_prefill_h128_gqa2w_bf16 (const RadArgs*, RadStream);
|
||||
int r4d_rad_attn_decode_h128_gqa2w_fp8 (const RadArgs*, RadStream);
|
||||
int r4d_rad_attn_decode_h128_gqa2w_bf16 (const RadArgs*, RadStream);
|
||||
int64_t r4d_rad_attn_decode_h128_gqa2w_scratch(const RadArgs*);
|
||||
/* Paged attention at head_dim 256 and 512, 1/2/4/8 queries per KV head, any window, causal or not
|
||||
* (r4d_attn_paged_window.hip): one entry point per geometry and cache dtype, every q_len and any q
|
||||
* row pitch, so they serve both attn_paged and attn_paged_qrow. */
|
||||
|
||||
Reference in new issue
Block a user