[Bugfix][SM70] Gate DFlash2 verifier by native capability - #422
Merged
yangzhuxinyzx merged 2 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>
yangzhuxinyzx
marked this pull request as ready for review
August 29, 2026 08:27
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
Prevent a source-overlay deployment from routing q16 DFlash2 verification into an older Flash-V100 native extension that only supports q8. The production incident occurred on a 51,088-token cached request with a 16-token continuation: the native
TORCH_CHECKkilled EngineCore and left the systemd service falsely active with orphaned TP workers.Base SHA:
e315dd47096524ed8a9fd43770f925a188a59d23.Current head SHA:
f1f5741cda.The native extension now exposes its grouped-verifier max-query capability. Python defaults legacy binaries without that entry point to q8, while newly rebuilt q16 binaries report 16. The normal DFlash2 q8 verifier remains on the grouped fast path; unsupported q16 work falls back to the exact paged-decode path.
Test Plan
Test Result
5 passed, 112 deselected;8;git diff --check: passed;get_weather({"city":"北京"})call;