Collage of a computer chip feeding a curling strip of film, with a magenta arrow running along the frames.

Hugging Face Runs Lightricks' LTX-2.5 Video Model on AWS Trainium3, Making a 10-Second Clip With Sound in 22 to 23 Seconds

Hugging Face engineers spent five days getting Lightricks' LTX-2.5 video model to run on AWS Trainium3. Once loaded, a 10-second clip with sound at 2048x1024 takes 22 to 23 seconds on half of one machine.

By Aileron Daily9:14 pm PT3 min read

Hugging Face engineers have run LTX-2.5, the Lightricks model that makes video and sound together, on AWS Trainium3. Once the models are loaded, a 10-second clip with sound at 2048x1024 takes 22 to 23 seconds to generate on half of a single trn3.48xlarge machine.

Hugging Face had that machine, which carries 64 NeuronCores, for one month through its partnership with AWS. Most of the month went to testing Hugging Face models on it, and the video work filled the last five days.

How fast is LTX-2.5 on Trainium3?

  • First working attempt: about 5 minutes 20 seconds for a 10-second clip at 960x544, on 4 NeuronCores.
  • Final setup: 22 to 23 seconds for a 10-second clip at 2048x1024, roughly four times the pixels, on 32 NeuronCores, a 14x speedup.
  • Reference point: Lightricks says its online LTX API makes a 10-second 1080p clip in 23.7 seconds.
  • Start-up: loading the models takes about 3 minutes, and the first clip takes 80 seconds.
  • Shot length: 20 seconds at most, the model's limit.

The engineer found no Nvidia CUDA figure solid enough to use, so the benchmark became the model maker's own paid service. The Trainium3 setup matched it and finished about a second sooner. Because loading is slow, a production service would keep its processes running between requests.

Why LTX-2.5 did not run on Trainium3 out of the box

The transformer at the heart of LTX-2.5 was too large for one NeuronCore, and the diffusers library offered no way to divide it. The team had to build that split themselves.

The final arrangement uses two kinds of splitting at once. Tensor parallelism cuts the model's weights four ways, and sequence parallelism cuts the video itself eight ways, so each group of cores handles one stretch of the clip. Four times eight puts 32 cores on a single video. The sequence split was also what let the 2048x1024 resolution load at all, since it made each core's share small enough.

A large part of the gain came from the steps around the main model. Decoding the result at 2048x1024 dropped from 357 seconds to 1.6 seconds. Encoding the text prompt went from about 205 seconds to 7.5 seconds, and later from 3.4 seconds to 1.4 seconds. Three problems were never explained, and some of the fixes are going back into diffusers.

Making short films with LTX-2.5

The goal went beyond the sample clips. A film is written as a JSON file listing its shots, where every shot gets its own name and prompt, much as a storyboard would. Prompts on their own did not keep a character consistent from shot to shot, so a shot can begin from the last frames of an earlier one or finish on the first frames of a later one.

That film layer is about 160 lines of Python, published in the dacorvo/video-generation repository. The output is still draft quality. The model often gets a detail wrong, so the engineer made four takes of each new shot and kept one. Each shot produces its own sound, which does not carry over into the next.

LTX-2.5 as a world model for robotics

Lightricks calls LTX-2.5 a world model and lists robotics as an emerging use. The engineer fed it the first second of real head-camera footage from a Fourier GR1-T2 humanoid robot looking at a table and let it generate what happens next, with only the prompt changing between versions.

These clips follow prompts, not the robot's commands. Using them to train robots would require fine-tuning the pre-trained LTX-2.5 checkpoint on a team's own robot frames and actions.

What it means for buyers of AI compute

An open video model can now match the speed of its maker's paid API on AWS Trainium3, using half of one machine. Getting there took days of specialist work on how the model is split across cores, plus fixes that are still moving into diffusers. For teams weighing Trainium3 for video generation, the hardware kept pace and the software was the work.

The facts

  1. Hugging Face had a Trainium3 machine, a trn3.48xlarge with 64 NeuronCores, for one month through its partnership with AWS.

  2. The team spent most of the month testing Hugging Face models on the machine and did the video work in the last five days.

  3. The model used was LTX-2.5 from Lightricks, which generates video and sound together.

  4. Once the models were loaded, a 10-second clip with sound at 2048x1024 took 22 to 23 seconds to generate on half of the machine.

  5. Lightricks says its online LTX API makes a 10-second 1080p clip in 23.7 seconds, and the Trainium3 setup matched it and beat it by about a second.

  6. The engineer found no real Nvidia CUDA figure to compare against, so the comparison used the LTX online API instead.

  7. The first working attempt took about 5 minutes 20 seconds for a 10-second clip at 960x544 on 4 NeuronCores.

  8. The optimized setup ran at 2048x1024, about four times the pixels, on 32 NeuronCores in 22 to 23 seconds, a 14x speedup.

  9. Out of the box the model did not run on the NeuronCores because the transformer did not fit on one core and diffusers had no plan to split it.

  10. The final setup combined tensor parallelism four ways with sequence parallelism eight ways, putting 32 cores on one clip.

  11. Sequence parallelism made the 2048x1024 resolution possible by shrinking each core's graph until it loaded.

  12. Decoding at 2048x1024 fell from 357 seconds to 1.6 seconds.

  13. Prompt encoding fell from about 205 seconds to 7.5 seconds, and later from 3.4 seconds to 1.4 seconds.

  14. Three issues were never explained, and some of the fixes are going into diffusers upstream.

  15. Loading the models takes about 3 minutes and the first clip takes 80 seconds, so a service would keep its processes running.

  16. The input is a film written as a JSON list of shots, each with a name and a prompt, like a storyboard.

  17. Shots are chained so one can start from the last frames of an earlier shot or end on the first frames of a later one, because prompts alone do not keep a subject consistent.

  18. The film layer is about 160 lines of Python, and the code is published in the dacorvo/video-generation repository.

  19. The model often gets a detail wrong, so the engineer made four takes of each new shot and picked one.

  20. Each shot makes its own sound, and sound does not carry over from one shot to the next.

  21. A single shot lasts at most 20 seconds, the model's limit.

  22. Lightricks calls LTX-2.5 a world model and names robotics as an emerging use.

  23. The engineer started shots from the first second of real head-camera footage of a Fourier GR1-T2 humanoid robot and let the model invent what happens next.

  24. The generated videos follow prompts rather than robot commands; a training setup would require fine-tuning the pre-trained LTX-2.5 checkpoint on a team's own robot frames and actions.

Questions and answers

How fast does Lightricks' LTX-2.5 generate video on AWS Trainium3?

Hugging Face engineers got LTX-2.5 to generate a 10-second clip with sound at 2048x1024 in 22 to 23 seconds on AWS Trainium3, once the models were loaded. The run used 32 of the 64 NeuronCores in one trn3.48xlarge machine, half of the machine.

How does LTX-2.5 on Trainium3 compare with the LTX API?

Lightricks says its online LTX API makes a 10-second 1080p clip in 23.7 seconds. The Hugging Face setup on AWS Trainium3 matched that and beat it by about a second, at 22 to 23 seconds for a 10-second 2048x1024 clip. The engineer found no reliable Nvidia CUDA figure to compare against.

Why did LTX-2.5 need changes to run on Trainium3?

The LTX-2.5 transformer did not fit on one Trainium3 NeuronCore, and the diffusers library had no plan to split it. Hugging Face engineers combined tensor parallelism four ways with sequence parallelism eight ways, putting 32 cores on one clip and taking generation from about 5 minutes 20 seconds to 22 to 23 seconds.

Can LTX-2.5 make multi-shot films on Trainium3?

LTX-2.5 can make draft films on Trainium3. Hugging Face wrote a film layer of about 160 lines of Python, published in dacorvo/video-generation, that chains shots from a JSON list so characters stay consistent. The model often gets details wrong, so each new shot got four takes, sound does not carry between shots, and a shot lasts at most 20 seconds.

What does LTX-2.5 have to do with robotics?

Lightricks calls LTX-2.5 a world model with robotics as an emerging use. Hugging Face started clips from one second of head-camera footage from a Fourier GR1-T2 humanoid robot and let LTX-2.5 invent what came next. Training robots on such clips would require fine-tuning the pre-trained LTX-2.5 checkpoint on a team's own frames and actions.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.