Skip to content

Commit

Permalink
refactor: removed checkpointing at step 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
le1nux committed Jul 15, 2024
1 parent 8e79acc commit 1aa906b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modalities/gym.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _run_checkpointing(
checkpoint_saving: CheckpointSaving,
checkpointing_interval_in_steps: int,
):
if num_train_steps_done % checkpointing_interval_in_steps == 0:
if num_train_steps_done % checkpointing_interval_in_steps == 0 and num_train_steps_done > 0:
checkpoint_saving.save_checkpoint(
num_train_steps_done=num_train_steps_done,
evaluation_result=None, # TODO implement checkpointing based on preceding evaluation results
Expand Down

0 comments on commit 1aa906b

Please sign in to comment.