Trainium3 Runs LTX-2.5: 10-Second 2048×1024 Video in 22 Seconds
Hugging Face
November 27, 20264 min read7

Trainium3 Runs LTX-2.5: 10-Second 2048×1024 Video in 22 Seconds

By — Senior AI Technical Editor

Back to News
❝

Hugging Face announced that Lightricks' LTX-2.5 video and audio generation model runs on AWS Trainium3 (trn3.48xlarge with 64 NeuronCores), generating a 10-second 2048×1024 video with audio in 22-23 seconds on half the device. This outperforms the LTX API's 23.7 seconds for 1080p, with host time improved 35× and compute time 3× versus the first attempt. The breakthrough opens CUDA alternatives for film studios and developers.

Trainium3 Runs LTX-2.5: 10-Second 2048×1024 Video in 22 Seconds

Hugging Face announced the successful operation of Lightricks' LTX-2.5 video and audio generation model on an AWS Trainium3 device (trn3.48xlarge with 64 NeuronCores), achieving generation of a 10-second 2048×1024 video with audio in 22-23 seconds on half the device. This milestone, part of Hugging Face's partnership with AWS, outperforms the LTX API, which produces 1080p video in 23.7 seconds.

📊 Official Technical Specifications & Data Sheet

Technical Aspect Confirmed Official Data
💰 Pricing & Usage CostNot specified in the source; the model is open-source via diffusers, and the experiment used a Trainium3 device under the AWS partnership. The commercial LTX API produces 1080p in 23.7 seconds.
🌐 Platforms & Immediate AvailabilityAWS Trainium3 (trn3.48xlarge, 64 NeuronCores); Hugging Face diffusers library (LTX2Pipeline, LTX2ConditionPipeline, LTX2LatentUpsamplePipeline); dacorvo/video-generation repository on Hugging Face.
⚡ Performance & Speed Metrics22-23 seconds for a 10-second 2048×1024 video with audio (after model loading, on 32 cores). Host time improved from ~280 seconds to ~8 seconds (~35×). Compute time on NeuronCore improved from 45 seconds to 15 seconds (3×) with 4× pixels. First attempt: 5 minutes 20 seconds at 960×544 on 4 cores. Decoding: from 357 seconds to 1.6 seconds.
🛡️ Security & Breach ResistanceNot mentioned in the source.
🧠 Context WindowNot applicable (video generation model). Maximum clip duration 20 seconds. Maximum generation resolution 2048×1024.
🌍 Arabic Language & Regional SupportNo explicit Arabic support mentioned; the model relies on English text (paragraph prompts). Available globally via AWS.

Announcement Details & New Technical Features

The Hugging Face team utilized three software packages from diffusers: LTX2Pipeline for generating scenes from text, LTX2ConditionPipeline for scenes that start or end with frames from another scene, and LTX2LatentUpsamplePipeline for upscaling latents ×2 before 3 final steps. The team followed a two-stage distillation recipe: 8 steps then 3 steps after upscaling. For film management, a Python script of about 160 lines was developed that reads a JSON file of scenes, arranges them so that each keyframe precedes the scene that needs it, then cuts frames, removes excess parts, adds captions, balances audio, and assembles the film.

The team faced several technical challenges: the transformer did not fit on a single NeuronCore, so it was split across 4 cores using a tensor parallelism plan and a custom attention processor. Visual tokens were further split 8 times (sequence parallelism) to use 32 cores in the second stage with a time of 3.0 seconds per step. Key optimizations included: compile_repeated_blocks reduced tracing time from 388 seconds to 18 seconds, computing GELU in fp32 reduced transformer error from 0.297 to 0.158, and freezing parameters in 1 GB buffers reduced memory per core from 22.96 GB to 10.2 GB.

Benchmark & Competitive Performance

The team compared performance with the LTX API, which produces 1080p in 23.7 seconds; the optimized setup outperformed it by producing 2048×1024 in 22-23 seconds on half a Trainium3 device. For CUDA comparison, no reliable numbers were available except LTX's claim of producing 720p in 6.8 seconds on four B200 GPUs without measurement details. The following table summarizes the improvement:

MetricFirst AttemptOptimized SetupImprovement
Resolution960×5442048×10244× pixels
Time5 min 20 s22-23 s~14× faster
Cores Used4328× more
Host Time~280 s~8 s~35×
Compute Time per Step45 s15 s3×
Decoding Time357 s1.6 s~223×

Industry Impact & Enterprise Adoption

This achievement demonstrates that AWS Trainium3 can handle demanding generative AI workloads, offering a viable alternative to NVIDIA CUDA for video generation. Film studios and developers can leverage Trainium3's cost-effectiveness and scalability to produce high-resolution video content with synchronized audio. The open-source availability of the code and models via Hugging Face diffusers lowers the barrier to entry, enabling broader experimentation and adoption. As generative AI continues to evolve, hardware diversification will be crucial for meeting the growing demand for AI-generated media.

Conclusion

Hugging Face's successful deployment of LTX-2.5 on AWS Trainium3 marks a significant step forward in AI video generation, delivering high-resolution output at impressive speeds. With substantial optimizations and open-source accessibility, this development paves the way for more efficient and accessible AI-driven content creation, challenging the dominance of CUDA-based solutions.

Media Source: Hugging Face | البيان الرسمي للشركة: المصدر الأصلي | Fact Verification & Analysis: AI Tools Oasis

Original Source:Hugging FaceThis news was formulated based on coverage from Hugging Face

Frequently Asked Questions

What is the video generation speed of LTX-2.5 on Trainium3?

After model loading, LTX-2.5 generates a 10-second video with audio at 2048×1024 resolution in 22-23 seconds on half of a Trainium3 device (trn3.48xlarge). This surpasses the LTX API, which produces 1080p video in 23.7 seconds.

What are the specifications of the Trainium3 device used in the experiment?

The device is trn3.48xlarge with 64 NeuronCores. The experiment used 32 cores (half the device) to generate 2048×1024 video, while the first attempt used only 4 cores at 960×544 resolution and took 5 minutes and 20 seconds.

Does LTX-2.5 support audio generation alongside video?

Yes, Lightricks' LTX-2.5 generates video and audio together. In the experiment, the 10-second clip included synchronized audio, and the background audio level was balanced in the final film.

What is the maximum video clip length LTX-2.5 can generate?

The maximum length for a single clip is 20 seconds according to the model's limit. In the experiment, 10-second clips were generated and concatenated to form a short film.

Where can developers access the code for film generation using LTX-2.5 on Trainium3?

The code is available in the dacorvo/video-generation repository on Hugging Face, including about 160 lines of Python for managing scenes and stitching them together. The models themselves are available via the diffusers library using LTX2Pipeline, LTX2ConditionPipeline, and LTX2LatentUpsamplePipeline.

AI Tools Oasis

AI Tools Oasis Team

Bringing you the latest news and analysis in the world of Artificial Intelligence with accuracy and credibility. Follow us for all updates.

Related News