Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[brief] Fixes the distributed flag when using torchrun.
[detailed] - Due to the order of operations, we cannot rely on the distributed info from the core module to determine the world size when torchrun is used. Since the distributed package hasn't been initialized yet, we have to pull the world size from the environment variable directly.
- Loading branch information