mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-06 00:08:52 +00:00
Review fixes for the pointer-table MMQ build: - STRATA_MMQ_TAB defaults to OFF, like STRATA_MMQ_KQUANTS: the engine loads every kernel at start (CUDA_MODULE_LOADING=EAGER), and the nine tab instances took 36-38 MiB of VRAM per GPU (sm_86, measured with a cudaMemGetInfo probe linked with and without the tab objects; equal under LAZY), with STRATA_MMQ_DIRECT unset too. prep_group_kernel is compiled only with STRATA_MMQ_TAB, so a build without it has the same device code as 3adce85 (the 58 cubins and PTX of build/strata are byte-identical to engine/strata-g3b's). - The fingerprint block and the tab TUs are skipped on STRATA_HIP_GFX906: that build compiles no .cu from here, so the define, the uncompiled TUs and an unlinkable prefill_mmq_tab_test no longer appear. - Tab instances only for Q2_0 IQ2_XXS IQ2_XS IQ2_S IQ3_XXS IQ3_S IQ4_NL IQ4_XS Q8_0, the types prefill_mmq_tab_test checks bit for bit; Q5_0 and the K-quants (STRATA_ORCA_Q4KS_MMQ, STRATA_MMQ_KQUANTS) keep the gather. - overread_bytes takes the largest over-read of any config, not the over-read of the largest K tile (the over-read is not monotonic in the tile length). - The test fails (instead of skipping) when a tested type has no tab, checks that Q5_0/K-quants report none, and pins the sm_86 over-reads (0, 72, 136 B); the dead K-quant scale branch is gone. - SYCL's moe_mmq.dp.cpp gets the STRATA_MMQ_DIRECT stubs (false/0), for a future migrated prefill.cpp. - moe_mmq.hpp points at docs/DETAILS.md.