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

Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
This commit is contained in:
Chauncey 2025-06-08 08:16:31 +08:00 committed by GitHub
parent 2d8476e465
commit d77f7fb871
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 "