Investigation

A Video Model Larger Than the Card's Free Memory: Method and Results

How MiniMax H3's 19.5 GiB pruned int8 diffusion transformer ran on a 24 GB RTX 3090 through ComfyUI 0.33 on 24 August 2026, what the ComfyUI log and a two-second memory sampler show about where its weights sat, the seven runs and their times, the neighbouring services, what the sprite cutter's own records show, and the licence text the note follows in keeping every output off the page.

What was run

On 24 August 2026, between 02:40 and 03:50 UTC, this workspace ran MiniMax H3 on one NVIDIA GeForce RTX 3090 in a machine with about 62 GiB of main memory. The software was ComfyUI 0.33.0 with comfy-aimdo 0.4.13 and PyTorch 2.13.0 built for CUDA 13.0.

The five weight files came from the ComfyUI repackaging of the model on Hugging Face, and each matched the byte count that the repository listed that day. They downloaded in parallel from 02:42:34 to 03:19:46 UTC, 37.2 minutes for 41.38 GiB (44,426,778,463 bytes).

component file bytes GiB
diffusion transformer minimax_h3_fl2va_pruned_int8_convrot.safetensors 20,970,379,616 19.53
text and vision encoder qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors 15,687,142,551 14.61
video decoder minimax_h3_video_vae_fp16.safetensors 5,207,808,496 4.85
audio decoder minimax_h3_audio_vae_fp32.safetensors 605,254,808 0.56
turbo LoRA, 4 steps at 768p minimax_h3_fl2v_turbo_4step_v1.0_768p_comfyui_bf16.safetensors 1,956,192,992 1.82

The graph is the subgraph of ComfyUI's official image to video template for the model as it stood on 18 August, its last change before the trial. The template defaulted to an 8 step turbo LoRA at 8 steps and listed the 4 step 768p LoRA as its alternative, and the trial used that alternative at 4 steps. Every clip was 768 by 768 pixels and 124 frames long, or 5.17 seconds at 24 frames per second with a stereo audio track, and every clip set its first and last frames to the same still of the character.

Why the network fit

The estimate made the day before measured 16.75 GiB free on the card and set it against the diffusion transformer's 19.53 GiB, a shortfall of 2.78 GiB. At 02:40 UTC on the trial day the card had 19,218 MiB (18.77 GiB) free, still less than the network. At start the ComfyUI log reports "DynamicVRAM support detected and enabled", "Enabled pinned memory 57582.0" and "Using async weight offloading with 2 streams". For every clip it then prepares each model for what it calls dynamic loading.

Model MiniMaxH3TEModel_ prepared for dynamic VRAM loading. 14956MB Staged. 0 patches attached. ...
Model MiniMaxH3VideoVAE prepared for dynamic VRAM loading. 4965MB Staged. 0 patches attached. ...
Model MiniMaxH3 prepared for dynamic VRAM loading. 19995MB Staged. 208 patches attached. ...
Model MiniMaxH3AudioVAE prepared for dynamic VRAM loading. 576MB Staged. 0 patches attached. ...

The log names the CPU as the offload device for the text encoder and both decoders but says nothing of where the network's staged weights wait, and two records bound it. A sampler wrote the card's used and free memory, and the memory of four speech services by process id, every two seconds from 03:20:30 to 03:36:54, 473 samples that began between 19 and 38 seconds into the first clip. A second sampler covered the last two runs from 03:38:02 to 03:49:27 in 329 samples. Subtracting the four services from the card's total use leaves ComfyUI, the desktop and anything else, and at every two second sample that remainder was at most 17,704 MiB (17.3 GiB) in the first session, reached at 03:25:25 during the punch clip, and at most 17,493 MiB in the second. The diffusion transformer's file alone is 19,999 MiB. Sampling took 76 to 93 seconds per clip in the log, long enough for a resident network to appear in many samples, so the network was not wholly on the card at any sample in either session. The sampler's column for ComfyUI's own process is empty throughout, so the remainder is an upper bound and not ComfyUI's own figure, and a spike between samples would not appear.

Host memory in use peaked between 55,708 and 58,920 MiB in the six runs that kept a run record, against about 42 GiB available of 62 in the trial's setup record, written before the first clip. A rise of about 34 to 38 GiB, against the 39.5 GiB the log stages per clip, leaves room for most of the staged weights to sit in host memory, though the record does not separate ComfyUI's share.

The documentation of comfy-aimdo 0.4.13, the version loaded, describes "a pytorch VRAM allocator that implements on-demand offloading of model weights when the primary pytorch VRAM allocator comes under pressure". By that documentation, a weight that cannot be placed in card memory is copied into "a temporary regular GPU tensor" for the layer that uses it. Nothing in the trial logged those copies, so streaming from pinned host memory is the reading that the log, the bound and this documentation support together.

