Archived
For 17 or more rows the rotation is a batch of GEMMs, one a (part, 128-column group): the input fp16(x / D) per part, the f16 rotation as B, a batched form of the tiled fp16 XMX kernel (xmx_f16_batched) into f32, then libref's quantiser a (row, part, group). The input rounded once to fp16 where libref sums in double: a fast kernel. KL against the exact reference: mean 0.0037, top-1 97.2% (0.0035 / 95.6% before: within the noise of 250 positions). Up to 16 rows the float-pair kernel stays. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018EpFgqQidSnH8zo7boVZC1