mirror of
https://github.com/karpathy/nanochat.git
synced 2025-12-06 12:22:18 +00:00
fix typo
Co-authored-by: Tancrède Lepoint <tlepoint@users.noreply.github.com>
This commit is contained in:
parent
e4f9b9c64d
commit
cf2baf9933
|
|
@ -128,7 +128,7 @@ def compute_init(device_type="cuda"): # cuda|cpu|mps
|
|||
dist.init_process_group(backend="nccl", device_id=device)
|
||||
dist.barrier()
|
||||
else:
|
||||
device = torch.device(device_type) # cuda|cpu
|
||||
device = torch.device(device_type) # mps|cpu
|
||||
|
||||
if ddp_rank == 0:
|
||||
logger.info(f"Distributed world size: {ddp_world_size}")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user