[Refactor] Remove unused dead code (#40640)

Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
Wentao Ye
2026-04-25 07:28:18 +08:00
committed by GitHub
parent ce6a199ecc
commit a474da2813
4 changed files with 4 additions and 22 deletions
-6
View File
@@ -13,12 +13,6 @@ from vllm.v1.worker.gpu.cudagraph_utils import (
)
def make_num_tokens_across_dp(dp_size: int, num_tokens: int) -> torch.Tensor | None:
if dp_size == 1:
return None
return torch.full((dp_size,), num_tokens, dtype=torch.int32, device="cpu")
def sync_cudagraph_and_dp_padding(
cudagraph_manager: CudaGraphManager | None,
desired_batch_desc: BatchExecutionDescriptor,