HeadlinesBriefing favicon HeadlinesBriefing.com

GitHub h3.c: MiniMax H3 Inference for Mac Silicon

Hacker News •
×

The GitHub project antirez/h3.c develops a MiniMax H3 inference engine optimized for Mac computers using Apple Silicon. It focuses on Metal hardware acceleration for tasks like prompt-to-video/audio generation and conditional framing. The tool builds incrementally, starting with metadata, then adding Metal block parity, prompt encoding, and reference mechanisms. Current work emphasizes M3 Max and M5 Max performance optimizations.

Users can build via Hugging Face snapshots and FFmpeg. Commands like `./h3 --info` check model layout, while interactive sessions allow prompt-based video generation with persistent conditioning. Features include first/last-frame anchors and Ref2VA image/video references. Performance depends on settings like `--steps` (denoising passes) and `--layers` (transformer blocks).

Optimizations for speed vs. quality involve adjusting `--steps` (4–50 passes), `--layers` (40–50 blocks), and `--reuse` (Di T evaluations). Aggressive presets reduce time but may alter composition. Token reduction and int8 row FC2 activation improve efficiency on M5 Max. Benchmarks show four-pass denoising achieves 0.556 SSIM on M5 Max, far faster than reference modes.

The project supports graphical terminals for real-time previews and saves outputs to session directories. Mixed conditioning types (first/last frames vs. Ref2VA) require careful ordering. Future work targets broader Metal efficiency and user workflow integration.