Skip to content
Apixo
Blog
news· 3 min read· via Hugging Face blog

Hugging Face Benchmarks LTX-2.5 Video Generation on AWS Trainium3

Hugging Face tested Lightricks' LTX-2.5 video model on AWS Trainium3, achieving 22-second generation times for 10-second high-resolution clips after custom parallel optimization.

Hugging Face Benchmarks LTX-2.5 Video Generation on AWS Trainium3

Engineers at Hugging Face recently shared performance benchmarks and optimization techniques for running Lightricks' multimodal video model, LTX-2.5, on Amazon Web Services' latest AI hardware, Trainium3. Given access to a trn3.48xlarge instance featuring 64 NeuronCores through a partnership with AWS, the team spent the final days of their trial pushing the hardware to generate high-resolution video and audio clips. The results demonstrate that AWS's custom silicon can match or surpass commercial API speeds for video generation when properly configured.

Benchmarking LTX-2.5 on Trainium3

Initially, running LTX-2.5 out of the box on Trainium3 presented severe bottlenecks. The baseline implementation took five minutes and 20 seconds to generate a 10-second clip at 960×544 resolution across four cores, with the NeuronCores actively computing for only 45 seconds of that duration. The transformer architecture did not fit onto a single NeuronCore, and default Hugging Face diffusers pipelines lacked native tensor parallelism plans for the model.

To overcome memory limitations and host-side delays, the team implemented a combination of tensor parallelism (TP-4) and sequence parallelism (SP-8), splitting video tokens eight ways across 32 NeuronCores—half of the 64-core Trainium3 machine. They also moved pipeline operations to host CPUs where appropriate, resolved numerical precision issues in torch-neuronx by computing GELU activations in fp32, and optimized sequence lengths to leverage fast kernel paths.

These adjustments drastically reduced wall-clock generation time. A 10-second clip with audio at 2048×1024 resolution generated in 22 to 23 seconds once models were loaded into memory. This performance beats Lightricks' own commercial API benchmark of 23.7 seconds for a 1080p clip, while host-side execution overhead dropped from roughly 280 seconds down to 8 seconds.

Crafting continuous films and world models

The experiment extended beyond isolated clips. Using a 160-line Python script built over diffusers pipelines (LTX2Pipeline, LTX2ConditionPipeline, and LTX2LatentUpsamplePipeline), the team authored short films—including animated stories of a seal, a fox, and a goat—driven by JSON storyboard files. To maintain visual consistency across cuts, they chained shots using from and to frame keys, preserving subject appearance and motion across transitions with pose-to-pose and straight-ahead animation strategies.

Beyond creative video production, Hugging Face evaluated LTX-2.5 as a world model for synthetic data generation in robotics. By providing the model with the first second of real camera footage from an NVIDIA GR1-100 dataset featuring a Fourier GR1-T2 humanoid robot, LTX-2.5 synthesized plausible continuations, such as generating variations where a human hand intervenes to assist the robot in grabbing an orange. Similar tests were conducted using driving footage in a snowstorm from the Boreas dataset.

What it means for developers

The Hugging Face team's project demonstrates both the raw capabilities and the current engineering investment required to run complex video models on non-GPU hardware like Trainium3. Reaching full hardware performance required building custom attention processors, implementing multi-core sequence distribution, and manually pinning host threads to eliminate CPU bottlenecks.

For teams building production AI workflows or evaluating model architectures, infrastructure complexity remains a key factor. Developers looking to test top AI models cheaply through one API can do so via https://apixoai.online without needing to manage specialized hardware deployments.

As open-source tooling matures—including ongoing updates to Hugging Face diffusers to standardize tensor and context parallelism—deploying multi-stage video models across specialized hardware accelerators is expected to become significantly easier.


Source: Taking Trainium3 to the Track: Generating Videos with LTX-2.5 — Hugging Face blog. Written by the Apixo team from that report.

#ai-news#ai#huggingface#trainium3#machinelearning#hardware
Try it with your own tools

One key for Claude, GPT, GLM, DeepSeek and more. Pay per token with crypto.

Get your API key

Keep reading