Skip to content

Commit

Permalink
fix: typos in documentation files (#20582)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximevtush authored Feb 13, 2025
1 parent ea59e40 commit d902516
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def trainer(
if group_rank == 0:
metrics = {}

# Lerning rate annealing
# Learning rate annealing
if args.anneal_lr:
linear_annealing(optimizer, update, num_updates, args.learning_rate)
if group_rank == 0:
Expand Down
4 changes: 2 additions & 2 deletions tests/tests_fabric/loggers/test_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def test_automatic_step_tracking(tmp_path):


@mock.patch(
# Mock the existance check, so we can simulate appending to the metrics file
# Mock the existence check, so we can simulate appending to the metrics file
"lightning.fabric.loggers.csv_logs._ExperimentWriter._check_log_dir_exists"
)
def test_append_metrics_file(_, tmp_path):
Expand Down Expand Up @@ -189,7 +189,7 @@ def test_append_columns(tmp_path):


@mock.patch(
# Mock the existance check, so we can simulate appending to the metrics file
# Mock the existence check, so we can simulate appending to the metrics file
"lightning.fabric.loggers.csv_logs._ExperimentWriter._check_log_dir_exists"
)
def test_rewrite_with_new_header(_, tmp_path):
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_pytorch/accelerators/test_xla.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def on_train_start(self):

def on_train_end(self):
# this might fail if run in an environment with too many ranks, as the total
# length of the dataloader will be distrbuted among them and then each rank might not do 3 steps
# length of the dataloader will be distributed among them and then each rank might not do 3 steps
assert self.called["training_step"] == 3
assert self.called["on_train_batch_start"] == 3
assert self.called["on_train_batch_end"] == 3
Expand Down

0 comments on commit d902516

Please sign in to comment.