Archived
The q lift -- a `cast` copying q out of the fused [q|k|v] projection into a dense block -- was there because libr4d's paged attention reads q only dense. gemma4k's takes q at any row pitch (its head_view, and g4k_emu's q-pitch-slice cases), and gemma4k serves all of Gemma 4's attention, so the slice goes straight in: one launch and a [T, q] copy less on each of the 25 sliding layers, every step. With libr4d ahead of gemma4k its attention refuses the slice by name (RAD_E_STRIDE) rather than reading it wrong. arch_test: no copy between projection and attention, and the attention reads `qkv_s`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>