harp-dev commited on
Commit
c4d2b3e
·
verified ·
1 Parent(s): 9b667e9

Raise the reservation ceiling to PyHARP's timeout

Browse files

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

Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -57,8 +57,10 @@ model_card = ModelCard(
57
  )
58
 
59
 
60
- # The most a request may reserve: 1.5 times this is a free account's whole daily allowance
61
- MAX_GPU_SECONDS = 200
 
 
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