Territorial license: read before requesting access

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

These files are a modified derivative of MiniMax-H3-Image and are distributed under the MiniMax-H3-Image Community License Agreement (see LICENSE and NOTICE in this repository), including its Acceptable Use Policy (Exhibit A). The license only covers the Applicable Territory: worldwide EXCEPT the European Union, the United Kingdom, the Republic of Korea and the United States of America (Excluded Territories). You may not access, use, reproduce, modify, distribute or display these files or their outputs in or into an Excluded Territory. The use restrictions of Section V and Exhibit A apply to you, and you must bind anyone you give access to terms at least as protective. If your (or your affiliates') annualized revenue exceeds US$ 1 million, or if you provide a Hosted Service to third parties, you need prior written authorization from MiniMax (https://platform.minimax.io/console/license). This is an unofficial release, not affiliated with or endorsed by MiniMax.

Log in or Sign Up to review the conditions and access this model content.

MiniMax-H3-Image rapido — ~1.94-bit, runs on one 16 GB GPU

Powered by MiniMax-H3-Image. Unofficial, modified derivative of MiniMaxAI/MiniMax-H3-Image; not affiliated with or endorsed by MiniMax.

What: the 33 B transformer and the Qwen3-VL text encoder of the image model, compressed to ~1.94 bits per weight and run straight from the compressed codes (the matrices are never rebuilt in bf16). Text-to-image and image editing fit a single 16 GB GeForce card; the original needs an 80 GB GPU.

Modified files (License §III.2). Every weight file in text_encoder/ and transformer/ was modified by FardoX: the linear layers were quantized (block-Hadamard rotation + vector GPTQ on the IQ2_XXS grid), the text encoder was truncated to the 50 layers the pipeline reads (the configs are copied unchanged from the original). gerar.py and code/ are new inference code written for these files (details in MODIFIED.txt). The VAE, tokenizer, processor and scheduler are not in this repo: gerar.py downloads them, unchanged, from the original repository (2.36 GB, almost all of it the VAE).

Run — Linux or WSL2, NVIDIA Ampere or newer (sm_80+), driver for CUDA 12.4+, ~20 GB of disk. Tested with Python 3.11. Accept the terms on this page, then log in (hf auth login) or set HF_TOKEN. Then:

pip install torch==2.6.0 torchvision==0.21.0 --index-url https://download.pytorch.org/whl/cu124
pip install transformers==5.8.1 accelerate==1.16.0 safetensors==0.8.0 huggingface_hub==1.33.0 hf_xet pillow \
  "diffusers @ git+https://github.com/huggingface/diffusers@e24786a5d347439a2847be74c4a61405426fbb42"
hf download FardoX/MiniMax-H3-Image-rapido --local-dir MiniMax-H3-Image-rapido
cd MiniMax-H3-Image-rapido
python gerar.py --res 2048 --seed 1003 --saida night_library.png --prompt "A vibrant digital illustration of a fox astronaut sitting on a crescent moon and reading a glowing book, surrounded by floating paper lanterns and tiny stars, painterly brush strokes, rich purple and orange palette, whimsical children's book style, a hand-lettered banner above reading 'NIGHT LIBRARY'."
python gerar.py --res 1536 --seed 4050 --seed-ref 7005 --saida edit.png --imagem examples/edit_ref.png --prompt "In <Picture 1>, change the text on the sign from 'OPEN' to 'CLOSED'. Keep everything else the same."

Each command loads the encoder, encodes, frees it, loads the transformer and the VAE, and writes the PNG. The default mode is --modo i8; --modo f16a16 is the 16-bit option (slower, closer to the reference path); --modo faixa is the bf16 reference path. The seeds above are the ones of our reference run, so these two commands should give back the i8 images we measured. Checked on a fresh RTX 4080 SUPER pod that followed only this card: both images came out bit-identical to our reference run (pixel difference 0), at 1.44 and 2.10 s/step, peak 9.29 and 10.26 GiB. Any prompt, seed and resolution work (tested: 1024, 1536 and 2048 px squares).

Specs (Fact = measured, with N; same 8 prompts and seeds throughout)

  • Transformer (33.1 B parameters): matrices at 1.94 bits/weight, 7.4 GB of codes + 0.2 GB of unquantized norms and embeddings, vs 66 GB in bf16. Text encoder: 67 GB → 9.0 GB on disk, 8.4 GiB on the GPU (vision tower, embeddings and norms stay in bf16).
  • Fits 16 GB (Fact, RTX 4080 SUPER 16 GB, no memory cap): peak 9.3–9.6 GiB allocated while generating (2048² and 1536² edits); the encoder stage peaks at 10.3 GiB. No out-of-memory in any mode.
  • Speed, RTX 4080 SUPER, seconds per diffusion step (median, first image excluded; 6 steps per image):
mode 2048² (N=8) 1024² (N=4) edit 1536² (N=4)
faixa (bf16 reference) 2.57 0.65 3.63
f16a16 (16-bit) 2.17 0.61 3.06
i8 (default) 1.42 0.32 2.06
  • Quality vs the original bf16 model (Fact, N=8, 2048², CLIP ViT-L/14): text-image score 101.3–101.7 % of the original in every mode (N=8 is small: read this as "no measurable loss of prompt adherence", not a gain). Image-image similarity to the original's picture: 0.935 (faixa), 0.933 (f16a16), 0.920 (i8; 95 % CI 0.894–0.944; 0.931 without the image hit by the race described below). The images keep the scene and the request but are not the same picture: composition changes (see the grids below). Edits: 0.992 image-image vs the original's edit (N=4, all three modes).
  • i8 vs faixa: 0.973 image-image (N=8, min 0.868); f16a16 vs faixa: 0.990. The 0.868 (the fisherman) was the first image of its process and was hit by a first-call race in the i8 path (the side stream could read the per-row int8 scales before they were computed), which corrupted the first diffusion step of the first image of every process. It is fixed in this release (code/linearq2.py, marked FIX); the other 7 images give 0.988, and after the fix the fisherman, again as the first image of a process, gives 0.9995 vs faixa (N=1).
  • Known flaw: text inside the image comes out misspelled. "NIGHT LIBRARY" → "NIHT LIBARY", "HAPPY BIRTHDAY" → "HAPY BIRHDAY". Exact-match reading of 24 short texts (EasyOCR): 13/24 faixa, 12/24 f16a16, 14/24 i8. The defect comes from the 2-bit transformer, not from the arithmetic mode. The fox astronaut also loses its space suit.
  • On a big GPU the original is faster per step: on an A100 80 GB the original bf16 takes 1.19 s/step at 2048², the faixa mode 1.40 s (Fact, same card). i8 was not measured on the A100. The value of this release is fitting 16 GB, not beating the original where the original fits.
  • Not tested: RTX 50xx (Blackwell needs a newer torch than 2.6/cu124), cards other than the 4080 SUPER and A100, non-square sizes, more than 6 steps, batch > 1, Windows without WSL.

2048² grid: original, faixa, f16a16, i8x2, i8, faixa2 2048², 6 steps, 8 prompts. Columns: original bf16 (A100), then the compressed model in the modes faixa, f16a16, i8x2, i8 and faixa2 (RTX 4080 SUPER). Note the banner text in row 4. The i8 fisherman (row 1) is the image hit by the first-call race fixed in this release; after the fix it matches the other modes.

encoder grid Rows: original (encoder + transformer in bf16); original encoder + compressed transformer; everything compressed.

Method, briefly. Each linear layer is rotated by a block Hadamard transform and quantized in groups of 8 weights to the 256-point IQ2_XXS grid (vector GPTQ with real-activation Hessians for the encoder), with 4-bit scales per 64 columns and an fp16 scale per row. At inference the input is rotated instead of the weight, and Triton kernels decode the codes on the GPU band by band (faixa, f16a16) or straight into int8 (i8). Files: transformer/v3e-*.q2 and text_encoder/te-layers.*.q2 (safetensors with the codes), *.sha256 to check the download.

License. MiniMax-H3-Image Community License Agreement (LICENSE, verbatim) with the required NOTICE. Use and redistribution only within the Applicable Territory (worldwide except the EU, the UK, the Republic of Korea and the USA), under the Acceptable Use Policy. Revenue above US$ 1 M/year or a Hosted Service needs prior written authorization from MiniMax (§IV.1); commercial products must display "MiniMax-H3-Image" (§IV.2). Images made with these files are AI-generated: disclose it when you publish them (Exhibit A, item 12).

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for FardoX/MiniMax-H3-Image-rapido

Quantized
(45)
this model