Repository navigation
[Feat] hisparse: reject unvalidated speculative algorithms by name - #48846
Merged
Merged
Conversation
HiSparse spec support lives in the EAGLE-family and UNO workers (run_eagle_verify binds the verify slots via HiSparseCoordinator.prepare_spec_verify / commit_spec_accept_tokens). A worker that never binds those slots writes target-verify KV through unmapped device locations -- silent corruption, not an error. Gate unvalidated algorithms (DFLASH, DSPARK, NGRAM, STANDALONE, FROZEN_KV_MTP, plugins) with a named startup error listing the validated combinations. STANDALONE and FROZEN_KV_MTP subclass EAGLEWorkerV2 and inherit the same verify path, so the binding mechanism covers them; they remain rejected only because the combination is unvalidated (draft-input staging, draft-pool sizing), and can be enabled after testing.
Contributor
Author
|
@hnyls2002 @ShangmingCai could you review this? This adds a startup gate rejecting unvalidated speculative algorithms (which would otherwise corrupt KV silently) |
alphabetc1
approved these changes
Nov 11, 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
Reject speculative algorithms that have not been validated with
--enable-hisparseat startup. Workers that do not bind HiSparse verify slots can otherwise write target-verify KV through incorrect device mappings.Allow EAGLE, EAGLE3, and UNO; retain the existing linear-speculation and no-adaptive-speculation restrictions. STANDALONE and FROZEN_KV_MTP share the EAGLE verify path but remain excluded until draft-input staging and draft-pool sizing are validated.
Validation
git diff --check, and all applicable pre-commit checks passed.CI States
Latest PR Test (Base): ✅ Run #43065719414
Latest PR Test (Extra): ❌ Run #43065719130
Latest PR Test (AMD ROCm 10): ⏳ Run #43065719204
Tip
Base CI only covers the core cases, and its workload may not exercise your change. Use
/rerun-testto run the tests your change touches, or copy this prompt for an agent: