mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #443] [CLOSED] kernels: add opt-in small-window GR and one-warp MMVQ experiments #2643
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#2643
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/443
Author: @CC-David-CC
Created: 10/2/2026
Status: ❌ Closed
Base:
main← Head:perf/fleet-mmvq📝 Commits (6)
fcc9062kernels: add opt-in small-window GR and one-warp MMVQ alternatives52a41d4test: tidy benchmark harness formattingad3f363test: include native output projection in MMVQ parity coverage549bdbcdocs: report focused kernel gains regressions and parity gates5c1a003docs: record 0.1.34 rebase and targeted regression checksb60a861docs: clarify branch selection, activation and public evidence📊 Changes
12 files changed (+6921 additions, -17 deletions)
View changed files
📝
CMakeLists.txt(+8 -0)📝
README.md(+9 -0)➕
docs/EXPERIMENTAL_KERNELS.md(+223 -0)➕
docs/benchmarks/2026-10-01-experimental-kernels.json(+5016 -0)➕
docs/benchmarks/2026-10-01-experimental-kernels.md(+65 -0)➕
docs/benchmarks/2026-10-02-upstream-sync-experimental.json(+1189 -0)➕
docs/benchmarks/2026-10-02-upstream-sync-experimental.md(+50 -0)📝
src/kernels/cuda/fused_gr.cu(+29 -17)📝
src/kernels/cuda/native_mmvq.cu(+11 -0)➕
tests/gr_roofline.cpp(+51 -0)➕
tests/mmvq_roofline.cpp(+63 -0)➕
tools/bench_mtp_modes.py(+207 -0)📄 Description
Updated to upstream 0.1.34 (
1678de3). Fresh targeted builds and regressions passed; the full fleet/context performance numbers below remain measurements of the prior 0.1.33 source.Rebase checks
This independent, opt-in experiment is based directly on upstream
0.1.34 (
1678de3). Hardware enablement and non-MTP serving have separate PRs.Changes
STRATA_GR_DOWN_MAX4=1: bound per-thread storage for windows of at most fourtokens while preserving block dimensions, tile width, accumulation order and
upstream plain/split/staged selection. Larger windows retain the existing path.
STRATA_MMVQ_WARP1=1: one warp per dense MMVQ output row. Floating-pointassociation changes; this path uses a declared numerical-tolerance gate.
Both are off by default and tested individually. Weights, quantization,
expert selection and MTP threshold are unchanged.
Measured benefit
GSQ-RCO IQ3_S, Q8 KV, MTP4 at threshold0.5, long code/prose:
RTX PRO controls were untouched upstream A/B, bracketing the focused candidate.
Three additional alternating default/max4 pairs reproduced the gain: code
1.77-2.49%, prose2.14-2.72%, with identical token IDs. Total-time improvement was
only 0.89%/1.08% in the original comparison because prefill was unchanged.
The 5500 XT used one default/warp1/default sequence. Default A/B tokens matched;
the optimized outputs differed. Prose generated 1601 rather than 1453 tokens
and took longer overall (218.57 versus 210.96 s). This is not an identical-output
completion-time or quality claim. Its combined source tree is documented.
Other single 8K + 512-counting-token GR pairs were: 4090 +0.30%, 3070 -0.03%,
P4 +1.74%, and mapped-expert 7900 XTX -7.48%. Those single pairs do not establish
small gains; the 7900 XTX result argues for retaining its default path.
Correctness and limits
combinations on all six GPUs.
including the native output projection.
against the declared
1e-5limit. Exact generated-token equality is not promised.ac28acb;measured engine binaries were unchanged. Source/binary identities are recorded.
general model-quality or correctness guarantees for every input.
Scope, all results and reproduction
| Full matrix
| Machine-readable evidence
Credit: Niko1221/Strata supplies the engine,
expert cache and MTP. This patch changes only the two named launch/storage paths.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.