owenisas commited on
Commit
36a8a0b
·
verified ·
1 Parent(s): 872353a

Document GPU job spacing and gpu_cooling_down

Browse files
Files changed (1) hide show
  1. README.md +1 -0
README.md CHANGED
@@ -55,6 +55,7 @@ The whole page is a Gradio 6.28 `WorkflowCanvas`, laid out like a `gr.Workflow`
55
 
56
  - **Run** uses the Gradio queue (`/predict_fn_generate_video`, undocumented) and calls the same handler as `/generate` (`canvas_bridge.py`): same validation, file checks, `RUN_LOCK` and single GPU allocation. Neither route waits behind a running GPU job, because a long queue wait can outlive the caller's ZeroGPU identity token. A second run returns `runtime_busy; … nothing was submitted` immediately.
57
  - **ZeroGPU quota:** on huggingface.co the Space page passes your signed-in identity automatically. **Sign in with Hugging Face** (OAuth, `inference-api` scope) shows who you are on the canvas. On the direct `*.hf.space` URL, `canvas_launch.js` also sends your own token with each run, so the Hugging Face proxy bills your quota. API clients pass their token as usual.
 
58
  - A page left open for hours can hold an expired identity token. The run then stops before scheduling with `zerogpu_session_expired; reload the page … Nothing was submitted`.
59
  - Images are uploaded by the canvas. The bridge accepts only files inside Gradio's upload folder.
60
  - **View API** documents the real named endpoints below, with Gradio's placeholder values.
 
55
 
56
  - **Run** uses the Gradio queue (`/predict_fn_generate_video`, undocumented) and calls the same handler as `/generate` (`canvas_bridge.py`): same validation, file checks, `RUN_LOCK` and single GPU allocation. Neither route waits behind a running GPU job, because a long queue wait can outlive the caller's ZeroGPU identity token. A second run returns `runtime_busy; … nothing was submitted` immediately.
57
  - **ZeroGPU quota:** on huggingface.co the Space page passes your signed-in identity automatically. **Sign in with Hugging Face** (OAuth, `inference-api` scope) shows who you are on the canvas. On the direct `*.hf.space` URL, `canvas_launch.js` also sends your own token with each run, so the Hugging Face proxy bills your quota. API clients pass their token as usual.
58
+ - A GPU job starts no sooner than 50 s after the previous one finished: back-to-back jobs crashed the new ZeroGPU worker. The run waits for that gap only while the caller's identity token still has time to spare. Otherwise it returns `gpu_cooling_down; nothing was submitted; retry in N s`.
59
  - A page left open for hours can hold an expired identity token. The run then stops before scheduling with `zerogpu_session_expired; reload the page … Nothing was submitted`.
60
  - Images are uploaded by the canvas. The bridge accepts only files inside Gradio's upload folder.
61
  - **View API** documents the real named endpoints below, with Gradio's placeholder values.