New top_level_requeue mode for ComfyUI MiniMaxH3 loop stops RAM growth on long video runs
Slight-Living-8098 · reddit · 2026-09-09
The author contributed (now merged upstream) a new toplevelrequeue execution mode to the ComfyUI MiniMaxH3 Context Loop, fixing unbounded system RAM growth during long video sequences.
- Problem: the original mode kept an entire multi-scene sequence inside one long-running ComfyUI prompt; even if per-scene data could be freed, the top-level execution stayed alive, keeping old scenes referenced as RAM climbed scene by scene.
- Fix: after each scene, save a checkpoint plus a small continuation handoff, end the top-level prompt to give ComfyUI/PyTorch a clean cleanup boundary, then auto-queue the next scene as a fresh top-level prompt. Like clearing the workbench after each step while noting where you stopped.
- Scope: mainly fixes system RAM; VRAM may benefit but PyTorch/CUDA caching means it won't drop to zero. The key insight is giving the execution lifetime a real job boundary, not deleting individual tensors.
Related event: ComfyUI adds top_level_requeue mode to fix long-video RAM bloat(2 posts)→
More from Infra
- What 100 GW of compute really means: 876 TWh a year and a country-scale power system — shyamalanadkat · 2026-09-09
- vLLM's hard-won lessons: pipeline parallelism falters on warm agent turns, 2.7x decode on Kimi K3 — vllm_project · 2026-09-09
- vLLM: agent sessions median 43 turns, 142K-token inputs vs 444-token outputs — vllm_project · 2026-09-09
- vLLM details full-stack optimizations for real-world agentic serving on AgentX benchmark — vllm_project · 2026-09-09
- Google Cloud CEO: TPU servers pay back in ~1 year, half that of GPU servers — matt_slotnick · 2026-09-09
- DeepSeek v4.1 Flash flash sale: 58M tokens for $1, available for 2 days only — MicahBerkley · 2026-09-09