The runs

run server reserve in file names seed client s server s peak card use, MiB peak host use, MiB
idle, magenta first 1.5 GiB 1 not recorded 162.17 not recorded not recorded
walk, magenta first 1.5 GiB 2 144.3 143.04 23,841 55,708
punch, magenta first 1.5 GiB 3 133.2 129.83 24,002 58,826
idle, green first 1.5 GiB 4 144.0 141.04 23,944 58,920
punch, green first 1.5 GiB 5 146.8 143.47 23,882 57,465
idle, green, repeat second 5.0 GiB 4 149.1 144.37 23,381 58,592
walk, green second 5.0 GiB 6 144.1 141.61 23,935 56,390

The rows are in run order, and all seven completed: six run records report success, and the log shows the first idle clip executed. Client seconds come from each run record and include a three second poll, while server seconds are the log's "Prompt executed in" line. The first idle clip kept no run record because, as the trial report records, an over broad process kill stopped its client while the server finished the job.

Over the five clips of the first session the times average 146.1 seconds, or 2.43 minutes, with a median of 144.3. Over the six clips, counting the green walk from the second session, they average 145.8 seconds with a median of 144.2, and over all seven runs 146.2 seconds. Each set ranges from 133.2 to 162.2 seconds, the first idle clip counted at its server time. At the five clip mean an eight move character takes about 19.5 minutes of the card before any reroll. The run driver talks only to the local ComfyUI server, so no hosted route was used and the cost in money was zero. MiniMax's pricing page listed MiniMax H3 output at 768P for $0.08 per second on 18 October 2026, about $0.40 for a five second clip, a price not recorded on the trial day.

The neighbours

At 02:40 UTC the card already held a speech recognition server, two Kokoro text to speech servers and a Style Bert VITS2 server, together 4,036 MiB, plus the desktop at about 870 MiB. The recognition server and one Kokoro server held flat in both sessions. The other Kokoro server fell from 2,654 MiB to 360 MiB at 03:32:02, during the fifth clip, and later rose to 1,150 MiB, while the Style Bert VITS2 server rose from 334 MiB to 2,014 MiB at about 03:35, after the five clips had ended, and both held flat in the second session. The sampler records memory per process and nothing else, so it shows each tracked process present at every sample but cannot show a refused allocation.

window reserve in file names minimum free when
first session, all five clips 1.5 GiB 91 MiB 03:25:25, punch
green idle, within the first session 1.5 GiB 116 MiB 03:27:42
repeat of the green idle 5.0 GiB 582 MiB 03:38:48
green walk 5.0 GiB 126 MiB 03:41:22

In the first session 27 of the 473 samples, all inside the five clips, showed less than 1 GiB free, and in the second 9 of 329. The reserve values survive only in file names. With 1.5 GiB in the names, the lowest free memory was 1.4 GiB below that figure. The repeat used the green idle clip's prompt, seed and still, but ran as the first prompt of a fresh server and without saving its 124 frames, so the two are not a controlled comparison. The repeat took 144.37 seconds on the server against 141.04, which is 3.33 seconds or 2.4 percent longer, and its minimum free memory was 582 MiB against 116 MiB. The green walk that followed on the same server reached 126 MiB, so in neither run with 5.0 in the names did the lowest free memory come near 5 GiB.

What the cutter's records show

The frames, clips and sheets were not opened for this note. Figures below come from the sprite cutter's own text reports and the atlas metadata unless marked as the trial report's. The magenta clips used the toolkit's guard sentence word for word, and the green clips moved the backdrop into the opening clause and closed with a longer rule.

toolkit guard (magenta clips):
The background stays a perfectly flat uniform solid magenta at all times - no gradient,
no cast shadow, no ground line, nothing else enters the frame.

hardened rule (green clips, closing sentences):
ABSOLUTE BACKGROUND RULE: the backdrop is one single flat uniform solid chroma-key green,
exactly the same colour in the first frame, in every middle frame and in the last frame.
The background colour NEVER changes hue, brightness or saturation at any point; it does
not shift, tint, flash, fade, cycle or animate; ...

The trial report records that all three magenta clips failed its chroma check and that the hardened rule then held on the green idle, punch and walk clips, and no record of that check survives. By the cutter's reports, the green idle character covered 0.180 of the frame across frames 1 to 121 with a standard deviation of 0.00045, while the green punch ranged from 0.1689 to 0.202. The green walk prompt also asked for a different gait, roughly three full stride cycles where the magenta walk prompt asked for roughly two, so the walk comparison changed more than the backdrop. The trial report also records mean body hues of 307.3, 334.4 and 331.8 degrees for the green idle, walk and punch clips from one byte identical still, with no surviving record of that measurement.

The toolkit's magenta key marks a pixel as background when red plus blue minus twice green exceeds 120 and red and blue both exceed 90, a test that a saturated pink such as red 230, green 100 and blue 180 also passes. On the magenta idle clip, cut unmodified, the cutter's report shows the opaque share falling to between 0.0685 and 0.1268 on 35 of 124 frames, frames 0 to 17 and 107 to 123, a measure that cannot tell a removed backdrop from removed foreground, which the colour test above can also match. The other 89 frames keep an opaque share between 0.888 and 0.897.

In the atlas metadata, built from the green clips at one global scale, all ten idle frames carry a foot offset of 0 pixels and the eight walk frames run from minus 2 to plus 2. Seven of the ten punch frames sit more than 2 pixels off the idle's foot line, six at minus 6, above it, and frame 5 at plus 20, below it. The trial report records that on frame 5 the model drew an arc effect nobody had prompted, whose dark pixels set the baseline the cutter took for the feet.

In the toolkit's sprite_cut.py at its only commit, d1295576 of 17 August 2026, alpha is zero where the background mask is true and 255 elsewhere, and bg_purity is the mean of the background mask plus the mean of alpha above zero. The two masks are complements, so the value is 1.0 on every frame by construction, whether the key matched the backdrop or not. The toolkit's guidance describes a value near 1.0 as a clean key and a lower value as a leak, and the trial's five cutter reports give 1.0 on every frame, the 89 magenta frames that stayed mostly opaque among them.

Quantised builds

Two community repositories on Hugging Face publish GGUF quantisations of the pruned network, and their listings were read on 18 October 2026. Abiray/MiniMax-H3-Pruned-GGUF, created and last modified on 7 August 2026, lists the network from Q8_0 at 20.10 GiB down to Q3_K_M at 8.29 GiB, with Q4_K_M at 10.77 GiB. The woodfireind/MiniMax-H3-GGUF-MiniStack repository, created on 6 August, lists a 10.60 GiB Q4_K_M network. Both existed before the trial, and neither was used or measured here.

The licence

The MiniMax H3 Community License Agreement is dated 2 August 2026, and the model's Hugging Face repository was last modified on 13 August, so the text quoted here is the text published on the trial day. It defines the Applicable Territory as "worldwide, excluding the Excluded Territories", and the Excluded Territories as "the European Union, the United Kingdom, the Republic of Korea and the United States of America". Section V.4 reads: "You may not use, reproduce, modify, distribute, or display the MiniMax H3 Works or any of their Outputs or results outside the Applicable Territory. Any such use outside the Applicable Territory is not authorized by this Agreement." Section III.3 encourages licensees to "publish at least one technical blog post or a public statement describing your experience using MiniMax H3 Works". The repository's licence questions and answers say the hosted API is available globally and that organisations in the excluded territories can apply for a licence. On the repository's licence discussion page, a member of MiniMax's organisation replied on 6 August 2026 to a licensee outside the excluded territories who asked about distributing outputs into them, "Yep, you don't need apply.", and on 13 August to a licensee in an excluded territory who asked about publishing outputs worldwide, "You are allowed for global distribution with attribution only." A later post on that page asked MiniMax to reconcile those replies with Section V.4, and the licence text fetched on 18 October still carries Section V.4. This note follows the licence text, and a public page is readable in the excluded territories, so neither the note nor this companion shows any output of the model.

Limits

One card ran seven generations, with a different seed for each clip and one uncontrolled repeat. The memory bound rests on samples two seconds apart that began partway through the first clip, and on subtracting four tracked services, and the log records no copy of the network's staged weights between host and card beyond a small forced pre-load at each load. The reserve values rest on file names, the chroma counts, hues and frame 5's cause rest on the trial report alone, and the hosted prices are as listed on 18 October.

Reproduction

The trial's text record, beside weights, an install and outputs not described here:

run_clip.py  sample_vram.sh  verify_weights.py
prompts/{idle,walk,punch,idle_green,walk_green,punch_green}.txt
logs/comfyui.log  logs/comfyui-reserve5.log  logs/fetch.start  logs/fetch.done
evidence/{walk,punch,idle_green,punch_green,walk_green,idle_green_r5}.run.json
evidence/*.vram.csv  evidence/session-reserve1.5.vram.csv  evidence/session-reserve5.vram.csv
evidence/weight-sizes.txt  evidence/setup-facts.md
sprites/{idle_asis,idle,walk,walk_noloop,punch}/report.json
Ask About Projects
Hi! I can answer questions about Ashita's projects, the tech behind them, or how this blog was built. What would you like to know?