# Wandb init resume not working

**URL:** <https://community.wandb.ai/t/wandb-init-resume-not-working/5668>\
**Category:** W&B Help\
**Created:** [January 9, 2024, 12:19pm UTC](https://community.wandb.ai/t/wandb-init-resume-not-working/5668 "2024-01-09T12:19:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mordigm](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@mordigm](https://community.wandb.ai/u/mordigm)\
**Post date:** [January 9, 2024, 12:19pm UTC](https://community.wandb.ai/t/wandb-init-resume-not-working/5668/1 "2024-01-09T12:19:56Z")

</div>

When I do the following

```auto
checkpoint_exists = False
 wandb.init(project="somename", 
               config=opt,
               resume="allow" if checkpoint_exists else None, id="someid"
 )

```

and the run with id “someid” already exists, then it just keeps adding new data to the existing data rather than discarding the existing data, which contradicts the documentation for `resume=None` ([init | Weights & Biases Documentation](https://docs.wandb.ai/ref/python/init)).  
I would like this functionality to continue training for more epochs, logging to the same run id if the run is continued, otherwise start over.

---

<div class="post-metadata">

**Author:** ![raphael-sanandres](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@raphael-sanandres](https://community.wandb.ai/u/raphael-sanandres)\
**Post date:** [January 10, 2024, 9:30pm UTC](https://community.wandb.ai/t/wandb-init-resume-not-working/5668/2 "2024-01-10T21:30:04Z")

</div>

Hello @mordigm !

Looking at our docs `resume='allow'` will do the following:

> “allow”: if id is set with init(id=“UNIQUE\_ID”) or WANDB\_RUN\_ID=“UNIQUE\_ID” and it is identical to a  
> previous run, wandb will automatically resume the run with that id. Otherwise, wandb will start a new run.

I believe I am a bit confused about the issue you are facing as it seems that you are describing the behavior of `resume='allow'`. Since `someid` exists, it will continue the run and add more data to the run. If the runid did not exist yet, then it will make a new run.

Is this not what you are seeing?

---

<div class="post-metadata">

**Author:** ![raphael-sanandres](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@raphael-sanandres](https://community.wandb.ai/u/raphael-sanandres)\
**Post date:** [January 12, 2024, 11:31pm UTC](https://community.wandb.ai/t/wandb-init-resume-not-working/5668/3 "2024-01-12T23:31:29Z")

</div>

Hi Maximilian, since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!

---

<div class="post-metadata">

**Author:** ![mordigm](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@mordigm](https://community.wandb.ai/u/mordigm)\
**Post date:** [January 15, 2024, 7:48am UTC](https://community.wandb.ai/t/wandb-init-resume-not-working/5668/4 "2024-01-15T07:48:53Z")

</div>

`checkpoint_exists` is False in this case, so `resume=None`. As I mentioned, `resume=None` does not have the desired effect that is stated in the docs.

---

<div class="post-metadata">

**Author:** ![mordigm](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@mordigm](https://community.wandb.ai/u/mordigm)\
**Post date:** [January 23, 2024, 12:47pm UTC](https://community.wandb.ai/t/wandb-init-resume-not-working/5668/5 "2024-01-23T12:47:46Z")

</div>

Is there some update?
