LTX-2.5 on AWS Trainium3 makes 10-second clips in 22 to 23 s

LTX-2.5 on AWS Trainium3 makes 10-second clips in 22 to 23 s

A first-person post on the Hugging Face blog describes running LTX-2.5, a Lightricks model that generates video and sound together, on AWS Trainium3 with the diffusers library. Through Hugging Face's partnership with AWS, the team had a trn3.48xlarge machine with 64 NeuronCores for a month and spent most of it testing Hugging Face models. With five days left, the author tried video generation. By the end, with the models already loaded, a 10-second clip with sound at 2048×1024 took 22 to 23 s on half of the machine.

The author had two goals: to see how easy it is to make short films from a script on Trainium3, and to get close to the speed of CUDA or LTX's own API. Finding no real CUDA figure to compare against, only LTX's claim of 6.8 s for a 10-second 720p clip on four B200 GPUs with no detail on measurement, the author used LTX's online API as the benchmark. LTX says it makes a 10-second 1080p clip in 23.7 s. The author says the Trainium3 setup matches it and beats it by about a second.

Out of the box, the model did not run on the NeuronCores: the transformer does not fit on one core, and diffusers has no plan to split it. The first attempt that ran, with the transformer split over 4 cores and a few patches, took about 5 min 20 s per 10-second clip, with the NeuronCores computing for only about 45 s of that, and the target resolution was out of reach. Five days of work covered tensor parallelism to make the model run, sequence parallelism to spread it over more cores, and changes to help the host keep up. Host time per clip fell from about 280 s to about 8 s (~35×). NeuronCore time fell from 45 s to 15 s (3×), at four times the pixels and with a second stage the first attempt could not load. Most effort went into the device side, but the biggest end-to-end savings came from the host.

Sequence parallelism is what puts 32 of the 64 cores on a single clip. Tensor parallelism is forced by memory and capped by the 32 attention heads. Splitting the sequence also shrank each core's graph until it loaded, which made 2048×1024 possible. Each model split was checked on CPU before running on the device, and that comparison exposed a GELU issue. Three problems were never explained: the transformer compiled as one graph returned NaN at one size, the first shot ending on keyframes was slow in each new process, and the latent upsampler fails to load next to the transformer, so it stays on the CPU.

The film input is a JSON list of shots, each with a name and a long prompt, plus an optional seed. A "from" key starts a shot on the last frames of an earlier one (using the last 25 frames, or 1 s, also continues the motion), and a "to" key ends a shot on the first frames of a later one. In the example seal film, the author made the payoff shot first, an iceberg rolling over and drenching the seal, then built the surrounding shots from its frames. Three diffusers pipelines handle generation, following the model card's two-stage distilled recipe: 8 steps, a ×2 latent upscale, then 3 final steps. About 160 lines of Python on top assemble the film.

The author also fed the model the first second of a real 6-second clip from a Fourier GR1-T2 humanoid robot's head camera. The model invented the rest of the pick, an orange moved from a plate to a tray, and kept the table, hands and fruit consistent with the real footage. Changing only the prompt produced takes where a person also grabs the orange and carries it to the tray together with the robot. The code is published in dacorvo/video-generation.

Key facts

  • With models loaded, a 10-second 2048×1024 clip with sound took 22 to 23 s on half of a 64-NeuronCore trn3.48xlarge machine.
  • The first working attempt needed about 5 min 20 s per clip; host time later fell from about 280 s to about 8 s and NeuronCore time from 45 s to 15 s.
  • The benchmark was LTX's own figure of 23.7 s for a 10-second 1080p clip through its online API; no real CUDA figure was found.
  • About 160 lines of Python on top of three diffusers pipelines turn a JSON shot list into a short film, chaining shots through shared frames.
  • Output stays at draft level: details go wrong, sound does not carry between shots, and one shot lasts at most 20 s.

Why it matters

The post is a worked account of running a video-and-sound model on AWS Trainium3 where it did not run out of the box. In five days, a 10-second clip went from about 5 min 20 s to 22 to 23 s once models were loaded, at a higher resolution than the first attempt could reach. The author says this rivals LTX's paid API while using half of the instance. The second goal was practical filmmaking: chaining shots into short scripted films, closer to drafting a movie than to producing the simple clips in the examples.

Who it affects

Developers running large models on Trainium with diffusers get concrete lessons on parallelism, graph size and host overhead. People who want to draft films from a script can use the shot-chaining approach. Teams in robotics, cars or drones are a further audience: LTX calls LTX-2.5 a world model with robotics as an emerging use, and the author sees appeal for training in getting many different continuations of one real clip, including events too rare or risky to film.

How to use it

The code is in dacorvo/video-generation, and the kept films with their JSON files are in the bucket of the same name. Write one paragraph per shot covering style, subject, motion, camera, light and sound. Use "from" and "to" to carry subjects across shots, build the payoff shot first when a film leads up to one, and make several takes: the author made 4 of each new shot and picked one.

For performance work, plan for graph size, since shapes decide whether attention takes the fast kernel and oversized graphs fail to load. Check each model split against the CPU. Keep traced code stable: in the build the author used, the torch-neuronx cache key included the file and line of each traced op, so an edit could trigger a recompile of up to 30 minutes per graph. The author reported this as aws-neuron/torch-neuronx#1027, now closed. A service should keep processes running, because loading models takes about 3 minutes and the first clip takes 80 s.

How solid is it

This is the author's own account on the Hugging Face blog, from a team whose machine access came through Hugging Face's partnership with AWS. The 22 to 23 s figure is the author's result, while the 23.7 s API time is LTX's claim and covers 1080p instead of 2048×1024. No measured comparison against CUDA was made. No quality metric or quantitative evaluation of the generated videos is given. The code and film files are published, and the author says rerunning them reproduces the same film byte for byte.

Risks and caveats

The headline speed excludes model loading and the first clip of a new process. The NaN output at one size, the slow first keyframe-ending shot and the upsampler loading failure remain unexplained. Some fixes are still pending upstream: diffusers#15420, open, fixes the LTX-2 pipelines, and diffusers#14725, also open, unifies tensor and context parallelism, with a plan for LTX-2.5 still to come.

The model often gets details wrong; one prompt gave a goat funny horns in 3 takes out of 4. Prompts alone do not keep a subject consistent across shots. The robot videos follow prompts, not robot commands, so a training setup would need action-conditioned generation fine-tuned on a team's own data. In a car example, a prompt asking for acceleration failed: the model kept the speed implied by the first second of footage.

“That rivals LTX's paid API, on half of the instance.”

— The post's author, Hugging Face blog