MiniMax-H3-Image โ€” MLX-Serve 4-bit

Six 2048x2048 samples from this pack: a jewel beetle, a highland cow, a bakery sign, a fisherman, pixel art and dumplings

4-bit affine (group size 64) conversion of MiniMaxAI/MiniMax-H3-Image for mlx-serve, running natively on Apple Silicon: text to image and editing with up to 16 reference images, in six transformer forwards and no classifier-free guidance.

Self-contained: the DiT with its six per-step output heads, the MiniMax-H3 text encoder (which the upstream release loads from MiniMaxAI/MiniMax-H3), the image VAE and the tokenizer in one directory.

This is the smaller pack, and the one the mlx-serve app offers: it fits a 32 GB Mac, and at 2048x2048 it is hard to tell from the 8-bit one.

At a glance

4-bit 8-bit
Repo ddalcu/MiniMax-H3-Image-MLX-Serve-4bit ddalcu/MiniMax-H3-Image-MLX-Serve-8bit
Download 36.9 GB 65.8 GB
Peak memory, M1 to M4 15.9 GB 27.4 GB
Peak memory, M5 with 64 GB or more 22.7 GB 27.6 GB
Recommended Mac 32 GB or more 48 GB or more
2048x2048 text to image, M5 Ultra 13 s 15 s
Edit with one reference, M5 Ultra 22 s 24 s

Peak memory is MLX's own peak over one 2048x2048 image and one edit (/props peak_bytes). On an M5 with 64 GB or more, mlx-serve runs the DiT as int8 by default, which is why that row differs; everywhere else the 4-bit weights run as they are. The stages load one at a time (text encoder, then DiT, then VAE), so the peak is the largest stage, not the sum.

Files

File Size Precision
transformer.safetensors 18.7 GB 4-bit affine, group size 64 (260 matrices); 271 small tensors dense
text_encoder.safetensors 15.8 GB 4-bit affine, group size 64; the 50 layers the DiT reads
image_vae.safetensors 2.3 GB original f32

Use it

In the mlx-serve app: Create โ–ธ Image, pick MiniMax-H3-Image, Download, then Generate. Add a source image to edit it.

From the command line:

mlx-serve pull ddalcu/MiniMax-H3-Image-MLX-Serve-4bit
mlx-serve --model ~/.mlx-serve/models/ddalcu/MiniMax-H3-Image-MLX-Serve-4bit --serve --port 8080

# text to image
curl -s http://127.0.0.1:8080/v1/images/generations -H 'Content-Type: application/json' \
  -d '{"prompt": "A highland cow in misty hills at golden hour, photorealistic", "size": "2048x2048", "seed": 7}'

# edit: the source is <Picture 1>, references follow as <Picture 2>, <Picture 3>, ...
curl -s http://127.0.0.1:8080/v1/images/generations -H 'Content-Type: application/json' \
  -d '{"prompt": "Make the bicycle in <Picture 1> bright yellow", "mode": "edit", "image": "<base64>"}'

The answer is OpenAI's images shape (data[0].b64_json, a PNG).

  • Six sampling steps, fixed: omit steps. guidance_scale, LoRAs and variations are refused by name.
  • size: each side 16 to 6272. A request smaller than min_generation_area (default 2048x2048) is generated on a canvas of that area at its aspect and resized back, as the upstream pipeline does. The model is trained up to about 16 megapixels (4096x4096, 6272x2688).
  • Edits: image plus up to 15 ref_images, 16 pictures in all; the result keeps the source's size.

Modifications

These are MODIFIED files: see MODIFICATIONS.md.

License

Powered by MiniMax-H3-Image. Licensed under the MiniMax-H3-Image Community License Agreement -- see LICENSE and NOTICE, both included here.

Territorial restriction. The Agreement defines the Applicable Territory as worldwide EXCLUDING the European Union, the United Kingdom, the Republic of Korea and the United States of America, and prohibits use, reproduction, modification, distribution and display outside it. Check whether your jurisdiction permits you to use these files before downloading them.

Downloads last month
326
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for ddalcu/MiniMax-H3-Image-MLX-Serve-4bit

Quantized
(45)
this model