Model card: speed against v1.1.0, size against BF16, quality, quick start
Browse files
README.md
CHANGED
|
@@ -17,15 +17,75 @@ tags:
|
|
| 17 |
- paiton
|
| 18 |
---
|
| 19 |
|
| 20 |
-
# MiniMax H3 Ref2VA
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
These are the weights for the native MiniMax H3 Ref2VA runner in
|
| 23 |
-
[paiton-vllm-plugin](https://github.com/Eliovp-BV/paiton-vllm-plugin/tree/main/models/MiniMax-H3) (v1.2).
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
| Folder | Content | Size |
|
| 31 |
|---|---|---:|
|
|
@@ -37,10 +97,7 @@ They only work with that runner: the files are packed for its kernels, not for d
|
|
| 37 |
The text encoder (Qwen3-VL-32B, layers 0 to 49 in FP8, and the vision tower, 27.2 GB) is the same as the one of
|
| 38 |
MiniMax H3 Image, so it is not stored twice: the runner downloads it from the `te/` folder of
|
| 39 |
[EliovpAI/MiniMax-H3-Image-FP8-Paiton-RDNA4](https://huggingface.co/EliovpAI/MiniMax-H3-Image-FP8-Paiton-RDNA4/tree/b33b88f27c8919ca05632ccde801087796d603dd/te), pinned by revision and SHA-256.
|
| 40 |
-
|
| 41 |
-
One preset needs 50.9 GB, text encoder included. Speed and quality against the BF16 model are in the plugin's
|
| 42 |
-
[BENCHMARKS.md](https://github.com/Eliovp-BV/paiton-vllm-plugin/blob/main/models/MiniMax-H3/BENCHMARKS.md). The
|
| 43 |
-
changes to each file are in `MODIFICATIONS.md`.
|
| 44 |
|
| 45 |
## License
|
| 46 |
|
|
|
|
| 17 |
- paiton
|
| 18 |
---
|
| 19 |
|
| 20 |
+
# MiniMax H3 Ref2VA in FP8: video with sound on one R9700
|
| 21 |
+
|
| 22 |
+
Send a prompt and 1 to 9 reference pictures (or one reference video), and get back a 5.2-second 864×480 clip with
|
| 23 |
+
stereo sound in **30 seconds**, on one Radeon AI PRO R9700 (32 GB, 300 W).
|
| 24 |
|
| 25 |
These are the weights for the native MiniMax H3 Ref2VA runner in
|
| 26 |
+
[paiton-vllm-plugin](https://github.com/Eliovp-BV/paiton-vllm-plugin/tree/main/models/MiniMax-H3) (v1.2). The runner is
|
| 27 |
+
compiled HIP code for RDNA4, with no PyTorch, diffusers or ComfyUI inside. You call it over HTTP or from a ComfyUI node.
|
| 28 |
+
|
| 29 |
+
## Numbers
|
| 30 |
+
|
| 31 |
+
The original BF16 release is 144 GB, and its transformer alone (66.3 GB) is twice the memory of the card. This build
|
| 32 |
+
needs 50.9 GB on disk for one preset and peaks at 24.7 to 26.8 GiB of VRAM.
|
| 33 |
+
|
| 34 |
+
Time per request on one R9700 with the 4-step preset (Turbo4), 124 frames at 24 fps, from the prepared inputs to the
|
| 35 |
+
finished MP4. v1.1.0 is our earlier ComfyUI build with a W4A8 denoiser
|
| 36 |
+
([EliovpAI/MiniMax-H3-W4A8-Paiton-RDNA4](https://huggingface.co/EliovpAI/MiniMax-H3-W4A8-Paiton-RDNA4)) on the same
|
| 37 |
+
card.
|
| 38 |
+
|
| 39 |
+
| Request | v1.2 (these weights) | v1.1.0 | Faster by |
|
| 40 |
+
|---|---:|---:|---:|
|
| 41 |
+
| 864×480, 1 picture | **30.4 s** | 50.6 s | 1.7× |
|
| 42 |
+
| 864×480, 3 pictures | **33.4 s** | 85.3 s | 2.6× |
|
| 43 |
+
| 864×480, 9 pictures | **44.3 s** | 178.7 s | 4.0× |
|
| 44 |
+
| 1344×768, 9 pictures | **114.1 s** | 258.4 s | 2.3× |
|
| 45 |
+
| 864×480, 1 video with its soundtrack | **203.8 s** | not measured | |
|
| 46 |
+
| 864×480, 1 picture, 8 steps (Turbo8) | **51.4 s** | 109.2 s | 2.1× |
|
| 47 |
+
|
| 48 |
+
Peak VRAM for one picture at 864×480 went from 30.6 GiB (v1.1.0) to 24.8 GiB. The server loads the weights once when
|
| 49 |
+
it starts (76 s in our test, including a SHA-256 check of every file) and keeps them in memory between requests.
|
| 50 |
+
|
| 51 |
+
Quality, compared with the BF16 model in diffusers (MI355X, same prompts, references, seed and starting noise). CLIP-T
|
| 52 |
+
scores how well the clip matches its prompt:
|
| 53 |
+
|
| 54 |
+
| Request | CLIP-T, BF16 | CLIP-T, these weights |
|
| 55 |
+
|---|---:|---:|
|
| 56 |
+
| 864×480, 1 picture | 29.52 | 29.77 |
|
| 57 |
+
| 864×480, 3 pictures | 34.68 | 34.35 |
|
| 58 |
+
| 864×480, 9 pictures | 26.31 | 25.70 |
|
| 59 |
+
| 1344×768, 9 pictures | 25.80 | 25.71 |
|
| 60 |
+
| 864×480, 1 video | 29.87 | 29.86 |
|
| 61 |
|
| 62 |
+
Over 15 clips (two seeds, both presets) the frames have a mean similarity of 0.932 (CLIP-I) and 0.871 (DINOv2) to the
|
| 63 |
+
same frames of the BF16 clip, where 1.0 is the same image. With nine references the subjects are all there but can
|
| 64 |
+
stand in other places than in the BF16 clip. Method and limits:
|
| 65 |
+
[BENCHMARKS.md](https://github.com/Eliovp-BV/paiton-vllm-plugin/blob/main/models/MiniMax-H3/BENCHMARKS.md#quality-against-the-bf16-model).
|
| 66 |
+
|
| 67 |
+
## Run it
|
| 68 |
+
|
| 69 |
+
```sh
|
| 70 |
+
git clone --depth 1 https://github.com/Eliovp-BV/paiton-vllm-plugin.git
|
| 71 |
+
cd paiton-vllm-plugin
|
| 72 |
+
PAITON_DETACH=1 ./models/MiniMax-H3/native/launch.sh http
|
| 73 |
+
docker logs -f paiton-minimax-h3-v12 # wait for "READY http://..."; the first start downloads the weights
|
| 74 |
+
curl -o panda.mp4 -F image=@panda.png \
|
| 75 |
+
-F prompt='The red panda from <Picture 1> walks through a sunlit forest. Audio: birds and a stream.' \
|
| 76 |
+
http://127.0.0.1:30000/v1/videos/generations
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
The runner downloads these files on first use and checks each one against the SHA-256 in its `checkpoints.lock.json`,
|
| 80 |
+
so you don't need to download anything by hand. For ComfyUI, copy the `paiton_h3v_client` node from the plugin into
|
| 81 |
+
`custom_nodes`; it sends the job to the server, so ComfyUI itself can run on the CPU.
|
| 82 |
+
|
| 83 |
+
You need one R9700 with nothing else on it, Docker, 51 GB of disk for one preset, and about 41 GB of free host RAM for
|
| 84 |
+
the fastest text-encoder path (with less, the runner reads the text encoder from disk instead).
|
| 85 |
+
|
| 86 |
+
## Files
|
| 87 |
+
|
| 88 |
+
The files only work with this runner: they are packed for its kernels, not for diffusers or ComfyUI.
|
| 89 |
|
| 90 |
| Folder | Content | Size |
|
| 91 |
|---|---|---:|
|
|
|
|
| 97 |
The text encoder (Qwen3-VL-32B, layers 0 to 49 in FP8, and the vision tower, 27.2 GB) is the same as the one of
|
| 98 |
MiniMax H3 Image, so it is not stored twice: the runner downloads it from the `te/` folder of
|
| 99 |
[EliovpAI/MiniMax-H3-Image-FP8-Paiton-RDNA4](https://huggingface.co/EliovpAI/MiniMax-H3-Image-FP8-Paiton-RDNA4/tree/b33b88f27c8919ca05632ccde801087796d603dd/te), pinned by revision and SHA-256.
|
| 100 |
+
The changes to each file are in `MODIFICATIONS.md`.
|
|
|
|
|
|
|
|
|
|
| 101 |
|
| 102 |
## License
|
| 103 |
|