# Stable Diffusion 2.1 load model without repo\_id

**URL:** <https://discuss.huggingface.co/t/stable-diffusion-2-1-load-model-without-repo-id/41837>\
**Category:** Beginners\
**Created:** [June 2, 2023, 12:42am UTC](https://discuss.huggingface.co/t/stable-diffusion-2-1-load-model-without-repo-id/41837 "2023-06-02T00:42:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![5GreatApes](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/5greatapes/32/14044_2.png) [@5GreatApes](https://discuss.huggingface.co/u/5GreatApes)\
**Post date:** [June 2, 2023, 12:42am UTC](https://discuss.huggingface.co/t/stable-diffusion-2-1-load-model-without-repo-id/41837/1 "2023-06-02T00:42:40Z")

</div>

I’m using the code in [this Model Card](https://huggingface.co/stabilityai/stable-diffusion-2-1) for image generation, but I can’t load any local .ckpt models with the StableDiffusionPipeline.from\_pretrained() function. I can only load repos on the hugging face site. How can I instead load a local model using a path to the .ckpt file in Stable Diffusion 2.1?

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [June 2, 2023, 2:15am UTC](https://discuss.huggingface.co/t/stable-diffusion-2-1-load-model-without-repo-id/41837/2 "2023-06-02T02:15:35Z")

</div>

hi @5GreatApes using `diffusers` like the example in the model card, only support PyTorch models. If your model is hosted on our hub, I suggest you to convert the model to diffusers

> **[SD To Diffusers - a Hugging Face Space by diffusers](https://huggingface.co/spaces/diffusers/sd-to-diffusers)**
>
> Discover amazing ML apps made by the community
