---
type: "post"
id: "taking-trainium3-to-the-track-generating-videos-with-ed987f"
slug: "taking-trainium3-to-the-track-generating-videos-with-ed987f"
title: "Taking Trainium3 to the Track: Generating Videos with LTX-2.5"
description: "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."
retrieval_nugget: "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."
published_at: "2026-11-27"
updated_at: "2026-11-27"
record_date: "2026-11-27"
date_kind: "published_at"
topics: ["generative-media","compute","inference"]
entities: ["Hugging Face","AWS","Trainium3","LTX-2.5","Lightricks","Diffusers"]
related_patterns: []
novelty_label: "new_fact"
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."
prior_refs: ["https://newruntime.com/posts/a-kernel-centric-path-to-real-time-video-83985c/"]
source_url: "https://huggingface.co/blog/video-trainium3"
source_urls: ["https://huggingface.co/blog/video-trainium3"]
production: {"schema":"newruntime-production-v1","desk":"newsroom","first_seen_at":"2026-11-27T13:00:28.042Z","independent_sources":1,"notes_synthesized":null,"writer_model":"gpt-6-luna","critic":null,"checks":["primary_source_verified","source_fresh","one_story","copy_contract"],"novelty":{"label":"new_fact","confidence":"medium"},"editorial_value":"medium","human_review":"selective"}
citations: [{"claim":"The machine was a trn3.48xlarge with 64 NeuronCores.","quotes":["I picked LTX-2.5 from Lightricks, which generates video and sound together."],"cite_url":"https://huggingface.co/blog/video-trainium3#:~:text=I%20picked%20LTX%2D2.5%20from%20Lightricks%2C%20which%20generates%20video%20and%20sound%20together.","source_url":"https://huggingface.co/blog/video-trainium3","publisher":"huggingface.co"},{"claim":"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.","quotes":["How it works The input is a film: a JSON list of shots, each with a name and a prompt, much like a storyboard."],"cite_url":"https://huggingface.co/blog/video-trainium3#:~:text=How%20it%20works%20The%20input%20is%20a%20film%3A%20a%20JSON%20list%20of%20shots%2C%20each%20with%20a%20name%20and%20a%20prompt%2C%20much%20like%20a%20storyboard.","source_url":"https://huggingface.co/blog/video-trainium3","publisher":"huggingface.co"},{"claim":"","quotes":["This chaining is the point, since prompts alone do not keep a subject from one shot to the next: from : the shot starts from the last frames of an earlier shot."],"cite_url":"https://huggingface.co/blog/video-trainium3#:~:text=This%20chaining%20is%20the%20point%2C%20since%20prompts%20alone%20do%20not%20keep%20a%20subject%20from%20one%20shot%20to%20the%20next%3A%20from%20%3A%20the%20shot%20starts%20from%20the%20last%20frames%20of%20an%20earlier%20shot.","source_url":"https://huggingface.co/blog/video-trainium3","publisher":"huggingface.co"},{"claim":"","quotes":["On the diffusers side, three … ×2 before 3 final steps.","These two follow the two-stage distilled recipe of the model card: 8 steps, then the third pipeline, LTX2LatentUpsamplePipeline , upscales the latents ×2 before 3 final steps. The diffusers pipelines do all of the generation.","The film part is about 160 lines of Python on top: read the film file, order the shots so each keyframe exists before the shot that needs it, and cut the frames to hand over; then trim, caption, even out the sound and assemble the film.","The films I kept are in the dacorvo/video-generation bucket, with their JSON files: the seal, the fox, and the goat, which trims two of its shots and draws a caption over its payoff."],"cite_url":"https://huggingface.co/blog/video-trainium3#:~:text=On%20the%20diffusers%20side%2C%20three,%C3%972%20before%203%20final%20steps.&text=These%20two%20follow%20the%20two%2Dstage%20distilled%20recipe%20of%20the%20model%20card%3A%208%20steps%2C%20then%20the%20third%20pipeline%2C%20LTX2LatentUpsamplePipeline%20%2C%20upscales%20the%20latents%20%C3%972%20before%203%20final%20steps.%20The%20diffusers%20pipelines%20do%20all%20of%20the%20generation.&text=The%20film%20part%20is%20about%20160%20lines%20of%20Python%20on%20top%3A%20read%20the%20film%20file%2C%20order%20the%20shots%20so%20each%20keyframe%20exists%20before%20the%20shot%20that%20needs%20it%2C%20and%20cut%20the%20frames%20to%20hand%20over%3B%20then%20trim%2C%20caption%2C%20even%20out%20the%20sound%20and%20assemble%20the%20film.&text=The%20films%20I%20kept%20are%20in%20the%20dacorvo%2Fvideo%2Dgeneration%20bucket%2C%20with%20their%20JSON%20files%3A%20the%20seal%2C%20the%20fox%2C%20and%20the%20goat%2C%20which%20trims%20two%20of%20its%20shots%20and%20draws%20a%20caption%20over%20its%20payoff.","source_url":"https://huggingface.co/blog/video-trainium3","publisher":"huggingface.co"},{"claim":"The text encoder ran on CPUs because it could not fit on a NeuronCore alongside the transformer.","quotes":["What it took to make … it runs on the CPUs.","first attempt First attempt, 960×544 … 32 cores on one clip."],"cite_url":"https://huggingface.co/blog/video-trainium3#:~:text=What%20it%20took%20to%20make,it%20runs%20on%20the%20CPUs.&text=first%20attempt%20First%20attempt%2C%20960%C3%97544,32%20cores%20on%20one%20clip.","source_url":"https://huggingface.co/blog/video-trainium3","publisher":"huggingface.co"},{"claim":"","quotes":["What it took to make … it runs on the CPUs."],"cite_url":"https://huggingface.co/blog/video-trainium3#:~:text=What%20it%20took%20to%20make,it%20runs%20on%20the%20CPUs.","source_url":"https://huggingface.co/blog/video-trainium3","publisher":"huggingface.co"},{"claim":"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.","quotes":["So I set CUDA aside and compared with LTX's online API instead, which LTX says makes a 10-second 1080p clip in 23.7 s.","The only one is LTX's claim of 6.8 s for a 10-second 720p clip on four B200 GPUs, with no detail on how it was measured."],"cite_url":"https://huggingface.co/blog/video-trainium3#:~:text=So%20I%20set%20CUDA%20aside%20and%20compared%20with%20LTX%27s%20online%20API%20instead%2C%20which%20LTX%20says%20makes%20a%2010%2Dsecond%201080p%20clip%20in%2023.7%20s.&text=The%20only%20one%20is%20LTX%27s%20claim%20of%206.8%20s%20for%20a%2010%2Dsecond%20720p%20clip%20on%20four%20B200%20GPUs%2C%20with%20no%20detail%20on%20how%20it%20was%20measured.","source_url":"https://huggingface.co/blog/video-trainium3","publisher":"huggingface.co"},{"claim":"","quotes":["diffusers#14725 (still open) brings tensor and context parallelism into one ParallelConfig , and a _tp_plan for LTX-2.5 is planned."],"cite_url":"https://huggingface.co/blog/video-trainium3#:~:text=diffusers%2314725%20%28still%20open%29%20brings%20tensor%20and%20context%20parallelism%20into%20one%20ParallelConfig%20%2C%20and%20a%20_tp_plan%20for%20LTX%2D2.5%20is%20planned.","source_url":"https://huggingface.co/blog/video-trainium3","publisher":"huggingface.co"}]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:taking-trainium3-to-the-track-generating-videos-with-ed987f"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/taking-trainium3-to-the-track-generating-videos-with-ed987f/","markdown":"https://newruntime.com/posts/taking-trainium3-to-the-track-generating-videos-with-ed987f.md","json":"https://newruntime.com/posts/taking-trainium3-to-the-track-generating-videos-with-ed987f.json"}
markdown_url: "https://newruntime.com/posts/taking-trainium3-to-the-track-generating-videos-with-ed987f.md"
---

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

