[Bugfix] Fix block size in block_table with PCP#29094
Merged
LucasWilkinson merged 1 commit intovllm-project:mainfrom Nov 22, 2025
Merged
[Bugfix] Fix block size in block_table with PCP#29094LucasWilkinson merged 1 commit intovllm-project:mainfrom
LucasWilkinson merged 1 commit intovllm-project:mainfrom
Conversation
Signed-off-by: Livinfly <luojie3m@gmail.com>
Contributor
There was a problem hiding this comment.
Code Review
This pull request correctly fixes a bug in the block_table by factoring in pcp_world_size for block size calculations, which is essential for correct behavior with Prefill Context Parallelism. The logic change is sound. I have included one review comment suggesting a refactoring to address code duplication for fetching distributed world sizes. This will improve maintainability and prevent potential inconsistencies in the future.
Contributor
|
Yes, we did overlook the logic modifications for MultiGroupBlockTable. Thank you very much for fixing this. |
LucasWilkinson
approved these changes
Nov 21, 2025
ywang96
pushed a commit
to ywang96/vllm
that referenced
this pull request
Nov 23, 2025
Signed-off-by: Livinfly <luojie3m@gmail.com>
lpapavassiliou
pushed a commit
to lpapavassiliou/vllm
that referenced
this pull request
Nov 24, 2025
Signed-off-by: Livinfly <luojie3m@gmail.com>
RunkaiTao
pushed a commit
to RunkaiTao/vllm
that referenced
this pull request
Nov 24, 2025
Signed-off-by: Livinfly <luojie3m@gmail.com> Signed-off-by: Runkai Tao <rt572@physics.rutgers.edu>
devpatelio
pushed a commit
to SumanthRH/vllm
that referenced
this pull request
Nov 29, 2025
Signed-off-by: Livinfly <luojie3m@gmail.com>
kitaekatt
pushed a commit
to kitaekatt/vllm
that referenced
this pull request
Dec 1, 2025
Signed-off-by: Livinfly <luojie3m@gmail.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.
I discovered a potential issue regarding the missing logic of the block_table in #28718.
In the PCP rank, it should also store only one copy, so the parameter passed from
MultiGroupBlockTabletoBlockTableshould likely be multiplied bycp_world_size. The original code seems to be missing thePCP_world_sizefactor.Could you please verify this, or am I mistaken?
@pisceskkk
Purpose
fix block_table
Test Plan
NA
Test Result
NA
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.