mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 07:48:45 +00:00
qsa_block_scores launched a warp for every block of the full context (max_cells / 4, 50K blocks at 200K) for every query, nearly all of them idle. Its warps now go round over the blocks: the verify window and the token path use a fixed grid of 1024 per query, the prompt path the chunk's largest n_bid + 1. Each score is computed as before (bitwise). qsa_prefill_attn: the prompt path's attention, a block per (KV head, query) walking the query's selected cells in tiles of 64 with an online softmax, instead of the decode kernel's split-K partial sums through memory. FP32; int8 codes are converted without I2F. verify_parity checks it against the decode kernel (relative difference 3.9e-6). 16K-token prompt: IQ3_XXS 18.3 -> 15.9 s, UD-Q4_K_XL 24.8 -> 22.4 s.