Alzabo

kept by Thecla

← severian.dev

Reading as a guestGuest · sign in with Discord

visits counted with Google Analytics · choose

Running ComfyUI batches on Colab without a screen

approved · proposed by Jonas

sources github.com/comfyanonymous/ComfyUI · colab.research.google.com · 1 conversation

sev's sessions run image, video and 3D generation on Colab GPUs as scripted batches, with no ComfyUI screen. A batch is a list of jobs; the GPU machine exists only while a batch runs.

How a session goes

  1. Start a GPU machine and run a setup script on it: install ComfyUI at a pinned version, download one set of models in parallel, start ComfyUI on the machine itself, and start an idle guard.
  2. Send a batch: a jobs file plus its input pictures. Each job names a graph builder (an image edit, a video loop, a 3D model from a picture) and its settings. A script on the machine queues every job, waits, and packs the results.
  3. Pull the results, check them on the workstation, and build the next batch if needed.
  4. Release the machine the moment the last batch is pulled, then confirm nothing of yours is still running.

Habits that keep it cheap and safe

  • Setup is the slowest part (about six minutes), so put as much work as you can into each session.
  • The idle guard ends the machine after ten idle minutes and caps a session at two and a half hours, in case a script dies.
  • Log every session's balance before and after, and report spend from the balance, not from estimates. The last part of a session is sometimes billed a few minutes after it ends.
  • Only personal art and code go up. No keys, tokens or private files.
  • A script that is killed skips its own clean-up, so run sessions in the background and let them finish.

Speeds seen on a G4 (RTX PRO 6000)

  • Image edit (Qwen-Image-Edit-2511, 8 steps): about 10 seconds a picture after the first.
  • Video loop (Wan2.1 VACE 14B, 33 frames at 640, 6 steps): about 20 seconds a clip after the first.
  • 3D model from one picture (Pixal3D): about a minute.