Unverified Commit d77f7fb8 authored by Chauncey's avatar Chauncey Committed by GitHub
Browse files

[Bugfix]: Fix TypeError: 'float' object cannot be interpreted as an integer (#19283)


Signed-off-by: default avatarchaunceyjiang <chaunceyjiang@gmail.com>
parent 2d8476e4
......@@ -407,7 +407,7 @@ class CoreEngineActorManager:
# For now, each DP rank can only be assigned to one node
# TODO(rui): support allocating a single DP rank
# to multiple nodes
available_engine_count = node_resources["GPU"] // world_size
available_engine_count = int(node_resources["GPU"]) // world_size
if node_ip == dp_master_ip:
assert available_engine_count >= local_engine_count, (
"Not enough resources to allocate DP ranks "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment