mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-06 08:18:54 +00:00
split_q and gate_attn (engine/src/prefill/kernels.cu) were hard-coded to 24 query heads x 256. On the 16-head q4_lite shape they read and wrote 1.5x the real rows (a guard overwrite) and used a 24-head gate stride. They now take the head count and head dim from the compiled geometry (new prefill/qsa_query_rows.hpp) plus a host regression test; for the 24-head shapes the arithmetic is the same as before. The unfused path runs whenever the attention gate is not fused into the attention epilogue (STRATA_QSA_FUSE_GATE=0, the kv_rot / kv_hybrid KV formats, old_attn, or a refusal of the gated kernel) and for split_q when STRATA_QSA_FUSE_NR=0. The contributor's commit and its author line are unchanged, as the owner allowed.