CMF build for cortiq from the FewStep checkpoint: one 13 GB file, 24 s a clip with sound on an RTX 3060

#2
by infosave - opened

Thanks for the single-file checkpoints! We packed minimax_h3_tiny_17b_fewstep_ref2va_bf16.safetensors from this repository into one CMF file for cortiq 0.9.17, a Rust inference engine with no Python and no ML framework: https://huggingface.co/infosave/MiniMax-H3-Tiny-FewStep-cmf

  • One file, h3tiny-17b-fewstep-clipproj4b-q4tp.cmf, 13.0 GB: the DiT (attention and FFN at 4 bits, the rank-8 adaLN and both time embedders as released), a 4-bit Qwen3-VL-4B prompt encoder with its vision tower and ClipProj, the video VAE and the stereo audio decoder.
  • The MeanFlow time embedding is evaluated per row: emb_t(t) + emb_r(r βˆ’ t), with the next point of linspace(1, 0, steps + 1) on the video shift for the target rows and r = t for the reference rows. Six steps by default, four work.
  • Text to video, and Ref2VA: --ref girl.ppm --ref garden.ppm with <Picture 1> / <Picture 2> in the prompt.
512Γ—288, 39 frames, 4 steps 768Γ—448, 73 frames, 6 steps, 2 references
RTX 3060 12 GB, CUDA 24.1 s 144.7 s
RTX 3060 12 GB, Vulkan 34.7 s β€”
MacBook Air M4 24 GB, Metal 148 s β€”

The whole DiT fits a 12 GB card (peak 10.5–11.4 GiB on the RTX 3060).

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

The output is an MJPEG AVI with the stereo soundtrack inside. Prebuilt binaries for Linux, macOS and Windows are on the releases page; without --features cuda the same command runs over Vulkan, and on a Mac over Metal. The weights stay under the MiniMax H3 Community License.

Sign up or log in to comment