Skip to content

Commit 13dc83a

Browse files
committed
test(checkpointing): Using global step count for checkpoint retention checks.
1 parent afc5dbf commit 13dc83a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/checkpointing/test_checkpoint_strategies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def test_keep_every_k_steps_keeps_every_k_steps(k: int, num_recent_checkpoints_t
8080
for ckpt in simulator.saved_checkpoints:
8181
# Check that only checkpoints that are divisible by k or the most recent ones are kept.
8282
last_checkpoints = set(range(num_steps - num_recent_checkpoints_to_keep + 1, num_steps + 1))
83-
assert ckpt.num_seen_steps_current_run % k == 0 or ckpt.num_seen_steps_current_run in last_checkpoints
83+
assert ckpt.num_seen_steps_total % k == 0 or ckpt.num_seen_steps_total in last_checkpoints
8484

8585

8686
def test_keep_every_k_steps_checkpointing_strategy_invalid_arguments() -> None:

0 commit comments

Comments
 (0)