Files
Strata/data
Niko1221 df485b41c0 prefill: the fused kernels are the default for IQ2_XXS / IQ2_XS gate/up on sm_86 / sm_120 cards with 80+ SMs
The owner said yes on 11-12 ("2-bit fused kernels as the default on 80+ SM NVIDIA cards"), on the decision table of lane OWN-4X
(RESULTS-OWN-4X.md, "IQ3_XXS 2-bit cell on 80+ SM cards").  Until now native_supported's default branch (CUDA, STRATA_PF_FUSED unset) took only
IQ2_S / IQ3_XXS / IQ3_S / IQ4_XS gate/up and kept MMQ for IQ2_XXS / IQ2_XS ("until measured"); the IQ3_XXS set has 19 such layers (9 IQ2_XXS,
10 IQ2_XS) of 48, and the IQ2_XS sets have their own.  They join the list; the card rule is the one the i-quant default already uses
(fused_tile::takes_by_default: sm_86 / sm_120 with 80+ SMs; STRATA_PF_FUSED_SM86=0 turns the sm_86 default off), nothing changes below 80 SMs
(the sm40 research switch only takes the weight-staging gate/up instances, sw_on, which IQ2_XXS / IQ2_XS are not), nothing for AMD (its own rule
in native_supported, the HIP branch), no new setting.  STRATA_PF_FUSED=0 gives MMQ again, =1 keeps its meaning.

The rule is now a pure function (include/strata/prefill/fused_tile_rule.hpp): default_gate_format(ggml type id) and
default_takes(env, card, sm40, gate_staged, down_ok, gu_type); moe_fused_iq.cu static_asserts that the ids are GGML_TYPE_*.  Host code only:
the kernels, the tile pick and the prompt path (prefill.cpp) are untouched.  tests/prefill/fused_tile_rule_test.cpp: IQ2_XXS / IQ2_XS over
both card flags x sm_121 x 0-200 SMs x the sm40 switch x down kinds (12,864 combinations): yes exactly for sm_86 / sm_120 with 80+ SMs (80 yes,
79 no, 48 no, AMD and sm_89 without a flag no), STRATA_PF_FUSED=0 off, =1 not by default; the formats already in the list keep their rule.

Evidence (RTX A6000, sm_86, 84 SMs, Boston GPU 0, IQ3_XXS set, frozen shipped expert profile, MTP on; fused = STRATA_PF_FUSED=1 = what this
commit makes the default, against nothing set before):
- prompt speed, 5 interleaved rounds, fresh engine per arm: tok/s fused / default 1.030 / 1.040 / 1.035 at 4K / 8K / 20K, 5 of 5 each (e93);
  on the integration head 9f81b8b67, prompt ms fused / default 0.874 to 0.976 from 300 to 8,193 tokens, fused slower in 0 of 5 rounds at every
  length (below 1,024 tokens the head runs the staged fused groups; on e93 800-1,024 tokens were 1.03x slower, not on the head)
- teacher-forced per-position KL against the FP16 prompt path, 48 prompts x 256 positions, paired bootstrap over prompts, fused / default
  [95 %]: 512 ids 0.965 [0.912, 1.021], 1,000 ids 1.062 [0.995, 1.137], 2,048 ids 1.072 [1.020, 1.123], 8,192 ids 1.008 [0.939, 1.101]; the
  floor (default again) 0.974 / 1.012 / 1.006 / 1.003
- one layer against FP32 (19 layers, real blobs, real routing): fused and MMQ equally far (ratio 1.0001 at 2K, 0.9998 at 8K)
- robustness: small chunks, agent run, first 8K read (24 engines, 0 of 24 over 2x), forced-slow-layer backstop with its designed error, no hang
Not covered: any card other than the A6000 (sm_120 with 80+ SMs follows by the class rule, not measured on a 2-bit set), the IQ2_XS sets end
to end, multi-GPU, Windows, tool-call agent runs.

data/settings-register.json: the STRATA_PF_FUSED_SM86 note names the default list.  No user-visible text changes.
2026-11-12 07:16:54 +01:00
..