Tools

Hugging Face generates 10-second AI videos with sound on AWS Trainium3

Hugging Face ran Lightricks' LTX-2.5 with diffusers on Trainium3 and got a 10-second clip with sound in 22 to 23 seconds on 32 NeuronCores.

Published

Grayscale film camera resting on a computer chip with one red lens ring
AI-generated image

TL;DR

  • A 10-second 2048×1024 clip with sound took 22 to 23 seconds on half of a trn3.48xlarge, once the models were loaded [1].
  • The first working attempt took about 5 min 20 s at 960×544; the tuned setup was 14 times faster [1].
  • Films are written as a JSON list of shots, and the code is public in dacorvo/video-generation [1].

Hugging Face published a test of AI video generation on AWS Trainium3 on 27 November 2026. The team ran Lightricks’ LTX-2.5, a model that generates video and sound together, through the diffusers library [1]. Once the models were loaded, a 10-second clip with sound at 2048×1024 took 22 to 23 seconds on half of the machine [1].

The setup

Through its partnership with AWS, Hugging Face had a Trainium3 machine (trn3.48xlarge, 64 NeuronCores) for a month, mostly to test and port Hugging Face models [1]. The video work used the last five days of that month [1].

Out of the box, the model did not run on the NeuronCores: the transformer did not fit on one core, and diffusers had no way to split it [1]. The first version that ran split the transformer over 4 cores and took about 5 min 20 s for a 10-second clip at 960×544. The cores were computing for only about 45 seconds of that time [1].

The tuned version uses 32 cores: tensor parallelism splits the weights 4 ways, and sequence parallelism splits the video tokens 8 ways (TP-4 × SP-8) [1]. It made a clip with about four times more pixels in 22 to 23 seconds, 14 times faster than the first attempt [1]. According to the post, the biggest end-to-end gains came from making the host keep up with the accelerator [1].

How the “film” pipeline works

The input is a JSON file that lists shots, each with a name and a long prompt, like a storyboard [1]. Two keys chain shots together. from starts a shot from the last frames of an earlier one, and to ends a shot on the first frames of a later one. This keeps a subject looking the same across cuts [1]. Three diffusers pipelines share the LTX-2.5 models: LTX2Pipeline, LTX2ConditionPipeline and LTX2LatentUpsamplePipeline. They follow the model card’s distilled recipe: 8 steps, a ×2 latent upscale, then 3 final steps [1]. The film logic on top is about 160 lines of Python, published in the dacorvo/video-generation repository [1].

Limits of the comparison

The author found no detailed CUDA figure to compare against. Lightricks claims 6.8 seconds for a 10-second 720p clip on four B200 GPUs but gives no measurement details [1]. So the post compares with LTX’s online API instead, which Lightricks says makes a 10-second 1080p clip in 23.7 seconds [1]. The timings also exclude model loading [1]. For developers, the result shows that open video models can run on a non-NVIDIA accelerator through diffusers, but getting there took custom parallelism work and several fixes.

Sources

Written and checked by AI from the sources below

  1. Taking Trainium3 to the Track: Generating Videos with LTX-2.5Hugging Face ·

Fact-checked by gpt-6.1-sol on · Editorial policy