[Bugfix] qwen2.5-vl spec decode accept_len low#13904
[Bugfix] qwen2.5-vl spec decode accept_len low#13904mickqian merged 2 commits intosgl-project:mainfrom
Conversation
Summary of ChangesHello @Lzhang-hub, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request resolves a performance regression in the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request addresses a bug in the speculative decoding implementation for the qwen2.5-vl model, where the accept_len was low. The root cause was the missing aux_hidden_states argument in the call to the logits_processor. This change correctly passes aux_hidden_states, which is essential for the EAGLE3 speculative decoding algorithm. The fix is accurate, minimal, and directly addresses the issue described. The code is now consistent with other models supporting this feature. I find the change to be correct and have no further suggestions.
|
cc @yuan-luo |
|
/tag-and-rerun-ci |
yuan-luo
left a comment
There was a problem hiding this comment.
Thanks for the fix. LGTM.
|
@mickqian I think this is ready to be merged. Could you please merge it? |
Co-authored-by: Yuan Luo <yuan.luo@hotmail.com>
Motivation
After this pr, qwen2.5-vl eagle3 infer draft accept_len is low.
Because
aux_hidden_statesis miss in logits_processor.Releated issue: sgl-project/SpecForge#310
Modifications
Accuracy Tests
Benchmarking and Profiling
Checklist