Trainium3 accelerates video generation with LTX-2.5

On an AWS Trainium3 machine, Hugging Face generated video and audio clips with LTX-2.5. After optimization, a 10-second clip is produced in 22 to 23 seconds, with a resolution of 2048×1024.

Hugging Face reports having generated videos with its one-month access to an AWS Trainium3 machine, testing LTX-2.5 from Lightricks, a model that produces video and sound together. In the end, a 10-second clip with audio is output in 22 to 23 seconds, once the models are loaded, using half of the machine. The result is relevant for professional use: the system approaches the performance of the LTX API while scaling up to 2048×1024. And it mainly shows that video inference on AWS’s in-house accelerators is no longer just for lab demonstrations.

A video doesn’t stand alone, even when the model knows how to film

The core of the test was not to create just another nice clip, but to build a small editing chain. The authors used a JSON list of shots, each with a name, a prompt, and sometimes a seed, to link scenes like a storyboard. LTX-2.5 works better with long prompts that describe style, subject, movement, camera, lighting, and sound. A seal plush on the sand, a passage on ice, then the moment the plate tilts: the logic is that of a short film, not a single simple request.

To keep the same subject from one shot to another, the system relies on two mechanisms. With from, a shot starts on the last frames of a previous shot; with to, it ends on the first frames of the next shot. In practice, this allows maintaining the appearance of a character, a setting, or a movement across a cut. It’s a technical detail, but it changes everything: without it, the model tends to start from scratch, like a very diligent but somewhat absent-minded intern.

The films produced on this prototype follow two animation logics. In “straight ahead” mode, each shot continues the previous one. In “pose to pose” mode, the key shot is made first, then the others are extended and adjusted around it. The final rendering thus maintains a form of narrative coherence, bringing the tool closer to a real use for previewing or rough sequencing.

What had to be broken to make it run

The model did not run natively on the NeuronCores. The transformer did not fit on a single core, and diffusers had no plan to split it properly. The first functional version, with the transformer spread over 4 cores, did produce a 10-second video at 960×544, but in 5 minutes 20 seconds total, including only 45 seconds of actual computation on the NeuronCores. Five days later, the optimized version dropped to 22 to 23 seconds for a 10-second clip at 2048×1024, about four times more pixels.

This improvement came from three directions. First, tensor parallelism, which splits the model weights across multiple cores because they don’t fit in a single block. Then, sequence parallelism, which distributes video tokens over more cores to fit smaller graphs. Finally, host-side optimizations, i.e., on the CPU orchestrating everything. The authors summarize the scaling as: TP-4 × SP-8, meaning 32 cores mobilized for a single clip.

Several problems were worked around along the way. The text encoder, too large to coexist with the transformer on a NeuronCore, was kept on the CPU side. The compiler was stabilized with compile_repeated_blocks, after NaN outputs on certain sizes. GELUs were recalculated in fp32 to fix a precision gap. Video decoding, very slow on CPU, was transferred to the NeuronCores and accelerated from 357 seconds to 1.6 seconds at 2048×1024. The numbers give an idea of the challenge: at this level, optimization looks less like tuning and more like precision plumbing.

A prototype already close to service use

Once the models are loaded, the chain reaches a level no longer purely experimental. Hugging Face indicates that a permanently maintained service would keep processes warm, with about 3 minutes to load models and 80 seconds for the first clip. Then, generation falls to a throughput rivaling the LTX API, on half the machine. The test does not yet prove turnkey industrialization, but it shows that a video service can move beyond the "it works on my machine" phase.

The authors also highlight very concrete remaining limits. Each shot may require multiple takes, as the model still makes mistakes on some details. A shot lasts a maximum of 20 seconds. And sound does not naturally carry over from one shot to another, even if background levels are normalized in editing. For professional creation, this means it is a draft tool, not a substitute for editing or human supervision.

On the other hand, reproducibility is strong: with the same film file and the same seed, you get the same byte-for-byte rendering. This is useful for industrializing tests, comparing versions, or replaying a sequence. The authors also tested starts from real images or videos, notably a humanoid robot sequence and a car scene in the snow. In these cases, the model does not just extend the action; it invents plausible variants, opening use cases for simulation or training data. One detail remains: it follows the cues from the first instant of the scene, not the orders one might want to give it afterward.

Key points

  • 10 seconds of video in 22 to 23 seconds, once loaded.
  • 2048×1024, about four times more pixels than the first trial.
  • 32 NeuronCores mobilized on a single generation.
  • First version: 5 minutes 20 seconds for 960×544.
  • Hugging Face worked with AWS and Trainium3.
  • LTX-2.5 from Lightricks generates video and sound together.

By the numbers

  • 22 to 23 s — generation of a 10-second clip, after loading, on Trainium3.
  • 2048×1024 — resolution reached on the optimized version.
  • 32 cores — TP-4 × SP-8 configuration used for a clip.
  • 5 min 20 s — first functional attempt at 960×544.
  • 357 s to 1.6 s — video decoding on CPU then on NeuronCores.

To read