Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source-pytorch/starter/lightning_lite.rst
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ You can also easily use distributed collectives if required.
# The index of the current node.
lite.node_rank

# Wether this global rank is rank zero.
# Whether this global rank is rank zero.
if lite.is_global_zero:
# do something on rank 0
...
Expand Down
2 changes: 1 addition & 1 deletion src/lightning_lite/lite.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def world_size(self) -> int:

@property
def is_global_zero(self) -> bool:
"""Wether this rank is rank zero."""
"""Whether this rank is rank zero."""
return self._strategy.is_global_zero

def run(self, *args: Any, **kwargs: Any) -> Any:
Expand Down