Repository navigation
Conversation
Signed-off-by: chenjr97 <chenjr97@mail2.sysu.edu.cn>
This branch has not been deployed
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.
Overview
Fix routed-expert output reconstruction when a complete block is still waiting for its hash under EAGLE/MTP lookahead hashing. Include these request-local pending blocks when returning routing rows alongside a cached prefix.
Related: [#61589 — Lookahead block hashes for EAGLE prefix caching](#61589).
Claims
LLMregression coverage, and select the EAGLE regression in existing speculative-decoding CI jobs when auxiliary-output connector files change.Validation
Result: 81 passed
Details
EAGLE/MTP lookahead hashing can delay a full block's hash until subsequent tokens are known. Its routing rows remain in pending_blocks, but the previous read path only consulted the incomplete tail. Reconstructing output after a prefix-cache hit could therefore trigger missing-request or unavailable-range assertions.
Pass the request's pending blocks into RoutedExpertsBuffer.read() and assemble the requested interval from pending blocks and the tail. Preserve complete-range validation and return an independent array so buffer reuse cannot overwrite returned rows. Pending blocks remain available for normal publication when their hashes arrive.
Pull Request Checklist
BEFORE SUBMITTING, PLEASE READ https://docs.vllm.ai/en/latest/contributing (anything written below this line will be removed by GitHub Actions)