Skip to content

Commit

Permalink
Apply isort and black reformatting
Browse files Browse the repository at this point in the history
Signed-off-by: ShriyaPalsamudram <[email protected]>
  • Loading branch information
ShriyaPalsamudram committed Nov 12, 2024
1 parent 3f92c72 commit a8fda44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/collections/llm/test_fault_tolerance.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ def on_train_batch_end(self, trainer, pl_module, outputs, batch, batch_idx):
if self.crash_step and trainer.global_step == self.crash_step:
raise Exception(f"Simulating a crash at step {self.crash_step}!")

#if (
# if (
# datetime.now() <= datetime.strptime(self.crash_time, "%Y-%m-%d %H:%M:%S")
# and trainer.global_step >= self.crash_step
#):
# ):
# raise Exception("Simulating a crash!")


Expand Down

0 comments on commit a8fda44

Please sign in to comment.