---
title: "Taking Trainium3 to the Track: Generating Videos with LTX-2.5"
description: "LTX-2.5 video-with-audio generation was ported to AWS Trainium3 via diffusers, cutting a 10-second clip from 5 min 20 s at 960×544 to 22–23 s at 2048×1024 on 32 of 64 NeuronCores, roughly matching LTX's paid API."
url: "https://swe.quest/articles/taking-trainium3-to-the-track-generating-videos-with-ltx-2-5-b0838d9918a36e17"
canonical: "https://huggingface.co/blog/video-trainium3"
source: "Hugging Face"
published: "2026-11-27"
difficulty: "hard"
kind: "Case study"
reading_minutes: 14
tags: ["inference","performance","hardware","video-media","python"]
---

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

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2026-11-27, 14 min read, Case study. Original: [https://huggingface.co/blog/video-trainium3](https://huggingface.co/blog/video-trainium3)

## Summary

LTX-2.5 video-with-audio generation was ported to AWS Trainium3 via diffusers, cutting a 10-second clip from 5 min 20 s at 960×544 to 22–23 s at 2048×1024 on 32 of 64 NeuronCores, roughly matching LTX's paid API. The speedup came from tensor parallelism (TP-4) plus sequence parallelism (SP-8) via custom attention processors, compiling repeated blocks, fp32 GELUs, sizing shapes so attention hits the fast kernel, and large host-side fixes: running the pipeline on rank 0 only, CPU thread pinning, skipping prompt padding, and decoding video on the NeuronCores. A ~160-line JSON storyboard layer chains shots via from/to keyframes to keep subjects consistent, and the same setup was used to generate alternative continuations of robot camera footage as world-model data.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Hardware](https://swe.quest/tags/hardware.md) (Infrastructure)
- [Video & media](https://swe.quest/tags/video-media.md) (Domains)
- [Python](https://swe.quest/tags/python.md) (Languages)

## Prerequisites

- diffusion models
- tensor and sequence parallelism ([easy posts on Concurrency](https://swe.quest/tags/concurrency.md?difficulty=easy))
- PyTorch
- ML accelerator compilation ([easy posts on Machine learning](https://swe.quest/tags/machine-learning.md?difficulty=easy))

## Keywords

Trainium3, LTX-2.5, diffusers, torch-neuronx, NeuronCore, AWS, Lightricks

## Related posts

- [State of open video generation models in Diffusers](https://swe.quest/articles/state-of-open-video-generation-models-in-diffusers-9770186e8fdb5a0a.md): Hugging Face · 2025-01-27 · Medium · 16 min read · Inference & serving, Computer vision, Video & media, Performance engineering, Model training
  Open video generation models such as HunyuanVideo, CogVideoX, LTX-Video, Mochi-1 and Allegro share a common architecture: T5-style text encoders, a DiT-based denoiser over 3D spatio-temporal tokens, a spatially and temporally compressing VAE, and a scheduler.
- [TorchNeuron: running HF models on AWS Trainium is easier than ever](https://swe.quest/articles/torchneuron-running-hf-models-on-aws-trainium-is-easier-than-ever-99ae731bb5ca0252.md): Hugging Face · 2026-10-19 · Medium · 7 min read · Hardware, Model training, Inference & serving, Python
  TorchNeuron is a PyTorch plugin that exposes AWS Trainium as a native \`neuron\` device with eager execution, \`torch.compile\`, and native distributed APIs (DTensor, FSDP2, TP), replacing the PyTorch XLA–based path that required lazy tensors and static graphs.
- [Diffusers welcomes Stable Diffusion 3](https://swe.quest/articles/diffusers-welcomes-stable-diffusion-3-f6ced777e2fcbd47.md): Hugging Face · 2024-06-12 · Medium · 7 min read · Computer vision, Inference & serving, Model training, Python
  Stable Diffusion 3 Medium (2B parameters) is now usable through Diffusers.
- [Does Your Model Run on AWS Trainium? Look It Up](https://swe.quest/articles/does-your-model-run-on-aws-trainium-look-it-up-4ce5c68bb56caf0e.md): Hugging Face · 2026-10-23 · Medium · 3 min read · Inference & serving, Hardware, Machine learning
  A Hugging Face Space reports whether popular Transformers models run unmodified on AWS Trainium via the TorchNeuron PyTorch backend.
- [Diffusers welcomes Stable Diffusion 3.5 Large](https://swe.quest/articles/diffusers-welcomes-stable-diffusion-3-5-large-23c0b39797ac94ee.md): Hugging Face · 2024-10-22 · Medium · 6 min read · Computer vision, Inference & serving, Model training, Python
  Stable Diffusion 3.5 Large (8B) and a timestep-distilled Turbo variant are now usable in Diffusers.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
