# Model never saved

**URL:** <https://discuss.huggingface.co/t/model-never-saved/42379>\
**Category:** Models\
**Created:** [June 7, 2023, 9:07am UTC](https://discuss.huggingface.co/t/model-never-saved/42379 "2023-06-07T09:07:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon60462482](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@anon60462482](https://discuss.huggingface.co/u/anon60462482)\
**Post date:** [June 7, 2023, 9:07am UTC](https://discuss.huggingface.co/t/model-never-saved/42379/1 "2023-06-07T09:07:16Z")

</div>

I followed [Train a diffusion model](https://huggingface.co/docs/diffusers/main/en/tutorials/basic_training), and it all finished well, yet, the final repo does not look like it should (like `anton-l/ddpm-butterflies-128/tree/main`)  
It looks like this `TukuToi/ddpm-butterflies-128/tree/main`

As you can see no `unet`, no `model_index`, etc  
I also checked the folder in the Colaboratory and they do not feature the unet either.

What is wrong? Where is the trained model gone to?  
The cell finished with below lines, and indicates to be done in the progress indicator:

```auto
Adding files tracked by Git LFS: ['samples/0039.png', 'samples/0049.png']. This may take a bit of time if the files are large.
WARNING:huggingface_hub.repository:Adding files tracked by Git LFS: ['samples/0039.png', 'samples/0049.png']. This may take a bit of time if the files are large.
To https://huggingface.co/TukuToi/ddpm-butterflies-128
   2cd00c5..246df76 main -> main

WARNING:huggingface_hub.repository:To https://huggingface.co/TukuToi/ddpm-butterflies-128
   2cd00c5..246df76 main -> main

```

From the logs I gather it never even attempts to save it:

```auto
100%
1000/1000 [01:37<00:00, 10.20it/s]
Adding files tracked by Git LFS: ['samples/0000.png']. This may take a bit of time if the files are large.
Upload file samples/0000.png: 100%
526k/526k [00:01<00:00, 491kB/s]
Upload file logs/train_example/events.out.tfevents.1686132774.2b487d1c587c.748.1: 100%
7.71k/7.71k [00:01<?, ?B/s]
To https://huggingface.co/TukuToi/ddpm-butterflies-129
   722846e..b4db147 main -> main

```

Yet in the config, I set the save `save_model_epochs` to `1` to be sure it saves it each epoch.

This is really frustrating!

---

<div class="post-metadata">

**Author:** ![codewithRiz](https://avatars.discourse-cdn.com/v4/letter/c/85f322/32.png) [@codewithRiz](https://discuss.huggingface.co/u/codewithRiz)\
**Post date:** [November 17, 2024, 9:39am UTC](https://discuss.huggingface.co/t/model-never-saved/42379/2 "2024-11-17T09:39:38Z")

</div>

> [@anon60462482](#):
>
> TukuToi/ddpm-butterflies-128/tree/main

getting same stuck in it a week

---

<div class="post-metadata">

**Author:** ![codewithRiz](https://avatars.discourse-cdn.com/v4/letter/c/85f322/32.png) [@codewithRiz](https://discuss.huggingface.co/u/codewithRiz)\
**Post date:** [November 17, 2024, 9:40am UTC](https://discuss.huggingface.co/t/model-never-saved/42379/3 "2024-11-17T09:40:44Z")

</div>

i tried this notebook but not genrated good images as sample in above [nottebook](https://colab.research.google.com/github/huggingface/diffusion-models-class/blob/main/unit1/01_introduction_to_diffusers.ipynb#scrollTo=Waw8nGdO4S-O)

plz share sulution if you have solved .

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [November 17, 2024, 10:46am UTC](https://discuss.huggingface.co/t/model-never-saved/42379/4 "2024-11-17T10:46:53Z")

</div>

try this.

```py
%pip install -qq -U diffusers datasets transformers accelerate ftfy pyarrow<18.0.0a0

```
