Skip to content

Commit

Permalink
minor typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gkroiz committed Apr 8, 2024
1 parent 876a65d commit 8aadba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/litdata/utilities/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def detect(cls) -> "_DistributedEnv":
if os.environ["NNODES"] is not None:
num_nodes = os.environ["NNODES"]

if world_size is in [None, -1, 0]:
if world_size in (None, -1, 0):
world_size = 1

return cls(world_size=world_size, global_rank=global_rank, num_nodes=num_nodes)
Expand Down

0 comments on commit 8aadba0

Please sign in to comment.