Thursday, 3 Dec 2026 Global Edition
Live Wire
AI Today Daily AI journalism & intelligence
Front Page Models & Research Baca versi Indonesia

How Hugging Face Made LTX-2.5 Run 14x Faster on AWS Trainium3

A Hugging Face team made LTX-2.5 run 14x faster on AWS Trainium3 — then wrote three short films as JSON files. Here is the full recipe.

How Hugging Face Made LTX-2.5 Run 14x Faster on AWS Trainium3

A fox sprints across a field. A seal slips off an iceberg. A goat stares into the camera with horns that — in three takes out of four — came out wrong. None of these short films was shot with a camera. They were assembled from JSON files and about 160 lines of Python, running on Amazon-made silicon. And one detail made the engineers behind them quietly proud: the same code and the same files produce the same film, byte for byte, every single time.

Hugging Face's November 27 blog post, “Taking Trainium3 to the Track: Generating Videos with LTX-2.5,” is the travelogue of that expedition, written by David Corvoysier, Jingya Huang and Sayak Paul. For one month, through the Hugging Face–AWS partnership, the team had access to a trn3.48xlarge instance with 64 NeuronCores. The mission looked simple and was anything but: make LTX-2.5 — Lightricks' 19-billion-parameter model that generates moving images and sound together — run fast on a chip that is not a GPU. The opening sentence sets the tone: “When you have a Ferrari, every now and then you want to take it out on the track.”

The problem was that this Ferrari initially struggled to leave the garage. The model's transformer does not fit on a single NeuronCore, and diffusers, Hugging Face's generation library, had no native Trainium support. The first attempt produced a 10-second clip at 960×544 in five minutes and twenty seconds. Working — but only just.

Fourteen times faster, at four times the resolution

The final numbers: 22 to 23 seconds of wall time for a 10-second clip with sound at 2048×1024 — four times the pixel count of the first attempt — of which 15 seconds were pure compute across 32 NeuronCores. That is a 14x speedup over the starting point, while host-side time collapsed from roughly 280 seconds to 8, a 35x factor. The sweetest benchmark lives outside the lab: Lightricks' paid API takes 23.7 seconds for a 10-second 1080p clip, and this machine matched and slightly beat it.

The team was equally candid about the comparison it refused to make. Lightricks claims 6.8 seconds on four B200 GPUs for 720p output, without measurement details anyone can inspect. Rather than compare apples with oranges, the authors set CUDA aside and focused on one question: how far can a non-GPU chip be pushed with genuinely hard engineering work?

The road there was winding. The model's weights were split four ways through tensor parallelism because one core was not enough; the text encoder moved to the CPU because it would not fit beside the transformer; and a fix called compile_repeated_blocks cut tracing time from 388 seconds to 18 while curing a mysterious NaN at one specific size. When bf16 GELU computations proved to be corrupting precision, the team forced the operation into fp32 and watched the error drop from 0.297 to 0.158.

The “making it fast” list is longer still. Parameters were packed into buffers of at most 1 GiB, cutting memory use from 22.96 GiB to 10.2 GiB per core. Custom attention processors enabled sequence parallelism, splitting video tokens eight ways so 2048×1024 ran at 3.0 seconds per step on 32 cores. Video decoding, which had consumed 357 seconds on the CPU, moved onto the NeuronCores via shared memory and now takes 1.6 seconds. Even something as small as calling .contiguous() before device copies cut per-step time on 16 cores from 5.6 seconds to one. The final layout — TP-4 times SP-8 — splits weights four ways and video tokens eight ways: how a single clip claims an entire machine.

The lessons the team carried home sound unheroic but useful. Host optimization matters as much as device optimization — the 35x host-side win would never have happened if all the effort had gone into the chip. Sequence parallelism, not tensor parallelism, is the key to using the whole machine, because the number of attention heads caps how far weights can be split. And on Trainium, graph shapes decide everything — oversized graphs simply fail to load. The humblest advice matters most: check against the CPU first. That is where the GELU issue was caught.

Writing films like an animator

On top of the machine, the team built something more interesting than a benchmark: a way to write films. The input is not one long prompt but a JSON “film file” — a list of shots with names, prompts, optional seeds, and chaining keys. from starts a new shot from the previous shot's final frames — 25 frames, exactly one second, enough to carry motion; to ends a shot on another shot's opening frames. Prompts alone proved unable to keep subjects consistent across shots; frame chaining managed it. Two workflows borrowed from animation: straight ahead, where each shot continues the last — the fox film — and pose to pose, where the payoff shot is made first — the seal film was built backward from the iceberg shot.

The results are still called drafts, with refreshingly honest reasons. Details come out wrong often enough that a single shot takes multiple takes — the goat got correct horns in only one of four attempts. Sound does not carry between shots: background levels can be evened out, conversations cannot. And every shot tops out at 20 seconds. The authors call the machine fit for film drafting and synthetic data, not final production.

The most far-sighted part is the world-model demo. The model was given one second of head-cam footage of a Fourier GR1-T2 humanoid robot from the NVIDIA GR1-100 dataset and asked to continue — and it invented an orange-grab consistent with reality. Change only the prompt, and the world changes with it: the robot arm adapts when the action becomes a human helping to lift the fruit. But some physics cannot be overridden by prompting: on Boreas snowstorm car footage, asking the car to accelerate lost against what the footage itself implied. For robotics work that needs action-conditioned generation, the team suggests fine-tuning the LTX-2.5-Pre-Trained variant on frames plus actions.

The post's ending does not chase applause. “The Ferrari made it around the track,” the authors write, “on half of its cylinders.” For studios that need fast drafts and synthetic data, this half-cylinder machine is already dependable — it matched a paid API on half an instance. For final-cut cinema, the remaining cylinders are still waiting to be lit: an unexplained NaN, recompiles that can eat 30 minutes, and a latent upsampler that refuses to sit beside the transformer. The track, at least, is now open to the public.

References

Partner Spotlight Explore today’s curated technology offers