ZeroGPU Reservation Time Is Excessively Increased from 40 Seconds to 180 Seconds

I’ve noticed a frustrating issue with Hugging Face ZeroGPU: tasks that normally take around 40 seconds are being assigned reservation times of approximately 180 seconds for no apparent reason.

This is a significant problem because the reserved time is far longer than the actual processing time required. It creates unnecessary overhead and potentially wastes users’ limited GPU quota.

I understand that GPU resource allocation can be complex, but reserving 180 seconds for a task that consistently finishes in about 40 seconds seems excessive. If this is caused by an automatic reservation or duration estimation mechanism, it clearly needs to be reviewed and improved.

My concerns are:

  • Why is the reservation time increasing so dramatically for short tasks?

  • Why isn’t the reservation duration more closely aligned with the actual processing time?

  • Is this behavior intentional, or is it a bug in the ZeroGPU reservation system?

  • Are users effectively losing valuable GPU time because of these excessive reservations?

Hugging Face ZeroGPU is an excellent service, but behavior like this negatively affects the user experience and makes efficient use of the available GPU quota more difficult.

I would strongly urge the Hugging Face team to investigate this issue and fix it. Reservation times should be reasonable, transparent, and based on realistic execution requirements rather than unnecessarily inflated estimates.

If this is an intentional change, please explain the reasoning behind it and clarify whether it affects users’ GPU quotas.

Thank you. I hope the team will address this issue soon.

The 180 seconds is almost certainly the duration value requested in the Space’s code, not an estimate ZeroGPU makes from your past runs. The reservation is whatever the GPU function asks for: the default is 60 s, and the Space author can raise it with @spaces.GPU(duration=180) or a function that returns a duration.

A few things worth knowing:

  • The requested duration is what gets checked against your quota before the call runs, and shorter requests get better queue priority. The GPU is released when the call finishes, but the admission check uses the requested value, not the real 40 s.
  • If it’s your own Space, look at the decorator. Set it close to the real worst case, e.g. @spaces.GPU(duration=60). If run time depends on the inputs, pass a callable instead so short jobs request less:
def get_duration(prompt, steps):
    return 10 + steps * 1.5   # tune to your measured timings

@spaces.GPU(duration=get_duration)
def generate(prompt, steps):
    ...
  • If it’s someone else’s Space, only the author can change it. A comment on the Space’s Community tab mentioning the 40 s vs 180 s gap usually gets it fixed.
  • Also check for size="xlarge" on the decorator, since that counts double.

If none of that applies and it changed on a Space you didn’t touch, it’s worth posting the Space name so staff can look at it.