Archived
The fused q|k|v GEMM writes one plane, so the q operand is a column slice whose row pitch is q_dim + 2*kv_dim. libr4d's attn_prefill_h128_gqa1_fp8kv reads q only contiguous and refuses the slice with RAD_E_STRIDE, which aborts the step and stops the engine on the first prefill. attn_paged_qrow would read the pitch in place but has no h128 row (only head_dim 256/512), so lift the slice into a dense [T, q_dim] buffer with a cast after rope, as gemma4 does.