Skip to content
audiotale.net
Sign in
NewsNews

LTX-2.5 on AWS Trainium3: 10-second 2048x1024 clip in 22 seconds, how Hugging Face did it

Hugging Face engineers report cutting a 10-second video clip with sound from 5 minutes 20 seconds to about 22 seconds, with code, open problems and caveats.

audiotale.net team

· 7 min read

Written by AI from the sources linked below. How we use AI

On this page
  1. Key points
  2. What happened
  3. Background
  4. The numbers
  5. How it works
  6. What it means
  7. What we don't know yet
  8. What to watch next
  9. Sources

Hugging Face engineers have published a detailed account of running Lightricks' open LTX-2.5 video-and-sound model on an AWS Trainium3 machine, and of the work needed to make it fast. In their post dated 27 November 2026, they say a 10-second clip with sound at 2048x1024 now takes 22 to 23 seconds of wall-clock time once the models are loaded, down from 5 minutes 20 seconds for the baseline at a lower resolution. It is a useful look at what it takes to move a large video model off NVIDIA GPUs, and it comes with code anyone can read.

Key points

  • David Corvoysier, Jingya Huang and Sayak Paul of Hugging Face ran LTX-2.5 with the diffusers library on a trn3.48xlarge instance (64 NeuronCores), using half the machine (32 cores) per clip.
  • Their optimised setup makes a 10-second clip with sound at 2048x1024 in 22 to 23 seconds of wall time with models loaded, about 14 times faster end to end than their baseline, which took 5 minutes 20 seconds at 960x544 on 4 cores.
  • The post cites 23.7 seconds for a 10-second 1080p clip on LTX's own API as its comparison point, and says it did not use LTX's claimed 6.8 seconds on four B200 GPUs (720p) because no measurement method is stated.
  • The authors list open problems: one NaN result, a slow first keyframe-ending shot per process, a latent upsampler that stays on the CPU, and clips capped at 20 seconds.
  • Code is at github.com/dacorvo/video-generation, and two related diffusers pull requests (#15420 and #14725) are still open.

What happened

The Hugging Face team wanted to know whether diffusers could generate short films on Trainium3, AWS's newest machine-learning chip, and whether the speed could approach CUDA GPUs or LTX's hosted API. They worked on a trn3.48xlarge instance with 64 NeuronCores, which they got through a month-long AWS partnership. Generation used 32 of those cores.

The model is LTX-2.5 from Lightricks, which makes video and audio together. The Hugging Face post lists it as 19 billion parameters; the model files on the Lightricks repository carry the name 22b, and press coverage we found describes a 22-billion-parameter model, so we treat the size as a point on which sources disagree. Three diffusers pipelines share the same weights: LTX2Pipeline makes a shot from a prompt, LTX2ConditionPipeline makes shots that start or end on frames from another shot, and LTX2LatentUpsamplePipeline doubles the resolution in latent space. The two-stage distilled recipe runs 8 steps, upscales, then runs 3 final steps.

To make films, the team wrote about 160 lines of Python on top of diffusers. The input is a JSON list of shots with a name, a long style-and-motion prompt and an optional seed. Shots can start from the last frames of an earlier shot (the example uses 25 frames) or end on the first frames of a later shot (9 frames), which keeps subjects consistent across cuts. They describe two orderings: "straight ahead", where each shot follows the last, and "pose to pose", where the key shot comes first and its neighbours are built around it.

Background

LTX-2.5 is an open-weights model. The Hugging Face repository says it uses the LTX-2.x Community License: commercial use is free under US$10 million in annual revenue, and a paid agreement is needed above that. The repository is gated, so downloads need agreeing to share contact details. The model card lists native multi-shot generation, a diffusion video decoder and a Gemma 4 12B text encoder among the additions over earlier versions. Press coverage places the release in August 2026 and repeats the vendor's claim that it can make a 10-second clip in 6.8 seconds on NVIDIA's latest hardware.

Trainium is AWS's own accelerator line, usually discussed for large-language-model training. Video generation is a different load: much larger sequences, heavy use of attention, and a decoder that turns latents into pixels. The post's value is in showing, with numbers, where the time went when the model was first moved over.

The numbers

The team's headline is the end-to-end gain from 5 minutes 20 seconds to 22 to 23 seconds. Of the baseline's 5 minutes 20 seconds, about 45 seconds were spent on the NeuronCores, and the rest on the host. After optimisation about 15 seconds are on the cores. The post says host time fell about 35 times, and it lists the changes that mattered most:

Time before and after selected fixes, LTX-2.5 on Trainium3seconds
Time before and after selected fixes, LTX-2.5 on Trainium3 (seconds)
seconds
Tracing, before388
VAE decode, before357
Prompt encoding, before205
Tracing, after18
Prompt encoding, after7.5
VAE decode, after1.6

Source: Hugging Face blog post, 27 November 2026

The chart shows three of the changes; the post reports others:

  • compile_repeated_blocks cut tracing from 388 seconds to 18.
  • Computing GELU in fp32 worked around a bf16 problem: the transformer's error against fp32 fell from 0.297 to 0.158, close to CPU bf16 at 0.160.
  • Packing parameters into buffers of at most 1 GiB cut memory per core from 22.96 GiB to 10.2 GiB.
  • Using 1024x512 per-frame token counts reached the fast attention path and cut step time from 4.3 seconds to 3.0 seconds.
  • Moving the VAE decode onto the NeuronCores cut it from 357 seconds to 1.6 seconds at 2048x1024.
  • Prompt encoding dropped from about 205 seconds to 7.5 seconds by running the pipeline only on rank 0 and fixing thread contention, and later tuning brought it to about 1.4 seconds.

How it works

The transformer does not fit on one core, so the team used tensor parallelism across 4 cores and sequence parallelism across 8 chips, 32 cores in total per clip. Sequence parallelism, the post says, is what made 2048x1024 feasible. The text encoder stays on the CPU, with inputs and outputs moved to and from the cores, and a custom attention processor plus a tensor-parallel plan were written for the model.

Services would pay a start-up cost: about 3 minutes to load the models and about 80 seconds for the first clip, the post says. That matters when comparing with an API that is always warm.

What it means

For developers, the main message is that a non-CUDA path for a 20-billion-class video model now exists in the open, with the work shown. Anyone considering Trainium for generative video can see which changes gave the biggest gains: reducing host overhead, choosing graph sizes that hit fast kernels, and moving the decoder onto the accelerator. The authors' lessons list is practical: validate each split against the CPU before running on device, and note that editing traced code could trigger recompiles of up to 30 minutes per graph in the build they used (reported upstream as #1027, now closed).

For the market, the comparison is cautious. The only external number the post trusts is the hosted API's 23.7 seconds for a 10-second 1080p clip, which is in the same range as 22 to 23 seconds at a higher 2048x1024 resolution. It is not a like-for-like test: the post gives no cost per clip, power use or price comparison, and it does not compare against GPUs on identical settings. Treat it as proof that Trainium3 can be competitive on latency for this model, not as a price-performance verdict.

For creators, the limits are listed plainly. Details are often wrong, so the team generated four takes per shot and chose one; audio does not carry across shots; clips are capped at 20 seconds; and the films are drafts, not finished productions. Prompts alone did not keep characters consistent. Sharing frames between shots did.

The post also tries robotics-style footage: real clips from a Fourier GR1-T2 humanoid (from NVIDIA's GR1-100 dataset) and a car camera in snowstorm conditions (the Boreas dataset). Given the first second, the model continued the scene consistently, and different prompts produced different plausible events. Actions were not controllable, so the authors suggest fine-tuning the pre-trained checkpoint on robot data for action-conditioned generation.

What we don't know yet

  • Cost per clip on Trainium3 compared with GPUs, which the post does not report.
  • Whether the two open diffusers pull requests will land: #15420 fixes the LTX-2 pipelines and would make one workaround unnecessary, and #14725 unifies tensor and context parallelism under one ParallelConfig, with a planned _tp_plan for LTX-2.5.
  • The unresolved issues the authors list: a single-graph transformer returned NaN at one size, the first keyframe-ending shot is slow in each new process, and the latent upsampler fails to load next to the transformer, so it runs on the CPU.
  • The post does not state licences for the code or models it used; the model's own licence is above.
  • The parameter count, where sources differ (19 billion in the post, 22 billion in file names and press coverage).

What to watch next

Watch the two diffusers pull requests, any AWS or Lightricks follow-up with price figures, and whether the Neuron software closes the recompile and NaN gaps. If you want to try it, the code is at github.com/dacorvo/video-generation, the film files are in the Hugging Face bucket dacorvo/video-generation, and the models are Lightricks/LTX-2.5-Diffusers and Lightricks/LTX-2.5-Pre-Trained. For another case of an AI lab publishing hard numbers on a systems change, see our article on Anthropic's move of its Messages API to Rust.

Sources

Written by

audiotale.net team

The official account of the people who run audiotale.net: announcements, conversation starters and the newsroom's drafts. Posts written with AI say so. Every other account here is a real person.