Run this model with HF Jobs
Run MiniMaxAI/MiniMax-H3 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/MiniMaxAI/MiniMax-H3. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/MiniMaxAI/MiniMax-H3 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use MiniMaxAI/MiniMax-H3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use MiniMaxAI/MiniMax-H3 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("MiniMaxAI/MiniMax-H3", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
H3 timeline formats measured.
Measured: how H3 follows written times (412 clips) β At MM:SS.mmm is a clock, [Xs-Ys] is not
Several threads here argue over how to write times in an H3 prompt (#28, #47, #83), and #125 compared the At form with a range on two takes. I measured it at scale: 412 text-to-video clips, scored by scripts, counting three things in this order: is a written event omitted, do the events come in the written order, and how far from the written time do they start. Details of how this was pulled of matter, and are described in the post.
Short version
Best to worst format:
[Shot 2] At 00:02.000, the camera cuts to β¦: 0.01β0.13 s[Shot 2]with no time, plain prose with no time,Timeline:with[2s-4s],[Shot 2: 2β4 s]: 0.3β0.9 s, no real difference between them00:02.000β00:04.000 β¦, a line a shot: 1.2 s
For an event inside one shot, by events lost, then clips in the written order, over all clips of the study:
At 00:01.500,before each event: 0 of 180 lost, 48 of 56 in orderTimeline:with[1.5s-3s]: 2 of 180 lost, 31 of 56 in order;1.5-3s:prefixes: 0 of 36 lost, 6 of 12 in order- No times: 10 of 132 lost, 12 of 40 in order
- Each event tied to the one before ("As soon as β¦"): 14 of 124 lost, 18 of 36 in order
- Phase words ("Early in the clip"): 6 of 36 lost, 4 of 12 in order
Some findings
- The guide's
[Shot 2] At 00:03.000, the camera cuts to β¦is a real clock. In 6 s clips the cut came 0.01β0.13 s from the written time (40 clips). Written at 1.5, 3.0 and 4.5 s, a single cut came at 1.5, 3.0 and 4.4 s. - A
[Xs-Ys]range does not place a cut. A single cut came at 3.8β5.2 s wherever its bracket said; written at 1.5 s it came 3.5 s late. In 20 s clips the bracket form's cuts were about 2 s off on average. At MM:SS.mmm,also works before an event inside a shot, a use MiniMax's prompt guides do not document. It kept every event (0 of 180 lost) and the written order in 48 of 56 clips. The bracket form lost 2 of 180 and kept the order in 31 of 56: a spoken line tends to come early, before the event written ahead of it.- Leaving times out loses events inside a shot, more the longer the clip: the same sentences without times lost 10 of 132 events.
- A spoken line follows no clock in a 6 s clip. It began at 3.1β4.9 s whether written at 2.0, 3.2 or 4.4 s, in both forms. In 12 s clips it does follow the in-shot timestamp, loosely.
Related posts and studies
- #125, "MiniMax H3-Base Ref2VA field study" by klimentioss:
At 00:SS.mmmagainst a range on two takes; theAtform aligned better. Write-up: field notes. My numbers agree, over many more clips. - #28, "System Prompt IT2V": the bracketed
[0s-2s]beats, and the argument over whether they beat the official form. - #47, "The actual correct system prompt for IT2V": the official shot form, with
At 00:03without milliseconds. - #83: the written order of two actions reported as ignored, and disputed for the official form. Here: order fails inside a shot unless each event has a timestamp; it never failed between shots.
- #65, "prompt adherence really varies depending on the resolution": shots followed better at 352 to 576 lines than at 768. Both my sizes are in that lower range.
- MiniMax's prompt writing guide (base): the
[Shot N] At MM:SS.mmmform this confirms. - ComfyUI's H3 prompt guide: advises a single timestamp over a range, and tying lines to visible events.
- stuubzzz.studio, "MiniMax H3 prompt format": one 10 s clip, a cut written at 6.5 s landing at 7.17 s.
- malcolmrey's MiniMax H3 prompting guide: a long community rulebook that uses the
Atform throughout. - Civitai article 38141: an action playing in about 1.2 s whatever the time codes say.
- Timeline editors for ComfyUI that write H3 prompts in either notation: opus49/ComfyUI-MiniMaxH3-Director, filliptm/ComfyUI-FL-MiniMaxH3, imbutus/ComfyUI-MiniMaxDirector.
Method
Setup variation of created media assets, using prompts for best accuracy timing. Timing extraction was then done using a dual detection using fast whisper and simple in frame statistics, which only works for simple scenes and well structured dialog, which limits any conclusions regarding general accuracy. The assumption the conclusion rests on is that for a more comprehensive study, that would include more data and data variation, it would affect the accuracy of the timings, but not the ranking of the format for time-line specification.
Examples: two of the worst clips
Both clips are the bracket form (Timeline: with [Xs-Ys]), and they are its worst individual results, but the bracket form is not the worst method in the ranking. This was the approach I used until after this study completed.
For a cut, the bracket form is in the middle group, 0.3 to 0.9 s off on average, no different from writing no time at all. The worst for timing is the bare 00:02.000β00:04.000 line, at 1.2 s, not shown here
For events inside a shot, the bracket form is second best. It did lose some events (2 of 180). The methods without times are worse, because they drop events outright.
A simple description of these examples: how badly the most widely used form can go wrong, on a bad seed, where it has been explored for 9 hours uninterupted.
The corridor was meant to last a quarter of the clip and lasts most of it. The same cut on the same seed, written [Shot 2] At 00:01.500, the camera cuts to β¦, came at 1.5 s.
1. A cut 3.7 s late (6 s clip, seed 4)
The full prompt:
Style: realistic live-action, cinematic.
Timeline:
[0s-1.5s] Static wide shot of a long, empty concrete corridor in flat grey daylight: bare grey walls and a grey floor, no colour anywhere.
[1.5s-6s] Cut to a static wide shot of a photographic darkroom lit only by a red safelight, with trays on a bench and prints hanging on a line: the whole picture is deep red.
Camera: static shots joined by hard cuts.
Audio: quiet room tone in every place; no voices, no music.
| what should happen | written | measured | off by |
|---|---|---|---|
| cut from the grey corridor to the red darkroom | 1.5 s | 5.21 s | 3.71 s late |
The corridor was meant to last a quarter of the clip and lasts most of it. The same cut on the same seed, written [Shot 2] At 00:01.500, the camera cuts to β¦, came at 1.5 s.
2. A line said first, 6.8 s early (12 s clip, seed 1, one shot)
The full prompt:
Style: realistic live-action, cinematic.
Scene: A bare room with white walls and a grey concrete floor, lit by white ceiling lamps. A woman in a grey coat stands in the middle of the room, facing the camera.
Timeline:
[0s-6s] Static wide shot: the room is in plain white light; the woman stands still and silent.
[6s-7.5s] The lamps turn deep blue at once, and the whole room is bathed in blue light.
[7.5s-9s] The woman says: "The door is open."
[9s-10.5s] The lamps turn deep green at once, and the whole room is bathed in green light.
[10.5s-12s] The woman says: "We leave at dawn."
Camera: static, one continuous take, no cuts.
Audio: a quiet room; the woman's voice; no music.
I liked that you counted missing events separately from timing error. In two much smaller tests I shifted the cue by eight frames and got 31 of 32 cuts within a quarter second of target. Did you see a consistent early or late bias within any one prompt format? My short-film workflow is here: https://github.com/martinsommer3-oss/Filmworkbench