← Home

LTX-2.5 Runs on Trainium3 at Performance Rivaling Lightricks' API

The Hugging Face published last week a revealing experiment: running the LTX-2.5 video generation model from Lightricks on AWS Trainium3 hardware results in performance comparable to LTX's own API, but with implications deeper than a simple benchmark.

What happened concretely is more interesting than the speed itself. An engineer at Hugging Face, with access to a trn3.48xlarge machine — featuring 64 NeuronCores — for one month, dedicated its final five days to running LTX-2.5 natively on AWS hardware. The result: a 10-second clip with soundtrack at 2048×1024 resolution was generated in 22 to 23 seconds, using half the machine. LTX's online API, which charges per generation, delivers a 10-second clip at 1080p in 23.7 seconds. The difference is approximately one second in favor of the Trainium3.

But what makes this execution truly interesting is not the final number — it's the path the engineer had to take to get there. The LTX-2.5, with 19 billion parameters, simply would not fit on a single NeuronCore. The diffusers library, Hugging Face's standard library for image and video generation, had no tensor parallelism plan for its transformer. In the first attempt, the model was split across four cores and a 960×544 clip took five minutes and twenty seconds to generate — and the NeuronCores were actively computing for only 45 seconds of that time. The rest was CPU processing and communication overhead.

The solution involved three layers of optimization. First, a custom tensor parallelism plan divided the model weights into four parts, each running on a different NeuronCore. Second, sequence parallelism divided the video tokens into eight temporal sections, scaling the execution to 32 cores. Third, the text encoder was moved to the host CPU, with the pipeline being "pinned" to the host so that the transformer's inputs were moved to the cores and the outputs returned.

The gains were dramatic. Prompt encoding time fell from 205 seconds to 7.5 seconds. Transformer step time fell from 4.3 to 3.0 seconds. Video decoding, which previously took 357 seconds on the CPU, was moved to the NeuronCores and dropped to 1.6 seconds. Per-core memory usage fell from 22.96 GiB to 10.2 GiB. In summary: from 5 minutes to 23 seconds.

Beyond the optimization, the experiment raised important questions about the future of world models. LTX describes LTX-2.5 as a "world model" — not just a video generator, but a system that learns to predict the next moment, simulating how it behaves. This makes it particularly relevant for robotics, autonomous cars, and drones, which can learn from artificially generated videos, including rare or dangerous events too risky to record.

The Hugging Face engineer tested the model with real footage: a shot could start from the first second of a real camera clip and invent what happens next. One frame was not enough, as the model could not discern object speed from a static frame. But the pose-to-pose approach worked: a shot can start from the first nine frames of another, or continue from its last 25 frames, maintaining visual consistency across cuts.

What the open weights community gained from this is significant. Until now, high-quality video generation has relied heavily on closed APIs — LTX, Runway, Pika. Having an open weights model (19B parameters, available on Hugging Face) that runs on third-party hardware with performance comparable to the API means developers can host the model on their own infrastructure, with no per-generation cost, no vendor lock-in, and no need to send data to third-party clouds. It is the same pattern that transformed LLMs: open models running on open hardware with competitive performance.

The question that remains: will the AWS Trainium3 become the next key hardware for open-source video generation — or will the optimization the Hugging Face achieved in five days be easily surpassed when NVIDIA and AWS deliver their next generations of dedicated chips for this work? LTX-2.5 proved the path is open. Now the race is to deliver the hardware that keeps it cheapest to run.

Sources: Hugging Face Blog, LTX Newsroom, Xfinit Software

✓ Independent sources cross-checked and verified before publishing