minimax-h3-bf16 / README.md
lpalbou's picture
Card and notice: every change to the released weights, tested sizes as emulations, quality by video and audio (mlx-gen 0.40.1)
5d09122 verified
|
Raw History Blame Contribute Delete
7.89 kB
---
license: other
license_name: minimax-h3-community-license-agreement
license_link: https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/main/LICENSE
extra_gated_prompt: "This repository is an unquantized derivative of MiniMaxAI/MiniMax-H3, distributed under the MiniMax H3 Community License Agreement. That license applies only within its Applicable Territory, which excludes the European Union, the United Kingdom, the Republic of Korea and the United States of America, and it includes use restrictions and an Acceptable Use Policy."
extra_gated_fields:
I have read and agree to the MiniMax H3 Community License Agreement and its Acceptable Use Policy: checkbox
I will use this model and its outputs only within the Applicable Territory of that license: checkbox
base_model: MiniMaxAI/MiniMax-H3
pipeline_tag: text-to-video
library_name: mlx-gen
tags:
- mlx
- mlx-gen
- mflux
- apple-silicon
- bf16
- minimax-h3
- video-generation
- text-to-video
- image-to-video
- audio-video-generation
- synchronized-audio-video
---
# minimax-h3-bf16
This repository contains MLX-Gen saved weights for `MiniMaxAI/MiniMax-H3`. The checkpoint is designed for local Apple Silicon inference with [`mlx-gen`](https://github.com/lpalbou/mlx-gen).
It uses the mflux/MLX saved-weight layout. It is not a Diffusers or Transformers `from_pretrained()` checkpoint.
## Source Model
Original model: [`MiniMaxAI/MiniMax-H3`](https://huggingface.co/MiniMaxAI/MiniMax-H3).
## License and Access
This checkpoint is a prepared derivative (a Model Derivative) of `MiniMaxAI/MiniMax-H3` and is distributed under the [MiniMax H3 Community License Agreement](https://huggingface.co/MiniMaxAI/MiniMax-H3/blob/main/LICENSE). A copy of the agreement is included as `LICENSE`, with the required `NOTICE` file. The agreement governs; the points below are a reading aid, not legal advice.
- **Territory.** The license applies only within its Applicable Territory: worldwide, excluding the European Union, the United Kingdom, the Republic of Korea and the United States of America. Using, reproducing or distributing the model, its derivatives or its outputs there is not covered by the agreement; MiniMax offers a separate licensing path for those territories.
- **Use restrictions.** Section V and the Acceptable Use Policy (Exhibit A) apply to this checkpoint and to what it generates, including the rule against using the model or its outputs to improve another AI model and the duty to disclose machine-generated content.
- **Commercial use.** Section IV requires displaying "MiniMax H3" in a commercial product that uses it, and prior written authorization from MiniMax above USD 20 million of yearly revenue.
- **Redistribution.** Pass on the `LICENSE` and `NOTICE` files, state your own modifications, and bind recipients to the same restrictions.
- **Modified files.** The weight files here are not the original release: they were converted to the MLX-Gen saved-weight layout: the Qwen3-VL conditioner is kept to the 50 decoder layers the model reads, and the video VAE is stored in BF16 where the release holds it in fp32.
The Qwen3-VL-32B conditioner inside MiniMax-H3 is licensed under Apache 2.0. The lightx2v Turbo adapters are not part of this repository; `mlxgen download` fetches them from [`lightx2v/Minimax-h3-Turbo`](https://huggingface.co/lightx2v/Minimax-h3-Turbo) under their own terms.
## Quantization
This checkpoint holds the MiniMax-H3 weights as released, in the MLX-Gen layout and without quantization: the 16-bit transformer, the 50 Qwen3-VL conditioner layers the model conditions on with their vision tower, the video VAE converted from the released fp32 to the BF16 it runs at, and the fp32 audio VAE. It is the reference the quantized packages are measured against.
See the [MLX-Gen quantization docs](https://github.com/lpalbou/mlx-gen/blob/main/docs/quantization.md) for those measurements.
## Compatibility
Requires `mlx-gen >= 0.40.0`: the memory figures and the `--stream-blocks` option on this card are those of that release.
Generated with `mlx-gen 0.40.0`.
Use the `mlxgen` command and Python import path for new MLX-Gen projects.
## Usage
The package holds the base MiniMax-H3 weights and no adapter. `--base-model` selects the schedule at run time:
| `--base-model` | Schedule | Default canvas | Steps |
| --- | --- | --- | --- |
| `minimax-h3-turbo-544p` | lightx2v 8-step Turbo adapter trained at 544p (recommended) | `960x544` | 8 |
| `minimax-h3-turbo` | lightx2v 8-step Turbo adapter trained at 768p | `1344x768` | 8 |
| omitted | Base model, no adapter | `1344x768` | 50 |
Pass the same `--base-model` to `mlxgen download` so the matching Turbo adapter is cached; generation never downloads. Do not pass `--quantize` when loading this package. Add `--image-path keyframe.png` for first-frame image-to-video. Each run writes one MP4 with 24 fps video and a synchronized stereo AAC track. This repository is gated: accept the license terms on its Hugging Face page, then sign in with `hf auth login` before `mlxgen download`.
Choose the package and the mode by the unified memory of the Mac. Each cell is the peak memory of a run and, where it was tested, the smallest Mac memory the run completed on:
| Package | Disk | Default | `--low-ram` | `--stream-blocks --low-ram` |
| --- | ---: | --- | --- | --- |
| `AbstractFramework/minimax-h3-bf16` (this package) | 115.1 GiB | 54.4 GiB, ran on 96 GB | 44.0 GiB, ran on 64 GB | 11.7 GiB, ran on 32 GB |
| `AbstractFramework/minimax-h3-8bit` | 64.3 GiB | 37.0 GiB, ran on 48 GB | 26.3 GiB, ran on 36 GB | 11.1 GiB, ran on 24 GB |
| `AbstractFramework/minimax-h3-4bit` | 44.9 GiB | 32.5 GiB | 21.9 GiB, ran on 32 GB | not measured |
Peak memory is the whole-process footprint of one `960x544`, 124-frame, 8-step clip, measured on an Apple M5 Max with 128 GB. The smaller sizes are emulations: the same weights at the same widths ran on that Mac with the difference in RAM locked away for the whole run, not on Macs of those sizes. `--low-ram` tightens the MLX cache to 1 GB and frees the transformer before the decode. `--stream-blocks` reads each transformer block from disk for the length of its call instead of holding the transformer in memory; every step then reads the blocks again, which added about 3% to a step on average from an internal SSD. The three modes produce the same clip. Close other memory-heavy applications on a machine at the low end of a range; longer clips and larger canvases need more.
[MiniMax-H3 memory, speed and quantization](https://github.com/lpalbou/mlx-gen/blob/main/docs/minimax-h3-memory.md) explains what a run holds in memory, lists every tested machine size, and compares each width with the 16-bit weights.
See the [MiniMax-H3 guide](https://github.com/lpalbou/mlx-gen/blob/main/docs/minimax-h3.md) for prompting, sizing, measured runtime and limits.
```bash
python -m pip install -U mlx-gen
mlxgen download --model AbstractFramework/minimax-h3-bf16 --base-model minimax-h3-turbo-544p
mlxgen generate \
--model AbstractFramework/minimax-h3-bf16 \
--base-model minimax-h3-turbo-544p \
--prompt "A red fox trots through fresh powder snow in a birch forest at dawn. Halfway through the clip it stops, ears twitching toward the camera, then bounds forward." \
--soundscape "Soft crunch of paws in dry snow, a faint wind, two distant crow caws." \
--music "Sparse, gentle piano notes, slow tempo." \
--seed 42 \
--metadata \
--output fox.mp4
```
On a Mac with less memory than the default mode needs, add `--low-ram`, and then `--stream-blocks`.
## Attribution
MLX-Gen is based on [mflux](https://github.com/filipstrand/mflux) by Filip Strand and the original mflux contributors. This model card is generated by MLX-Gen so derived checkpoints keep that attribution visible.
Prepared and contributed by [@lpalbou](https://huggingface.co/lpalbou).