Text-to-Image
MLX
MiniMax H3
Safetensors
English
apple-silicon
macos
image-to-image
image-editing
image-generation
Instructions to use devin-lai/MiniMax-H3-Image-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use devin-lai/MiniMax-H3-Image-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download devin-lai/MiniMax-H3-Image-mlx --local-dir MiniMax-H3-Image-mlx
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
File size: 8,787 Bytes
3da88e3 c138412 3da88e3 9cb13f7 3da88e3 c138412 3da88e3 9cb13f7 3da88e3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | ---
library_name: mlx
pipeline_tag: text-to-image
license: other
license_name: minimax-h3-image-community-license-agreement
license_link: https://huggingface.co/devin-lai/MiniMax-H3-Image-mlx/blob/v0.4.1/LICENSE-model
base_model: MiniMaxAI/MiniMax-H3-Image
language:
- en
tags:
- mlx
- apple-silicon
- macos
- minimax-h3
- text-to-image
- image-to-image
- image-editing
- image-generation
- safetensors
inference: false
---
# MiniMax H3 Image on Apple silicon
**Generate and edit images locally with MLX. Choose one weight variant; reuse the shared components.**
**Measured on M5 Pro / 64 GiB:** tuned warm 2048 × 2048 generation took
**62.49 s with BF16** or **64.05 s with lossless packed BF16**. These are
historical tests with cached conditioning and resident weights; see the
[measurement details](#measured-on-m5-pro--64-gib).
[View the generated showcase and comparisons](https://huggingface.co/devin-lai/MiniMax-H3-Image-mlx-examples)
*The gallery contains AI-generated images from recorded local runs. It uses
manual access review under the model license. [Prompts, seeds and precision
settings](examples/README.md) are also documented here.*
A community port of [MiniMax-H3-Image](https://huggingface.co/MiniMaxAI/MiniMax-H3-Image)
by [Devin Lai](https://huggingface.co/devin-lai). Native MLX/Metal inference,
all six distilled PDD steps, reference-image editing, lossless BF16 packing
and optional Q8/Q4 weights. Model operators run locally on your Mac.
[Quick start](#quick-start) · [Choose weights](#choose-your-download) ·
[Usage](USAGE.md) · [Benchmarks](BENCHMARKS.md) ·
[Collection](https://huggingface.co/collections/devin-lai/minimax-h3-image-apple-silicon-mlx-6af64fcd11d7d7a3b17e11d8) · [Repository map](MODEL_INDEX.md) · [简体中文](README.zh-CN.md)
**Start with packed12 on a sufficiently large Mac.** It reconstructs the
original BF16 weight bits before computation. It is storage compression,
not quantization. The tested machine is an **M5 Pro with 64 GiB**;
smaller-memory Macs have not been qualified.
## Choose your download
The main repository contains inference code, documentation and comparison
records. Generated images are in the separately gated example gallery. Each
linked model repository contains one weight choice.
The downloader fetches that choice and its required shared files, then reuses
the same pinned upstream text encoder across variants.
| Variant | Variant weights¹ | Choose it for |
|---|---:|---|
| **[Lossless packed BF16](https://huggingface.co/devin-lai/MiniMax-H3-Image-mlx-packed12)** | **27.23 GiB** | Recommended exact storage choice; original BF16 payloads |
| [Original BF16](https://huggingface.co/devin-lai/MiniMax-H3-Image-mlx-bf16) | 61.73 GiB | Unmodified complete transformer storage |
| [Q8](https://huggingface.co/devin-lai/MiniMax-H3-Image-mlx-q8) | 19.83 GiB | Smaller core; image and detail changes |
| [Q4](https://huggingface.co/devin-lai/MiniMax-H3-Image-mlx-q4) | 10.50 GiB | Smallest core; stronger fidelity tradeoffs |
¹ Excludes [shared VAE, support tensors, heads and tables](https://huggingface.co/devin-lai/MiniMax-H3-Image-mlx-shared),
the separate **roughly 62 GiB text encoder**, Python dependencies and runtime
memory. BF16 already includes native support; the downloader omits its redundant
shared copy.
Download sizes are not RAM requirements. Q8/Q4 quantize main and refiner
attention/MLP weights with MLX affine groups of 64; FP32 precision islands stay
native. Quantization has not established a generation-speed advantage here.
**License and access:** model weights retain MiniMax's community agreements,
including territory and commercial restrictions; they are not unrestricted
open-source weights. Model components use manual access review.
[Status and license details](RELEASE.md).
## Quick start
Use an Apple silicon Mac, native arm64 Python 3.12 and
[uv](https://docs.astral.sh/uv/getting-started/installation/). Request access
on the selected model and shared-component pages before downloading weights:
```bash
uv venv --python 3.12 .venv
source .venv/bin/activate
uv pip install huggingface-hub==0.36.2
hf auth login
hf download devin-lai/MiniMax-H3-Image-mlx --revision v0.4.1 \
--include 'h3_mlx/*' config.json pyproject.toml LICENSE NOTICE \
--local-dir h3-runtime
uv pip install './h3-runtime[native]'
h3-mlx doctor
h3-mlx download --variant packed12 --model-dir models/packed12
h3-mlx generate --model models/packed12 \
--text-encoder models/packed12/text_encoder \
'An editorial photograph of a cobalt perfume bottle on pale stone' \
--width 2048 --height 2048 --seed 731 --output outputs/bottle.png
```
The first download is large because the native text encoder is separate.
Reuse an existing encoder with `--text-encoder-path /path/to/text_encoder`.
Use `--variant q8`, `q4` or `bf16` to select another weight repository.
Each output includes a JSON record with the prompt, seed, schedule, hardware,
precision, timings and memory. [Offline use, tuning and Python API](USAGE.md).
For reference-image editing, add `--image bottle.png` and describe the edit
using `<Picture 1>`. The implementation accepts up to sixteen ordered inputs;
the recorded edit cohort validates one reference. Detailed English prompts are
recommended; the runtime does not silently expand them.
## Measured on M5 Pro / 64 GiB
| Weight storage | Warm control | Warm tuned | Latency reduction | Max sampled parent footprint¹ |
|---|---:|---:|---:|---:|
| BF16 | 65.83 s | **62.49 s** | **5.07%** | 40.50 GiB |
| Lossless packed BF16 | 66.42 s | **64.05 s** | **3.57%** | **32.56 GiB** |
Results are for **2048 × 2048**, all six steps, on an M5 Pro with 16 GPU
cores, 64 GiB unified memory and MLX 0.32.4. Each time is the geometric mean
of product and portrait medians, with three alternating repeats per case.
Conditioning was cached and weights resident; startup and downloads are
excluded. A fresh CLI process includes loading and should not be expected to
match these warm timings.
¹ Maximum sampled parent-process physical footprint over four candidate cases,
including one edit; it is not the minimum required RAM. The BF16 and packed
figures come from separate campaigns. Every output pixel and saved denoising
tensor matched its corresponding MLX control in those four-case suites.
These results do not establish CUDA pixel identity or a universal speed claim.
The tuned profiles use compiled blocks and VAE, bounded prefetch, an exact
Q/K kernel and an M5-specific matrix tile. The default quick start does not
enable all of these options. [Copy the tested tuning flags](USAGE.md#measured-exact-tuning)
and see the [method, raw receipts and limitations](BENCHMARKS.md). Q8 and Q4
reduce weight storage but change images; their downloadable exports have no
established generation-speed advantage.
## Inspect, reproduce, contribute
- [Original examples and provenance](examples/README.md): authentic outputs,
prompts, seeds and reference images, clearly identified as AI-generated.
- [Native / Q8 / Q4 comparisons](https://huggingface.co/devin-lai/MiniMax-H3-Image-mlx-examples/blob/v0.4.0/comparisons/product/stack.png): inspect the
lettering and detail changes before choosing compact weights.
- [Technical guide](docs/TECHNICAL.md): precision rules, resident Python
pipelines, reference-image processing and experiment reproduction.
- [Validation](docs/VALIDATION.md): release software checks and fresh inference.
- [Community discussions](https://huggingface.co/devin-lai/MiniMax-H3-Image-mlx/discussions):
share a reproducible issue or result with your variant, prompt, seed, canvas,
Mac configuration and generated JSON record.
If the project helps you, like the variant you use and
[follow devin-lai](https://huggingface.co/devin-lai) for future Mac releases.
Measured contributions and examples from more Apple silicon configurations
are welcome. No hosted inference service is bundled.
## Attribution and terms
Independent community MLX adaptation by Devin Lai, based on MiniMax's released
weights and the inspected SGLang/Transformers inference contracts. This is not
an official MiniMax release or endorsement. Powered by MiniMax-H3-Image.
**Runtime code:** [Apache-2.0](LICENSE).
**Image weights and derivatives:** [MiniMax-H3-Image Community License Agreement](LICENSE-model).
**Separate text encoder:** [MiniMax H3 Community License Agreement](LICENSE-text-encoder).
The published agreements exclude the EU, UK, Republic of Korea and US absent
separate permission and include commercial, redistribution and acceptable-use
conditions. Access review does not grant additional rights.
[Modifications](docs/MODIFICATIONS.md) · [NOTICE](NOTICE) ·
[Pinned source provenance](provenance/sources.json).
|