Skip to content

Conversation

@njhill
Copy link
Member

@njhill njhill commented Sep 13, 2025

In the gpu model runner input batch.

Signed-off-by: Nick Hill <nhill@redhat.com>
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the BlockTable class to use the CpuGpuBuffer helper for managing tensors that exist on both CPU and GPU, specifically for block_table and slot_mapping. This change simplifies the code by centralizing the creation and management of these paired buffers, removing redundant manual handling of CPU, GPU, and NumPy tensor versions. The changes are well-contained within vllm/v1/worker/block_table.py, and the necessary adjustments in vllm/v1/worker/gpu_model_runner.py to adapt to the updated BlockTable API have been correctly applied. The refactoring improves code clarity and maintainability without introducing any apparent issues.

Copy link
Member

@DarkLight1337 DarkLight1337 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @WoosukKwon please confirm if this is ok to avoid conflicting with your refactoring efforts

Copy link
Collaborator

@WoosukKwon WoosukKwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My PR will rewrite the block table entirely, but this change looks good for now.

@WoosukKwon WoosukKwon added the ready ONLY add when PR is ready to merge/full CI is needed label Sep 13, 2025
@njhill njhill enabled auto-merge (squash) September 15, 2025 20:11
auto-merge was automatically disabled September 15, 2025 21:28

Pull Request is not mergeable

@mergify mergify bot added the tpu Related to Google TPUs label Sep 15, 2025
@njhill
Copy link
Member Author

njhill commented Sep 16, 2025

The failing test is also failing on main :( example: https://buildkite.com/vllm/ci/builds/30944#01995329-1ec7-4d17-abdf-0283fa8115f5

@simon-mo simon-mo merged commit eeb135e into vllm-project:main Sep 17, 2025
38 of 40 checks passed
@njhill njhill deleted the btable-cpugpubuf branch September 17, 2025 02:23
xuechendi pushed a commit to vllm-project/vllm-gaudi that referenced this pull request Sep 17, 2025
vllm-project/vllm#24795 and
vllm-project/vllm#24615 and
vllm-project/vllm#24078

---------

Signed-off-by: Agata Dobrzyniewicz <adobrzyniewicz@habana.ai>
slokesha pushed a commit to slokesha/vllm-gaudi that referenced this pull request Sep 24, 2025
vllm-project/vllm#24795 and
vllm-project/vllm#24615 and
vllm-project/vllm#24078

---------

Signed-off-by: Agata Dobrzyniewicz <adobrzyniewicz@habana.ai>
Signed-off-by: slokesha <slokeshappa@habana.ai>
FeiDaLI pushed a commit to FeiDaLI/vllm that referenced this pull request Sep 25, 2025
Signed-off-by: Nick Hill <nhill@redhat.com>
charlifu pushed a commit to ROCm/vllm that referenced this pull request Sep 25, 2025
Signed-off-by: Nick Hill <nhill@redhat.com>
Signed-off-by: charlifu <charlifu@amd.com>
xuebwang-amd pushed a commit to xuebwang-amd/vllm that referenced this pull request Oct 10, 2025
Signed-off-by: Nick Hill <nhill@redhat.com>
Signed-off-by: xuebwang-amd <xuebwang@amd.com>
choprahetarth pushed a commit to Tandemn-Labs/vllm that referenced this pull request Oct 11, 2025
Signed-off-by: Nick Hill <nhill@redhat.com>
xuebwang-amd pushed a commit to xuebwang-amd/vllm that referenced this pull request Oct 24, 2025
Signed-off-by: Nick Hill <nhill@redhat.com>
Signed-off-by: xuebwang-amd <xuebwang@amd.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready ONLY add when PR is ready to merge/full CI is needed tpu Related to Google TPUs v1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants