We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ea1e0a commit a508331Copy full SHA for a508331
src/art/serverless/backend.py
@@ -78,8 +78,9 @@ async def _delete_checkpoints(
78
if metric is not None and (max_metric is None or metric > max_metric):
79
max_metric = metric
80
max_step = checkpoint.step
81
+ print(f"Checkpoint: {checkpoint.step} {metric}")
82
all_steps.append(checkpoint.step)
- steps_to_delete = [step for step in all_steps[:-1] if step != max_step]
83
+ steps_to_delete = [step for step in all_steps[1:] if step != max_step]
84
if steps_to_delete:
85
await self._client.checkpoints.delete(
86
model_id=model.id,
0 commit comments