# 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:** 1\
**Showing post:** 7

<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 .

---

_[View the full topic](https://discuss.huggingface.co/t/usage-quota-exceeded/106619)._
