MiniMax-H3 ncnn Vulkan implementation

h3-ncnn-vulkan implements MiniMax-H3 using Tencent's ncnn inference framework, supporting text-to-video with audio, first-and-last-frame generation (with the ability to insert multiple intermediate keyframes to create longer videos), and multi-reference generation from images/videos/audio. It outputs WebM or lossless MKV files while simultaneously generating stereo audio. The text encoder and DiT use BF16, weights are automatically streamed from disk, and video VAE computation is chunked. You can first use --estimate-memory to estimate memory and VRAM requirements based on resolution and frame count; the estimation table in the README indicates that 832×480 at 124 frames requires approximately 1664 MiB of RAM and 4992 MiB of VRAM. It also supports loading LoRAs for 360 surround, character replacement, pi-H3 few-step generation, etc. The author measured single-step latency on RX9060XT and RTX3060, finding it shorter than the Vulkan version of stable-diffusion.cpp.

Original title: nihui/h3-ncnn-vulkan

h3-ncnn-vulkan implements MiniMax-H3 using Tencent's ncnn inference framework, supporting text-to-video with audio, first-and-last-frame generation (with the ability to insert multiple intermediate keyframes to create longer videos), and multi-reference generation from images/videos/audio. It outputs WebM or lossless MKV files while simultaneously generating stereo audio. The text encoder and DiT use BF16, weights are automatically streamed from disk, and video VAE computation is chunked. You can first use --estimate-memory to estimate memory and VRAM requirements based on resolution and frame count; the estimation table in the README indicates that 832×480 at 124 frames requires approximately 1664 MiB of RAM and 4992 MiB of VRAM. It also supports loading LoRAs for 360 surround, character replacement, pi-H3 few-step generation, etc. The author measured single-step latency on RX9060XT and RTX3060, finding it shorter than the Vulkan version of stable-diffusion.cpp.

Why it matters It does not depend on CUDA, PyTorch, Python, or FFmpeg, making it usable on AMD GPUs, NVIDIA GPUs, and Macs; weights can be streamed from disk, allowing it to run even with insufficient VRAM.

Stars 266 (+25 / 24h)

Reasons

  • Added 25 stars in the last 24 hours, totaling 266 stars; ranked #11 on Trendshift for the day (indicating attention level only); source code licensed under Apache-2.0, created on 19 11
  • Pre-built ZIP packages are available for Linux, macOS, and Windows, built from source via the repository's release workflow; you can also compile it yourself using CMake

Usage

  • Download the ZIP for your system from Releases, use hf download to fetch models from nihui-szyl/h3-ncnn and place them in models/h3; example text-to-video command: h3-ncnn-vulkan -p "prompt" -s 384,256 -f 56 -o out.webm. Before generating, add --estimate-memory to check memory and VRAM requirements

Risks

  • Weights required for text-to-video are approximately 128 GB, with the full set being about 206 GB; streaming loading also requires tens of GBs of temporary disk space
  • Converted weights are subject to the MiniMax H3 community license; the README states that more features and optimizations are still in progress, and speed comparisons are based on the author's own tests

Open

Trendshift(GitHub Trending 快照)

Explore the latest AI Radar updates