Field noteNov 27, 20265 min read1 source

Taking Trainium3 to the Track: Generating Videos with LTX-2.5

In one minute

Hugging Face says it had access to a Trainium3 machine through its AWS partnership for a month, but began the video experiment with only five days left. Using Lightricks’ LTX-2.5, which generates video and sound together, the optimized setup produced a 10-second, 2048×1024 clip with sound in 22–23 seconds after the models were loaded, using 32 NeuronCores. (huggingface.co) The machine was a trn3.48xlarge with 64 NeuronCores.

What changed: Hugging Face and AWS generated a 10-second LTX-2.5 video with sound on Trainium3 in 22–23 seconds, matching or slightly beating LTX’s online API benchmark.

What happened

The film input is a JSON list of shots, each with a name and prompt and optionally a seed. A from key conditions a shot on frames from an earlier shot; a to key uses frames from a later one. (huggingface.co) For the seal film, the author generated the payoff shot first, then conditioned surrounding shots on its opening or closing frames—a practical answer to the author’s observation that prompt text alone does not preserve a subject across shots. (huggingface.co)

Three Diffusers pipelines share the LTX-2.5 models: prompt-only generation, frame-conditioned generation and latent upscaling. The recipe uses eight steps, 2× latent upscaling and three final steps; about 160 lines of Python order and assemble shots, trim and caption them, and even out sound. The author says the code and generated films with their JSON files are in dacorvo/video-generation. (huggingface.co)

The model did not fit on one NeuronCore, and Diffusers had no tensor-parallel plan for it. The working setup used tensor parallelism across four cores and sequence parallelism across eight partitions to run a clip on 32 cores; sequence parallelism reduced per-core graph size enough to load the 2048×1024 stage. (huggingface.co) The text encoder ran on CPUs because it could not fit on a NeuronCore alongside the transformer. (huggingface.co)

The first working attempt took 5 minutes 20 seconds to generate a 10-second, 960×544 clip on four NeuronCores. The article’s reported improvements show why the final result was not just a model-port story:

  • Compiling one transformer block with compile_repeated_blocks yielded finite outputs and cut tracing time from 388 to 18 seconds.
  • Computing GELUs in fp32 lowered transformer error against fp32 from 0.297 to 0.158; the reported CPU bf16 value was 0.160.
  • Running the pipeline only on rank 0 and distributing call arguments cut prompt encoding from about 205 to 7.5 seconds. Packing parameters into buffers no larger than 1 GiB reduced per-core memory from 22.96 GiB to 10.2 GiB.
  • At 1024×512, NEURON_LOGICAL_NC_CONFIG=2 enabled a fast attention path and reduced a transformer step from 4.3 to 3.0 seconds.
  • Moving video decoding from CPU to NeuronCores and splitting it by frames reduced 2048×1024 decoding from 357 seconds to 1.6 seconds. Calling .contiguous() before a device copy cut a 16-core step from 5.6 to 1.0 seconds.
  • Pinning rank 0’s threads to CPUs unused by other ranks and capping the other ranks’ threads cut prompt encoding from 7.4 to 3.3 seconds and a stage-one step from 0.9 to 0.6 seconds. Encoding only prompt tokens rather than padding cut prompt encoding from 3.4 to 1.4 seconds.

Across the work, the author reports host time per clip falling from about 280 to 8 seconds and NeuronCore compute time from 45 to 15 seconds, attributing the largest end-to-end savings to host-side work.

What the archive adds

This case extends our earlier coverage of kernel and runtime work as a central part of real-time video generation. (earlier New Runtime note) It also puts a concrete video workload alongside Hugging Face’s Trainium model-support lookup, which reports model compatibility and provides test details and runnable scripts. (earlier New Runtime note)

Why it matters

Teams evaluating Trainium for video should budget for two distinct engineering tracks: partitioning a model that cannot fit on one core, and profiling the host pipeline that feeds and retrieves its work. Here, CPU prompt encoding and video decoding were large bottlenecks even after multi-core execution was established.

Limits and uncertainty

The 22–23-second result is the author’s measurement after model loading; the initial attempt used fewer cores and a lower resolution, so it is not a like-for-like speedup comparison. LTX says its online API makes a 10-second 1080p clip in 23.7 seconds, while the only CUDA comparison the author found was LTX’s claim of 6.8 seconds for a 10-second 720p clip on four B200 GPUs, without measurement details. (huggingface.co) The author also reports unresolved NaNs at one size when compiling the transformer as one graph, a slow first keyframe-ending shot in each new process, and an upsampler that fails to load alongside the transformer and remains on CPU. At publication, two relevant Diffusers changes were still open: one described as a fix for the LTX-2 pipeline split issue, and another combining tensor and context parallelism, with an LTX-2.5 tensor-parallel plan planned. (huggingface.co)

Reader takeaway

The headline speed is only part of the story: Hugging Face reports that a 32-core Trainium3 configuration generated a 10-second, 2048×1024 clip in 22–23 seconds once models were loaded. Reaching that point required tensor and sequence parallelism plus extensive work on CPU orchestration, decoding, memory movement and thread placement.

Open question

Will upstream Diffusers changes eliminate the custom parallelism and loading workarounds, or will the latent-upscaler and first-shot issues continue to require deployment-specific fixes?

How this was made

First seen
Nov 27, 2026, 13:00 UTC in our intake.
Sources
1 source carried the story when we picked it up; we cite the original.
Written by
gpt-6-luna (AI model).
Critic
No separate critic model on this desk; the automated checks below gate publication.
Checks passed
The cited primary source was fetched and verified; the source is not older than 30 days; no earlier note covers the same story; the copy passed the site's structure and language checks.
Confidence
Novelty judgement: a new fact, medium confidence. Editorial value: medium.
Human review
Published without a per-item human sign-off. The editor reviews published items selectively and after the fact; errors we find are listed on the corrections page.

Corrections and error statistics

Evidence / sources

  1. 1huggingface.co/blog/video-trainium3
All Field Notes

Next reads

Read next

Open the graph
  1. 01topicGenerative MediaExplore the generative-media topic hub.
  2. 02topicComputeExplore the compute topic hub.
  3. 03topicInferenceExplore the inference topic hub.
  4. 04archiveField NotesOpen the latest editorial analysis.
  5. 05sourcesSourcesSee the original sources this archive cites.
Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate...

Open the JSON contract