Repository navigation
dsv4.1: standalone kernels and Python wrappers - #39646
Merged
Merged
Conversation
hnyls2002
requested review from
BBuf,
DarkSharpness,
HaiShaw,
HydraQYH,
celve and
yuan-luo
as code owners
September 15, 2026 21:22
This was referenced Sep 15, 2026
hnyls2002
force-pushed
the
dsv4.1-kernels
branch
4 times, most recently
from
September 16, 2026 01:51
1cdc9f1 to
3d126d0
Compare
hnyls2002
force-pushed
the
dsv4.1-kernels
branch
from
September 16, 2026 05:27
4bd8f07 to
8c1a73d
Compare
BBuf
approved these changes
Sep 16, 2026
This was referenced Sep 16, 2026
This was referenced Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Scope and verification
23 kernel/wrapper/helper files: +2,459 / -19; all byte-identical to the source snapshot
01d34d7b404451bce7f7b35e306de6fab395024d.Carry seven complete existing test files unchanged and the existing standalone HC/MXFP8 parity cases; leave model-dispatch cases in the remaining PR. The extracted parity function is AST-identical.
Existing Python functions are AST-identical to the base;
tiny_gemmis equivalent after the declared helper relocation and namespace/name substitutions.Total: 33 files, +3,494 / -19.
All applicable pre-commit checks passed. All eight extracted test files passed on one GB300; the decode-metadata suite skipped 66 shapes where FlashMLA does not use a split-KV schedule.
Move the existing Q-norm graph replay cases (8 cases) and WO-A kernel quantization/replay assertions (1 method) into this layer; all passed on GB300. Model dispatch and FP8 linear integration remain in dsv4.1: remaining model and runtime integration #38798.
Extraction checks passed: Q-norm helper/test AST equality, WO-A AST equality after removing explicitly listed runtime statements; all six kernel parity assertions retained. Q-norm uses the valid kernel-test path, suite, and direct runner in this layer.
Stack
main.CI States
Latest PR Test (Base): 🚫 Run #35059589790
Latest PR Test (Extra): ❌ Run #35059589619
Latest PR Test (AMD ROCm 10): 🚫 Run #35059589856