I wanted to know whether a single workstation could produce a short, narrated cartoon video using only local models: no cloud APIs and no per-minute billing. The test project was a 30-second video teaching the English idiom “your hair stands on end”, with two cartoon characters, Mia and Leo, acting it out in a short conversation.
The pipeline worked on the first attempt. It was also slow: about 31 minutes of rendering for 30 seconds of video. This post covers what I built, where the time actually went, and the changes that brought a 5-second MiniMax H3 clip from about six minutes to under two.
First attempt: three 10-second clips joined together. The visible jumps between clips are explained in section 7.
1. The setup
Hardware
| Component | Spec |
|---|---|
| GPU | Intel Arc Pro B70, ~32 GB VRAM |
| System RAM | 32 GB DDR5 |
| Bus | PCIe 5.0 x16 slot |
| OS | Windows 11 |
Software and models
| Role | Tool / model |
|---|---|
| Orchestration | LangFlow |
| Planning | Gemma4 via Ollama, later moved to a second PC on my network |
| Character image | Z-Image in ComfyUI, with the lightweight taef1 decoder |
| Video and audio | MiniMax H3 image-to-video (native audio) in ComfyUI |
| Assembly and subtitles | FFmpeg |
| ComfyUI | Portable Windows build |
2. The pipeline
flowchart LR
A[Preflight] --> B[Plan: Gemma4]
B --> C[Image: Z-Image]
C --> D[Video: MiniMax H3]
D --> E[Assemble: FFmpeg]
E --> F[30-second MP4]
In LangFlow, the five boxes are copies of one custom component. A Stage field decides which part of a shared pipeline.py each copy runs:
- Preflight checks that Ollama and ComfyUI respond, the configured models exist, and FFmpeg is available.
- Plan loads a fixed storyboard and asks Gemma4 to write the prompt for the character image.
- Image submits a Z-Image graph to ComfyUI and saves one picture of both characters together.
- Video submits one H3 graph per scene, each starting from that same image so the characters stay recognisable.
- Assemble uses FFmpeg to trim and join the clips and add a selectable English subtitle track.
One decision paid off immediately: stages pass only a run_dir path to each other, never the media. Each stage reads what it needs from that folder and writes its outputs back. LangFlow never handles gigabytes of weights or video; it only coordinates.
ComfyUI is driven entirely through its HTTP API:
POST /prompt → submit a workflow graph, receive a job ID
GET /history → poll until the job completes
→ fetch the generated image or clip
Working around LangFlow’s five-minute limit
My LangFlow runtime stops a workflow after five minutes, and a single H3 clip took longer than that. I changed the Video stage so it starts a background worker and returns immediately, in about 180 ms. Re-running the node checks progress instead of resubmitting, so ComfyUI never receives duplicate jobs. When it reports complete, I run Assemble.
If you put long-running generation behind a workflow tool, design for this from the start.
3. The baseline: it works, slowly
The first full run used three 10-second clips at 736×416, H3 at 20 sampling steps, and the stock Qwen3-VL-32B text encoder.
| Clip | Total | GPU sampling | Everything else |
|---|---|---|---|
| 1 | 10m 54s | ~6m 25s | ~4m 29s |
| 2 | 10m 21s | ~6m 23s | ~3m 58s |
| 3 | 10m 28s | ~6m 24s | ~4m 04s |
Two things stood out in the logs:
- The text encoder ran on the CPU. ComfyUI reported
CLIP/text encoder model load device: cpu. The 32B encoder’s weights take about 15 GB, and with H3’s diffusion model needing about 20 GB, ComfyUI kept the encoder off the GPU. At the start of every clip, GPU usage sat near zero while the CPU did the work. - About four minutes per clip happened outside sampling. That time covered text encoding, model loading and transfers, image conditioning, and VAE decoding. I hadn’t timed those stages separately, which I should have done first.
4. Tuning one clip at a time
From here I tuned a single 5-second clip directly in ComfyUI. I kept the input image, prompt, seed and resolution fixed and changed one setting at a time.
| Change | 5s clip | Result |
|---|---|---|
| ClipProj 4B encoder in place of the 32B encoder | 356s | No visible quality loss on cartoon content |
| + 8-step FL2V Turbo LoRA | 212s | About 40% faster, no noticeable difference |
| 4-step FL2V Turbo LoRA instead | ~208s | Only 4 seconds more |
--highvram launch flag | Failed | Out of memory |
--high-ram launch flag | ~115s | The biggest win: far less loading and offloading |
| INT8 ConvRot model instead of W6A8 | ~106s | The smaller file was slower on my GPU |
Euler sampler instead of res_multistep | −10s | Visibly worse, so I reverted |
ClipProj: a 4B encoder in place of the 32B one
ComfyUI-ClipProj replaces H3’s Qwen3-VL-32B encoder with Qwen3-VL-4B plus a learned projection that maps its output into the conditioning format H3 expects. The H3 model and sampler stay the same.
Inside the H3 subgraph, the wiring becomes:
Load CLIP (qwen3vl_4b_fp8_scaled.safetensors, type: krea2)
→ ClipProj Apply (mmh3-4b-ClipProj-v3.1.safetensors)
→ MiniMax H3 Image to Video (clip input)
Two gotchas:
- Use the ComfyUI-packaged single-file encoder, not the full Hugging Face Transformers repository. Z-Image’s
qwen_3_4bis a different model and won’t work here. - Open the subgraph. The collapsed H3 node shows the encoder as a single filename field. Load CLIP’s
typesetting, and the place to add ClipProj, are only visible inside it.
The real benefit was that the encoder now fits on the GPU, which removed the CPU encoding stall. On my cartoon style I couldn’t see a quality difference, although scenes that need precise prompt adherence might.
Turbo LoRA: fewer sampling steps
The H3 subgraph already exposes Turbo controls: turbo_mode, lora_name, turbo_model_strength and turbo_steps. With the FL2V 8-step LoRA at strength 1.0, a clip went from 356s to 212s: 144 seconds saved, about 1.7× faster, with no difference I could see. FL2V matches the image-to-video model; the Ref2V LoRA is for a different H3 model.
Then I tried the matching 4-step LoRA and expected another large drop. It saved 4 seconds.
That small result taught me the most. If halving the sampling steps barely changes the total, sampling isn’t where the time goes.
5. Finding the real bottleneck: memory churn
Watching the GPU memory monitor during a run made the pattern obvious:
flowchart LR
A[Load text encoder + H3<br/>~27 GB] --> B[Sample]
B --> C[Offload encoder + H3]
C --> D[Load VAE and decode]
D --> E[Next clip]
E --> A
Most of the remaining time went to that loading and offloading, not to computation.
My first attempt was --highvram, which asks ComfyUI to keep models on the GPU after use. It failed immediately with an out-of-memory error: 27 GB of weights plus the VAE and its decode buffers don’t fit in 32 GB.
Next I tried --high-ram, which keeps model data cached in system RAM so ComfyUI doesn’t re-read it from disk for every clip:
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --high-ram
pause
A clip went from 212s to about 115s, and the load and offload spikes on the memory graph shrank dramatically. One launch flag did more than any model change.
A caveat on RAM. 32 GB of system RAM is tight for this. With about 27 GB of weights cached, there isn’t much left for Windows. Watch the Committed figure in Task Manager; if memory spills into the pagefile, the gain disappears. 64 GB would give comfortable headroom.
A smaller model file isn’t automatically faster
Comfy-Org publishes a pruned W6A8 H3 checkpoint (about 16 GB) alongside the pruned INT8 ConvRot one (about 21 GB). Less data to move sounded like a win, so I tried W6A8.
Switching back to INT8 was faster: about 115s down to about 106s. On my Intel XPU setup, the INT8 kernels seem to run more efficiently than the W6A8 path. Other hardware may behave differently, so benchmark both rather than choosing by file size.
The sampler: speed you can see
With only four steps, each step matters a lot. Euler saved about 10 seconds but produced visibly softer results. I kept res_multistep with the simple scheduler, as ComfyUI’s H3 workflows use, for final renders. Euler is still fine for quick previews.
The final preset
| Setting | Value |
|---|---|
| Diffusion model | minimax_h3_fl2va_pruned_int8_convrot |
| Text encoder | Qwen3-VL-4B (fp8 scaled) + ClipProj v3.1 |
| Video VAE | INT8 |
| Turbo | On: FL2V 4-step LoRA, strength 1.0, 4 steps |
| Sampler | res_multistep / simple |
| Clip length | 5 seconds |
| Launch flag | --high-ram |
6. Back in LangFlow: the end-to-end result
Changing the ComfyUI canvas doesn’t change what LangFlow sends: pipeline.py builds its own API graph. So I updated the graph to match the tuned workflow, split the lesson into six 5-second clips at 960×544, and moved Gemma4 planning to a second PC on my network.
| First run | Tuned run | |
|---|---|---|
| Clips | 3 × 10s | 6 × 5s |
| Resolution | 736×416 | 960×544 |
| H3 rendering | ~31 min | 11m 47s |
| Per clip | ~10.5 min (10s clip) | ~3 min first, then ~1m 40s (5s clip) |
| FFmpeg assembly | Not timed | ~3s |
That’s a higher resolution, the same 30 seconds of video, and under 40% of the rendering time. The first clip in each run is slower because it pays for the cold model load; after that, --high-ram keeps the weights warm.
7. What H3 can’t do yet
follow a script exactly
The scripted dialogue ended with Leo saying “Exactly!” The rendered video has one more line after that, which wasn’t in the script, and local transcription couldn’t agree on what he says.
H3 generates speech from the prompt, so the script is an instruction, not a speech track. In a language lesson the exact words are the content, so that’s a real problem. It’s also a problem for a series, where Mia and Leo need the same voices in every episode.
The design I’m moving towards makes TTS the source of truth for dialogue:
flowchart TD
A[Script] --> B[TTS with fixed per-character voices]
B --> C[Measure line timings]
C --> D[H3 animation with timed scene directions]
D --> E[Audio-driven lip-sync pass]
E --> F[Replace H3 audio with the TTS track]
F --> G[Subtitles from real timings + final assembly]
Dubbing TTS over H3’s output fixes the words but not the mouths. The lip-sync pass is what makes it work, and it’s my next experiment.
The clips don’t flow into each other
You can see a clear jump at 0:10 and 0:20 in the video above. Each scene was generated as an independent H3 job, and every clip starts from the same character image. That kept Mia and Leo recognisable, but it also means each clip resets to the opening pose instead of continuing from where the previous one ended. The assembly step then simply trims each clip to ten seconds and joins them, with no transition.
Ways to fix this that I haven’t tested yet:
- Chain the clips: use the last frame of each clip as the starting image for the next, so motion and poses carry over.
- Cut on purpose: design each scene as a separate shot (a close-up of the speaker, then a reaction shot), so the change reads as an edit rather than a glitch.
- Add a short transition: a brief crossfade in FFmpeg softens the join, but it hides the jump rather than fixing it.
8. Ideas I haven’t tested yet
These came up while I was looking at the VAE stage. None of them are verified:
- VAE decoding on a second GPU. Recent ComfyUI builds include a Select VAE Device node. Mixing an Intel card and an NVIDIA card in one ComfyUI installation may not work, though.
- VAE decoding on a second PC. Save H3’s combined audio and video latent, copy the
.h3latentfile across, and decode there. The stock Save Latent node may not handle H3’s nested latent. --cpu-vae. It frees GPU memory, but VAE decoding is compute-heavy and was slower on the CPU in my brief test.- Per-stage timing. Logging encode, sample, decode and load times for every clip. I should have done this on day one.
Wrapping up
- Measure before optimising. The 4-step LoRA’s 4-second saving was what finally pointed me at the real bottleneck.
- On a single GPU, memory traffic can matter more than compute.
--high-rambeat every model swap. - Smaller isn’t always faster. INT8 beat the smaller W6A8 checkpoint on my hardware.
- ClipProj and the Turbo LoRAs are close to free wins for simple cartoon content, but check them on your own style.
- Design for long jobs. Background workers and resumable stages mattered more than any single model choice.
- Video models with native audio don’t follow scripts exactly yet. If the words matter, generate the speech separately.
Everything here ran on one workstation, fully offline. Thirty seconds of narrated cartoon in about 12 minutes of rendering isn’t instant, but it’s fast enough to iterate on. The remaining gains look like engineering work, not a hardware purchase.