Skip to content

Commit

Permalink
[FIX BUG] convert env param to int in (#5934)
Browse files Browse the repository at this point in the history
  • Loading branch information
flymin authored Jul 24, 2024
1 parent a521ffc commit 5fb958c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colossalai/cluster/dist_coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self):
self._rank = dist.get_rank()
self._world_size = dist.get_world_size()
# this is often passed by launchers such as torchrun
self._local_rank = os.environ.get("LOCAL_RANK", -1)
self._local_rank = int(os.environ.get("LOCAL_RANK", -1))

@property
def rank(self) -> int:
Expand Down

0 comments on commit 5fb958c

Please sign in to comment.