mirror of
https://github.com/karpathy/nanochat.git
synced 2025-12-06 12:22:18 +00:00
Revert "Refactor: Improve DDP detection in common.py"
This reverts commit b724190f2a.
This commit is contained in:
parent
b724190f2a
commit
1a45e5b78a
|
|
@ -76,8 +76,7 @@ def print_banner():
|
||||||
print0(banner)
|
print0(banner)
|
||||||
|
|
||||||
def is_ddp():
|
def is_ddp():
|
||||||
if dist.is_initialized():
|
# TODO is there a proper way
|
||||||
return True
|
|
||||||
return int(os.environ.get('RANK', -1)) != -1
|
return int(os.environ.get('RANK', -1)) != -1
|
||||||
|
|
||||||
def get_dist_info():
|
def get_dist_info():
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user