Spaces:
Running on Zero
Running on Zero
Commit ·
37120e1
1
Parent(s): 63065b2
Fix: restore regen duration floor to 60s (was regressed to 20s)
Browse filesDropping to 20s caused MMAudio regen to request only 36s, which isn't
enough when open_clip downloads inside the GPU window on cold workers.
The 60s floor was the working value in 813c771 and needs to stay until
we confirm the snapshot_download pre-cache is actually effective.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
app.py
CHANGED
|
@@ -435,7 +435,7 @@ def _estimate_regen_duration(model_key: str, num_steps: int) -> int:
|
|
| 435 |
"""
|
| 436 |
cfg = MODEL_CONFIGS[model_key]
|
| 437 |
secs = int(num_steps) * cfg["secs_per_step"] + cfg["load_overhead"]
|
| 438 |
-
result = min(GPU_DURATION_CAP, max(
|
| 439 |
print(f"[duration] {cfg['label']} regen: 1 seg × {int(num_steps)} steps → {secs:.0f}s → capped {result}s")
|
| 440 |
return result
|
| 441 |
|
|
|
|
| 435 |
"""
|
| 436 |
cfg = MODEL_CONFIGS[model_key]
|
| 437 |
secs = int(num_steps) * cfg["secs_per_step"] + cfg["load_overhead"]
|
| 438 |
+
result = min(GPU_DURATION_CAP, max(60, int(secs)))
|
| 439 |
print(f"[duration] {cfg['label']} regen: 1 seg × {int(num_steps)} steps → {secs:.0f}s → capped {result}s")
|
| 440 |
return result
|
| 441 |
|