[Kernel][SM70] Accelerate exact Qwen3.8 decode - #415
Merged
yangzhuxinyzx merged 5 commits intoAug 29, 2026
Merged
Conversation
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Assisted-by: OpenAI Codex Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Add exact-topology checkpoint-FP16 row GEMV, fused GDN input and HyperConnection routes, and shorten exact QSA top-k to a score-pivot compaction. The matched TP4 no-MTP I8192/O512 gate reaches 80.732 tok/s from 65.864 tok/s while the frozen GSM8K and long-output health gates pass. Assisted-by: OpenAI Codex Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
yangzhuxinyzx
force-pushed
the
codex/v100-qwen38-exact-decode80-20260829-030630
branch
from
August 29, 2026 07:01
9408265 to
97f78a2
Compare
yangzhuxinyzx
marked this pull request as ready for review
August 29, 2026 07:47
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.
Purpose
Raise Qwen3.8-Flash-Next-NVFP4 TP4/V100 no-MTP pure decode from the matched
checkpoint-native baseline to 80 tokens/s without online QPN8, a top1-only
LM-head shortcut, or a task-quality regression.
Base SHA:
62ad1e02693f4c857f3b7547cef1860ee54e8053(
onecat/main). The branch includes the Qwen3.8 correctness foundation from#408. PR #398 remains the separate MTP4 owner.
Scope and contract
/data/models/RadixArk/Qwen3.8-Flash-Next-NVFP4.ignore_eos, fiveprefix-cache-reset repetitions; pure decode excludes TTFT/prefill.
temperature/top-p/top-k
1.0/0.95/20, seed 20260828, max output 4,096,natural EOS.
This is not the 2026-08-24 input-1,024/output-256 E4M3/QPN8 contract.
Implementation
eight audited Qwen3.8 projection roles.
qkv/z/b/a outputs directly.
passes plus exact increasing-index pivot-tie compaction.
speculative decoding on the existing fallback.
source.
The opt-in controls are:
VLLM_SM70_QWEN38_FP16_GEMV=1VLLM_SM70_QWEN38_FUSED_HC_FP16=1VLLM_SM70_QWEN38_FUSED_GDN_INPUT_FP16=1Test result
Matched pure decode
The candidate improves throughput by 22.57% and reduces TPOT by 18.41%.
Every repetition exceeds 80 tok/s; population standard deviation is
0.442 tok/s, and all five candidate token arrays are identical. Warm 8K
prefill median is 2,766.4 ms versus 2,777.6 ms for control.
Quality
versus expected 13).
characters, maximum same-token run 3, maximum repeated 50-character window
count 6 (failure threshold 40).
80.935 tok/s.
The optimized FP16 reductions are deterministic but are not claimed
token-for-token identical to the control after all numerical decision
boundaries. Acceptance is based on real-weight operator bounds plus the
frozen natural-output task and health gates; the route remains default-off.
Focused tests
25 passed:tests/models/qwen4_exp/test_qsa_ops.pyandtests/models/qwen4_exp/test_sm70_fp16_gemv.py.QSA source.
254/256, worst absolute differences 0.00024414 and 0.00003052.
git diff --check: pass.Evidence
Full contracts, trace tables, operator results, rejected paths, quality
details, and local artifact paths are recorded in
docs/design/sm70_qwen38_nvfp4_decode.mdanddocs/design/sm70_v100_migration_control.md.AI assistance was used for profiling, implementation, tests, and
documentation. The source changes and reported results were reviewed locally.