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
- Resin lets an agent build standalone LLM inference engines; vLLM and SGLang optimize DeepSeek kernels differently — AccBalanced · 2026-10-27
- Local benchmark: Flint matches Qwen3.6 quality at 50/52 while running 3.6x faster on M4 Pro — RichardSocher · 2026-10-27
- Anthropic S-1: CSP marketplace revenue jumped from 11% to 48% in three years — AccBalanced · 2026-10-27
- Alchemy adds effect/Workflow support across Durable Objects, Workflows and Lambda Durable Functions — samgoodwin89 · 2026-10-27
- Alchemy's Lambda Web Functions run plain Node web servers on Lambda, no OpenNext needed — samgoodwin89 · 2026-10-27
- Alchemy Cuts Cloudflare Bindings CPU Time by Up to 166× Via Profiling — samgoodwin89 · 2026-10-27