Hugging Face gets LTX-2.5 video generation running at API speed on AWS Trainium3
Hugging Face engineers describe how they cut LTX-2.5 generation of a 10-second clip with sound to 22 to 23 seconds on half of an AWS Trainium3 machine, and how they chain shots into short films.
Hugging Face engineers published a detailed account on November 27 of running Lightricks' open LTX-2.5 video model on an AWS Trainium3 machine. The post, written by David Corvoysier with Jingya Huang and Sayak Paul, describes how a 10-second clip with sound went from minutes to well under half a minute to generate.
What's new
- The hardware: Hugging Face had a trn3.48xlarge instance with 64 NeuronCores for a month through its AWS partnership, and spent the last five days of it on video generation.
- The result: once the models are loaded, the authors report 22 to 23 seconds for a 10-second 2048×1024 clip with audio, using 32 of the 64 cores. They compare this with the 23.7 seconds that LTX says its paid API needs for a 10-second 1080p clip.
- The starting point: the first working attempt took about 5 minutes 20 seconds per clip at a lower resolution. The post credits a 14× gain to splitting the model across cores with tensor and sequence parallelism, plus fixes on the host side such as running the pipeline on one process and decoding video on the accelerators.
- Films from a script: the workflow reads a JSON list of shots. Each shot can begin on the last frames of an earlier shot or end on the first frames of a later one, which keeps a character consistent across cuts. The authors say this layer is about 160 lines of Python on top of the diffusers library, and the code is public.
- Known limits: according to the post, the model still gets details wrong, so each shot needs several takes. Sound does not carry across shots, and a single shot is capped at 20 seconds.
Why it matters
Analysis: most open video models are tuned for NVIDIA GPUs, so a documented path to near-API speed on Trainium gives teams another option for self-hosting. The post is also candid about what broke along the way, and links bug reports and pending diffusers changes. That makes it a practical reference for anyone weighing Hugging Face tooling on AWS hardware. The speed figures are the authors' own measurements on one setup.
Source: Hugging Face