> ## Content Index
> Fetch the complete content index at: https://globalfeed.ai/llms.txt
> Use this file to discover other available public pages before exploring further.

# Video with sound from 5 minutes to 22 seconds: how was LTX-2.5 sped up on Trainium3?
- URL: https://globalfeed.ai/en/video-with-sound-from-5-minutes-to-22-seconds-how-was-ltx-2-5-sped-up-on-trainium3/
- Published: 2026-11-29T18:29:55.000Z
- Updated: 2026-11-29T18:29:55.000Z
- Description: Hugging Face and AWS engineers cut Lightricks' open video model LTX-2.5 from 5 min 20 s to 22 s per clip on Trainium3. Which bottlenecks fell and how short films are built.
- Author: GlobalFeed Editor
- Tags: LTX-2.5, AWS, Trainium, Video Generation, Hugging Face, dil-en, elle

A 10-second clip with sound at 2048×1024: the first attempt took 5 minutes 20 seconds even at 960×544\. A month later the same job finishes in 22 to 23 seconds. [Hugging Face's 27 November post](https://huggingface.co/blog/video-trainium3?ref=globalfeed.ai) walks through how a team ran Lightricks' open video model LTX-2.5 on AWS's own AI chip, Trainium3\. It goes beyond a speed figure: which bottleneck was removed and how, what is still hard, and how to cut a short film with the model.

## Model and hardware

[LTX-2.5](https://huggingface.co/Lightricks/LTX-2.5-Diffusers?ref=globalfeed.ai) is Lightricks' 19-billion-parameter model that generates video and audio together. Per the model card, defaults are 24 fps, 960×544 and 121 frames per clip, with two stages: low-resolution generation, then a 2x latent upsample. It uses the LTX-2.x Community License, free for commercial use below US$10 million in annual revenue. The team used an [AWS trn3.48xlarge](https://aws.amazon.com/ec2/instance-types/trn3/?ref=globalfeed.ai) with 64 NeuronCores for a month; a clip uses half of it, 32 cores, so two clips can run at once.

## 14x in a month: what changed

**Parallelism.** The model is split with tensor parallelism over 4 cores and sequence parallelism over 8 chips, using `NEURON_LOGICAL_NC_CONFIG=2` and `compile_repeated_blocks`.

**Most time was lost off the accelerator.** In the first attempt only 45 of the 320 seconds ran on NeuronCores. After optimisation host time fell from about 280 seconds to 8 and device time from 45 to 15\. Prompt encoding went from about 205 seconds to 1.4, decoding a 2048×1024 video from 357 to 1.6, and tracing from 388 to 18\. Memory per core fell from 22.96 GiB to 10.2 GiB.

**Accuracy improved too.** The transformer's deviation from fp32 dropped from 0.297 to 0.158, against 0.160 for bf16 on CPU. Sampling uses 8 steps, a 2x latent upsample and 3 final steps. Loading takes about 3 minutes and the first clip about 80 seconds; later clips take 22 to 23.

## Building a short film

A roughly 160-line Python script in the [open repository](https://github.com/dacorvo/video-generation?ref=globalfeed.ai) defines each shot as a JSON line with a name, prompt, seed and optional links to start from the last frames of one shot or end on the first frames of another, so shots flow together. The practical lessons: a new shot usually takes four takes, each shot makes its own sound that does not carry across shots, and a shot lasts at most 20 seconds. In a robotics test the model continued real humanoid robot footage from its first second but did not follow robot or car action commands.

## GPU comparisons and limits

The authors say they did not benchmark CUDA themselves. For reference they quote LTX's claim of 6.8 seconds for a 10-second 720p clip on four B200 GPUs, and a reported 23.7 seconds for 10 seconds of 1080p on LTX's online API. The post gives no cost figures. Some fixes have been proposed upstream to diffusers and Neuron and are awaiting merge.

## How to try it

Instead of a one-line command, the post points to three files in [dacorvo/video-generation](https://github.com/dacorvo/video-generation?ref=globalfeed.ai): `parallel.py` for the parallel plan and attention processors, `timesteps.py` for per-token timesteps and `generate.py` for thread pinning. The model runs through diffusers' `LTX2Pipeline`, `LTX2ConditionPipeline` for keyframe chaining and `LTX2LatentUpsamplePipeline`, currently from the development version of diffusers. For teams exploring video generation beyond GPUs, it is a detailed map of where to start and which traps to avoid.

Sources: [Hugging Face: Taking Trainium3 to the Track](https://huggingface.co/blog/video-trainium3?ref=globalfeed.ai), [dacorvo/video-generation repository](https://github.com/dacorvo/video-generation?ref=globalfeed.ai), [LTX-2.5 model card](https://huggingface.co/Lightricks/LTX-2.5-Diffusers?ref=globalfeed.ai), [AWS Trn3 instances](https://aws.amazon.com/ec2/instance-types/trn3/?ref=globalfeed.ai)