# Hugging Face gets LTX-2.5 video generation running on AWS Trainium3, and documents what broke

> A Hugging Face engineer took Lightricks' open video model from a 5-minute first run to 22-23 seconds per 10-second clip on half a Trainium3 machine, and published every workaround it took.

Source: Promptea — https://www.promptea.me/en/blog/hugging-face-ltx-2-5-video-generation-trainium3 · Language: English · Last updated: 2026-11-27

Published: 2026-11-27 · Event date: 2026-11-27 · Category: developer-tools · Author: Promptea Editorial

**Summary:** On November 27, 2026, Hugging Face published a hands-on report on running Lightricks' LTX-2.5, which generates video and sound together, through diffusers on an AWS Trainium3 instance. After five days of work, a 10-second 2048x1024 clip with sound took 22 to 23 seconds on 32 of the machine's 64 NeuronCores, once models were loaded. The figures are Hugging Face's own measurements and have not been independently reproduced.

Hugging Face published a detailed engineering write-up on **November 27, 2026** about getting [LTX-2.5](https://huggingface.co/Lightricks/LTX-2.5-Diffusers), Lightricks' open-weights model that generates video and audio together, to run on AWS Trainium3. The work was done on a trn3.48xlarge instance with 64 NeuronCores that Hugging Face had access to for a month through its AWS partnership; the video experiment took the last five days.

The headline number: once the models are loaded, a 10-second clip with sound at 2048x1024 took **22 to 23 seconds** on 32 NeuronCores, half the machine. Hugging Face compares that with LTX's own claim that its paid API makes a 10-second 1080p clip in 23.7 seconds. That is a rough comparison rather than a controlled benchmark: different resolutions, a vendor figure on one side, and one engineer's measurements on the other. The post says it found no comparable CUDA figure beyond LTX's claim of 6.8 seconds for a 720p clip on four B200 GPUs, which came with no methodology.

## From 5 minutes to 22 seconds

Out of the box, the model did not run on Trainium. The transformer does not fit on a single NeuronCore, and diffusers has no plan to split it. The first working attempt, at 960x544 on four cores, took about 5 minutes 20 seconds per clip, with the cores actually computing for only about 45 seconds of it.

The final setup splits the weights four ways (tensor parallelism) and the video tokens eight ways (sequence parallelism), so 32 cores work on one clip. According to the post, host-side time per clip fell from about 280 seconds to about 8, and time on the NeuronCores from 45 to 15 seconds, at roughly four times the pixels. Some of the individual fixes it reports:

- Running the pipeline on one process instead of every rank cut prompt encoding from about 205 s to 7.5 s; pinning CPU threads and skipping prompt padding brought it to 1.4 s.
- Decoding video on the NeuronCores instead of the CPU cut decode at 2048x1024 from 357 s to 1.6 s.
- Packing parameters into buffers of at most 1 GiB cut memory per core from 22.96 GiB to 10.2 GiB, working around an allocator issue the author filed against torch-neuronx.
- Computing GELU activations in fp32 roughly halved the transformer's numerical error, after torch-neuronx was found to compute bf16 GELU entirely in bf16.
- Generating at sizes where the sequence length is a multiple of 128 tokens let attention use the fast kernel, cutting a transformer step from 4.3 s to 3.0 s.

Three problems were never explained, the post says, including a NaN at one size when the transformer was compiled as a single graph. Two related diffusers pull requests, one fixing the LTX-2 pipelines and one adding a unified parallelism config, were still open at publication. Cold start also matters for anyone thinking of a service: loading the models took about 3 minutes, and the first clip about 80 seconds.

## Prompts as a storyboard

The prompting side is the part most readers can reuse. The input is a JSON file listing shots, each with a name, a long paragraph-style prompt covering style, subject, motion, camera, light and sound, and a seed. Because prompts alone do not keep a character consistent across shots, shots can start or end on frames of another shot. The author recommends generating the key payoff shot first and building the others around it.

The author made four takes of each new shot and picked one; in one case the same prompt produced wrong horns on a goat in three takes out of four. Each shot is capped at 20 seconds, sound does not carry over between shots, and re-running the same code, film file and seeds reproduces the film byte for byte, per the post.

The post also tries LTX-2.5 as a world model for robotics, continuing the first second of real robot and car camera footage. It notes that the prompt did not override motion already implied by the footage, and that real training would need generation conditioned on actions, not text.

## Context

AWS describes Trainium3 as its third-generation AI chip, with 144 GB of HBM3e per chip, and positions Trn3 mainly for training and serving large transformers. This post is one of the more concrete public accounts of what it takes to move a non-LLM diffusers workload onto it. It is a single first-party engineering report; no independent reproduction is available yet.

## Key takeaways

- Hugging Face reports 22-23 s per 10-second 2048x1024 clip with sound on 32 of 64 Trainium3 NeuronCores.
- The first working run took about 5 min 20 s; the speed figures are Hugging Face's own, not independently reproduced.
- Model loading takes about 3 minutes, so the per-clip figure assumes a warm service.
- Long, structured prompts plus shared frames between shots kept subjects consistent; several takes per shot were still needed.

## Why this matters

- It is a rare detailed account of porting a large video diffusion pipeline off NVIDIA hardware, including the bugs that remain unexplained.
- Most of the reported speedup came from host-side fixes such as process layout, thread pinning and avoiding padded encoding, lessons that apply beyond Trainium.
- The JSON storyboard approach shows a practical way to structure prompts for multi-shot video and keep subjects consistent.

## Sources

- [Taking Trainium3 to the Track: Generating Videos with LTX-2.5](https://huggingface.co/blog/video-trainium3) — Hugging Face (primary source), accessed 2026-11-27
- [Lightricks/LTX-2.5-Diffusers model page](https://huggingface.co/Lightricks/LTX-2.5-Diffusers) — Lightricks (Hugging Face Hub) (primary source), accessed 2026-11-27
- [Amazon EC2 Trn3 instances](https://aws.amazon.com/ec2/instance-types/trn3/) — Amazon Web Services (primary source), accessed 2026-11-27

*Researched with AI assistance and verified against primary sources before publishing. Every claim links to where it came from.*
