On the FP16 prompt path every routed expert is dequantized to FP16 before its
two GEMMs, at about 104 us an expert on a Tesla P100 whatever its row count; a
short piece routes only a few rows to most experts and pays it for nothing.
With STRATA_PF_FEWROWS set (research switch, off unless set, "0" off) an
expert with 1..12 rows of a native pack (no APR) runs on
native_expert_grouped, the quantized kernels the verify window uses, on its GGUF
blob with q8_1 activations and no dequantize. A one-block kernel writes the
expert's plan record on the device. The rule and the switch are in
include/strata/prefill/fewrows.hpp (fewrows_rule_test); the streamed and staged
walk takes it, the layer-major walk is unchanged.
With the switch unset nothing changes except one added kernel
(fewrows_record_kernel) that nothing launches. No default and no user-visible
text; settings register entry STRATA_PF_FEWROWS, status research.
Tesla P100 (sm_60), IQ3_XXS, STRATA_PREFILL_MMQ=0 with the switch on, from the
screen build (3 rotated rounds; prompt tok/s, ratio to MMQ):
prompt MMQ FP16 path few-rows ratio few-rows / MMQ plain FP16 / MMQ
300 171.3 144.9 162.8 0.954 0.846
1,000 248.4 215.6 226.6 0.911 0.868
2K 291.1 264.5 270.7 0.931 0.909
4K 304.5 290.5 303.5 0.997 0.954
8K 343.6 352.1 358.3 1.044 1.025
20K 332.7 335.8 344.4 1.035 1.009
First-token KL 2K / 8K (mean): few-rows vs plain FP16 0.0168 / 0.0048, vs MMQ
0.0065 / 0.0085 (plain FP16 vs MMQ 0.0155 / 0.0078, MMQ again 0.0012 / 0.0006).
Gate on the committed tree follows (lane P4-FALLBACK, phaseA-tests/par).