[BUG] RuntimeError: deque mutated during iteration in abort_seq_group#2371
Merged
Yard1 merged 1 commit intovllm-project:mainfrom Jan 12, 2024
Merged
Conversation
Contributor
|
Nice catch, for seq_group in list(state_queue): |
Contributor
Author
Hi, @NadavShmayo. Thanks for your comments and nice clean solution. But, here are two reasons why we chose an extra list:
FYI |
xjpang
pushed a commit
to xjpang/vllm
that referenced
this pull request
Jan 14, 2024
hongxiayang
pushed a commit
to hongxiayang/vllm
that referenced
this pull request
Jan 18, 2024
hongxiayang
pushed a commit
to hongxiayang/vllm
that referenced
this pull request
Feb 13, 2024
amy-why-3459
pushed a commit
to amy-why-3459/vllm
that referenced
this pull request
Sep 15, 2025
### What this PR does / why we need it? 1. MTP supports V1 scheduler 2. Refactor attn metadata build ### Does this PR introduce _any_ user-facing change? ### How was this patch tested? - [x] v0.9.1-dev - [x] A3 [TP16] [DP4 TP4] - [x] A3 1P1D Signed-off-by: xuyexiong <xuyexiong@huawei.com>
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.
Hi, we found that #2290 introduced a bug in function
abort_seq_group. Attempting to mutate a deque during iteration will raise an exception.Here is the sample code to reproduce the bug: