135 GB of open 4K generation: H3-Image runs, but do the math first

Late on 10 November, MiniMax pushed H3-Image weights to Hugging Face. A 33.1B dense DiT, six sampling steps, no CFG, native 4096x4096. The official claim is ten seconds per image at roughly five times the speed of comparable resolution on the market. Coverage two days later put a number on it: about two tenths of a yuan per image.

Then you open the file list. DiT 66.28 GB, text encoder 66.71 GB, VAE 2.34 GB. Call it 135 GB. That number decides what this post is about. Not how good the output looks, but who can actually run it.

The text encoder is bigger than the image model, and that is deliberate

H3-Image reuses the Qwen3-VL encoder from MiniMax-H3, about 33.4B parameters, and the DiT reads hidden states from its 50th layer. Why put a vision-language model in the text-encoder slot: orthographic CAD views, exploded mechanical assemblies, an exam paper full of integrals. Those tasks need spatial and physical common sense, not just prompt parsing. The parameters earn their keep.

The cost lands in engineering. The encoder lives in the MiniMax-H3 repository under text_encoder, 66.71 GB on its own. model_index.json points there, so downloading H3-Image alone produces a model that will not load. That is not a broken path, it is the design. SGLang cookbook counts 135 GB in total, the vLLM recipe 127 GB, and the difference is whether the 17.9 GB NVFP4 prompt expander, MiniMax-H3-Image-PE, stays resident.

How many tokens is 16 megapixels

The VAE downsamples 16x, so 4096x4096 becomes a 256x256 latent. Patchify by 2x2 and you get 128x128, which is 16,384 tokens, each covering 32x32 pixels. For scale: 1024x1024 is 1,024 tokens, 2048x2048 is 4,096. The sequence is 16 times longer.

Dense single-stream DiT, no MoE sparsity, all 50 layers engaged. If attention scaled squarely on a sequence 16 times longer, the cost would be 256 times, not 16. Two other numbers pull it back: six steps, no CFG.

A typical SDXL-class pipeline runs 30 steps with two forward passes each, conditional and unconditional, so 60 NFEs. H3-Image runs 6. Sixty against six, a tenfold gap, and that is where ten seconds for 4K comes from. Not a small model. A short path.

Six steps without CFG is a constraint, not a default

The model card is blunt: num_inference_steps may be omitted or equal 6, guidance_scale may be omitted or equal 1, anything else returns an error. negative_prompt is unsupported and rejected.

Together those three rules remove your ability to exclude. No watermark, no extra fingers, no garbled text, all of that has to go into a positive description now instead of a negative list. For industrial asset generation that is a real loss of control. For creative work it hurts less, since the pitch of this model is that many of those defects never get drawn.

There is a knock-on effect. A model distilled to six steps is more sensitive to prompt length and structure. MiniMax asks for a full English description capped at 4,096 tokens, and short prompts get expanded by the PE model. Run locally without PE and the work of writing long, specific prompts becomes yours. That is a habit change, not a tuning problem.

The licence deserves a look before the VRAM does

It is the MiniMax-H3-Image Community License Agreement, not an OSI licence. Three clauses matter:

  • Territory: the United States, European Union, United Kingdom and South Korea are excluded. The text says use in those regions is not authorised.
  • Revenue: more than one million US dollars annualised, or offering hosted services to third parties, requires separate written authorisation.
  • Attribution: commercial products must display MiniMax-H3-Image in the interface.

The second clause is the one that catches SaaS teams. Wrap the model in an API and sell access, and even below the revenue threshold the hosted-services language already applies. This is not a clause that reads like a risk. It is a stated boundary of the grant.

Step one: finish the math before the download

Standard library, no dependencies. It prints the latent sequence lengths, the quantised footprint and the break-even between two rental models. The numbers come from the model card and public list prices, so swap in your own:

VAE_DOWN, PATCH = 16, 2
DIT_B, ENC_B = 33.1, 33.4
VRAM = {"bf16": 2.0, "fp8": 1.0, "nvfp4": 0.55}


def seq_tokens(w, h):
    return (w // VAE_DOWN // PATCH) * (h // VAE_DOWN // PATCH)


for w, h in [(1024, 1024), (2048, 2048), (4096, 4096), (6272, 2688)]:
    print("%5dx%-4d %8.1f MP  latent %6d token  %3d x" %
          (w, h, w * h / 1e6, seq_tokens(w, h), seq_tokens(w, h) // 1024))

for q, bpp in VRAM.items():
    total = DIT_B * bpp + ENC_B * bpp + 2.34
    print("%-6s total %6.1f GB  on one 80GB card: %s" %
          (q, total, "fits" if total < 78 else "does not fit"))

Output, trimmed:

 4096x4096   16.8 MP  latent  16384 token   16 x
 6272x2688   16.9 MP  latent  16464 token   16 x
bf16   total  135.3 GB  on one 80GB card: does not fit
fp8    total   68.8 GB  on one 80GB card: fits
nvfp4  total   38.9 GB  on one 80GB card: fits

FP8 is the practical route today. At 68.8 GB it sits inside the 78 GB safety line with little room for KV and activations, so a 16K latent sequence needs watching. NVFP4 leaves far more headroom at the cost of precision and community tooling.

Step two: two rental models, opposite conclusions

API = 0.06879          # per 4K image on the API
RATE = 5.50            # 2x H100 on demand, per hour
SEC_PER_IMAGE = 10     # official 4K latency
UTIL = 0.55            # real utilisation after load, queue and tuning

for n in (900, 3000, 12000):
    hours = n * SEC_PER_IMAGE / 3600 / UTIL
    print("%6d img/mo  API $%8.2f  local %5.1f gpu-hr $%8.2f" %
          (n, n * API, hours, hours * RATE))

print("resident: $%.0f/mo, break-even at %d images" % (730 * RATE, 730 * RATE / API))

Output:

   900 img/mo  API $   61.91  local   4.5 gpu-hr $   25.00
  3000 img/mo  API $  206.37  local  15.2 gpu-hr $   83.33
 12000 img/mo  API $  825.48  local  60.6 gpu-hr $  333.33
resident: $4015/mo, break-even at 58366 images

For batch work, local wins at every volume: 4.5 GPU-hours and 25 dollars against 62 dollars for 900 API images. For a resident service you need 1,945 images a day before the rented hardware pays for itself, and most teams never get there. One model, two accounting models, two opposite answers. This is the part such write-ups usually smooth over.

One hidden cost is not in the model: the 135 GB download and cold start. On-demand GPUs mean pulling weights on every launch unless you bake an image, and that can flip the batch case entirely, especially for a job that runs once a week.

The download and serve commands that actually work

The model card recommends SGLang, vLLM-Omni, diffusers and ComfyUI. Step one is two repositories, step two is serving:

from huggingface_hub import snapshot_download

snapshot_download("MiniMaxAI/MiniMax-H3-Image", local_dir="h3-image")
snapshot_download("MiniMaxAI/MiniMax-H3", local_dir="h3-image",
                  allow_patterns=["text_encoder/*"])
du -sh h3-image    # expect ~130GB; 68GB means the encoder is missing

SGLang has the shortest command, and the only multi-GPU example in the card:

pip install -U sglang

sglang serve --model-path MiniMaxAI/MiniMax-H3-Image --host 0.0.0.0 --port 30000 --warmup-mode off

# BF16 does not fit on one card; sequence-parallel across four
sglang serve --model-path MiniMaxAI/MiniMax-H3-Image --host 0.0.0.0 --port 30000 --warmup-mode off --num-gpus 4 --ulysses-degree 4

--ulysses-degree is sequence parallelism: the 16K latent sequence is split across four cards, each holding a full copy of the weights and a different slice of tokens. On long sequences that beats tensor parallelism. If you want 4K on a single 80 GB card, take FP8 or the Comfy-Org repack and accept the precision loss and version lag.

When not to self-host

Under two thousand images a month, or a one-off campaign batch, call the API. At 0.069 dollars an image, two thousand costs 138 dollars, an order of magnitude below the fixed cost of rented hardware, with no 135 GB download and no week of tuning.

If you need negative prompts for tight exclusion, this model cannot do it. Do not force it. If you plan to resell the capability to customers in the US or the EU, talk to MiniMax about a licence before you write code.

Everyone else, the ones with GPUs, volume, and a need for a base they can modify, this is about the only open option that outputs 16 megapixels directly. A 33.1B dense transformer, six steps, no CFG. That combination is not a parameter race. It is inference cost pushed down to something commercially usable. The weights are open. What you are buying is time.

Further reading

Feedback

Diese Seite ist rein front-end: kein Backend, keine Konten. Feedback geht an GitHub Issues, Discussions oder E-Mail.

Füge dies in das Issue oder die E-Mail ein, um mir zu helfen, das Problem zu finden – es enthält nichts von dem, was du eingegeben hast

Auch:Vorhandenes Feedback ansehen · Feedback per E-Mail (ohne GitHub-Konto):278975598@qq.com