## Retrieval answer

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.

## Summary

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](https://huggingface.co/blog/video-trainium3#:~:text=I%20picked%20LTX%2D2.5%20from%20Lightricks%2C%20which%20generates%20video%20and%20sound%20together.)) The machine was a trn3.48xlarge with 64 NeuronCores.

## 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](https://huggingface.co/blog/video-trainium3#:~:text=How%20it%20works%20The%20input%20is%20a%20film%3A%20a%20JSON%20list%20of%20shots%2C%20each%20with%20a%20name%20and%20a%20prompt%2C%20much%20like%20a%20storyboard.)) 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](https://huggingface.co/blog/video-trainium3#:~:text=This%20chaining%20is%20the%20point%2C%20since%20prompts%20alone%20do%20not%20keep%20a%20subject%20from%20one%20shot%20to%20the%20next%3A%20from%20%3A%20the%20shot%20starts%20from%20the%20last%20frames%20of%20an%20earlier%20shot.))

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](https://huggingface.co/blog/video-trainium3#:~:text=On%20the%20diffusers%20side%2C%20three,%C3%972%20before%203%20final%20steps.&text=These%20two%20follow%20the%20two%2Dstage%20distilled%20recipe%20of%20the%20model%20card%3A%208%20steps%2C%20then%20the%20third%20pipeline%2C%20LTX2LatentUpsamplePipeline%20%2C%20upscales%20the%20latents%20%C3%972%20before%203%20final%20steps.%20The%20diffusers%20pipelines%20do%20all%20of%20the%20generation.&text=The%20film%20part%20is%20about%20160%20lines%20of%20Python%20on%20top%3A%20read%20the%20film%20file%2C%20order%20the%20shots%20so%20each%20keyframe%20exists%20before%20the%20shot%20that%20needs%20it%2C%20and%20cut%20the%20frames%20to%20hand%20over%3B%20then%20trim%2C%20caption%2C%20even%20out%20the%20sound%20and%20assemble%20the%20film.&text=The%20films%20I%20kept%20are%20in%20the%20dacorvo%2Fvideo%2Dgeneration%20bucket%2C%20with%20their%20JSON%20files%3A%20the%20seal%2C%20the%20fox%2C%20and%20the%20goat%2C%20which%20trims%20two%20of%20its%20shots%20and%20draws%20a%20caption%20over%20its%20payoff.))

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](https://huggingface.co/blog/video-trainium3#:~:text=What%20it%20took%20to%20make,it%20runs%20on%20the%20CPUs.&text=first%20attempt%20First%20attempt%2C%20960%C3%97544,32%20cores%20on%20one%20clip.)) The text encoder ran on CPUs because it could not fit on a NeuronCore alongside the transformer. ([huggingface.co](https://huggingface.co/blog/video-trainium3#:~:text=What%20it%20took%20to%20make,it%20runs%20on%20the%20CPUs.))

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](https://newruntime.com/posts/a-kernel-centric-path-to-real-time-video-83985c/)) 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](https://newruntime.com/posts/does-your-model-run-on-aws-trainium-look-014c50/))

## 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](https://huggingface.co/blog/video-trainium3#:~:text=So%20I%20set%20CUDA%20aside%20and%20compared%20with%20LTX%27s%20online%20API%20instead%2C%20which%20LTX%20says%20makes%20a%2010%2Dsecond%201080p%20clip%20in%2023.7%20s.&text=The%20only%20one%20is%20LTX%27s%20claim%20of%206.8%20s%20for%20a%2010%2Dsecond%20720p%20clip%20on%20four%20B200%20GPUs%2C%20with%20no%20detail%20on%20how%20it%20was%20measured.)) 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](https://huggingface.co/blog/video-trainium3#:~:text=diffusers%2314725%20%28still%20open%29%20brings%20tensor%20and%20context%20parallelism%20into%20one%20ParallelConfig%20%2C%20and%20a%20_tp_plan%20for%20LTX%2D2.5%20is%20planned.))

## 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?

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Generative Media](https://newruntime.com/topics/generative-media.md): Explore the generative-media topic hub.
- topic hub: [Compute](https://newruntime.com/topics/compute.md): Explore the compute topic hub.
- topic hub: [Inference](https://newruntime.com/topics/inference.md): Explore the inference topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
