mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-06 16:29:04 +00:00
The branch carries the int8 expert kernels and the rules for a build made with -DSTRATA_MMQ=OFF (HIP without STRATA_PREFILL_MMQ); the build with MMQ is meant to stay as it was. Order of what a build without MMQ runs for the prompt, nothing set: the fused kernels for a chunk of 1,024 tokens or more on every layer they cover; the staged fused entry for shorter chunks; the int8 expert kernels (gate/up Q4_K, Q5_K, Q6_K, IQ4_XS, IQ1_M, Q2_0 and the matching downs, tile-2 slices of 8, a few-rows route) for what nothing faster covers; the FP16 path for the rest. On a Tesla P100 the int8 kernels run only below the stream floor and the FP16 path from the floor up. FP16 expert buffers are sized for the tail in a fused layout, and the build prints one statement at start-up about what its prompt kernels are. A set STRATA_EXPERT_I8 still wins at every size.
Measured without MMQ against with MMQ, nothing set (prompt ms): R9700 at 1,000 tokens 936 -> 735, at 2,048 1,146 -> 1,151; RTX PRO 5000 within 1% at every size with the first logits byte-identical; Tesla P100 at 1,000 tokens 5,079 -> 4,267, equal from the floor up. The branch had merged an earlier integration head (3ffa59e2b) and now sits on the batch 14 head.