{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "yzmblog-dmad--generate-audio-video-clip-with-dmad-lora",
 "repo": "Yzmblog/DMAD",
 "repo_url": "https://github.com/Yzmblog/DMAD",
 "repo_slug": "yzmblog-dmad",
 "title": "Generate a 4-step audio-video clip from a text prompt",
 "page_title": "How to generate a 4-step audio-video clip from a text prompt with DMAD",
 "summary": "Run the DMAD 4-step LoRA on MiniMax-H3 to turn one text prompt into a 5.2 s video with stereo audio.",
 "who": "A creator or developer with an 80 GB GPU who wants a quick text-to-audio-video clip from one prompt.",
 "problem": "Full MiniMax-H3 sampling uses 50 steps, which is slow for quick drafts of audio-video clips.",
 "outcome": "An MP4 with H.264 video and AAC audio, written to the output folder with a settings.json file.",
 "steps": [
  "Run `conda create -n dmad_h3 python=3.12 -y`, then run `conda 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 run `pip 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 ckpt` after running `mkdir -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)"
 ],
 "agent_prompt": "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.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "3 hours",
 "basis": "readme",
 "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.",
 "category": "Content",
 "tags": [
  "Content"
 ],
 "lang": "python",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/yzmblog-dmad/generate-audio-video-clip-with-dmad-lora/",
 "md": "https://dedupedai.com/use-cases/yzmblog-dmad/generate-audio-video-clip-with-dmad-lora/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/yzmblog-dmad--generate-audio-video-clip-with-dmad-lora.json",
 "api_version": "v1"
}
