mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3712] [Engine] sm_80 tuning measured on a CMP 170HX (GA100): prompts up to 2.0x, decode +20 %, conversation switches 5-10x faster; five PRs to follow #1545
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#1545
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?
Originally created by @linxuhao on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3712
Area
[Engine] (speed, kernels, models, the server and API)
What do you want to do?
Make Strata fast on sm_80 (GA100-class) cards with every expert resident. Today none of the engine's per-card tables has an sm_80 entry: the wide dense dequant default, the MMVQ-IL rows and the fused prompt-expert thread shapes. #3252 reports A100 slowdowns, and you said you have no sm_80 card. We have one and spent the last weeks tuning for it. We would like to agree on scope here before opening five PRs. The PRs are written and build on CUDA sm_80, HIP gfx1100 and HIP gfx906. Their per-PR GPU runs are in progress.
Card and setup. CMP 170HX: GA100, sm_80, 70 SMs, 64 GB HBM2e, PCIe Gen2 x4 (the engine's probe reads 1.6 GB/s host to device). The card runs at a 1650 MHz clock ceiling with a +250 MHz V/F offset (an undervolt), and its power cap was 235 W or 250 W across these runs.
--kv int8 --spec 3 --mtp --prefill 8192 --max-context 262144 --conversation-cache-mib 8192.9de04cd4(0.2.1.4). The PR branches are now rebased onto main011c9e60(0.2.2, engine 0.1.47). None of the 238 commits since9de04cd4overlaps these changes. The rebase had two textual conflicts, each resolved by keeping both sides. This box has two sockets, so 0.2.2's NUMA-split CPU expert pool turns itself on here. The rerun below setsSTRATA_NUMA_POOL=0in both arms, because the automatic split on the arena path gives remote reads and an unstable decode (#3708).Overall result. Fresh engine per run, same box.
How the two columns were set up:
STRATA_PF_FUSED=1 STRATA_OWNED_PRICE=exact.STRATA_SIDE_MIXER=2,STRATA_GR_UP75=1andSTRATA_QIL=1.STRATA_GDN_OUT_NORM_LOOPandSTRATA_MTP_PRIO_ALWAYS. Neither showed a gain.A same-session rerun is queued and will replace this table. It runs on the rebased branches and has three rows:
Switches. Every switch is opt-in except the two sm_80 defaults in PR 1, which are bitwise. The effects below were measured on our working builds. Per-switch off/on pairs on the PR branches themselves are in progress, and the table will be updated with them.
STRATA_DEQUANT_WIDE)STRATA_MMVQ_IL_SM80=0restores the shared table)STRATA_PF_FUSED_NT=256(256-thread fused IQ prompt experts)STRATA_PF_BATCH=N(whole-layer launches, up to 512 experts)STRATA_PLE_COMPACT=1(raw IQ4_NL PLE rows, dequantized on the device)STRATA_PLE_COPY_STREAM=1,STRATA_EMBED_VRAM=1,STRATA_DEQUANT_SIDE=1STRATA_PF_FUSED_F16=1/STRATA_PF_FUSED_WS=1(f16 mma fused experts)STRATA_GDN_TC=1(DeltaNet prompt recurrence as a chunked tensor-core scan)gdn_rec_parity; 0 of 11 greedy answers changeSTRATA_CKPT_ASYNC=1,STRATA_CKPT_VRAM_SLOTS=NSTRATA_PARK_ASYNC=1,STRATA_CKPT_POOL=N,STRATA_CKPT_GATHER=1STRATA_PARK_VRAM_MIB=NSTRATA_GRAPH_PRIO=1(verify-window graph nodes keep their stream priority)STRATA_MMVQ_IL_PF=1(hoisted-load integer MMVQ-IL kernels for Q6_K)The five PRs. Each PR has one commit per feature, so any of them can be split further.
PF_FUSED_NTandPF_BATCH. Upstream's default fused kernels keep identical SASS. Cost: the 256-thread instances add 365,632 bytes of sm_80 device code to every CUDA build.STRATA_CKPT_POOL=1now also pre-allocates 2 ready checkpoints (+236 MB of host RSS).PR 1's MMVQ-IL table is the sm_80 counterpart of #3453 (sm_89). The two touch the same table list.
Validation so far.
011c9e60, every commit of PRs 1-4 and their branch tips build on CUDA sm_80, HIP gfx1100 (ROCm 7.14) and HIP gfx906, with no new warning in any touched file compared with011c9e60built the same way. PR 5's builds are finishing.011c9e60.Questions.
What do you do today instead?
We run our fork's branch (github.com/linxuhao/Strata,
opt-sm80andopt-sm80-hip) with the switches above.🤖 Generated with Claude Code
@linxuhao commented on GitHub (Oct 22, 2026):
Draft with all five features, one commit each, rebased on
011c9e60: #3779. Per-feature GPU runs on011c9e60are in progress; results will follow here.🤖 Generated with Claude Code
@linxuhao commented on GitHub (Oct 23, 2026):
Results on main
011c9e60, same box,STRATA_NUMA_POOL=0in both arms. The full tables and method are in #3779 https://github.com/Niko1221/Strata/pull/3779#issuecomment-6360524055.The five PRs merged, with their switches, against stock: 4K prompts 1,980 → 4,131 tok/s (2.09x), 16K 2,889 → 4,458 (1.54x), 52K 3,154 → 4,367 (1.38x), decode 108.6 → 129.5 (1.19x).
Against stock with upstream's own switches turned on, these PRs add 1.80x / 1.45x / 1.35x on prompts and +8 % on decode. The greedy answers are identical and the A/B/A conversation check is identical.
🤖 Generated with Claude Code
@Niko1221 commented on GitHub (Oct 27, 2026):
Thank you. #3779 is ported in 0.2.7 with your name on the 18 commits. The bitwise-identical parts (wider dequantisation, the MMVQ tables for sm_80) are on by default for sm_80 (off: STRATA_DEQUANT_WIDE=0, STRATA_MMVQ_IL_SM80=0); the options that change the summation order, need 101 KB of shared memory or have no unit test stay off, and STRATA_DEFAULTS=026 restores 0.2.6. We have no sm_80 card (only sm_86 and sm_120 here); please try 0.2.7 and post your results in the pull request.
Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.7