Skip to content

Commit

Permalink
Cmoment
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerzr committed Apr 8, 2024
1 parent aec112f commit c72a680
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/accelerate/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ def __init__(self, cpu: bool = False, **kwargs):
'Please set `NCCL_P2P_DISABLE="1"` and `NCCL_IB_DISABLE="1" or use `accelerate launch` which '
"will do this automatically."
)
# Important: This should be the *only* code outside of `self.initialized!`
self.fork_launched = parse_flag_from_env("FORK_LAUNCHED", 0)

def __repr__(self) -> str:
Expand Down

0 comments on commit c72a680

Please sign in to comment.