mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1024] [CLOSED] s2_qpn8: opt-in QPN8 expert GEMV on Volta m8n8k4 (M >= 4) #2973
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#2973
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/1024
Author: @ATIVX928
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:v100/qpn8📝 Commits (10+)
5a30024calibrate: the engine's arguments come from the server's engine_args; a failed tuning says why (#447)9f60d13serve, setup: name the small split card that caps the prompt chunk; setup recommends the big card alone (#448)eb8da1d/metrics: each request's speculative draft counts, and their sums in the totals (#457)6a09387setup (--gguf-dir): GGUFs Strata cannot run are named as such, with the --family/--model to use (#444)d6a91e2docs: the Coder is weaker outside code, Chinese/CJK text included; the unpruned sizes for that (#438)d8d4ad3Merge branch 'f-135-eng' into rel-0.1.357b600d5Merge branch 'f-135-small' into rel-0.1.35d9ab843Engine 0.1.35: Windows AMD uses its bundled HIP runtime (#468 #461), the low-RAM resident mode on Windows 32 GB PCs (#467), fixes #460 #459 #446 #447 #457 #448 #444; setup requires it57bd713sycl: pipeline the expert cache's profile fill (model load 3-4x faster)e3bdd74A prompt cancelled mid-read is logged and recorded with the tokens it read (#471)📊 Changes
1 file changed (+55 additions, -0 deletions)
View changed files
➕
bench/results/2026-10-03-qpn8-prep/README.md(+55 -0)📄 Description
What
QPN8: a load-time repack of the Q2_0 expert weights at admission plus an m8n8k4 expert GEMV for Volta, split out of #627. The repack doubles the slot at admission and the GEMV builds the per-window A fragment and runs the mma chains; the DP4A path remains the fallback.
The entry point pays off only when a window has M >= 4 expert entries; at M < 4 it is slower, so it stays opt-in:
STRATA_QPN8=1, default off.Gating
The m8n8k4 code is compiled under
#if !defined(__HIPCC__) && defined(STRATA_EXPERIMENTAL_SM60)with stubs that fall back to DP4A elsewhere. The ready-made engine is unchanged.Measured
V100-SXM2-16GB, CUDA 12.8,
s2_qpn8_parity --bench, per window:Tests
s2_qpn8_parityPASS withSTRATA_QPN8=1: the quantized intermediates are byte-identical (0 of 30600 bytes differ), the FP32-level outputs are within their bound (worst abs 9.5e-6).s2_expert_grouped_paritystill bitwise PASS.32K end-to-end
Same setup with
STRATA_QPN8=1: prefill 1544.4 single / 2197.0 dual vs main's 1557.1 / 2207.0, and decode within its +-15% session noise. The MTP verify window is around M=5, between the measured 10x4 (0.88x) and 10x8 (1.21x) points. The entry point stays opt-in.Known gap
The per-stage sizing loop for a layer split (~
generate.cpp:3514) still priceslay.max_blob, as in the original #627 commit, so a Volta layer split withSTRATA_QPN8=1can over-pick a stage and failopen. The rest of the admission/verify/generate accounting is updated.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.