Nihui Brings MiniMax H3 to Any GPU Without CUDA or Python
A Vulkan port of MiniMax H3 drops the CUDA, PyTorch and Python stack, letting any Vulkan GPU generate video with stereo audio locally.
Takeaways
- Nihui released h3-ncnn-vulkan, a Vulkan runtime for MiniMax H3 joint video and stereo audio generation.
- Runs as a standalone binary on AMD, Intel, Apple and NVIDIA GPUs, with no CUDA, PyTorch or Python needed.
- Reports roughly 2.7x faster DiT steps than stable-diffusion.cpp on an RTX 3060 at 832x480, 124 frames.
- Supports T2VA, FL2VA keyframes, and Ref2VA with up to 9 images, 3 videos and 3 audio references.
- Ships portable BF16 modulation banks, LoRA merging, and pi-H3 2 and 4 step sampling presets.
- Weights hosted on Hugging Face, full model folder about 206 GB.
Nihui, the developer behind a long line of ncnn-vulkan ports for image and super-resolution models, has released a standalone runtime for MiniMax H3. The h3-ncnn-vulkan project implements the full text-to-video-and-audio pipeline with Tencent’s lightweight ncnn inference framework and Vulkan compute shaders. It gives developers a native executable for Vulkan-capable AMD, Intel, Apple, and NVIDIA GPUs without requiring a CUDA-based machine-learning stack.
One transformer, synchronized media
MiniMax H3, also marketed as Hailuo 3.0, is a 33-billion-parameter omni-modal transformer that accepts combinations of text, images, video, and audio. According to MiniMax’s model overview, it can generate clips with stereo audio at resolutions up to 2K and durations up to 15 seconds.
The H3-Omni-Transformer jointly predicts compressed video and audio representations during generation. Separate variational autoencoders, or VAEs, then convert those representations into frames and sound. H3-AudioVAE compresses each 32 kHz audio channel into latent tokens at 40 Hz, decodes the left and right channels independently, and recombines them as stereo output.
- Model size: 33 billion parameters
- Inputs: Text, images, video, and audio
- Outputs: Video with synchronized stereo audio
- Published limits: Up to 2K resolution and 15 seconds
Portable runtime, substantial download
The reference implementation uses PyTorch, CUDA, and a Python environment. h3-ncnn-vulkan packages inference in a native executable that requires no CUDA, PyTorch, Python, or external FFmpeg installation. It runs the text encoder and diffusion transformer, or DiT, in BF16 precision while using FP32 for the vision components and VAEs.
Vulkan provides the common GPU interface across supported platforms. The project publishes release archives for Linux, macOS, and Windows; Apple Silicon support runs through MoltenVK. Actual compatibility and performance still depend on the device’s Vulkan driver and available memory.
The executable is compact compared with the weights it loads. The project publishes the following approximate storage requirements:
| Component set | Approximate size |
|---|---|
| Base T2VA models | 128 GB |
| Vision and spatial VAE assets for keyframes | Additional 2.9 GB |
| Ref2VA transformer assets | Additional 70 GB |
| Complete model folder | About 206 GB |
From release archive to WebM
- Download the release archive for the target operating system.
- Fetch the required model shards from the Hugging Face mirror linked by the project.
- Select only the assets needed for T2VA, FL2VA, or Ref2VA to limit disk use.
- Run the command-line executable with a prompt, resolution, frame count, and output path.
After the executable and base model shards are in place, this POSIX shell command requests a 384-by-256 clip containing 56 frames and writes the result to a WebM file:
h3-ncnn-vulkan -p "A red ceramic teapot slowly rotates on a pale oak table in daylight." \
-s 384,256 -f 56 -o teapot.webm
The runtime exposes three workflows for different source material:
- T2VA: Generates video and stereo audio from a text prompt.
- FL2VA: Interpolates between first and last frames, with optional intermediate keyframes for longer joined clips.
- Ref2VA: Accepts up to nine images, three videos, and three audio clips. Prompts refer to them with tokens such as
<Picture i>,<Video i>, and<Audio i>.
Project benchmarks favor the port
The project compares its DiT transformer step time with the Vulkan backend in stable-diffusion.cpp. For a T2VA workload at 832 by 480 pixels, 124 frames, and a 14 GiB RAM budget, it reports the following results:
| Runtime | RX 9060 XT, seconds per step | RTX 3060, seconds per step |
|---|---|---|
stable-diffusion.cpp, Vulkan |
83.81 | 375.59 |
h3-ncnn-vulkan |
59.98 | 138.93 |
Dividing the published step times yields an approximately 1.4-fold speedup on the AMD card and a 2.7-fold speedup on the NVIDIA card. In the FL2VA workflow at the same resolution, increasingly aggressive rough-mode presets reduce the RX 9060 XT’s reported step time from 30.97 to 23.96 seconds.
These project-reported figures cover DiT steps rather than complete generation time. End-to-end latency also includes model loading, disk streaming, text and reference encoding, VAE decoding, audio processing, and file output.
Memory controls shape feasibility
Consumer GPU support depends on weight streaming, tiled VAE processing, and a planner that walks the ncnn graph before inference. Weight streaming reduces resident memory by loading parameters from disk as needed, while tiling divides VAE work into smaller regions to lower peak allocation.
The project estimates that a 1280-by-736 clip with 124 frames needs about 1.75 GiB of system RAM and 10 GiB of VRAM. A 1920-by-1088 clip with 243 frames raises estimated VRAM use to roughly 41 GiB. Running --estimate-memory produces a stage-by-stage plan without generating a clip.
The --rough-mode option reuses attention key and value tensors across denoising steps, reducing repeated transformer work. Four presets range from exact computation to aggressively frozen text and reference attention, with stronger reuse introducing more approximation.
A separate modulation cache stores BF16 conditioning values for the default 50-point sampling schedule. The loader checks each cache against a model fingerprint to reject incompatible banks, allowing valid caches to move between machines. Custom schedules require --bake-modulations, which computes a matching cache from the modulation producer.
Adapters collapse the sampling loop
The --lora option loads adapters with individual scale values. The project lists support for 360 Orbit, Character Swap, Fight Flow, Larry H3 Turbo, Pika H3 Flex Turbo, Sentinel7 Extreme Realism, and the pi-H3 two-step and four-step adapters.
Base H3 uses 49 denoising evaluations for a five-second request. The distilled pi-H3 variants reduce that sampling loop to two or four transformer passes, cutting the dominant compute requirement for compatible generations.
Licenses and deployment fit
A separate evaluation in the Kandinsky 6.0 paper reports that participants preferred MiniMax H3 on a majority of the assessed criteria across both tested modes. The paper identifies statistically significant margins in overall visual quality, artifacts, motion realism, visual prompt adherence, overall audio quality, sound-prompt adherence, and task completion.
The runtime’s native packaging suits desktop applications, local command-line tools, C++ systems, and self-hosted generation services that need broader GPU support. Large model downloads, disk-streaming performance, and steep VRAM growth at high resolutions remain material deployment constraints.
The h3-ncnn-vulkan source code uses the Apache 2.0 license, while the model weights remain subject to the MiniMax H3 Community License. Applications that redistribute or provide access to the weights need to evaluate that license separately. The project README also describes further features and optimizations as work in progress.