Repository navigation
Conversation
akhilg-nv
requested review from
Fridge003,
HaiShaw,
Qiaolin-Yu,
hebiao064,
ispobock and
merrymercy
as code owners
July 24, 2026 01:59
Contributor
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
2 of 5 tasks
Collaborator
|
@akhilg-nv could you fix the conflicts? thanks! |
Contributor
Author
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.
Motivation
Enables EAGLE/MTP style speculative decoding to work with mixed prefill and decode backends (HybridAttnBackend)
Agent generated summary:
Before: any
--prefill-attention-backend X --decode-attention-backend Y+ EAGLE-family spec decoding crashed on the first speculative batch (found while using the split-backend workaround for the bug above):Root cause: eagle-v2 reads
max_context_len+ two verify-buffer hooks directly offmodel_runner.attn_backend; every concrete backend implements them,HybridAttnBackendimplemented none — so it crashes here, and (more insidiously) the base-class no-opupdate_verify_buffers_to_fill_after_draftwould leave stale tree-mask buffers during graph replay.Modifications
Fix/After: mirror
max_context_lenand delegate both hooks to the spec-verify sub-backend. This fix is backend-agnostic, enabling all hybrid combos.Accuracy Tests
Validated at full scale: GPQA 198x8 = 0.721 (FA3+MTP reference 0.734, within repeat noise), acceptance 2.45/0.48 vs 2.37/0.46 (see MTP data reported in #23112).
Speed Tests and Profiling
Checklist
Review and Merge Process
/tag-and-rerun-ci,/tag-run-ci-label,/rerun-failed-ciCI States
Latest PR Test (Base): ❌ Run #30060442180
Latest PR Test (Extra): ❌ Run #30060442015