ComfyUI Nodes Fix MiniMax H3 Latent Saving & Enable Two-Pass Workflows
Neat-Philosopher-867 · reddit · 2026-08-24
The core SaveLatent node in ComfyUI crashes on models like MiniMax H3 that co-generate video and audio in a single nested latent, throwing an AttributeError: 'NestedTensor' object has no attribute 'contiguous'. To fix this, the author released a two-node pack:
- Save AV Latent: Unbinds the nested latent and stores all parts in a single safetensors file (.avlatent).
- Load AV Latent: Rebuilds the latent using ComfyUI's own NestedTensor wrapper, ensuring the 5-D video + 4-D audio mix round-trips correctly.
Use Case: Two-Pass Seed Hunting
- Render cheap low-res previews and save their latents.
- Pick the desired take (now or later).
- Feed that exact latent into an upscale/refine pass (e.g., rockerBOO's h3-latent-upscaler).
This method ensures the refined result maintains the exact composition of the selected preview, avoiding reliance on --cache-lru, re-sampling, or GPU non-determinism, and surviving ComfyUI restarts. Benchmarks on an RTX 4060 Ti 16 GB show a 0.5 MP preview takes 300s, while the refine pass renders 1920x1088 in 1600s with the chosen composition. The project is MIT licensed with no extra dependencies.
More from coding & agent
- Terminal Bench 3.0 analysis: tool counts per harness revealed — zainhas · 2026-08-27
- Running Local 27B Models for Tool Loops on Mac — conifer_v11 · 2026-08-27
- OpenWiki 0.4.2 Flaw Found: Adversarial Proof Reveals History Leak — tallmetommy · 2026-08-27
- Managing Tasks Across Multiple AI Agents: A Kanban Board That Works Both Ways? — ibmmo · 2026-08-27
- Discussion: What Code Do You Refuse to Let AI Write? — Pyrro-nft · 2026-08-27
- Dev: Half my codebase is guardrails to prevent AI from going rogue — kevinnbass · 2026-08-27