# No custom pipeline found at /repository/handler.py

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-custom-pipeline-found-at-repository-handler-py%2F35230%3E%5C
**Category:** Inference Endpoints on the Hub\
**Created:** [March 31, 2023, 10:42pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-custom-pipeline-found-at-repository-handler-py%2F35230 "2023-03-31T22:42:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BrianPistar](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/brianpistar/32/15088_2.png) [@BrianPistar](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FBrianPistar)%5C
**Post date:** [March 31, 2023, 10:42pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-custom-pipeline-found-at-repository-handler-py%2F35230%2F1 "2023-03-31T22:42:19Z")

</div>

I have a stable diffusion 1.5 model hosted on huggingFace. I am trying to spin up an interface endpoint for it, to provide my community with faster response times and better uptime.

But I keep running into the following error:

Initializing model from directory:/repository  
b997n 2023-03-31T22:35:49.795Z 2023-03-31 22:35:49,795 | INFO | No custom pipeline found at /repository/handler.py

I tried running the CPU endpoint Small and Medium.

Honestly paying more than 80 dollars a month for my use as I am still learning is too much.

How can I fix this issue?

Are there better services than interface endpoints for my goal?

---

<div class="post-metadata">

**Author:** ![philschmid](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/philschmid/32/38022_2.png) [@philschmid](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fphilschmid)%5C
**Post date:** [April 3, 2023, 7:36am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-custom-pipeline-found-at-repository-handler-py%2F35230%2F2 "2023-04-03T07:36:40Z")

</div>

Could you please share you repository? Are you trying to customize inference. through a `handler.py`?  
Also CPUs are not a good for Stable diffusion models neither in size nor performance.

---

<div class="post-metadata">

**Author:** ![BrianPistar](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/brianpistar/32/15088_2.png) [@BrianPistar](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FBrianPistar)%5C
**Post date:** [April 3, 2023, 2:36pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-custom-pipeline-found-at-repository-handler-py%2F35230%2F3 "2023-04-03T14:36:18Z")

</div>

I have found a solution in the huggingFace docs, found a custom handler.py for stable diffusion models, but when I tried running it, the build has always failed.

Is it possible the small and medium CPUs aren’t enough?

Paying 400 dollars a month just to test out an interface endpoint seems like too much to me, combined with the fact I pay per hour, not per compute.

> **[BrianPistar/sd-1-5-focplanet at main](https://huggingface.co/BrianPistar/sd-1-5-focplanet/tree/main)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

---

<div class="post-metadata">

**Author:** ![philschmid](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/philschmid/32/38022_2.png) [@philschmid](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fphilschmid)%5C
**Post date:** [April 3, 2023, 2:47pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-custom-pipeline-found-at-repository-handler-py%2F35230%2F4 "2023-04-03T14:47:46Z")

</div>

Yes, the pipeline overall is \> 7-8GB and even if you manage to run on CPU the generation will take minutes.

---

<div class="post-metadata">

**Author:** ![philschmid](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/philschmid/32/38022_2.png) [@philschmid](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fphilschmid)%5C
**Post date:** [April 3, 2023, 2:48pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fno-custom-pipeline-found-at-repository-handler-py%2F35230%2F5 "2023-04-03T14:48:09Z")

</div>

For testing you can use the inference-api which is free through the inference widgets or programmatically.

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/2X/c/cc7de7500530a6e6bd8dbc6f0ce53ac0844acdcd.png)
