---
myst:
  html_meta:
    description: "Model card for MiniMax-H3 on AWS Trainium with the vLLM Omni Neuron plugin: supported features, parallel configurations, model config, audio decode, request parameters, FP8 on Trn3, JavisBench accuracy, and known limitations."
    keywords: "MiniMax-H3, model card, text-to-audio-video, first/last-keyframe-to-audio-video, audio, t2va, fl2va, diffusion, vLLM Omni, Neuron, Trainium, trn2, trn3, FP8, quantization, tensor parallelism, context parallelism, sequence parallelism, VAE patch parallelism, JavisBench"
    content_type: "model-card"
    date-modified: "2026-11-17"
---

# MiniMax-H3 Model Card

## Introduction

[MiniMax-H3](https://huggingface.co/MiniMaxAI/MiniMax-H3) is a video diffusion model from
MiniMax. It generates a video with a soundtrack from a text prompt (`t2va`). It can also
start from keyframes (`fl2va`): a first frame, a last frame, or both. The checkpoint is
guidance-distilled. Thus each step is one DiT forward, and a request has no guidance scale and
no negative prompt. This plugin runs it with vLLM Omni on AWS Trainium2 (Trn2) and
Trainium3 (Trn3).

The Neuron pipeline, `NeuronMiniMaxH3Pipeline`, follows the `MiniMaxH3ModularPipeline`
reference of Diffusers: its sequence layout, patchify helpers, scheduler, keyframe recipe and
decode recipe. It does not subclass vLLM Omni's `MiniMaxH3Pipeline`, because that pipeline
carries its own DiT, its own VAE and a separate text-encoder stage. The stage config selects
the Neuron pipeline with `model_class_name: MiniMaxH3ModularPipeline`.

**Compatible model checkpoints:**

| Model | Hugging Face | Hardware | Precision |
|-------|--------------|----------|-----------|
| MiniMax-H3 | [MiniMaxAI/MiniMax-H3](https://huggingface.co/MiniMaxAI/MiniMax-H3) | Trn2, Trn3 | BF16. The audio VAE and the keyframe encoder of the video VAE run in FP32 |
| MiniMax-H3 (FP8 DiT) | [MiniMaxAI/MiniMax-H3](https://huggingface.co/MiniMaxAI/MiniMax-H3) | Trn3 | FP8 (`fp8`) |

> FP8 quantizes the DiT of the BF16 checkpoint to FP8 e4m3 as it loads. See
> [Quantization](#quantization) for setup.

Give the model with `--model-path` of `examples/minimax_h3/run.py` or
`examples/minimax_h3/run_fl2va.py`, as a Hugging Face ID or as a local directory. A local directory needs `model_index.json` and these subfolders:
`tokenizer`, `text_encoder`, `transformer`, `vae`, `audio_vae`, `scheduler` and
`audio_scheduler`. `fl2va` also needs `processor`. With a Hugging Face ID, the pipeline
downloads these files at load.

This plugin runs MiniMax-H3 on the vLLM Omni version 0.32.0.

## Features

Per-model feature availability for MiniMax-H3. See [Configuration](#configuration) for the
settings.

| Category | Feature | Status |
|---|---|---|
| **Generation** | Text-to-Audio-Video (`t2va`) | ✅ |
| | First/Last-Keyframe-to-Audio-Video (`fl2va`) | ✅ |
| | 1344x768 resolution (768P) | ✅ |
| | Up to 124 frames (24 fps) | ✅ |
| | Stereo soundtrack (audio VAE decode) | ✅ |
| **Quantization** | BF16 | ✅ |
| | FP8 (DiT) | ✅ |
| **Parallelism** | Tensor Parallelism (TP) | ✅ |
| | Context Parallelism (CP) | ✅ |
| | Megatron Sequence Parallelism (SP) | ✅ |
| | [VAE Patch Parallelism](https://docs.vllm.ai/projects/vllm-omni/en/latest/design/feature/vae_parallel/) | ✅ |
| **Performance** | AdaLN cache | ✅ |
| | Spatial Tiling (VAE) | ✅ |
| | Temporal Chunking (VAE) | ✅ |
| | Continuous request batching | Limited |
| **Compilation** | torch.compile | ✅ |

**Status legend:**

- ✅ Supported: integrated and tested for MiniMax-H3.
- Limited: accepted, but concurrent requests run serially rather than as a batched forward pass

## Configuration

The sections that follow describe the stage config, the model config, the AdaLN cache, the
audio decode, the environment and the request parameters.

### Parallel configurations

The stage config sets TP with `tensor_parallel_size` and CP with `ring_degree`. Keep
`cfg_parallel_size` at 1.

| Configuration | NeuronCores | Stage config |
|---------------|-------------|--------------|
| TP8 × CP8, with SP | 64 | `examples/minimax_h3/minimax_h3_stage.yaml` |

Megatron sequence parallelism (SP) is layered **within** the TP group (orthogonal to CP): each
TP rank keeps 1/TP of its CP slice through the norms, the modulation and the residuals, and the
attention and the FeedForward all-gather their input rows and reduce-scatter their output. It
is enabled with `model_config.tp_sequence_parallel: true` and requires `tensor_parallel_size > 1`.

The text encoder runs over the TP group, not over all ranks, because the 16 heads of the
vision tower do not divide TP × CP. Each CP replica of the TP group encodes the same prompt.

### Model config

The stage config sets these keys in `model_config`:

| Key | Default | Effect |
|-----|--------------|--------|
| `tp_sequence_parallel` | `true` | Each TP rank keeps 1/TP of its CP slice through the norms, the modulation and the residuals. The attention and the FeedForward all-gather their input rows and reduce-scatter their output. It has no effect at TP1 |
| `adaln_cache` | `true` | Compute the AdaLN projections of a schedule one time, and use them again in each request of that schedule. See [AdaLN cache](#adaln-cache) |

These defaults come from the default stage config, `examples/minimax_h3/minimax_h3_stage.yaml`.
A stage config that leaves out a key gets `false` for it.

### AdaLN cache

The AdaLN projections of a block depend only on the timestep. With `adaln_cache: true`, the
pipeline computes the projections of each step of a schedule one time, on the device. Each
request with the same schedule then uses these tables, and the DiT runs no AdaLN projection
and no gather in a step. The key of the cache holds the video and audio timesteps and whether
the request has keyframes.

The cache keeps one schedule. A 768P `t2va` request with 50 steps uses about 0.87 GB on each
rank. Keyframes add half of that size. A request with other timesteps, or with keyframes after
a request without them, replaces the cached tables.

### Audio decode

The audio VAE runs in FP32, as in Diffusers. The pipeline loads only its decoder:
`t2va` and `fl2va` never encode a waveform. At load, the decoder folds each weight norm into
the weight of its convolution.

The decode runs fixed windows of 104 latents. Each window has 24 latents of real context on
each side of its core, or ends at the end of the clip. Thus one window shape serves each clip
longer than one window. A clip of at most 104 latents is one window, compiled at its own
length. A window runs one compiled graph for each piece of a BigVGAN stage: its upsampler,
each AMP block and, last, the output head. The anti-aliased activations run on the two phases
of the 2x-upsampled signal, so the decoder never builds that signal.

The audio ranks are ranks 1 to N. N is the number of windows of a 15 s clip, the longest
duration of the release, or the number of other ranks if that is smaller. Window `i` decodes
on audio rank `i % N`. With patch parallelism, the video tiles go to the VAE ranks that are
not audio ranks, so the windows decode beside the tiles. A rank that holds no video tile
decodes its windows before the video decode. Each rank sends the cores of its windows to
rank 0 over the CPU group, and rank 0 joins them into the soundtrack.

### Environment

`examples/minimax_h3/run.py` applies the Wan2.2 T2V env profile (`env_profiles.WAN22_T2V` in
`vllm_omni_neuron/env_profiles.py`) and per-rank thread limits before it builds the engine. The
profile sets, among others, `NEURON_LOGICAL_NC_CONFIG=2` and the Neuron runtime buffer sizes.
For a server, set the same variables.

### Request parameters

| Parameter | Default | Notes |
|-----------|---------|-------|
| `height`, `width` | 768, 1344 | Give both or neither. Each must be a multiple of 32. With a keyframe and no size, the canvas follows the aspect ratio of the first keyframe, as in the reference resize step |
| `num_frames` | 124 | At 24 fps. The pipeline rounds it up to the next `17 * n + 5`, the frame counts that the video VAE decodes. The checkpoint was released for 5 s to 15 s. Another duration logs a warning and still runs |
| `num_inference_steps` | 50 | |
| `seed` | | |
| `multi_modal_data` | | `image` (the first keyframe) and `last_image` (the last keyframe), as PIL images |

A request generates one video. Keep `num_outputs_per_prompt` at 1 and `max_num_seqs` at 1.

## Quantization

On Trn3, the DiT can run in **FP8** to cut weight memory and speed up the projection GEMMs.
The mode is vLLM Omni's online FP8, `fp8`: it quantizes the DiT weights of the BF16 checkpoint
to FP8 e4m3 as they load, with one FP32 scale per output column, and runs the attention (Q/K/V
and output), FeedForward and AdaLN projections in FP8. The activations are quantized on the fly:
in MXFP8 blocks of 32 values when the projection runs under SP, and with one scale per row
otherwise. The norms, RoPE, the attention core (softmax(QKᵀ)·V) and the biases stay BF16.

Enable it in the stage config, `examples/minimax_h3/minimax_h3_stage.yaml`, under
`engine_args`:

```yaml
    engine_args:
      quantization: fp8
```

## Accuracy Evaluation

**Benchmark:** [JavisBench](https://github.com/JavisVerse/JavisDiT) is a benchmark for joint
audio-video generation. It has 10,140 text-captioned sounding videos from diverse real-world
scenes. It scores the audio and video quality, the semantic consistency of each modality with
the text prompt, the semantic consistency between the audio and the video, and their
synchrony.

See the [JavisDiT paper](https://arxiv.org/abs/2503.23377), which introduces JavisBench and
the JavisScore synchrony metric, and its
[project page](https://javisverse.github.io/JavisDiT-page/).

**MiniMax-H3 (BF16)**

| Group | Metric | H200 (GPU) | Trn2 |
|-------|--------|------------|------|
| Audio / video quality | FVD↓ | 491.13 | 486.37 |
| | KVD↓ | 0.76 | 0.71 |
| | FAD↓ | 6.27 | 6.22 |
| Semantic consistency against the text | TV-IB↑ | 0.277 | 0.279 |
| | TA-IB↑ | 0.161 | 0.163 |
| | CLIP↑ | 0.3164 | 0.3156 |
| | CLAP↑ | 0.4429 | 0.4499 |
| Audio–video semantic consistency | AV-IB↑ | 0.2531 | 0.2541 |
| | CAVP↑ | 0.7985 | 0.7993 |
| | AVHScore↑ | 0.2392 | 0.2393 |
| Audio–video synchrony | JavisScore↑ | 0.2113 | 0.2109 |
| | AV-Align↑ | 0.3010 | 0.3021 |

- **Audio / video quality:** FVD and KVD (Fréchet and kernel video distance) for the video, and
  FAD (Fréchet audio distance) for the audio.
- **Semantic consistency against the text:** the ImageBind similarity of the text with the
  video (TV-IB) and with the audio (TA-IB), the CLIP text–video similarity, and the CLAP
  text–audio similarity.
- **Audio–video semantic consistency:** the ImageBind audio–video similarity (AV-IB), CAVP and
  AVHScore.
- **Audio–video synchrony:** JavisScore and AV-Align.
- ↓: lower is better. ↑: higher is better. The H200 column is the same model on an NVIDIA H200
  GPU, for comparison.

## Known Limitations
- The pipeline runs one request in each batch, and one video for each request.

## Tutorials

- [Tutorial: Deploy MiniMax-H3](../tutorials/tutorial-minimax-h3.md): set up, download the
  model, and generate `t2va` and `fl2va` videos step by step.
- `examples/minimax_h3/run.py`: a runnable `t2va` example. It writes the video and its
  soundtrack as an MP4:

  ```bash
  python examples/minimax_h3/run.py --model-path MODEL_DIR
  ```

  The defaults are 1344x768, 124 frames and 50 steps. Add
  `--num-frames 22 --num-inference-steps 6` for a short run. In your own code, the result of
  `omni.generate` holds the soundtrack: `multimodal_output["audio"]` is a `(1, 2, samples)`
  waveform, and `multimodal_output["audio_sample_rate"]` is its sample rate.

- `examples/minimax_h3/run_fl2va.py`: a runnable `fl2va` example. Its defaults are the
  end-to-end test's `fl2va` request: `examples/minimax_h3/fl2va_input.png` as the first
  keyframe, `examples/minimax_h3/fl2va_prompt.txt` as the prompt, and seed 0. Add
  `--last-image IMAGE` for a last keyframe:

  ```bash
  python examples/minimax_h3/run_fl2va.py --model-path MODEL_DIR
  ```
