AI Video Generation on Trainium3: LTX-2.5 Tested14 min read2,772 words

AI Video Generation on Trainium3: LTX-2.5 Tested

See how LTX-2.5 generated 10-second video with sound in 22–23 seconds on Trainium3, and what the benchmark reveals about AI video pipelines and synthetic data.

AI video generationTrainium3LTX-2.5synthetic video dataAI video inference
AI Video Generation on Trainium3: LTX-2.5 Tested

AI Video Generation on Trainium3: LTX-2.5 Tested

What It Takes to Generate AI Video on Trainium3

Making a polished AI video takes more than dropping a prompt into a model. You have to manage continuity between shots, handle audio alongside video, keep inference fast, and deal with memory limits - all while coordinating with the host CPU. Once you move a model onto hardware it wasn't built for, those gaps stop being theoretical.

A month-long AWS Trainium3 test tried to answer a concrete version of that question using LTX-2.5, a model from Lightricks that generates video and sound together. After several rounds of engineering, the system produced a 10-second clip at 2048 × 1024 resolution in 22 to 23 seconds once the models were loaded. That performance used half of a 64 NeuronCore machine, and it only came after fixing bottlenecks well beyond the model itself.

This matters for teams deciding between self-hosting and a hosted API, or for anyone considering synthetic video for prototyping and training data. It also shows why a "fast" headline benchmark doesn't automatically translate into a production-ready workflow. Here's how the film pipeline was put together, what had to change to make it run on Trainium3, and what the results do - and don't - say about real-world use.

What did the Trainium3 test actually measure?

The test ran on an AWS Trainium3 trn3.48xlarge instance with 64 NeuronCores, available through an AWS partnership. The goal was twofold: see how hard it would be to use Diffusers to generate a short film on Trainium3, and determine whether performance could get close to a hosted video-generation service.

This was not a perfect, apples-to-apples hardware comparison. The team couldn't find a detailed CUDA result they could match on equal terms. Lightricks reported 6.8 seconds for a 10-second 720p video on four B200 GPUs, but the measurement details weren't available. For a reference point, the test used LTX's API: LTX reported 23.7 seconds for a 10-second 1080p clip.

In the local setup, the team generated a 10-second clip with sound at 2048 × 1024 in 22 to 23 seconds after model loading, using 32 of the 64 NeuronCores. That's encouraging, but it shouldn't be treated as a controlled claim that local inference is always faster or cheaper than the API. The resolution differs, the local measurements don't include full details, and the local number excludes the initial model-loading time.

The baseline matters more than the final number

The first attempt wasn't close to usable. It took about 5 minutes and 20 seconds to generate a 10-second clip at 960 × 544. NeuronCores were actively computing for only around 45 seconds; the rest was overhead - waiting on data movement and CPU-side work.

After five days of focused changes, the results looked like this:

Configuration Resolution NeuronCores used Total time Time on NeuronCores
First working attempt 960 × 544 4 5 min 20 sec 45 sec
Optimized pipeline 2048 × 1024 32 22-23 sec 15 sec

The optimized pipeline handled roughly four times as many pixels, added a second generation stage, and finished about 14 times faster overall. The speedup came from improving both the accelerator workload and the rest of the pipeline around it.

The practical takeaway: accelerator utilization by itself doesn't tell you how fast the full job will finish. A model can spend a small fraction of time doing useful work on the accelerator while the overall run stays slow. If you're evaluating inference, measure wall-clock time, warm-up and loading separately, and the time spent on host-side stages too.

How do you generate a film instead of isolated clips?

A film isn't just a bundle of prompts. If each shot is generated independently, the character's appearance, the setting, or even the direction of motion can drift between cuts. The test addressed this by representing each film as a JSON list of shots, where each shot has a name, a prompt, and optional seed or links to other shots.

The prompts covered style, subject, movement, camera, lighting, and sound. Seeds helped keep a selected take consistent. More importantly, shots could be chained using two relationships:

  • to makes a shot end on frames generated from a later shot, creating a lead-in.
  • from makes a shot begin from frames taken from an earlier shot, carrying visual information or motion forward.

Starting from a chosen frame can help keep a subject consistent across a cut. Starting from several final frames can also push motion into the next shot. These links don't guarantee perfect continuity, but they give the generation process more context than prompts alone.

Work backwards from the important moment

The seal film used a pose-to-pose workflow. Instead of generating shots strictly in sequence, the creator started by generating the key event: an iceberg rolling over and drenching a sleeping seal. Then the rest of the shots were built around that moment.

The shot right before the event ended on its first nine frames, so the seal, floe, and iceberg could carry into the payoff. The next shot began from the payoff's last 25 frames, continuing with the wet seal shaking itself off. A separate dream sequence was generated independently and then cut into the final film.

This approach helps when a sequence has a clear payoff - something the surrounding shots need to set up and support. It also changes iteration order: lock down the hardest (or most important) shot first, then generate what leads into and out of it.

A lightweight film layer around the model

Three Diffusers pipelines handled different parts of the generation. One generated shots from prompts, another generated shots conditioned on frames, and a third upscaled the video latents before the final steps. The model's two-stage distilled recipe used eight initial steps, latent upscaling by a factor of two, and three final steps.

On top of that, the film-specific Python layer was about 160 lines. It parsed the shot descriptions, arranged generation so keyframes existed before needed, passed frames between shots, and handled editing tasks such as trimming, captions, audio leveling, and assembly. It's not a lot of orchestration code - but it plays a real role. The model makes the content, and the film layer makes it repeatable and editable.

What had to change to run LTX-2.5 on Trainium3?

LTX-2.5 didn't run on Trainium3 out of the box. The transformer was too large for a single NeuronCore, and the standard Diffusers pipeline didn't automatically provide a way to distribute the model. Getting it working required parallelism across cores, changes to pipeline placement, and a set of fixes for compilation and data movement.

The first step was tensor parallelism: splitting the transformer across four cores so it would fit. That got the model running, but it still wasn't enough for the target resolution. The optimized second stage added sequence parallelism on top of tensor parallelism, distributing video tokens across eight groups. That stage ended up using 32 cores total - four groups of eight.

This distinction matters. Tensor parallelism was needed because of the model's memory footprint and was constrained by the transformer's 32 attention heads. Sequence parallelism spread the video sequence across more cores, reducing the per-core graph size enough to load at 2048 × 1024. That's the step that made a single high-resolution clip practical on half the machine.

Host-side work was a major part of the optimization

The accelerator wasn't the whole system. In the initial implementation, every process ran the full pipeline and encoded the prompt on CPUs attached to one socket. Changing the pipeline so rank zero handled the orchestration and sent other ranks the arguments cut prompt encoding time from about 205 seconds to 7.5 seconds.

Other CPU and memory changes included:

  • Pinning rank zero threads to CPUs not used by other ranks, while limiting the remaining thread pools.
  • Encoding only the prompt's real tokens instead of padding every prompt to 1,024 tokens.
  • Running the video decoder on NeuronCores, splitting work by frames and transferring results through shared memory. Decode time at 2048 × 1024 fell from 357 seconds to 1.6 seconds.
  • Packing parameters into buffers to reduce wasted allocator memory per core from 22.96 GiB to 10.2 GiB.

These weren't improvements in output quality. They were system fixes: removing wasted work, reducing contention, and keeping the accelerator busy. In a real production pipeline, that boundary between components is often where the performance problems show up.

Compilation and numerical behavior need validation

At one model size, the transformer initially returned NaNs when compiled as a single graph. Compiling repeated blocks instead produced finite outputs and reduced tracing time from 388 seconds to 18 seconds. There was also an issue with bf16 GELU: computing it in fp32 reduced the transformer's error against an fp32 reference from 0.297 to 0.158, close to the CPU bf16 result of 0.160.

The implementation also ran into graph-loading limits and slow copies for certain tensor layouts. One workaround made a strided slice contiguous before copying it to the device. Another embedded only two timestep values and selected the right one for each video token. Those details are specific to the tested stack, but the general approach travels: validate each split against a CPU reference, check numerical behavior, and test the exact shapes and sequence lengths you plan to serve.

What does the performance result mean for production?

Under the tested conditions, this result suggests an open model can run on Trainium3 at a pace comparable to the cited LTX API figure. But it doesn't mean every team should self-host video generation. A real service has to account for instance costs, utilization, queueing, failed generations, storage, engineering maintenance, and the time needed to keep workers warm.

Model loading took about three minutes, and the first clip took about 80 seconds. A service that keeps workers alive can spread those costs across many requests. A bursty workload may not.

The 22-23 seconds reported here applies after the models are loaded. So it describes steady-state generation, not a cold-start experience.

Decide based on workload shape, not peak speed

Self-hosting tends to make more sense when jobs arrive consistently, outputs must stay inside a controlled environment, or you need to modify the pipeline. A hosted API can be a better fit when demand is irregular, operational capacity is limited, or you care more about fast access than low-level control.

Before comparing options, measure the same workload end to end:

  1. Define the output: duration, resolution, sound, number of shots, and acceptable quality.
  2. Measure cold and warm separately: include model loading, first-generation overhead, and steady-state latency.
  3. Include orchestration: account for prompt encoding, decoding, editing, retries, and storage - not just accelerator time.
  4. Track usable outputs: a fast pipeline with lots of retries may cost more than a slower pipeline with a higher success rate.
  5. Model expected demand: compare cost at realistic utilization, including idle time and peak concurrency.

The LTX-2.5 workflow also used multiple takes per new shot. In one example, a goat's horns showed up incorrectly in three of four generations. Seeds help make a chosen take reproducible, but they don't remove the need for selection. For production planning, generation speed and human review time should be treated together.

Repeatability is a product feature, with limits

The film file stored prompts, seeds, and shot relationships. Running the same code with the same film file could reproduce the film byte for byte in the tested setup. For drafts and experiments, that's genuinely useful as an audit trail.

That said, byte-for-byte repeatability depends on keeping the software and execution environment stable. It's not a guarantee that future versions of a model, library, or accelerator stack will produce identical outputs. If reproducibility matters, teams should version the model, code, configuration, and relevant runtime components together.

Can generated video become useful training data?

Video generation becomes more compelling when it's used to do more than produce creative drafts - when it helps expand data for robotics, cars, or drones. These systems learn from visual observations, but real-world events can be expensive, rare, or unsafe to capture. A generative model can create additional plausible scenarios starting from real footage.

In the Trainium3 test, the team explored this by conditioning a shot on the first second of real camera footage. One example used a humanoid robot's head camera showing hands raised over a table before a real sequence in which the robot picked up an orange and dropped it in a tray. LTX-2.5 generated a continuation that invented the pick, while keeping elements like the table, hands, and fruit visually consistent with the initial footage.

With a changed prompt, the model also produced versions where a person leaned in and helped move the orange. Across five takes, the person's timing and gestures varied, and the robot arm adapted to the generated interaction. A second example used footage from a car in a snowstorm and generated an alternative event where slush was thrown onto the camera lens.

Plausible variation is not ground truth

This is a distribution of possible continuations, not a record of what actually happened. That distinction is important for training. Generated clips can help explore variation, but they can also introduce physically implausible motion, biased representations, or wrong causal relationships. A realistic-looking frame doesn't prove the depicted event is possible - or that the model learned the underlying dynamics.

There's also a control limitation. The examples followed prompts rather than the robot's or car's actions. When asked to make the car accelerate, the model kept its speed, apparently because the conditioning footage suggested continued motion at the existing pace. For action-conditioned training, a team would likely need to condition on the robot's action data - potentially by fine-tuning the pretrained checkpoint on paired frames and actions.

A responsible workflow should keep generated and captured data clearly distinguishable, review samples for physical plausibility, and test whether models trained on synthetic data improve on held-out real-world tasks. Synthetic video can broaden coverage, but it can't replace validation in the environment where a system will actually operate.

Conclusion

The Trainium3 test shows what it takes to turn an open video model into a usable generation pipeline: parallelize the model, keep host-side work from dominating, validate numerical behavior, and build explicit structure between shots. After that engineering effort, a 10-second high-resolution clip with sound ran in 22 to 23 seconds in steady state on half the machine.

That's a strong result, but it's not a universal verdict on performance or cost. Cold starts, retries, utilization, and review effort still shape the economics. For synthetic data, the distinction is even clearer: plausible video isn't automatically verified reality, and prompts alone aren't a substitute for action-conditioned control.

For teams evaluating systems like this, the next step is simple: benchmark the full workflow on representative jobs, track how many outputs are actually usable, and validate synthetic data against the real-world requirements before relying on it.

Frequently Asked Questions

Once the models were loaded, the optimized setup generated a 10-second clip with sound at 2048 × 1024 in 22 to 23 seconds. It used 32 of the machine’s 64 NeuronCores. Model loading took about three minutes, and the first clip took roughly 80 seconds.
The local test took 22–23 seconds after loading, while LTX cited 23.7 seconds for a 10-second 1080p clip through its API. The comparison is indicative, not controlled: the resolutions and measurement conditions differ, so it does not prove that local inference is generally faster.
Shots could start or end using frames from other shots. That shared visual context helped preserve a character, setting or motion across cuts. Prompts alone were not enough to guarantee continuity, and the team still generated several takes and selected the ones that worked.
It can create varied video continuations from real footage, but the examples were prompt-conditioned rather than conditioned on robot actions. Generated clips should be treated as synthetic possibilities, checked for physical plausibility and evaluated against real-world tasks before they are used to train deployed systems.

Related articles