# Error in DDPMPipeline Loading from Huggingface

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-ddpmpipeline-loading-from-huggingface%2F144402%3E%5C
**Category:** 🧨 Diffusers\
**Created:** [March 6, 2025, 9:25am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-ddpmpipeline-loading-from-huggingface%2F144402 "2025-03-06T09:25:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nilay220303](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nilay220303/32/42639_2.png) [@nilay220303](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fnilay220303)%5C
**Post date:** [March 6, 2025, 9:25am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-ddpmpipeline-loading-from-huggingface%2F144402%2F1 "2025-03-06T09:25:37Z")

</div>

The pipeline was saved locally first and then uploaded to huggingface Hub. However, while trying to load the pipeline safetensor, it is giving the rrirs that can be observed in these screenshots.

 ![Screenshot 2025-03-06 at 2.53.36 PM](https://us1.discourse-cdn.com/hellohellohello/original/3X/7/4/74ed8dee1ab16d0106bc0d02a70a6525479926d6.png)

---

<div class="post-metadata">

**Author:** ![nilay220303](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nilay220303/32/42639_2.png) [@nilay220303](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fnilay220303)%5C
**Post date:** [March 6, 2025, 9:26am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-ddpmpipeline-loading-from-huggingface%2F144402%2F2 "2025-03-06T09:26:14Z")

</div>

![Screenshot 2025-03-06 at 2.53.18 PM](https://us1.discourse-cdn.com/hellohellohello/original/3X/2/9/2979091f413bceceeb078ef71f3aeee7e1c3fb77.png)

---

<div class="post-metadata">

**Author:** ![nilay220303](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nilay220303/32/42639_2.png) [@nilay220303](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fnilay220303)%5C
**Post date:** [March 6, 2025, 9:26am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-ddpmpipeline-loading-from-huggingface%2F144402%2F3 "2025-03-06T09:26:57Z")

</div>

![Screenshot 2025-03-06 at 2.53.27 PM](https://us1.discourse-cdn.com/hellohellohello/original/3X/0/8/08421b4701af063eaced7395886f55e5ab8ebe63.png)

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [March 6, 2025, 10:16am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-ddpmpipeline-loading-from-huggingface%2F144402%2F4 "2025-03-06T10:16:45Z")

</div>

It seems to be resolved in the current version of Diffusers, but for now, I think it will work if you delete **use\_safetensors=True**.

> <https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/pipeline_loading_utils.py#L945>

---

<div class="post-metadata">

**Author:** ![nilay220303](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nilay220303/32/42639_2.png) [@nilay220303](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fnilay220303)%5C
**Post date:** [March 6, 2025, 10:29am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-ddpmpipeline-loading-from-huggingface%2F144402%2F5 "2025-03-06T10:29:46Z")

</div>

It gives error without using safetensors as well. The pipeline saves the model as safetensors, so, no bin file is created.

 ![Screenshot 2025-03-06 at 3.59.28 PM](https://us1.discourse-cdn.com/hellohellohello/original/3X/5/1/5175170a04818207146a3fc834c6168c1d033233.png)

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [March 6, 2025, 10:31am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-ddpmpipeline-loading-from-huggingface%2F144402%2F6 "2025-03-06T10:31:57Z")

</div>

Is this a Google Colab environment? I’ve encountered the same error before.  
At the time, it seemed that the problem was caused by a corrupted cache.  
I didn’t know how to fix it…

---

<div class="post-metadata">

**Author:** ![nilay220303](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nilay220303/32/42639_2.png) [@nilay220303](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fnilay220303)%5C
**Post date:** [March 6, 2025, 3:07pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-ddpmpipeline-loading-from-huggingface%2F144402%2F7 "2025-03-06T15:07:13Z")

</div>

No, I am using jupyter-notebook, local environment.
