# Resume\_from\_checkpoint

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fresume-from-checkpoint%2F45744%3E%5C
**Category:** Models\
**Created:** [July 5, 2023, 12:59pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fresume-from-checkpoint%2F45744 "2023-07-05T12:59:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![0sunfire0](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/0sunfire0/32/17249_2.png) [@0sunfire0](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2F0sunfire0)%5C
**Post date:** [July 5, 2023, 12:59pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fresume-from-checkpoint%2F45744%2F1 "2023-07-05T12:59:01Z")

</div>

Please someone who have done it before can explain.

Here is what i did, I ran the training for 11.5 hours on kaggle p100 free gpu while saving checkpoints and limiting it to 1 checkpoint by using `save_total_limit=1`.

The session ended then i ran a new session and loaded the saved checkpoint using:

```auto
last_checkpoint = None
if os.path.isdir(training_args.output_dir) and not training_args.overwrite_output_dir:
    last_checkpoint = transformers.trainer_utils.get_last_checkpoint(
        training_args.output_dir
    )

```

And used `ignore_data_skip=True`, to skip to the checkpoint as it say in the trainer docs If set to `True`, the training will begin faster (as that skipping step can take a long time)

Then started the training from the saved checkpoint:

trainer.train(resume\_from\_checkpoint=last\_checkpoint)

But now the model is taking exactly the same time to train, It didn’t start faster at all, Also it started from step 0.

So i’m confused, Am i doing something wrong, or this flag doesnt work as it should be ?

---

<div class="post-metadata">

**Author:** ![KyonP](https://avatars.discourse-cdn.com/v4/letter/k/8edcca/32.png) [@KyonP](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FKyonP)%5C
**Post date:** [June 25, 2024, 3:01am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fresume-from-checkpoint%2F45744%2F2 "2024-06-25T03:01:57Z")

</div>

have you resolved this issue? I am having same problem.
