Repository navigation
[Kernel][SM70] Default safe FP8 prescaled M1 decode - #316
Merged
yangzhuxinyzx merged 2 commits intoAug 26, 2026
Merged
Conversation
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com> (cherry picked from commit b8d928d)
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
yangzhuxinyzx
marked this pull request as ready for review
August 26, 2026 03:39
yangzhuxinyzx
deleted the
codex/v100-fp8-prescaled-m1-main-20260826-031636
branch
August 26, 2026 03:39
This was referenced Aug 26, 2026
yangzhuxinyzx
added a commit
that referenced
this pull request
Aug 27, 2026
#316 已合入受保护且默认开启的安全 prescale 实现。 Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
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
Supersede #309 with a latest-main rebuild based on
1b1c9faeb82c30bf3d81158279404cd884bbfb19.Absorb the exact E4M3 power-of-two exponent factor into reversible FP16 UE8M0 scales at load time for the measured SM70 M=1 tensor/runtime contract. Admission uses hardware, block layout, operator role, tensor shape, TP/PP topology, scheduler state, and actual scale values; it never reads model/checkpoint/type/architecture identity.
The route is default-on when its exact contract is available and remains behind the faster accepted QPN8 route. Missing old-extension capability or unsafe scale values fall back to ordinary TurboMind; explicit
VLLM_SM70_FP8_PRESCALED_M1_DECODE=1fails closed, and=0is the rollback. A distinct M=1 operator schema prevents old 8K-prefill-only extensions from receiving the new shapes.Test Plan
Test Result
pytest -q tests/quantization/test_sm70_fp8_prefill_exact_dense.py -k prescaled: 4 passed.pytest -q tests/test_envs.py -k sm70_concurrency_tuning_envs: 1 passed.pre-commit run -a: passed.git diff --check origin/main: passed.Evidence:
/data/models/v100-dsv4-0731-pp2tp4-fp8-prescaled-decode-screen-20260826-r1/.