Tools

Hugging Face Generates Videos on AWS Trainium3, Matching Commercial API Speed

LTX-2.5 video generation on Trainium3 achieved 22–23 seconds per 10-second clip, comparable to Lightricks's commercial API.

Last verified:

Trainium3 Delivers Commercial-Grade Video Inference

According to the Hugging Face Blog, the team completed video generation on AWS Trainium3 in 22–23 seconds for a 10-second clip with synchronized audio—parity with Lightricks’s commercial API, which reports 23.7 seconds for 1080p output. The inference ran on half of a trn3.48xlarge instance (32 of 64 NeuronCores), suggesting headroom for further optimization and multi-job parallelization on a full machine.

From Storyboards to Coherent Film

Hugging Face built a JSON-driven pipeline that treats video generation as a scriptwriting problem. Each “shot” in the storyboard specifies a name, a detailed paragraph-length prompt covering cinematography style, subject, motion, camera technique, lighting, and audio cues, plus optional seed values and frame-linking parameters. The critical innovation is shot chaining: by anchoring the start of one shot to the final frames of the previous one (via from and to keys that reference frame ranges), the pipeline preserves character identity across cuts. Without this continuity mechanism, the same subject would diverge across shots, making multi-shot narratives incoherent. The team demonstrated this with a cinematic short film of a seal transitioning between dream scenarios—from a sun-warmed beach to an ice floe to a capsizing iceberg.

Why This Matters

Trainium3’s performance parity with commercial APIs reshapes the cost equation for video-generation pipelines. Studios and production companies currently reliant on cloud APIs face the trade-off between latency (slower for cost savings) and throughput (expensive for speed). Trainium3 amortizes the hardware cost across high-volume batches, making on-premises or reserved-instance video rendering economically viable for teams generating dozens of clips weekly. The storyboard abstraction—coupling shot-level prompts with frame continuity—also establishes a reusable pattern for scripted video workflows, lowering the barrier for teams to move from single-clip experimentation to multi-shot production. As Diffusers ecosystem support for Trainium expands, broader model adoption (beyond LTX-2.5) will determine whether this performance floor holds across vendor-specific video architectures.

Frequently Asked Questions

How fast was video generation on Trainium3 compared to Lightricks's API?

Hugging Face achieved 22–23 seconds per 10-second clip at 2048×1024 resolution using half the Trainium3 machine, slightly faster than Lightricks's reported 23.7 seconds for 10-second 1080p clips via their online API.

What is LTX-2.5 and why did Hugging Face choose it?

LTX-2.5 is Lightricks's video generation model that produces both video and audio in a single pass. Hugging Face selected it to test real-world video workflows on Trainium3 hardware.

How did Hugging Face maintain character continuity across multiple video shots?

The team implemented shot chaining via JSON storyboards, using 'from' and 'to' keys to link the final frames of one shot to the opening frames of the next, preserving subject identity across transitions.

#video-generation #diffusers #aws-trainium #ltx-2.5 #inference-optimization