Connection error when try to Factory rebuild

Hi, I try to rebuild some spaces, But it seems the container can not reach Hub by hf_hub_download,
The build error spaces are:

Can someone help ? :stuck_out_tongue::pray::pray::face_with_hand_over_mouth:

1 Like

No, there’s nothing users can do to resolve these errors.

My only advice is to keep trying, I just built a space and it’s sitting in the middle of a page surrounded by spaces with errors or stuck building.

My theory is that now an then a window of opportunity opens and a space builds, so if you hit it you get a running space.

You can check this page:

To see when building spaces are back to normal (when the problem is resolved you’ll see running spaces as opposed to stuck building ones and ones with errors like they are now).

1 Like

Thank you, I find that many your models are deployed on text-to-image interface of huggingface’s inference api, how did you do that ? (to make them depolyed online)

Use a space like this one to convert a Stable Diffusion model to Diffusers:

Create a new model, upload a checkpoint or a safetensors file to it, make sure it’s public, fill the data on that space (for v1 model types I recommend the pndm scheduler type, it’s the best unless the model suffers from coherence issues - I also recommend you to use a model that has been pruned already as no-ema, and to pick no-ema at the bottom, because extracting ema is not reliable and the resulting diffusers produce low quality outputs) and click Submit.

Afterwards it’ll get stuck at 10% for about 200 seconds, and then at 70% for about another 200, depending on the model, and then a PR will be created, click the link and click on merge at the bottom to convert to diffusers.

Finally (and this is a key step most people don’t do, and that’s why their diffusers don’t have an inference end point) you have to create a model card with this code as the minimum:

library_name: diffusers
pipeline_tag: text-to-image


Save it and it’ll now have an inference api.

1 Like

Where is the api Params I can looked up ?

Click on Files and then click on