Get the daily emailDaily email
  1. Home
  2. Guides
  3. This story

Generating video with LTX-2.5 on AWS Trainium3

A Hugging Face engineer ran Lightricks' LTX-2.5, which generates video and sound together, with diffusers on an AWS Trainium3 machine (trn3.48xlarge). After five days of optimization, a 10-second clip with sound at 2048×1024 takes 22-23 s on half the machine…

Published Read the original
Generating video with LTX-2.5 on AWS Trainium3

Why it matters

It shows that video diffusion models can run on non-NVIDIA hardware like Trainium3 at speeds close to a commercial API, with a documented list of workarounds.

What happened

1 min read

A Hugging Face engineer ran Lightricks' LTX-2.5, which generates video and sound together, with diffusers on an AWS Trainium3 machine (trn3.48xlarge). After five days of optimization, a 10-second clip with sound at 2048×1024 takes 22-23 s on half the machine, down from 5 min 20 s on the first attempt. The code, including about 160 lines of Python that assemble multi-shot films from a JSON storyboard, is published in dacorvo/video-generation.

inscraper analysis

Our analysis

The real value is the list of concrete problems and fixes: no tensor-parallel plan in diffusers, torch-neuronx computing GELU fully in bf16 and losing accuracy, and the need for sequence parallelism to reach high resolution. The speed comparison is only against LTX's own claim for its API, with no comparable CUDA baseline, so 'matches the API' should be read loosely. The largest end-to-end savings came from the host side, a lesson that applies to any accelerator. The shot-chaining idea (starting or ending a shot on another shot's frames to keep the subject consistent) is hardware-independent and useful to anyone working with LTX. The post comes out of an AWS partnership and partly doubles as Trainium promotion.

More in Guides