A Hugging Face Engineer's Trainium3 Video Generation Log: Why Host-Side Fixes Delivered the Biggest Gains
David Corvoysier describes making LTX-2.5 generate 10-second video clips with sound in 22 to 23 seconds on half an AWS Trainium3 machine, matching LTX's own API claim. The optimization journey reveals that host-side coordination fixes produced a 35× improvement in host time while device compute improved only 3×, and that sequence parallelism (not just tensor parallelism) is what allows a single clip to use 32 cores. He also explains a pose-to-pose filmmaking workflow that maintains character consistency across generated shots by chaining frames between clips.
David Corvoysier, an engineer at Hugging Face, spent five days at the end of a month-long Trainium3 trial trying to generate videos with LTX-2.5 on AWS's custom accelerator. The result: a 10-second clip with sound in 22 to 23 seconds on half the machine (32 of 64 NeuronCores), matching LTX's own online API, which claims 23.7 seconds for a 10-second 1080p clip. The comparison is imperfect—Corvoysier's output is 2048×1024 rather than 1080p, and LTX's API figure is self-reported—but the engineering journey behind those numbers contains several transferable lessons for anyone deploying large models on non-NVIDIA hardware.
The first lesson is about what actually constrains performance. Corvoysier identifies three categories of work: making the model fit on the cores at all (tensor parallelism, splitting the transformer's weights across 4 cores), splitting the video tokens across more cores so a single clip uses the full machine (sequence parallelism, 8-way), and keeping the host CPU from becoming the bottleneck. The biggest end-to-end savings came from the last category, which he calls "the low-hanging fruit, since that is obviously where the waste was."
The numbers make this concrete. In the first attempt, the whole pipeline ran on 4 cores and took 5 minutes 20 seconds for a 10-second clip at 960×544, but the NeuronCores were only computing for about 45 seconds of that time. After optimization—still on half the machine but now 32 cores, at 2048×1024 (roughly 4× more pixels)—the wall time dropped to 22 to 23 seconds, with 15 seconds actually on the NeuronCores. The host time fell from about 280 seconds to about 8 seconds, a 35× improvement. The device time improved 3×, but the host improvement was more than ten times larger.