Skip to content

Commit

Permalink
fix issue �microsoft#6671
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-nju committed Nov 1, 2024
1 parent 95ea95f commit 43d41d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepspeed/launcher/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def parse_inclusion_exclusion(resource_pool, inclusion, exclusion):
node_configs = parse_node_config_list(inclusion)

for hostname, slots in resource_pool.items():
active_resources[hostname] = node_configs[hostname] if hostname in node_configs else list(range(slots))
active_resources[hostname] = node_configs[hostname] if hostname in node_configs and node_config[hostname]!=[] else list(range(slots))

return parse_resource_filter(active_resources, include_str=inclusion, exclude_str=exclusion)

Expand Down

0 comments on commit 43d41d1

Please sign in to comment.