Skip to content

Commit

Permalink
Update launcher to set local rank environ variable (#597)
Browse files Browse the repository at this point in the history
* Update launch.py

* formatting
  • Loading branch information
jeffra authored Dec 11, 2020
1 parent a4763f5 commit c5a449f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deepspeed/launcher/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def main():
# each process's rank
dist_rank = global_rank_mapping[local_node][local_rank]
current_env["RANK"] = str(dist_rank)
current_env["LOCAL_RANK"] = str(local_rank)

# spawn the processes
cmd = [
Expand Down

0 comments on commit c5a449f

Please sign in to comment.