# Does "resume\_from\_checkpoint" work?

**URL:** <https://discuss.huggingface.co/t/does-resume-from-checkpoint-work/19350>\
**Category:** Beginners\
**Created:** [June 19, 2022, 6:11pm UTC](https://discuss.huggingface.co/t/does-resume-from-checkpoint-work/19350 "2022-06-19T18:11:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaier](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@Shaier](https://discuss.huggingface.co/u/Shaier)\
**Post date:** [June 19, 2022, 6:11pm UTC](https://discuss.huggingface.co/t/does-resume-from-checkpoint-work/19350/1 "2022-06-19T18:11:22Z")

</div>

From the documentation it seems that `resume_from_checkpoint` will continue training the model from the last checkpoint. But when I call `trainer.train()` it seems to delete the last checkpoint and start a new one:

```auto
Saving model checkpoint to ./results_distilbert-base-uncased/checkpoint-500
...
Deleting older checkpoint [results_distilbert-base-uncased/checkpoint-5000] due to args.save_total_limit

```

Does it really continue training from the last checkpoint (i.e., 5000) and just starts the count of the new checkpoint at 0 (saves the first after 500 steps – “checkpoint-500”), or does it simply not continue the training?
