DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to generate a 4-step audio-video clip from a text prompt with DMAD

Run the DMAD 4-step LoRA on MiniMax-H3 to turn one text prompt into a 5.2 s video with stereo audio.

Short answer: Run conda create -n dmad_h3 python=3.12 -y, then run conda activate dmad_h3; then 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 run pip install -r requirements.txt. All steps.

  • Top pick
  • Content
  • Advanced
  • 3 hours
  • From the README
  • Any agent

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

  1. Run conda create -n dmad_h3 python=3.12 -y, then run conda activate dmad_h3.
  2. 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 run pip install -r requirements.txt.
  3. 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)
  4. Run hf download ZhengmingYu/DMAD --include "minimax_h3/*_critic.safetensors" --local-dir ckpt after running mkdir -p ckpt.
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer