Spaces:
Running on Zero
Running on Zero
Raise the reservation ceiling to PyHARP's timeout
Browse filesThe ceiling was 120 or 200 s. ZeroGPU already refuses a request that the caller's tier or remaining allowance cannot cover, before reserving anything, and tells a free account how to get more. A cap set so that a free account could afford every request therefore only turned away callers who could. The only request refused here now is one whose reservation would outlast PyHARP's 15 minute timeout, which would stop it anyway.
app.py
CHANGED
|
@@ -57,8 +57,10 @@ model_card = ModelCard(
|
|
| 57 |
)
|
| 58 |
|
| 59 |
|
| 60 |
-
#
|
| 61 |
-
|
|
|
|
|
|
|
| 62 |
|
| 63 |
# Longest an automatic duration can come out, since the pipeline draws it from 30 to 240 seconds
|
| 64 |
MAX_AUTOMATIC_SECONDS = 240
|
|
|
|
| 57 |
)
|
| 58 |
|
| 59 |
|
| 60 |
+
# PyHARP stops a job that runs past its timeout_s, 15 minutes by default, so a request whose
|
| 61 |
+
# reservation would exceed that is refused rather than started. A shorter one is left to
|
| 62 |
+
# ZeroGPU, which admits it when the caller's own allowance covers it.
|
| 63 |
+
MAX_GPU_SECONDS = 900
|
| 64 |
|
| 65 |
# Longest an automatic duration can come out, since the pipeline draws it from 30 to 240 seconds
|
| 66 |
MAX_AUTOMATIC_SECONDS = 240
|