[SKIP TO CONTENT]
LAST_UPDATE: 23 November 2026
Go back
BY Junrong Li

> Optimizing MiniMax H3 on Intel Arc Pro B70

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

ComponentSpec
GPUIntel Arc Pro B70, ~32 GB VRAM
System RAM32 GB DDR5
BusPCIe 5.0 x16 slot
OSWindows 11

Software and models

RoleTool / model
OrchestrationLangFlow
PlanningGemma4 via Ollama, later moved to a second PC on my network
Character imageZ-Image in ComfyUI, with the lightweight taef1 decoder
Video and audioMiniMax H3 image-to-video (native audio) in ComfyUI
Assembly and subtitlesFFmpeg
ComfyUIPortable 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:

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.

ClipTotalGPU samplingEverything else
110m 54s~6m 25s~4m 29s
210m 21s~6m 23s~3m 58s
310m 28s~6m 24s~4m 04s

Two things stood out in the logs:

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.

Change5s clipResult
ClipProj 4B encoder in place of the 32B encoder356sNo visible quality loss on cartoon content
+ 8-step FL2V Turbo LoRA212sAbout 40% faster, no noticeable difference
4-step FL2V Turbo LoRA instead~208sOnly 4 seconds more
--highvram launch flagFailedOut of memory
--high-ram launch flag~115sThe biggest win: far less loading and offloading
INT8 ConvRot model instead of W6A8~106sThe smaller file was slower on my GPU
Euler sampler instead of res_multistep−10sVisibly 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:

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

SettingValue
Diffusion modelminimax_h3_fl2va_pruned_int8_convrot
Text encoderQwen3-VL-4B (fp8 scaled) + ClipProj v3.1
Video VAEINT8
TurboOn: FL2V 4-step LoRA, strength 1.0, 4 steps
Samplerres_multistep / simple
Clip length5 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 runTuned run
Clips3 × 10s6 × 5s
Resolution736×416960×544
H3 rendering~31 min11m 47s
Per clip~10.5 min (10s clip)~3 min first, then ~1m 40s (5s clip)
FFmpeg assemblyNot 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:

8. Ideas I haven’t tested yet

These came up while I was looking at the VAE stage. None of them are verified:

Wrapping up

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.

TAGGED_NODES: