# Unable to load pytorch\_model.bin for CompVis--stable-diffusion-v1-4

**URL:** <https://discuss.huggingface.co/t/unable-to-load-pytorch-model-bin-for-compvis-stable-diffusion-v1-4/35828>\
**Category:** 🧨 Diffusers\
**Created:** [April 7, 2023, 12:25am UTC](https://discuss.huggingface.co/t/unable-to-load-pytorch-model-bin-for-compvis-stable-diffusion-v1-4/35828 "2023-04-07T00:25:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AKM-1](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/akm-1/32/15243_2.png) [@AKM-1](https://discuss.huggingface.co/u/AKM-1)\
**Post date:** [April 7, 2023, 12:25am UTC](https://discuss.huggingface.co/t/unable-to-load-pytorch-model-bin-for-compvis-stable-diffusion-v1-4/35828/1 "2023-04-07T00:25:03Z")

</div>

Hi all I was trying to load CompVis–stable-diffusion-v1-4 ([CompVis/stable-diffusion-v1-4 at main](https://huggingface.co/CompVis/stable-diffusion-v1-4/tree/main)) in my jupyter notebook, but have run into some errors:

```auto
from diffusers import StableDiffusionPipeline
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4")

```

```auto
OSError: Error no file named pytorch_model.bin found in directory /home/ubuntu/.cache/hugging
face/diffusers/models--CompVis--stable-diffusion-v1-4/snapshots/249dd2d739844dea6a0bc7fc27b3c
1d014720b28/safety_checker but there is a file for Flax weights. Use `from_flax=True` to load
this model from those weights.

```

The import seems to run fine on a smaller compute instance I have (both have diffusers 0.12.1).

```auto
pip list | grep diffuse
diffusers 0.12.1

```

On checking the folder mentioned in the error message, I indeed do not see any .bin weights file:

```auto
ubuntu@ixyz: ~/.cache/huggingface/diffusers/models--CompVis--stable-diffusion-v1-4/snapshots/249dd2d739844dea6a0bc7fc27b3c1d014720b28/safety_checker$ ls
config.json model.safetensors

```

Any help will be great,  
Thanks!

---

<div class="post-metadata">

**Author:** ![AKM-1](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/akm-1/32/15243_2.png) [@AKM-1](https://discuss.huggingface.co/u/AKM-1)\
**Post date:** [April 12, 2023, 2:05am UTC](https://discuss.huggingface.co/t/unable-to-load-pytorch-model-bin-for-compvis-stable-diffusion-v1-4/35828/2 "2023-04-12T02:05:01Z")

</div>

For now manually downloading the model file and copying it over seems like the only fix

---

<div class="post-metadata">

**Author:** ![williamberman](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/williamberman/32/14112_2.png) [@williamberman](https://discuss.huggingface.co/u/williamberman)\
**Post date:** [April 14, 2023, 1:23am UTC](https://discuss.huggingface.co/t/unable-to-load-pytorch-model-bin-for-compvis-stable-diffusion-v1-4/35828/3 "2023-04-14T01:23:42Z")

</div>

hi @AKM-1! I unfortunately can’t replicate this. Could you maybe upgrade to the latest diffusers release and see if that fixes it?
