# Zero GPU Worker Error

**URL:** <https://discuss.huggingface.co/t/zero-gpu-worker-error/166246>\
**Category:** Spaces\
**Created:** [August 10, 2025, 12:24am UTC](https://discuss.huggingface.co/t/zero-gpu-worker-error/166246 "2025-08-10T00:24:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![clownscape](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/clownscape/32/52364_2.png) [@clownscape](https://discuss.huggingface.co/u/clownscape)\
**Post date:** [August 10, 2025, 12:24am UTC](https://discuss.huggingface.co/t/zero-gpu-worker-error/166246/1 "2025-08-10T00:24:17Z")

</div>

[Did perform a search. The only other thread discussing a similar topic was deleted by the user so here goes.]

For the last few days while using ZeroGPU to generate content, I was getting quite a lot of “ **ZeroGPU worker error** RuntimeError”-s. It was eating up a lot of my daily 25 minutes generation quota, but still, with intermittent retries I could at least finish the generation. However, since today, the Zero GPU Worker Errors have almost become instantanous on clicking the generate button, making it impossible to generate anything at all.

Can anyone tell me if they are/were facing similar issues? And if there is any workaround to the issue?

I was mostly using this module -

> **[WAN 2.1 Fast & security - a Hugging Face Space by Heartsync](https://huggingface.co/spaces/Heartsync/wan2-1-fast-security)**
>
> Upload an image and provide a prompt to create a short, animated video. Customize the duration, size, and other settings for your video output.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [August 10, 2025, 12:34am UTC](https://discuss.huggingface.co/t/zero-gpu-worker-error/166246/2 "2025-08-10T00:34:54Z")

</div>

I was able to reproduce the error. I thought it might be a bug, so I duplicated the space, but it worked without any corrections…😅

What is this… @hysts ?

### Duplicated

 ![wanpenguin](https://us1.discourse-cdn.com/hellohellohello/original/3X/f/5/f58bc049b891812b431d242fbe84a1dc0906c688.jpeg)

### Original

 ![wanpenguinerror](https://us1.discourse-cdn.com/hellohellohello/original/3X/6/4/6471638dd7c6f9e33d2a016f608bf5a6f8cb3643.png)

---

<div class="post-metadata">

**Author:** ![clownscape](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/clownscape/32/52364_2.png) [@clownscape](https://discuss.huggingface.co/u/clownscape)\
**Post date:** [August 10, 2025, 12:52am UTC](https://discuss.huggingface.co/t/zero-gpu-worker-error/166246/3 "2025-08-10T00:52:35Z")

</div>

I tried [Wan 2.2 5B - a Hugging Face Space by Wan-AI](https://huggingface.co/spaces/Wan-AI/Wan-2.2-5B)

Still getting the same error. So, maybe not particular to the above-stated space, but all similar spaces using ZeroGPU.

---

<div class="post-metadata">

**Author:** ![hysts](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/hysts/32/32230_2.png) [@hysts](https://discuss.huggingface.co/u/hysts)\
**Post date:** [August 10, 2025, 4:21am UTC](https://discuss.huggingface.co/t/zero-gpu-worker-error/166246/4 "2025-08-10T04:21:04Z")

</div>

Hmm, I’ not sure what the cause of the error is.

Looks like the Space was a modified version of [Wan2.1 Fast - a Hugging Face Space by multimodalart](https://huggingface.co/spaces/multimodalart/wan2-1-fast) , which is working fine.

The Space is not pinning dependency versions, so it might be caused by updates on dependencies.

I’ve asked internally about it, but it’s summer vacation season and many people are away, so we might not be able to get an answer right away.

---

<div class="post-metadata">

**Author:** ![mehdi2ittta](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@mehdi2ittta](https://discuss.huggingface.co/u/mehdi2ittta)\
**Post date:** [August 10, 2025, 4:41am UTC](https://discuss.huggingface.co/t/zero-gpu-worker-error/166246/5 "2025-08-10T04:41:52Z")

</div>

I have the exact same problem and duplicating the space didn’t work for me.  
The problem is not with this space. So far, every zero gpu spaces I’ve tested has had the same problem.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [August 10, 2025, 5:15am UTC](https://discuss.huggingface.co/t/zero-gpu-worker-error/166246/6 "2025-08-10T05:15:34Z")

</div>

Oh. Even with hysts, it’s hard to figure out the cause right away…  
If I can reproduce the bug in my own environment, I can try some trial and error…

---

<div class="post-metadata">

**Author:** ![mehdi2ittta](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@mehdi2ittta](https://discuss.huggingface.co/u/mehdi2ittta)\
**Post date:** [August 10, 2025, 5:23am UTC](https://discuss.huggingface.co/t/zero-gpu-worker-error/166246/7 "2025-08-10T05:23:06Z")

</div>

I was able to fix the issue on my Space by adjusting the `requirements.txt`.

Try adding these two lines to your **requirements.txt** and restart the Space:

> safetensors  
> sentencepiece

---

<div class="post-metadata">

**Author:** ![hysts](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/hysts/32/32230_2.png) [@hysts](https://discuss.huggingface.co/u/hysts)\
**Post date:** [August 10, 2025, 5:23am UTC](https://discuss.huggingface.co/t/zero-gpu-worker-error/166246/8 "2025-08-10T05:23:34Z")

</div>

Which Spaces have you tried?  
I get the same error in the Spaces mentioned above, but other than that, I can’t reproduce it.  
I’ve tried duplicating some ZeroGPU Spaces, but they worked fine.  
For example, these Spaces work fine.

> **[FLUX.1 \[Schnell\] - a Hugging Face Space by black-forest-labs](https://huggingface.co/spaces/black-forest-labs/FLUX.1-schnell)**
>
> Create custom images by entering descriptive text. Customize size, resolution, and randomness of the generated image.

> **[ViTPose Transformers - a Hugging Face Space by hysts](https://huggingface.co/spaces/hysts/ViTPose-transformers)**
>
> This application detects people in images and videos and estimates their poses by marking key points on their bodies. Users can upload images or videos, and the app will return annotated images or ...

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [August 10, 2025, 5:24am UTC](https://discuss.huggingface.co/t/zero-gpu-worker-error/166246/9 "2025-08-10T05:24:40Z")

</div>

I’m in the same situation as hysts.

---

<div class="post-metadata">

**Author:** ![anucocogen](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/anucocogen/32/52379_2.png) [@anucocogen](https://discuss.huggingface.co/u/anucocogen)\
**Post date:** [August 10, 2025, 6:55am UTC](https://discuss.huggingface.co/t/zero-gpu-worker-error/166246/10 "2025-08-10T06:55:13Z")

</div>

I am encountering the same error with Flux Kontext 1.1 Dev

---

<div class="post-metadata">

**Author:** ![hysts](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/hysts/32/32230_2.png) [@hysts](https://discuss.huggingface.co/u/hysts)\
**Post date:** [August 10, 2025, 7:10am UTC](https://discuss.huggingface.co/t/zero-gpu-worker-error/166246/11 "2025-08-10T07:10:51Z")

</div>

OK, I’ve just restarted [FLUX.1 Kontext - a Hugging Face Space by black-forest-labs](https://huggingface.co/spaces/black-forest-labs/FLUX.1-Kontext-Dev) and it’s back up now. It’s probably unrelated to the issue discussed in this thread.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [August 10, 2025, 8:17am UTC](https://discuss.huggingface.co/t/zero-gpu-worker-error/166246/12 "2025-08-10T08:17:41Z")

</div>

Looking at the code, I found _a_ change in Gradio’s specifications.  
I can’t believe it, but could Gradio’s repeated specification changes be causing code conflicts…?

### Gradio 4

```py
cache_examples="lazy",

```

### [Gradio 5](https://github.com/gradio-app/gradio/issues/9463)

```py
cache_examples=True,
cache_mode="lazy",

```

### [Gradio 5 TODAY](https://www.gradio.app/docs/gradio/examples)

```py
cache_examples="lazy",

```

 ![lazy](https://us1.discourse-cdn.com/hellohellohello/original/3X/a/7/a704a3a724d93780aa70c41022439e8d6461c75f.png)

Edit:  
It was a misunderstanding. It seems that the previous notation was originally possible for compatibility reasons.

---

<div class="post-metadata">

**Author:** ![hysts](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/hysts/32/32230_2.png) [@hysts](https://discuss.huggingface.co/u/hysts)\
**Post date:** [August 10, 2025, 9:05am UTC](https://discuss.huggingface.co/t/zero-gpu-worker-error/166246/13 "2025-08-10T09:05:04Z")

</div>

No, I don’t think so. The error in the log is related to CUDA. Also, if it’s about caching examples, the Space would probably not be able to launch.

---

<div class="post-metadata">

**Author:** ![hysts](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/hysts/32/32230_2.png) [@hysts](https://discuss.huggingface.co/u/hysts)\
**Post date:** [August 10, 2025, 9:06am UTC](https://discuss.huggingface.co/t/zero-gpu-worker-error/166246/14 "2025-08-10T09:06:02Z")

</div>

BTW, I’ve restarted [WAN 2.1 Fast & security - a Hugging Face Space by Heartsync](https://huggingface.co/spaces/Heartsync/wan2-1-fast-security) and it’s back up too. So, my guess is that it’s due to some dependency updates.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [August 10, 2025, 11:26am UTC](https://discuss.huggingface.co/t/zero-gpu-worker-error/166246/15 "2025-08-10T11:26:59Z")

</div>

Thank you.  
Well, maybe the combination of library versions at the time the space was launched was just bad.  
Anyway, if it works fine after restarting, it’s probably not a big problem.😀

---

<div class="post-metadata">

**Author:** ![hysts](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/hysts/32/32230_2.png) [@hysts](https://discuss.huggingface.co/u/hysts)\
**Post date:** [August 10, 2025, 11:58am UTC](https://discuss.huggingface.co/t/zero-gpu-worker-error/166246/16 "2025-08-10T11:58:25Z")

</div>

The dependency issue still isn’t resolved since we don’t know which library caused the error. Restarting a Space usually doesn’t rebuild it, so restarting fixed the original Space. But when you duplicate it, it triggers a rebuild and the dependencies that aren’t pinned get updated to the latest version. That’s why the Wan 2.2 Space still isn’t working.

---

<div class="post-metadata">

**Author:** ![hysts](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/hysts/32/32230_2.png) [@hysts](https://discuss.huggingface.co/u/hysts)\
**Post date:** [August 10, 2025, 12:05pm UTC](https://discuss.huggingface.co/t/zero-gpu-worker-error/166246/17 "2025-08-10T12:05:38Z")

</div>

> Looking at the code, I found _a_ change in Gradio’s specifications.  
> I can’t believe it, but could Gradio’s repeated specification changes be causing code conflicts…?

Forgot to mention, but there’s a misunderstanding in this comment.

`cache_examples` still accepts “lazy” in gradio 5.x so that gradio 4.x Spaces that specify `cache_examples=”lazy”` won’t break when upgrading to gradio 5.x. It shows a warning that it will stop working in the future. You mentioned that we’ve changed it repeatedly, but that’s not the case.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [August 10, 2025, 1:04pm UTC](https://discuss.huggingface.co/t/zero-gpu-worker-error/166246/18 "2025-08-10T13:04:24Z")

</div>

Oh. In that space,

```bash
 --> RUN wget --progress=dot:giga https://developer.download.nvidia.com/compute/cuda/12.9.0/local_installers/cuda_12.9.0_575.51.03_linux.run -O cuda-install.run && fakeroot sh cuda-install.run --silent --toolkit --override && rm cuda-install.run

...

 --> RUN pip install --no-cache-dir pip -U && pip install --no-cache-dir datasets "huggingface-hub>=0.19" "hf_xet>=1.0.0,<2.0.0" "hf-transfer>=0.1.4" "protobuf<4" "click<8.1" "pydantic~=1.0" torch==2.8.0

```

So I modified `requirements.txt`:

```py
#https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.0.8/flash_attn-2.7.4.post1+cu126torch2.7-cp310-cp310-linux_x86_64.whl
https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.3.14/flash_attn-2.6.3+cu129torch2.8-cp310-cp310-linux_x86_64.whl
numpy>=1.23.5,<2
einops

```

Then it worked for now.

 ![wan225b](https://us1.discourse-cdn.com/hellohellohello/original/3X/a/e/ae299ab7d4c38f4c4e50c17eea1b7716fcdedd10.jpeg)

If PyTorch is fixed at 2.8 due to CUDA Toolkit 12.9, some programs may not work…

---

<div class="post-metadata">

**Author:** ![hysts](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/hysts/32/32230_2.png) [@hysts](https://discuss.huggingface.co/u/hysts)\
**Post date:** [August 10, 2025, 1:17pm UTC](https://discuss.huggingface.co/t/zero-gpu-worker-error/166246/19 "2025-08-10T13:17:30Z")

</div>

Oh, good catch! Not sure if the change to accept up to torch 2.8.0 is intentional since the documentation hasn’t been updated. I’ll ask internally.

---

<div class="post-metadata">

**Author:** ![X-Greg](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/x-greg/32/45631_2.png) [@X-Greg](https://discuss.huggingface.co/u/X-Greg)\
**Post date:** [August 10, 2025, 1:19pm UTC](https://discuss.huggingface.co/t/zero-gpu-worker-error/166246/20 "2025-08-10T13:19:29Z")

</div>

Hello, I’m experiencing the same “runtime error” on Pony Realism, and I don’t really understand how to resolve it. I’ve tried other applications like Image to Video, and after just a few videos, the problem also started to appear. I haven’t been able to generate any images for almost two days. This is starting to cause problems for my current work. Please help me. I need a simple solution that doesn’t require programming.

[Next page](https://discuss.huggingface.co/t/zero-gpu-worker-error/166246.md?page=2)
