Instructions to use infosave/MiniMax-H3-Tiny-FewStep-cmf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- cortiq
How to use infosave/MiniMax-H3-Tiny-FewStep-cmf with cortiq:
# one Rust binary, no additional dependencies cargo install cortiq-cli # or a prebuilt binary from github.com/infosave2007/cmf/releases hf download infosave/MiniMax-H3-Tiny-FewStep-cmf --include "*.cmf" --local-dir . ls *.cmf # some repos ship more than one quantization
cortiq animate FILE.cmf --prompt "a corgi in a chef hat flipping a pancake" --out clip.avi
- Notebooks
- Google Colab
- Kaggle
Download README.md from infosave/MiniMax-H3-Tiny-FewStep-cmf: direct link, hf CLI and curl.
- Browser
- Download file 23.2 kB
-
https://huggingface.co/infosave/MiniMax-H3-Tiny-FewStep-cmf/resolve/main/README.md
- Command line
-
hf download hf://infosave/MiniMax-H3-Tiny-FewStep-cmf/README.md
-
curl -L -o README.md https://huggingface.co/infosave/MiniMax-H3-Tiny-FewStep-cmf/resolve/main/README.md
library_name: cortiq
license: other
license_name: minimax-h3-community
license_link: LICENSE
base_model:
- H3-Tiny/MiniMax-H3-Tiny-ComfyUI
base_model_relation: quantized
pipeline_tag: text-to-video
tags:
- cmf
- cortiq
- video
- audio
- text-to-audio-video
- reference-to-video
- few-step
- h3-tiny
- 4-bit
- cuda
- vulkan
- metal
MiniMax-H3-Tiny FewStep — one file, a 12 GB card
H3-Tiny's FewStep student from H3-Tiny/MiniMax-H3-Tiny-ComfyUI (minimax_h3_tiny_17b_fewstep_ref2va_bf16.safetensors) is MiniMax-H3
pruned to 17 B (42 blocks, a narrower FFN) and distilled to six steps (four or more work) with MeanFlow: the model
predicts the average velocity over each step and reads the step's endpoint as well as its start. This repository
packages it as one CMF file for cortiq, a Rust engine with no Python and no ML
framework: the 4-bit DiT, a 4-bit Qwen3-VL-4B prompt encoder with its vision tower and ClipProj, the video VAE and the
stereo audio decoder — 13.0 GB in all.
- The whole DiT fits a 12 GB card. RTX 3060, CUDA: a 512×288 clip of 39 frames with sound in 24 s (4 steps) or 30 s (6 steps); 768×448, 73 frames in 145 s.
- Text to video, or reference pictures to video (Ref2VA). Name the pictures in the prompt as
<Picture 1>,<Picture 2>; without--refit is text-to-video. - CUDA, Vulkan and Metal from the same file.
"<Picture 1> walks into the rainy backyard garden of <Picture 2>, splashing through a puddle in her red rain
boots. She spots the little green frog sitting on the stone, crouches down, her eyes go wide, and she laughs with
delight: "Hello, little frog!" …" — the two pictures above, 768×448, 73 frames, seed 42, six steps, RTX 3060.
With sound: mp4.
Text only, four steps, 512×288 in 24 s: mp4.
Quick start
cargo install cortiq-cli --features cuda
hf download infosave/MiniMax-H3-Tiny-FewStep-cmf h3tiny-17b-fewstep-clipproj4b-q4tp.cmf --local-dir .
# text to video with sound
CMF_GPU=cuda cortiq animate h3tiny-17b-fewstep-clipproj4b-q4tp.cmf \
--prompt "A little girl in a yellow raincoat finds a small green frog in a garden after the rain and laughs." \
--width 512 --height 288 --frames 39 --out clip.avi
# reference pictures (binary PPM: ffmpeg -i girl.jpg girl.ppm)
CMF_GPU=cuda cortiq animate h3tiny-17b-fewstep-clipproj4b-q4tp.cmf \
--ref girl.ppm --ref garden.ppm \
--prompt "<Picture 1> walks into the garden of <Picture 2> and finds the frog on the stone." \
--width 768 --height 448 --frames 73 --out clip.avi
Use cortiq 0.9.17 or later; prebuilt binaries for Linux, macOS and Windows are on the
releases page. Without --features cuda and CMF_GPU=cuda the same
command runs over Vulkan (CMF_GPU=1) on NVIDIA, AMD and Intel cards; on a Mac it runs on Metal. The output is an
MJPEG AVI with the stereo soundtrack inside, and clip.wav beside it.
Options
| option | meaning |
|---|---|
--prompt TEXT |
what happens in the clip; name references as <Picture 1>, <Picture 2> … |
--ref FILE.ppm |
a reference picture (binary P6 PPM), repeatable; it keeps its own aspect ratio at the clip's area |
--width, --height |
multiples of 32, 512×288 by default; the model was trained at a short edge of 768 |
--frames N |
at 24 fps, rounded up to 17k + 5 (39, 56, 73 …); 39 by default |
--steps N |
6 by default (the file's own); 4 is faster, 8 adds detail |
--seed N |
42 by default |
--out FILE.avi |
the clip; the soundtrack also goes to a .wav beside it |
--quality N |
JPEG quality of the AVI's frames, 92 by default |
Speed
Each run is one cortiq animate call with the file above, the time from start to the written AVI.
CUDA · RTX 3060
RTX 3060 (12 GB, limited to 120 W), Core i9-11900K, CUDA (CMF_GPU=cuda):
| clip | steps | references | prompt + pictures | denoising | video decoder | audio decoder | total | peak VRAM |
|---|---|---|---|---|---|---|---|---|
| 512×288, 39 frames | 4 | — | 1.0 s | 13.6 s | 7.1 s | 1.7 s | 24.1 s | 10.5 GiB |
| 512×288, 39 frames | 6 | — | 1.0 s | 20.1 s | 7.1 s | 1.7 s | 30.4 s | 10.5 GiB |
| 512×288, 39 frames | 4 | 2 | 5.2 s | 17.9 s | 7.0 s | 1.7 s | 32.5 s | 10.7 GiB |
| 512×288, 39 frames | 6 | 2 | 5.1 s | 26.3 s | 7.0 s | 1.7 s | 40.9 s | 10.7 GiB |
| 768×448, 73 frames (3 s) | 6 | 2 | 12.7 s | 109.0 s | 18.8 s | 3.0 s | 144.7 s | 11.4 GiB |
The same card with our MiniMax-H3 Turbo small file
(mmh3-turbo-clipproj4b-fl2va-v2-q4tp.cmf, 14.5 GB, four steps): 512×288 in 408 s, 768×448 in 2 201 s — its
20 B DiT does not fit 12 GB.
Vulkan · RTX 3060
The same RTX 3060 over Vulkan (CMF_GPU=1), 512×288, 39 frames: 4 steps, text only — 34.7 s; 6 steps with two
references — 63.2 s; peak 9.4 GiB.
Metal · Apple M4
MacBook Air M4 (24 GB), Metal, 512×288, 39 frames: 4 steps, text only — 148 s (denoising 91.2 s, video decoder 45.9 s); 6 steps with two references — 265 s. The process keeps 5.7 GB resident; the rest of the file stays mapped.
How it was made
cortiq animate-pack --in mmh3-turbo-clipproj4b-fl2va-v2-q4tp.cmf \
--dit minimax_h3_tiny_17b_fewstep_ref2va_bf16.safetensors --quant q4tp \
--out h3tiny-17b-fewstep-clipproj4b-q4tp.cmf
The DiT comes from H3-Tiny/MiniMax-H3-Tiny-ComfyUI
(minimax_h3_tiny_17b_fewstep_ref2va_bf16.safetensors); its attention and FFN projections go to 4 bits (q4tp), its
rank-8 adaLN and both time embedders stay as released, and the runtime evaluates silu(emb_t(t) + emb_r(r − t)) for
every row: the next point of linspace(1, 0, steps + 1) on the video shift (12) for the target, r = t for the
reference rows. The prompt encoder, the vision tower and the decoders are carried over from our Turbo small file.
Verify the download
sha256sum h3tiny-17b-fewstep-clipproj4b-q4tp.cmf # macOS: shasum -a 256
ad11cae8ec95ad3a54b5eaa91d0a5c5fcfc0f202bbb637d2ed2f3445a54301de, 12 995 518 035 bytes.
License and attribution
The weights derive from H3-Tiny/MiniMax-H3-Tiny-ComfyUI
(minimax_h3_tiny_17b_fewstep_ref2va_bf16.safetensors, the H3-Tiny project) and MiniMaxAI/MiniMax-H3 and are distributed under
the MiniMax H3 Community License (LICENSE, NOTICE in this repository), including its territory restrictions
and acceptable-use policy. The files here are modified: the DiT is re-quantized to 4 bits; the prompt encoder is a 4-bit
Qwen3-VL-4B (Apache-2.0) with a ClipProj adapter. The sample reference pictures are from the
H3-Tiny project page. This repository is not made or endorsed by the
H3-Tiny project, MiniMax or Comfy Org.
Документация на русском
FewStep-ученик H3-Tiny из H3-Tiny/MiniMax-H3-Tiny-ComfyUI (minimax_h3_tiny_17b_fewstep_ref2va_bf16.safetensors) — MiniMax-H3,
обрезанная до 17 млрд параметров (42 блока, более узкий FFN) и дистиллированная до шести шагов (работает от
четырёх) методом MeanFlow: модель предсказывает среднюю скорость на шаге и читает не только начало шага, но и его
конец. Здесь она упакована в один файл CMF для cortiq — движка на Rust без
Python и ML-фреймворков: DiT в 4 битах, кодировщик промпта Qwen3-VL-4B в 4 битах с vision-башней и ClipProj, видео-VAE
и стереозвук — 13,0 ГБ.
- DiT целиком помещается в карту на 12 ГБ. RTX 3060, CUDA: 512×288 на 39 кадров со звуком за 24 с (4 шага) или 30 с (6 шагов); 768×448 на 73 кадра — за 145 с.
- Текст → видео или опорные картинки → видео (Ref2VA): картинки передаются через
--refи упоминаются в промпте как<Picture 1>,<Picture 2>; без--ref— видео по тексту. - CUDA, Vulkan и Metal — из одного файла.
Быстрый старт
cargo install cortiq-cli --features cuda
hf download infosave/MiniMax-H3-Tiny-FewStep-cmf h3tiny-17b-fewstep-clipproj4b-q4tp.cmf --local-dir .
# видео со звуком по тексту
CMF_GPU=cuda cortiq animate h3tiny-17b-fewstep-clipproj4b-q4tp.cmf \
--prompt "A little girl in a yellow raincoat finds a small green frog in a garden after the rain and laughs." \
--width 512 --height 288 --frames 39 --out clip.avi
# опорные картинки (бинарный PPM: ffmpeg -i girl.jpg girl.ppm)
CMF_GPU=cuda cortiq animate h3tiny-17b-fewstep-clipproj4b-q4tp.cmf \
--ref girl.ppm --ref garden.ppm \
--prompt "<Picture 1> walks into the garden of <Picture 2> and finds the frog on the stone." \
--width 768 --height 448 --frames 73 --out clip.avi
Нужен cortiq 0.9.17 или новее; готовые сборки для Linux, macOS и Windows — на
странице релизов. Без --features cuda и CMF_GPU=cuda та же команда
работает через Vulkan (CMF_GPU=1) на картах NVIDIA, AMD и Intel, на Mac — через Metal. Результат — AVI (MJPEG) со
стереодорожкой внутри и clip.wav рядом.
Параметры
| параметр | что делает |
|---|---|
--prompt ТЕКСТ |
что происходит в клипе; опорные картинки — <Picture 1>, <Picture 2> … |
--ref FILE.ppm |
опорная картинка (бинарный P6 PPM), можно несколько; сохраняет свои пропорции при площади клипа |
--width, --height |
кратны 32, по умолчанию 512×288; модель обучалась с короткой стороной 768 |
--frames N |
24 кадра в секунду, округляется вверх до 17k + 5 (39, 56, 73 …); по умолчанию 39 |
--steps N |
по умолчанию 6 (из файла); 4 быстрее, 8 детальнее |
--seed N |
по умолчанию 42 |
--out FILE.avi |
клип; звук также пишется в .wav рядом |
--quality N |
качество JPEG кадров AVI, по умолчанию 92 |
Скорость
Каждый прогон — один вызов cortiq animate с этим файлом, время от старта до записанного AVI.
CUDA · RTX 3060
RTX 3060 (12 ГБ, ограничение 120 Вт), Core i9-11900K, CUDA (CMF_GPU=cuda):
| клип | шаги | картинки | промпт и картинки | денойзинг | видеодекодер | аудиодекодер | всего | пик VRAM |
|---|---|---|---|---|---|---|---|---|
| 512×288, 39 кадров | 4 | — | 1,0 с | 13,6 с | 7,1 с | 1,7 с | 24,1 с | 10,5 ГиБ |
| 512×288, 39 кадров | 6 | — | 1,0 с | 20,1 с | 7,1 с | 1,7 с | 30,4 с | 10,5 ГиБ |
| 512×288, 39 кадров | 4 | 2 | 5,2 с | 17,9 с | 7,0 с | 1,7 с | 32,5 с | 10,7 ГиБ |
| 512×288, 39 кадров | 6 | 2 | 5,1 с | 26,3 с | 7,0 с | 1,7 с | 40,9 с | 10,7 ГиБ |
| 768×448, 73 кадра (3 с) | 6 | 2 | 12,7 с | 109,0 с | 18,8 с | 3,0 с | 144,7 с | 11,4 ГиБ |
Наш малый файл MiniMax-H3 Turbo
(mmh3-turbo-clipproj4b-fl2va-v2-q4tp.cmf, 14,5 ГБ, четыре шага) на той же карте: 512×288 — 408 с, 768×448 —
2 201 с: его DiT на 20 млрд в 12 ГБ не помещается.
Vulkan · RTX 3060
Та же RTX 3060 через Vulkan (CMF_GPU=1), 512×288, 39 кадров: 4 шага по тексту — 34,7 с; 6 шагов с двумя
картинками — 63,2 с; пик 9,4 ГиБ.
Metal · Apple M4
MacBook Air M4 (24 ГБ), Metal, 512×288, 39 кадров: 4 шага по тексту — 148 с (денойзинг 91,2 с, видеодекодер 45,9 с); 6 шагов с двумя картинками — 265 с. Процесс держит в памяти 5,7 ГБ, остальное остаётся отображённым файлом.
Как сделан файл
cortiq animate-pack --in mmh3-turbo-clipproj4b-fl2va-v2-q4tp.cmf \
--dit minimax_h3_tiny_17b_fewstep_ref2va_bf16.safetensors --quant q4tp \
--out h3tiny-17b-fewstep-clipproj4b-q4tp.cmf
DiT взят из H3-Tiny/MiniMax-H3-Tiny-ComfyUI
(minimax_h3_tiny_17b_fewstep_ref2va_bf16.safetensors): его проекции внимания и FFN переведены в 4 бита (q4tp),
adaLN ранга 8 и оба временных эмбеддера остались как в релизе, а среда исполнения считает silu(emb_t(t) + emb_r(r − t)) для каждой строки: для цели — следующая точка linspace(1, 0, steps + 1) на видео-сдвиге (12), для опорных
строк r = t. Кодировщик промпта, vision-башня и декодеры взяты из нашего малого файла Turbo.
Проверка загрузки
sha256sum h3tiny-17b-fewstep-clipproj4b-q4tp.cmf # macOS: shasum -a 256
ad11cae8ec95ad3a54b5eaa91d0a5c5fcfc0f202bbb637d2ed2f3445a54301de, 12 995 518 035 байт.
Лицензия и происхождение
Веса получены из H3-Tiny/MiniMax-H3-Tiny-ComfyUI
(minimax_h3_tiny_17b_fewstep_ref2va_bf16.safetensors, проект H3-Tiny) и MiniMaxAI/MiniMax-H3 и распространяются по
MiniMax H3 Community License (LICENSE, NOTICE в этом репозитории), включая её территориальные ограничения и
правила допустимого использования. Файлы изменены: DiT переквантован в 4 бита, кодировщик промпта — Qwen3-VL-4B в
4 битах (Apache-2.0) с адаптером ClipProj. Примеры опорных картинок — со
страницы проекта H3-Tiny. Репозиторий не сделан и не одобрен проектом
H3-Tiny, MiniMax или Comfy Org.
中文文档
H3-Tiny/MiniMax-H3-Tiny-ComfyUI 中的 H3-Tiny FewStep 学生模型(minimax_h3_tiny_17b_fewstep_ref2va_bf16.safetensors)是将 MiniMax-H3
剪枝到 17B(42 个块、更窄的 FFN)并用 MeanFlow 蒸馏到 6 步(4 步及以上可用)的模型:它预测每一步的平均速度,
同时读取该步的起点和终点。本仓库把它打包成一个 CMF 文件,供不依赖 Python 和
机器学习框架的 Rust 引擎 cortiq 使用:4 位 DiT、带视觉塔和 ClipProj 的 4 位 Qwen3-VL-4B 提示词编码器、视频 VAE 和
立体声音频解码器,共 13.0 GB。
- 整个 DiT 可放入 12 GB 显卡。 RTX 3060,CUDA:512×288、39 帧带声音的视频 24 秒(4 步)或 30 秒(6 步); 768×448、73 帧 145 秒。
- 文本生成视频,或参考图生成视频(Ref2VA): 用
--ref传入图片,并在提示词中写<Picture 1>、<Picture 2>; 不加--ref即为文本生成视频。 - 同一个文件支持 CUDA、Vulkan 和 Metal。
快速开始
cargo install cortiq-cli --features cuda
hf download infosave/MiniMax-H3-Tiny-FewStep-cmf h3tiny-17b-fewstep-clipproj4b-q4tp.cmf --local-dir .
# 文本生成带声音的视频
CMF_GPU=cuda cortiq animate h3tiny-17b-fewstep-clipproj4b-q4tp.cmf \
--prompt "A little girl in a yellow raincoat finds a small green frog in a garden after the rain and laughs." \
--width 512 --height 288 --frames 39 --out clip.avi
# 参考图(二进制 PPM:ffmpeg -i girl.jpg girl.ppm)
CMF_GPU=cuda cortiq animate h3tiny-17b-fewstep-clipproj4b-q4tp.cmf \
--ref girl.ppm --ref garden.ppm \
--prompt "<Picture 1> walks into the garden of <Picture 2> and finds the frog on the stone." \
--width 768 --height 448 --frames 73 --out clip.avi
需要 cortiq 0.9.17 或更高版本;Linux、macOS 和 Windows 的预编译程序见发布页面。
去掉 --features cuda 和 CMF_GPU=cuda,同一命令可在 NVIDIA、AMD 和 Intel 显卡上通过 Vulkan(CMF_GPU=1)运行,
在 Mac 上通过 Metal 运行。输出为内含立体声音轨的 MJPEG AVI,旁边另有 clip.wav。
参数
| 参数 | 含义 |
|---|---|
--prompt 文本 |
片段内容;参考图写作 <Picture 1>、<Picture 2> …… |
--ref FILE.ppm |
参考图(二进制 P6 PPM),可重复;在片段面积下保持自身宽高比 |
--width、--height |
32 的倍数,默认 512×288;模型训练时短边为 768 |
--frames N |
24 fps,向上取整到 17k + 5(39、56、73 ……);默认 39 |
--steps N |
默认 6(文件自带);4 更快,8 细节更多 |
--seed N |
默认 42 |
--out FILE.avi |
输出片段;音轨同时写入旁边的 .wav |
--quality N |
AVI 帧的 JPEG 质量,默认 92 |
速度
每次运行为一次 cortiq animate 调用(使用上述文件),计时从启动到写完 AVI。
CUDA · RTX 3060
RTX 3060(12 GB,功耗限制 120 W),Core i9-11900K,CUDA(CMF_GPU=cuda):
| 片段 | 步数 | 参考图 | 提示词与图片 | 去噪 | 视频解码器 | 音频解码器 | 总计 | 显存峰值 |
|---|---|---|---|---|---|---|---|---|
| 512×288,39 帧 | 4 | — | 1.0 秒 | 13.6 秒 | 7.1 秒 | 1.7 秒 | 24.1 秒 | 10.5 GiB |
| 512×288,39 帧 | 6 | — | 1.0 秒 | 20.1 秒 | 7.1 秒 | 1.7 秒 | 30.4 秒 | 10.5 GiB |
| 512×288,39 帧 | 4 | 2 | 5.2 秒 | 17.9 秒 | 7.0 秒 | 1.7 秒 | 32.5 秒 | 10.7 GiB |
| 512×288,39 帧 | 6 | 2 | 5.1 秒 | 26.3 秒 | 7.0 秒 | 1.7 秒 | 40.9 秒 | 10.7 GiB |
| 768×448,73 帧(3 秒) | 6 | 2 | 12.7 秒 | 109.0 秒 | 18.8 秒 | 3.0 秒 | 144.7 秒 | 11.4 GiB |
同一显卡上我们的 MiniMax-H3 Turbo 小文件
(mmh3-turbo-clipproj4b-fl2va-v2-q4tp.cmf,14.5 GB,4 步):512×288 需 408 秒,768×448 需 2 201 秒——其 20B 的 DiT
放不进 12 GB。
Vulkan · RTX 3060
同一张 RTX 3060 通过 Vulkan(CMF_GPU=1),512×288、39 帧:4 步纯文本 34.7 秒;6 步加两张参考图 63.2 秒;
显存峰值 9.4 GiB。
Metal · Apple M4
MacBook Air M4(24 GB),Metal,512×288、39 帧:4 步纯文本 148 秒(去噪 91.2 秒,视频解码器 45.9 秒); 6 步加两张参考图 265 秒。进程常驻内存 5.7 GB,其余部分保持文件映射。
制作方式
cortiq animate-pack --in mmh3-turbo-clipproj4b-fl2va-v2-q4tp.cmf \
--dit minimax_h3_tiny_17b_fewstep_ref2va_bf16.safetensors --quant q4tp \
--out h3tiny-17b-fewstep-clipproj4b-q4tp.cmf
DiT 来自 H3-Tiny/MiniMax-H3-Tiny-ComfyUI
(minimax_h3_tiny_17b_fewstep_ref2va_bf16.safetensors):其注意力与 FFN 投影量化为 4 位(q4tp),秩为 8 的 adaLN
和两个时间嵌入器保持原样;运行时为每一行计算 silu(emb_t(t) + emb_r(r − t)):目标行取视频偏移(12)上
linspace(1, 0, steps + 1) 的下一个点,参考行取 r = t。提示词编码器、视觉塔和解码器沿用我们的 Turbo 小文件。
校验下载
sha256sum h3tiny-17b-fewstep-clipproj4b-q4tp.cmf # macOS:shasum -a 256
ad11cae8ec95ad3a54b5eaa91d0a5c5fcfc0f202bbb637d2ed2f3445a54301de,12 995 518 035 字节。
许可证与来源
权重源自 H3-Tiny/MiniMax-H3-Tiny-ComfyUI
(minimax_h3_tiny_17b_fewstep_ref2va_bf16.safetensors,H3-Tiny 项目)和 MiniMaxAI/MiniMax-H3,按 MiniMax H3 Community
License(本仓库的 LICENSE、NOTICE)分发,包括其地域限制和可接受使用政策。文件已修改:DiT 重新量化为 4 位;
提示词编码器为带 ClipProj 适配器的 4 位 Qwen3-VL-4B(Apache-2.0)。示例参考图来自
H3-Tiny 项目页面。本仓库并非由 H3-Tiny 项目、MiniMax 或 Comfy Org 制作或认可。










