Taking Trainium3 to the Track: Generating Videos with LTX-2.5
Video generation on AWS Trainium3 can now rival Lightricks' paid API in speed, giving teams a non-CUDA inference option, though only after heavy custom patching.
A Hugging Face engineer spent a month with AWS's new Trainium3 computer chip and used it to make short AI-generated videos with the model LTX-2.5 from Lightricks, which creates picture and sound together. He stitched shots into small films (a seal, a fox, a goat) using a storyboard file that chains shots together so characters stay consistent. Once loaded, a 10-second clip took 22-23 seconds, roughly matching Lightricks' paid online service, on just half the machine.
Hugging Face reports LTX-2.5 running on half of an AWS Trainium3 instance generates a 10-second 2048×1024 clip with sound in 22-23 seconds, beating Lightricks' own API (23.7 s). The caveat: it took a month of engineering, tensor and sequence parallelism, dozens of bug fixes, out of the box the model didn't run at all (5 min 20 s per clip). Model loading takes about 3 minutes, so this is a proof of concept, not a turnkey service. Companies considering non-NVIDIA inference hardware should note the effort involved.
LTX-2.5's transformer doesn't fit on one NeuronCore, so the author added tensor parallelism (TP-4) plus custom sequence parallelism (SP-8) via diffusers attention processors, running on 32 of 64 cores at ~3.0 s/step for stage 2. Fixes included bf16 GELU (error 0.297→0.158), block graph compilation, CPU thread pinning (prompt encoding 7.4→3.3 s), and host-side optimization (~280 s→8 s). Two-stage distilled pipeline: 8 steps, ×2 latent upsample, 3 more steps. Limitations: 20 s max per shot, three unexplained issues, sound doesn't carry across shots.