Hugging Face put AWS Trainium3, Amazon’s latest AI chip, to the test by running Lightricks’ LTX-2.5 model for generating video with audio. The experiment reveals Trainium3’s ability to support complex, open video AI models and reach performance levels similar to closed commercial APIs.
What Happened
In a recent experiment, Hugging Face engineers used an AWS Trainium3 “trn3.48xlarge” machine, equipped with 64 NeuronCores, to evaluate the video and audio generation capabilities of Lightricks’ LTX-2.5 model. Focusing on both ease of implementation and performance, they assembled a workflow to create short films from scripts using open-source diffusers pipelines. The team achieved generation times of 22 to 23 seconds for 10-second video clips with audio at 2048×1024 resolution, once the models were loaded, using half the available cores. This matches or narrowly exceeds the speed of LTX’s online API reported at 23.7 seconds for a 10-second 1080p clip. The experiment required substantial adaptation to Run LTX-2.5 efficiently on Trainium3 hardware, overcoming hardware and software limitations to achieve these results.
Key Takeaways
- 10-second video clips with audio can be generated in about 22-23 seconds on Trainium3 hardware.
- Performance closely matches reported speeds of LTX-2.5 API at similar or higher resolutions.
- The project used a trn3.48xlarge AWS instance with 64 NeuronCores; only half were needed for these results.
- Extensive code and architecture changes were required to adapt the open model to Trainium3.
- Workflow supports chaining shots using prompts for advanced video generation.
The Details
The approach begins with a ‘film’ input, structured as a JSON list of shots—each shot containing a name, prompt, and optional seed, mirroring the format of a storyboard. LTX-2.5, the AI model chosen for generation, produces both video and synchronized audio, given detailed prompts describing style, motion, visuals, and sound. Chaining of shots is supported through ‘from’ and ‘to’ keys for continuity, allowing complex narratives and transitions, similar to film editing. The generation pipeline consists of three diffusers-based components: LTX2Pipeline for prompt-only shots, LTX2ConditionPipeline for shots conditioned on previous frames, and LTX2LatentUpsamplePipeline for latent upscaling.
Orchestration is handled with about 160 lines of Python, ordering shots, loading and trimming frames, adding captions, assembling, and post-processing sound. The code is open source and available in the dacorvo/video-generation repository. Examples include three generated short films featuring a seal, a fox, and a goat, each demonstrating film-like editing and chaining.
To run efficiently on Trainium3, major hurdles were overcome: the model’s transformer component exceeded the memory of a single NeuronCore and required splitting across multiple cores (tensor parallelism and sequence parallelism). Other optimizations addressed memory allocation, parallelization of prompt encoding, and offloading certain functions from CPU to the AI device. These changes dramatically reduced generation times from over five minutes to just over 20 seconds for high-resolution clips.
Background and Context
LTX-2.5 by Lightricks is a video diffusion model capable of producing synchronized video and audio content, with open weights hosted on Hugging Face. AWS Trainium3, the latest AI hardware from Amazon, launched to support high-throughput model training and inference workloads. While GPUs have been the default standard for similar work, particularly those supporting Nvidia CUDA, this trial shows that Trainium3 can compete for advanced video AI tasks, if given focused engineering. The experiment builds on Hugging Face’s ongoing work enabling open models to run beyond the Nvidia ecosystem.
BytesWall Analysis
This experiment signals tangible progress toward more hardware diversity in high-end generative AI, potentially reducing dependency on Nvidia GPUs for complex tasks like video generation. Developers, founders, and enterprises building video AI systems could benefit from a larger menu of hardware options—especially in cloud environments dominated by AWS. However, portability is not free: the adaptation required substantial, performance-specific engineering including manual parallelism, custom memory management, and architectural workarounds. Such efforts may be prohibitive for smaller teams or production environments that depend on stable, well-supported tooling.
One open question is whether future model architectures (or updates to diffusers and related libraries) will make this kind of porting easier or more standardized, closing the gap with the out-of-the-box experience available on CUDA. A practical step for technical readers is to review the open-source code and performance notes released by Hugging Face and assess whether their own model architectures and workloads are suitable for forthcoming AI hardware like Trainium3. Teams should consider both the potential long-term savings and the up-front investment in engineering time when evaluating non-GPU accelerators.
What to Watch Next
- Will more open-source video models and frameworks add first-class support for non-Nvidia hardware like Trainium3?
- How will the AWS ecosystem, tooling, and managed services evolve to make video AI workloads more accessible on Trainium?
- Will future generations of Trainium hardware and software lower the barrier for complex model porting and optimization?
Read more in our AI News Hub
Source: read the original announcement. BytesWall adds summary and analysis.