Skip to content

Commit d77f7fb

Browse files
[Bugfix]: Fix TypeError: 'float' object cannot be interpreted as an integer (#19283)
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
1 parent 2d8476e commit d77f7fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/v1/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def create_dp_placement_groups(
407407
# For now, each DP rank can only be assigned to one node
408408
# TODO(rui): support allocating a single DP rank
409409
# to multiple nodes
410-
available_engine_count = node_resources["GPU"] // world_size
410+
available_engine_count = int(node_resources["GPU"]) // world_size
411411
if node_ip == dp_master_ip:
412412
assert available_engine_count >= local_engine_count, (
413413
"Not enough resources to allocate DP ranks "

0 commit comments

Comments
 (0)