Archived
xe2_gemm_nt_xmx / xe2_logits_gemm_xmx (M >= 17, bf16): joint_matrix M8 N16 K16 with use::b loaded column-major straight from the [N, K] weight, eight sub-groups a work-group on one 64-column slice so a B tile is in cache for all of them; tail rows go to the GEMV and shapes the tiles cannot read to the exact kernel. xe2_attn_paged: one pass with an online softmax, keys over eight sub-groups, head_dim over lanes, libref's masks, windows, ragged batches and fp8 descales. Both keep their exact twins under XE2_EXACT=1. rad-kbench: fixture 499/499, MiniCPM5-2B 482/482 (worst rel_l2 1.7e-4). KL against the libref reference over 1914 positions: mean 5.8e-4, p99 3.2e-3, top-1 98.7% -- inside the bound. Prefill of a 1795-token prompt: 4.57 s, 393 tok/s (was ~17); decode 33.2 tok/s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018EpFgqQidSnH8zo7boVZC1