Files
Strata/include
Niko1221 492adfcbac Merge f-p4-small-default 8ce488608 into f-p4-int (small CUDA cards take Strata's fused expert kernels inside the small-card prompt path)
On one CUDA card with a native pack and a default prompt chunk under 8,192 tokens, the prompt path reads in MMQ's buffer layout so that
the layer-major walk runs. Inside that layout the native fused expert kernels now run too, instead of MMQ's kernels, by default: an
unset STRATA_PF_FUSED reads as 1 on that path only (pf_fused_env_effective), so the kernels take every format they cover on the card
(the i-quant gate/up formats with their covered downs, the Q2_0 pair); K-quant, Q8_0 and the other formats keep their own switches.
STRATA_PF_SMALL_FUSED=0 is the way back (MMQ's kernels on that path, as before); STRATA_PF_SMALL=0 still turns the whole rule off. A card
where the rule does not fire, a HIP build, and a user who named STRATA_PF_FUSED behave as before. The log line of the rule says "so
prompts are read the way that suits a card with little memory" in place of "with the unfused experts". The second commit moves the switch
helper out of the CUDA kernel headers so the kernel translation units under src/kernels/cuda see no changed input.

Measured (RTX A4000 held to 8,000 and 9,000 MiB free, IQ2_XS): prompt speed fused / MMQ 1.000 to 1.050 from 300 to 20K tokens at 8,000
MiB, 1.000 to 1.042 at 9,000 MiB; forced-token KL fused / MMQ 1.024 (CI 0.929 to 1.156) at 2K and 1.105 (0.964 to 1.305) at 8K against a
floor of 1.000. Byte identity of the 2K set (24 prompts, draft-cost table fixed): nothing set equals the opt-in arm, STRATA_PF_SMALL_FUSED=0
equals the old default, and a card where the rule does not fire (12,000 MiB) is unchanged.

Merged onto this head. Both sides changed data/settings-register.json, src/core/arch_defaults_test.cpp and src/prefill/moe_fused_iq.cu
in different places; git merged them without a conflict and nothing was changed by hand.
2026-11-12 19:03:20 +01:00
..