LTX-2.5 video generation model 2.5 reaches 22‑23 s per 10‑sec clip, adds attention hook
The LTX‑2.5 model now generates a 10‑second 2048×1024 video with sound in 22‑23 seconds on half a Trainium3 instance, and developers must set NEURON_LOGICAL_NC_CONFIG=2 and apply a custom attention processor via the diffusers set_attn_processor hook.
LTX‑2.5 version 2.5 reports a 10‑second video generation time of 22‑23 seconds at 2048×1024 resolution, matching or slightly beating the model’s own API claim of 23.7 seconds for a 1080p clip. Developers must set the environment variable NEURON_LOGICAL_NC_CONFIG=2 and use the diffusers set_attn_processor hook to enable sequence parallelism.
The author tested the model on an AWS Trainium3 instance (trn3.48xlarge) equipped with 64 NeuronCores for a month. Using half of the machine after model loading produced the 22‑23 second runtime. The initial attempt split the transformer over 4 cores and required 5 minutes 20 seconds wall time (45 seconds on NeuronCores) at 960×544 resolution.
Optimizations such as tensor‑parallelism, sequence‑parallelism, host‑side improvements, and memory packing reduced generation time to 22‑23 seconds and increased resolution four‑fold while using 32 cores. Key tweaks included moving the transformer to 4 cores, running the text encoder on CPU with inputs pinned to the host, compiling blocks to avoid NaNs, packing parameters to ≤1 GiB (cutting per‑core memory from 22.96 GiB to 10.2 GiB), setting NEURON_LOGICAL_NC_CONFIG=2, decoding video on NeuronCores, and applying .contiguous() before device copy.
The diffusers pipelines employed were LTX2Pipeline, LTX2ConditionPipeline, and LTX2LatentUpsamplePipeline, following an 8‑step then 3‑step upsample recipe. All pipeline code and example films are hosted in the GitHub repository dacorvo/video-generation.
Prompt‑encoding time fell from 205 seconds to 1.4 seconds after successive optimizations. Open issues such as transformer graph NaNs, shot keyframe slowdown, and latent upsampler loading are tracked in diffusers #15420 and #14725.