MiniMax-H3 FL2VA E8T1 + Shared Expert (Step 60)
This experimental checkpoint converts the FFNs in blocks 15β34 of MiniMax-H3 FL2VA to token-level sparse MoE. Each token runs one shared expert and selects one of eight private experts. Different tokens in the same video can choose different private experts. The model supports text-to-video-and-audio generation, optionally conditioned on a first frame, last frame, or both.
The repository is a composite model package, not a fused checkpoint. It includes the original FL2VA weights, expert initialization data, a trained Router/LoRA checkpoint, and a reference DiffSynth loader. Loading FL2VA/ by itself runs the original dense model.
Selected video examples
These three clips were selected from the local MoE sample set. Their metadata records the same init.json and step-60.safetensors as this repository, but an internal AdaLN inference path that is not included here. They are qualitative examples, not a claim that the public reference script reproduces them exactly. Each clip is about 10 seconds with video and audio.
| Example | Video and original prompt |
|---|---|
| Opera singer | Show full original prompt90s anime style, with soft cel shading, muted warm colors, and a hand-painted theatre background. Wide shot from behind the audience, over their heads. A big, broad-chested opera singer in a black tailcoat stands at the centre of the stage in a theatre decorated with gold, his arms spread wide. He sings "The morning comes for me," his voice rising, and he holds the last high note on "me." His mouth matches every sung word and stays open on the held note. The camera drifts down to his face in the spotlight while he keeps holding the note. Under the held note, a hushed commentator's voice plays as a voiceover: "He's holding it... still holding... yes!" The commentator is never seen on screen. During the commentary, no mouth on screen moves to speak, and no audience member's mouth moves at all. Audio: quiet rustle from the audience, the sung phrase and the held note, the whispered commentary under the note, then applause.Download MP4 |
| Snowy forest | Show full original promptOne continuous cinematic shot inside a deep snowy pine forest at dusk under flat grey light, very realistic film look, natural skin texture with wind-chapped cheeks, frost, pores and small blemishes, no smooth plastic or CGI-looking skin. Freezing air with drifting ice crystals, snow sliding off loaded branches, visible breath, and strong wind moving through huge trunks. The camera races fast through the forest, weaving hard between trunks and low branches in one unbroken move, with real motion blur and deep focus. The camera bursts into a small clearing where a fur-clad forester stands on a fallen log, lit by cold blue off the snow and the low orange of a storm lantern on her belt. She looks rough and real: raw cheeks, frost on her lashes and on the wolf-fur collar, carved bone fasteners and layered hide straps shifting in the wind. She lifts the lantern off her belt and holds it up at head height, the warm light climbing her face from below, and stares hard at something large moving in the treeline.Download MP4 |
| Pigeon monologue | Show full original prompt3D animation, big-studio quality, a windswept rooftop at dawn, satellite dishes, a rusted water tank, puddles reflecting a pink sky, strong rim light from the low sun, deep shadows. A scruffy barrel-chested pigeon with a missing tail feather and a bottle-cap badge pinned to his chest. Sec 0-4: The pigeon stands at the edge of the parapet surveying the sky, wings clasped behind him with enormous seriousness. Camera: low angle medium shot looking up, the camera slowly moving in closer. Audio: a deep, overly theatrical voice, epic strings building. PIGEON: "You see empty air. I see lanes." Sec 4-7: He suddenly narrows his eyes, head jerking, and leans forward. Camera: the camera snaps in close on his face in an extreme close-up, very shallow focus. Audio: an urgent, hushed, paranoid voice, music cutting out. PIGEON: "The gulls have been circling since Tuesday." Sec 7-10: He throws both wings open, chest out, in a defiant comic battle cry. Camera: the camera quickly moves back to show a wide shot of the pigeon on the parapet above the waking city. Audio: a wild commanding voice, a clap of distant thunder. PIGEON: "Form up! We fly at breakfast!"Download MP4 |
Model details
| Component | Configuration |
|---|---|
| Base model | MiniMax-H3 FL2VA, BF16 |
| Converted layers | DiT blocks 15β34 (20 of 50 blocks) |
| Routing | Top-1 private expert per token, plus an always-on shared expert |
| FFN widths | Shared 3,072; each private expert 6,144; original dense FFN 14,336 |
| Trained parameters | Routers and rank-64, alpha-64 LoRA |
| Checkpoint | Training step 60 |
| AdaLN | Original dense FL2VA weights; no AdaLN conversion artifact is included |
The base weights are frozen. init.json maps their FFN neurons into the shared and private experts and provides Router initialization. step-60.safetensors then replaces the initial Router values and loads the trained LoRA weights. All eight private experts are stored, even though each token executes only one. The reference loader's active main-DiT count is 31.472B parameters per token before active LoRA paths, compared with 33.123B for dense FL2VA. These are operation-path parameter counts, not benchmarked speed, FLOPs, or memory usage.
Repository contents
| Path | Purpose |
|---|---|
FL2VA/ |
Original FL2VA transformer, text encoder, video and audio VAEs, processor, and tokenizer |
init.json |
Expert neuron mapping and initial Router values |
step-60.safetensors |
Trained Routers and LoRA |
deploy/load.py, deploy/infer.py |
Reference DiffSynth loader and generation script |
deploy/check.py |
Offline package integrity and import check |
deploy/diffsynth/, deploy/code/ |
Required code snapshot and MoE implementation |
manifest.json |
Checkpoint hashes and tested generation settings |
LICENSE, NOTICE |
Base-model license and redistribution notice |
deploy/LICENSE |
License for the bundled DiffSynth code |
The full package is approximately 135 GB. Its FL2VA/ files are hard links to a local base-model copy in the preparation environment; a normal Hugging Face upload and download produce independent file contents.
Download and run the reference implementation
Download the complete repository into one directory:
hf download YOUR_ORG/YOUR_REPO --local-dir E8T1-shared1
cd E8T1-shared1
python deploy/check.py
python deploy/infer.py \
--package . \
--prompt "A cat walks across a piano." \
--out sample.mp4 \
--height 480 --width 832 --frames 124 --steps 50 --seed 42
Replace YOUR_ORG/YOUR_REPO with this repository's ID. The reference script requires CUDA, PyTorch, PEFT, safetensors, and the dependencies imported by the bundled DiffSynth snapshot. It uses CPU offloading and can need substantial CPU RAM, GPU memory, and disk space. deploy/check.py validates the two conversion artifacts and key code files without loading the base weights or running generation.
For image conditioning, add --first path/to/first.png, --last path/to/last.png, or both. The reference generation settings are 480 Γ 832, 90 or 124 frames, and 50 denoising steps; this exact release configuration has not yet been validated end to end. Frame counts must satisfy frames % 17 == 5; height and width must be divisible by 32. The reference script uses inference CFG 1.0, video flow shift 12.0, audio flow shift 3.0, output 24 fps, and audio 32 kHz. The training setting training_cfg_scale=4 is a loss parameter and is not the inference CFG value.
SGLang deployment status
SGLang can be used to offload AdaLN in a deployment implementation. This repository does not include an E8T1 MoE SGLang adapter or an end-to-end SGLang validation. Serving FL2VA/ with the standard dense MiniMax-H3 command will not apply the expert mapping or trained Routers/LoRA. A MoE adapter must load init.json and step-60.safetensors, preserve per-token routing, and be checked against the reference implementation.
Training, evaluation, and limitations
This checkpoint was trained for 60 steps on 128 cached video/audio examples, using two GPUs, BF16, global batch size 2, LoRA learning rate 1e-4, and Router learning rate 2e-5. The package contains no training data, and dataset provenance is not documented here.
A related internal configuration using this Router/LoRA checkpoint generated 16 clips for comparison with dense FL2VA. Its AdaLN path differed from this release, so those clips do not validate this exact package. This release does not claim a measured quality, speed, or memory improvement. The training logs show near-uniform average Router probabilities but do not establish stable expert specialization within individual videos. Generation can contain visual or audio artifacts. Review outputs before use.
MiniMax-H3 and derivatives are governed by the MiniMax H3 Community License Agreement, including its redistribution and use restrictions. The bundled DiffSynth code is accompanied by its Apache-2.0 license. See NOTICE for attribution and modification information.
- Downloads last month
- 2,194
Model tree for Agnes-AI/Agnes-Video-H3-MoE
Base model
MiniMaxAI/MiniMax-H3