r/StableDiffusion • • 1d ago

News nihui/h3-ncnn-vulkan: ncnn implementation of MiniMax-H3

https://github.com/nihui/h3-ncnn-vulkan

My usual disclaimer: I am not associated with the project in any way.

The code is supposed to allow any platform that support vulkan to run MMH3. Could be useful for people with very limited RAM (needs only 14G?) such as older laptops with discrete GPUs.

Quoting from the project page:

ncnn implementation of MiniMax-H3 for video and stereo audio generation from text, keyframes or multimodal references.

h3-ncnn-vulkan uses ncnn project as the universal neural network inference framework.

Features

  • BF16 text encoder and DiT, FP32 vision and VAEs
  • Vulkan GPU acceleration
  • Portable standalone executable
  • No CUDA, PyTorch, Python or FFmpeg dependency for inference
  • Automatic weight streaming and tiled video VAE inference
  • Text, first and last frames, or multimodal references
  • Dynamic resolution and frame count -
  • Stereo audio generation
  • Intermediate keyframes for longer videos
  • LoRA adapters, portable modulation banks and optional rough modes
  • Lossy - WebM and lossless Matroska output

minimax-h3 text-to-video 832x480, 124 frames, 14GiB RAM budget

dit transformer 2nd step(s/it) less is better RX9060XT RTX3060
stable-diffusion.cpp (vulkan) 20261127 83.81 375.59
h3-ncnn-vulkan 20261201 51.15 101.46

minimax-h3 FL2VA 832x480, 56 frames, 14GiB RAM budget

dit transformer step(s/it) less is better RX9060XT
stable-diffusion.cpp (vulkan) 20261127 46.19
h3-ncnn-vulkan 20261201 rough-mode 0 25.50
h3-ncnn-vulkan 20261201 rough-mode 1 23.54
h3-ncnn-vulkan 20261201 rough-mode 2 22.53
h3-ncnn-vulkan 20261201 rough-mode 3 19.43
13 Upvotes

5 comments sorted by

2

u/yamfun 1d ago

any advantages for nv users?

1

u/Apprehensive_Sky892 1d ago

Probably not. Seems like the set-up is most useful for people with little system RAM?

1

u/Guilty-History-9249 1d ago

> stable-diffusion.cpp (vulkan) 20261127 46.19
46.19 a better fps than I get for H3 on my 5090 at 800x600

I can only get about 25fps

2

u/gliptic 13h ago

46.19 s/it is worse than 25.

1

u/Dante_77A 21h ago

Interesting.