mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2089] [CLOSED] CUDA sm_75: interleaved 2-4 column GEMV with a Turing rows table (CMP 50HX), opt-in STRATA_SM75_TABLE=1 #3854
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3854
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2089
Author: @xrip
Created: 10/12/2026
Status: ❌ Closed
Base:
main← Head:pr/sm75-mmvq-table📝 Commits (1)
d751c0dCUDA sm_75: the interleaved 2-4 column GEMV and one column with a Turing rows table (CMP 50HX), opt-in STRATA_SM75_TABLE=1📊 Changes
2 files changed (+23 additions, -2 deletions)
View changed files
📝
docs/MMVQ_IL_TABLE.md(+2 -1)📝
src/kernels/cuda/native_mmvq.cu(+21 -1)📄 Description
What
A rows-a-warp table for Turing (sm_75) in
native_mmvq.cu(kIlRows_75for 2-4 columns,kIl1Rows_75for onecolumn), measured with
mmvq_il_parity --bench --emit-tableasdocs/MMVQ_IL_TABLE.mdasks. Opt-in withSTRATA_SM75_TABLE=1, like Volta's, until a second Turing card confirms it. Without the variable nothing changes.Why
Turing had no table, so the interleaved path was off there and the plain kernels ran. Turing has dp4a, and on this card
the interleaved kernels are much faster at 2-4 columns, which is every verify window with
--spec. The RTX 20 series andthe T4 are sm_75 as well.
Measured
Card: NVIDIA CMP 50HX, a TU102 at RTX 2080 Ti clocks (2100 MHz SM, 56 SMs). Driver 610.43.03, CUDA 13.3, GCC 14, Linux.
Parity:
mmvq_il_parity: OK (every case, T 1-4, rows 1/2/4 and the table, bitwise).Selected shapes from
--bench(the full output is below):Decode A/B:
--layer-split auto, Qwen3.8-Flash-Next GSQ-RCO IQ3_XXS,--spec 4 --mtp,--kv int8,--adapt-swaps 0 --pcie-frac 0.17.On this box, two runs of the same arm already differ late in 1-2 of the 6 answers, so the texts cannot judge bit-exactness here. The parity test does.
Also measured, not in this PR: expert mode 8 on Turing
STRATA_EXP_MODE=8(Volta's and the P100's layout) on the same card:native_expert_benchover all 48 layers of the IQ3_XXS pack: bitwise equal in every case.I tried a per-type exception (IQ4_NL down kept on the CUDA layout). The bench improved to -17.5 % at 4 tokens, but decode did not change, so I left it out. If you want sm_75 to take mode 8 by default, as the P100 does, that would be a one-line follow-up.
Testing
mmvq_il_parity(parity and bench) on the card.Full
mmvq_il_parity --bench --emit-tableoutput (CMP 50HX)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.