Spaces:
Running on Zero
Running on Zero
Add optional resumable render (.pt state file) under Advanced
#1
by ezmarynoori - opened
Adds an optional "Resumable render · save progress to a .pt file" box inside the existing Advanced accordion. Nothing in the normal "Generate video" flow is changed.
What it does
- One press of "Run one GPU window" books a single ZeroGPU window (2 min / 5 min / 40 min Pro quota, your choice) and stops at a seam: between denoise steps, between the transformer's blocks inside a step, or between the VAE's decode clips.
- It returns either the finished mp4 or a small .pt state file. Load that file and press again (now or later) to continue from the exact seam.
- Lets long / high-quality videos finish on small ZeroGPU quotas. Includes an "Estimate windows" button and a pre-booking check, so no quota is spent on a job that cannot fit.
- The .pt is self-contained (prompt, keyframes, conditioner output, latents). Big half-finished parts are parked in the Space's temp disk (auto-pruned after 3 days / 40 GB).
Notes
- Only app.py is changed; no new dependencies.
- The stock loop is untouched when no window is active (the hooks pass straight through).
- Tested the seam logic bit-exactly against the real diffusers loop/VAE classes on CPU at small sizes. Full-size ZeroGPU timing is estimated, not measured.