Skip to content

Commit

Permalink
fix: checkpoint range assert
Browse files Browse the repository at this point in the history
  • Loading branch information
madlabman committed May 12, 2024
1 parent 428f2de commit 9d54e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/csm/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _prepare_checkpoint(_slot: SlotNumber, _duty_epochs: list[EpochNumber]):
return []

l_epoch = min(self.state.unprocessed_epochs) or l_epoch
assert l_epoch < r_epoch
assert l_epoch <= r_epoch

processing_delay = finalized_epoch - l_epoch
if processing_delay < self.MIN_CHECKPOINT_STEP and finalized_epoch < r_epoch:
Expand Down

0 comments on commit 9d54e57

Please sign in to comment.