Who it is forA creator or developer with an 80 GB GPU who wants a quick text-to-audio-video clip from one prompt.
The problemFull MiniMax-H3 sampling uses 50 steps, which is slow for quick drafts of audio-video clips.
The outcomeAn MP4 with H.264 video and AAC audio, written to the output folder with a settings.json file.
What you need first
- A CUDA GPU: 80 GB for the default path, 8 GB and up with --low-vram
- Python 3.12 with conda and PyTorch for CUDA 12.6
- About 170 GB of free disk space for the MiniMax-H3 base components
- A Hugging Face account that has accepted the MiniMax H3 Community License
Steps
- Run
conda create -n dmad_h3 python=3.12 -y, then runconda activate dmad_h3. - Install PyTorch with
pip install torch==2.11.0 torchvision==0.26.0 torchaudio==2.11.0 --index-url https://download.pytorch.org/whl/cu126, then runpip install -r requirements.txt. - Accept the MiniMax H3 Community License on Hugging Face, then run
hf download MiniMaxAI/MiniMax-H3 --local-dir models/MiniMax-H3 --exclude "FL2VA/*" --exclude "Ref2VA/*" --exclude "transformer_ref/*". (inferred, check the README) - Run
hf download ZhengmingYu/DMAD --include "minimax_h3/*_critic.safetensors" --local-dir ckptafter runningmkdir -p ckpt. - Run
python inference.py --model-dir models/MiniMax-H3 --lora ckpt/minimax_h3/dmad_minimax_h3_4step_lora_critic.safetensors --prompt "A polar bear is playing the violin in the snow." --output-dir outputs/polar_bear. (inferred, check the README)
Prompt for your agent
In the Yzmblog/DMAD repo, set up the environment from the README, download the MiniMax-H3 components and the lora_critic checkpoint, then run inference.py with the prompt <your prompt> and --output-dir outputs/<name>. Expected output: an MP4 in outputs/<name>/ with H.264 video and AAC audio. Verify that the file plays and that settings.json exists in the same folder.
Caveat. The MiniMax-H3 download is about 170 GB and the default path expects an 80 GB GPU, so most readers will need the --low-vram path in the next use case.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Yzmblog/DMAD and "Generate a 4-step audio-video clip from a text prompt"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer