# Usage quota exceeded

**URL:** <https://discuss.huggingface.co/t/usage-quota-exceeded/106619>\
**Category:** Beginners\
**Created:** [September 13, 2024, 4:51pm UTC](https://discuss.huggingface.co/t/usage-quota-exceeded/106619 "2024-09-13T16:51:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![CaioXapelaum](https://avatars.discourse-cdn.com/v4/letter/c/3ab097/32.png) [@CaioXapelaum](https://discuss.huggingface.co/u/CaioXapelaum)\
**Post date:** [September 13, 2024, 4:51pm UTC](https://discuss.huggingface.co/t/usage-quota-exceeded/106619/1 "2024-09-13T16:51:28Z")

</div>

when i try to use a space, it gives me an error saying “You have exceeded your GPU quota (59s left vs. 120s requested). Sign-up on Hugging Face to get more quotas or retry in 5:03:25”, but im already signed-up, it started after i bought PRO today

---

<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:** [September 13, 2024, 10:51pm UTC](https://discuss.huggingface.co/t/usage-quota-exceeded/106619/2 "2024-09-13T22:51:15Z")

</div>

It hasn’t worked for six months now. It’s often a problem on the forums. I’m aware of two recent cases.  
I’m not sure if it’s a bug or a spec.

> [@Exceeded GPU quota via API , but fine interactively](https://discuss.huggingface.co/t/exceeded-gpu-quota-via-api-but-fine-interactively/105699/):
>
> I’ve a pro account and I have created a space using Gradle, and GPU. It works fine interactively, but when I connect to my space via Gradle API then, after a few requests, I get: You have exceeded your GPU quota (60s requested vs. 58s left). Create a free account to get more usage quota. Can I somehow pass my credentials via the API in order to resolve this? I need to use an API to test the space I’ve created. Thanks in advance.

> [@Learn About GPU Throttling Quota (Another Stupid Guy) :D](https://discuss.huggingface.co/t/learn-about-gpu-throttling-quota-another-stupid-guy-d/89894):
>
> Dear Hugging Face Community! slightly_smiling_face First of all, thank you for all your services and for your efforts to democratize artificial intelligence. sunglasses I’m currently fascinated by image generation, especially with models like “DALLE 3 XL v2” and “Fluently XL v4”. I indeed confirm that it is really not safe to use for work. That said, I must admit that as a child I preferred playing with dolls to be with the girls, rather than playing with cars and computers; which partly e…

---

<div class="post-metadata">

**Author:** ![eternalBlissard](https://avatars.discourse-cdn.com/v4/letter/e/b5a626/32.png) [@eternalBlissard](https://discuss.huggingface.co/u/eternalBlissard)\
**Post date:** [October 21, 2024, 7:50pm UTC](https://discuss.huggingface.co/t/usage-quota-exceeded/106619/3 "2024-10-21T19:50:13Z")

</div>

@CaioXapelaum I am also facing the same issue, how did you resolve it?

---

<div class="post-metadata">

**Author:** ![KateWinslet](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/katewinslet/32/26764_2.png) [@KateWinslet](https://discuss.huggingface.co/u/KateWinslet)\
**Post date:** [October 21, 2024, 9:18pm UTC](https://discuss.huggingface.co/t/usage-quota-exceeded/106619/4 "2024-10-21T21:18:46Z")

</div>

> [@CaioXapelaum](#):
>
> when i try to use a space, it gives me an error saying “You have exceeded your GPU quota (59s left vs. 120s requested). Sign-up on Hugging Face to get more quotas or retry in [atfbooru](https://atfbooru.blog) 5:03:25”, but im already signed-up, it started after i bought PRO today

This could be due to a delay in updating your quota after the upgrade, or you might have already reached the Pro plan’s GPU limit, which is still capped. Check your usage on the account page to ensure you’re within limits. If everything seems correct, try reducing your task’s resource requirements or logging out and back in to resync your account. If the issue persists, contacting Hugging Face support for assistance might resolve the 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:** [October 21, 2024, 9:37pm UTC](https://discuss.huggingface.co/t/usage-quota-exceeded/106619/5 "2024-10-21T21:37:22Z")

</div>

Forgot to correct this post. I was wrong all along, but it looks like **the following sign-in button is all that is needed to mitigate Quota in the Zero GPU space**.  
I put this on my space and it now has quota mitigation.  
The solution for other people’s spaces that don’t have this button is unknown at this time.

> **[Sign in with Hugging Face](https://huggingface.co/docs/hub/oauth)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

---

<div class="post-metadata">

**Author:** ![eternalBlissard](https://avatars.discourse-cdn.com/v4/letter/e/b5a626/32.png) [@eternalBlissard](https://discuss.huggingface.co/u/eternalBlissard)\
**Post date:** [October 22, 2024, 5:50am UTC](https://discuss.huggingface.co/t/usage-quota-exceeded/106619/6 "2024-10-22T05:50:01Z")

</div>

How to check this usage? Please guide me

---

<div class="post-metadata">

**Author:** ![frostbyte07](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/frostbyte07/32/36478_2.png) [@frostbyte07](https://discuss.huggingface.co/u/frostbyte07)\
**Post date:** [November 26, 2024, 12:57am UTC](https://discuss.huggingface.co/t/usage-quota-exceeded/106619/7 "2024-11-26T00:57:07Z")

</div>

I got it to work!!!

- I duplicated the black-forest-labs/FLUX.1-dev (!!!Important!!! Go to their [Model Card Page](https://huggingface.co/black-forest-labs/FLUX.1-dev) and get access granted to their gated model first. Then you can duplicate the model)
- Set the environment variables:  
HF\_TOKEN =Use your HF\_token (I used read and write credentials for this)  
ZEROGPU\_V2=true  
ZERO\_GPU\_PATCH\_TORCH\_DEVICE=1

Then in your own (duplicated) space:

- Navigate to the Files
- Click on app.py
- Change

```python
@spaces.GPU(duration=75) # The duration max value can be 120 but this wasn't enough and still didn't work for me

```

to

```python
@spaces.GPU()

```

Make sure in your python code that uses the gradio\_client python library your HF\_TOKEN is set in the environment or you set the parameter hf\_token when creating the client  
example:

```python
from gradio_client import Client 
 client = CLIENT("your_duplicated_space/FLUX.1-dev", hf_token=os.getenv("HF_TOKEN"))

```

Basically, anywhere the decorator @spaces.GPU is being set you are being limited by the spaces owner. You can then duplicate/clone it and make your changes for your own space .

---

<div class="post-metadata">

**Author:** ![Moibe](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@Moibe](https://discuss.huggingface.co/u/Moibe)\
**Post date:** [December 12, 2024, 3:08am UTC](https://discuss.huggingface.co/t/usage-quota-exceeded/106619/8 "2024-12-12T03:08:25Z")

</div>

Using the HF\_TOKEN like this: client = CLIENT(“your\_duplicated\_space/FLUX.1-dev”, hf\_token=os.getenv(“HF\_TOKEN”)) allow us to use the space wether is ours or from someone else,

BUT IT DON’T, uses our PRO Quota, it consider us as a normal user with no PRO limits. Seems that nobody has being able to help us in that issue ☹

---

<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:** [December 12, 2024, 3:29am UTC](https://discuss.huggingface.co/t/usage-quota-exceeded/106619/9 "2024-12-12T03:29:50Z")

</div>

Related issue?

> **[BestWishYsh/ConsisID-preview-Space · Apply for community grant: Personal...](https://huggingface.co/spaces/BestWishYsh/ConsisID-preview-Space/discussions/1#674969a022b99c122af5d407)**
>
> Apply for community grant: Academic project (gpu). We develop an identity-preserving text-to-video generation model, ConsisID, which can keep human-identity consistent in the generated video.

---

<div class="post-metadata">

**Author:** ![orsk-moscow](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/orsk-moscow/32/37362_2.png) [@orsk-moscow](https://discuss.huggingface.co/u/orsk-moscow)\
**Post date:** [December 14, 2024, 12:40pm UTC](https://discuss.huggingface.co/t/usage-quota-exceeded/106619/10 "2024-12-14T12:40:00Z")

</div>

Hi, @John6666, thank you for the solution!

Did you try to send a requests through API, does a button helps in this case?

Really waiting for your answer, cause I am stacked with calling private space through an API and facing Exceed GPU quota issue.

---

<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:** [December 14, 2024, 12:45pm UTC](https://discuss.huggingface.co/t/usage-quota-exceeded/106619/11 "2024-12-14T12:45:31Z")

</div>

As you have written in the discussion below…😅  
The discussion below is the most recent. It’s not so much a solution as a struggle to figure out who to ask and what to ask.  
I don’t know which is the cause: Gradio, the HF Private function, or the Zero GPU Space function… it could be more than one.

> **[zero-gpu-explorers/README · use authentication in huggingface Gradio...](https://huggingface.co/spaces/zero-gpu-explorers/README/discussions/129)**
>
> Guys.

Edit:  
I called hysts for now…

---

<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:** [December 14, 2024, 4:24pm UTC](https://discuss.huggingface.co/t/usage-quota-exceeded/106619/12 "2024-12-14T16:24:43Z")

</div>

I received a response back from hysts. The team is aware of the problem, but it seems that the implementation is not yet complete. It seems that it will be OK if we wait.

> **[zero-gpu-explorers/README · use authentication in huggingface Gradio...](https://huggingface.co/spaces/zero-gpu-explorers/README/discussions/129#675dae2dda45b7d6f73d7e47)**
>
> Guys.

---

<div class="post-metadata">

**Author:** ![HassanTrabelsi](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/hassantrabelsi/32/38716_2.png) [@HassanTrabelsi](https://discuss.huggingface.co/u/HassanTrabelsi)\
**Post date:** [January 6, 2025, 10:06pm UTC](https://discuss.huggingface.co/t/usage-quota-exceeded/106619/13 "2025-01-06T22:06:12Z")

</div>

Any update on this guys ?

---

<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:** [January 7, 2025, 1:28am UTC](https://discuss.huggingface.co/t/usage-quota-exceeded/106619/14 "2025-01-07T01:28:00Z")

</div>

not yet. 😅

---

<div class="post-metadata">

**Author:** ![deeduckme](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@deeduckme](https://discuss.huggingface.co/u/deeduckme)\
**Post date:** [January 7, 2025, 3:07pm UTC](https://discuss.huggingface.co/t/usage-quota-exceeded/106619/15 "2025-01-07T15:07:34Z")

</div>

very boring ! you pay a service not working ! thanks

---

<div class="post-metadata">

**Author:** ![deeduckme](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@deeduckme](https://discuss.huggingface.co/u/deeduckme)\
**Post date:** [January 10, 2025, 7:39pm UTC](https://discuss.huggingface.co/t/usage-quota-exceeded/106619/16 "2025-01-10T19:39:08Z")

</div>

I need 10000 sec/day  
possible ?

---

<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:** [January 11, 2025, 1:37am UTC](https://discuss.huggingface.co/t/usage-quota-exceeded/106619/17 "2025-01-11T01:37:11Z")

</div>

With a Pro subscription, you can use up to 1500 seconds per day. That probably won’t be enough for you.

---

<div class="post-metadata">

**Author:** ![Moibe](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@Moibe](https://discuss.huggingface.co/u/Moibe)\
**Post date:** [January 12, 2025, 10:19pm UTC](https://discuss.huggingface.co/t/usage-quota-exceeded/106619/18 "2025-01-12T22:19:59Z")

</div>

An option would be to pay the excedent, for example make a copy of your space, and change it to a paid services, make it sleep and only wake it when you are out of zero quota.

---

<div class="post-metadata">

**Author:** ![deeduckme](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@deeduckme](https://discuss.huggingface.co/u/deeduckme)\
**Post date:** [January 13, 2025, 8:38am UTC](https://discuss.huggingface.co/t/usage-quota-exceeded/106619/19 "2025-01-13T08:38:25Z")

</div>

so to have multiple account ? no problem with IP ?

---

<div class="post-metadata">

**Author:** ![Moibe](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@Moibe](https://discuss.huggingface.co/u/Moibe)\
**Post date:** [January 21, 2025, 3:35am UTC](https://discuss.huggingface.co/t/usage-quota-exceeded/106619/20 "2025-01-21T03:35:30Z")

</div>

@deeduckme IP is not a problem, because when you are logged it counts the user not the IP. IP it’s only for anonymous users.

[Next page](https://discuss.huggingface.co/t/usage-quota-exceeded/106619.md?page=2)
