L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Données et recherche · SKILL.md

mmaudio

mmaudio

Route MMAudio video-to-audio, text-to-audio, data preparation, CUDA training, and evaluation workflows.

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: mmaudio description: "Route MMAudio video-to-audio, text-to-audio, data preparation, CUDA training, and evaluation workflows." disable-model-invocation: true metadata: disco-role: operating license: MIT

MMAudio

Use this repo skill when a task involves MMAudio, the PyTorch project for synchronized audio generation from video and/or text. It is an operating guide for future agents: it distills the repository's install, model assets, CLI/API, training, data-preparation, and evaluation behavior without requiring the agent to reopen the original source tree for normal use.

First checks

  1. Confirm the task is about MMAudio-style audio generation, video-to-audio, text-to-audio, the MMAudio model variants, training feature memmaps, or the repo's batch-evaluation/onset tooling.
  2. Check whether the user needs a real model run. Real inference may download multi-GB model assets and is GPU/MPS-preferred; training/evaluation paths are CUDA/DDP-oriented.
  3. If a checkout or package install is present, run scripts/check_mmaudio_env.py for a safe import/backend/config sanity check. It does not download weights or run a model.
  4. Read references/repo-provenance.md before deciding whether this skill is stale for a newer checkout.

Route map

User intentRead this
Generate audio for one prompt/video, build a demo.py command, use Gradio, or call mmaudio.eval_utils.generatesub-skills/inference/SKILL.md
Partition audio, validate captions/clip manifests, plan CLIP/Synchformer/VAE feature extraction, or inspect TensorDict memmap schemassub-skills/data-preparation/SKILL.md
Launch or debug DDP training, bounded smoke runs, checkpoint/weights resume, EMA synthesis, or Hydra training overridessub-skills/training/SKILL.md
Run batched generation for AudioCaps/VGGSound/MovieGen-style evaluation data or compute onset metricssub-skills/evaluation/SKILL.md

Shared references

Installation and environment baseline

MMAudio is a Python package named mmaudio and requires Python 3.9+. The repository documentation recommends a Miniforge/Conda-style environment on Ubuntu. Install a CUDA-capable PyTorch stack first when GPU workflows are in scope, then install the package in editable mode:

python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 --upgrade
python -m pip install -e <MMAudio checkout>

The package metadata declares dependencies such as torchcodec, huggingface_hub, hydra-core, gradio, open_clip_torch, av, timm, tensordict, librosa, torchdiffeq, and nitrous-ema. Training and the built-in metric/sample path also depend on the external av_bench package from the MMAudio authors' av-benchmark project.

Model families at a glance

VariantModeTypical use
small_16k16 kHzLower sample rate, smaller network, training/evaluation examples.
small_44k44.1 kHzSmaller high-sample-rate generation.
medium_44k44.1 kHzLarger high-sample-rate model.
large_44k44.1 kHzHeavy high-sample-rate model.
large_44k_v244.1 kHzRecommended default for general inference.

Every inference/evaluation variant needs a flow-prediction checkpoint, a VAE, and the Synchformer checkpoint; 16 kHz additionally uses the BigVGAN vocoder file. See the model-assets reference before downloading or debugging weights.

Boundaries and cautions

  • This skill is for operating MMAudio, not for general audio ML, TTS, ASR, or unrelated diffusion models.
  • Full generation, training, and batch evaluation can be expensive and may download large files. Use the bundled command builders and schema checks before launching CUDA work.
  • Do not treat CPU import success as proof that CUDA training, feature extraction, or batch evaluation will work. Those code paths use CUDA/NCCL.
  • The generated helper scripts print or validate commands by default; they do not modify model weights, launch servers, download checkpoints, or start training unless a user separately runs the printed project command.
Skills enregistrées