# 🤗Trainer not saving after save\_steps

**URL:** <https://discuss.huggingface.co/t/trainer-not-saving-after-save-steps/5464>\
**Category:** 🤗Transformers\
**Created:** [April 13, 2021, 11:16am UTC](https://discuss.huggingface.co/t/trainer-not-saving-after-save-steps/5464 "2021-04-13T11:16:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vasudevgupta](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/vasudevgupta/32/1251_2.png) [@vasudevgupta](https://discuss.huggingface.co/u/vasudevgupta)\
**Post date:** [April 13, 2021, 11:16am UTC](https://discuss.huggingface.co/t/trainer-not-saving-after-save-steps/5464/1 "2021-04-13T11:16:39Z")

</div>

I am using 🤗Trainer for training. My training args are as follows:

```auto
    args = TrainingArguments(
        output_dir="bigbird-nq-output-dir",
        overwrite_output_dir=False,
        do_train=True,
        do_eval=True,
        evaluation_strategy="epoch",
        per_device_train_batch_size=2,
        per_device_eval_batch_size=2,
        gradient_accumulation_steps=4,
        learning_rate=5e-5,
        num_train_epochs=3,
        logging_strategy="epoch",
        save_strategy="steps",
        run_name="bigbird-nq",
        disable_tqdm=False,
        load_best_model_at_end=True,
        report_to="wandb",
        remove_unused_columns=False,
        fp16=True,
    )

```

I am unable to find checkpoints after every 500 steps. Any reasons why??

---

<div class="post-metadata">

**Author:** ![sgugger](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/sgugger/32/2291_2.png) [@sgugger](https://discuss.huggingface.co/u/sgugger)\
**Post date:** [April 13, 2021, 2:10pm UTC](https://discuss.huggingface.co/t/trainer-not-saving-after-save-steps/5464/2 "2021-04-13T14:10:56Z")

</div>

With `load_best_model_at_end=True`, your `save_strategy` will be ignored and default to `evaluation_strategy`. So you will find one checkpoint at the end of each epoch.

---

<div class="post-metadata">

**Author:** ![vasudevgupta](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/vasudevgupta/32/1251_2.png) [@vasudevgupta](https://discuss.huggingface.co/u/vasudevgupta)\
**Post date:** [April 13, 2021, 2:32pm UTC](https://discuss.huggingface.co/t/trainer-not-saving-after-save-steps/5464/3 "2021-04-13T14:32:26Z")

</div>

Gotta. Thanks a lot!
