I am working on optimizing streaming weights to run the full sized Diffusion models on a reasonable card; Nvidia 3090; I can generate full 5 second video for ltx 2.5 in 21 minutes, Minimax H3 generates 5 seconds of video in 51 minutes; this is the full unquantized models no int8 or whatever.
I am hitting compute limits on 3090 when generating MiniMax videos, with amd wider registers I am sure I could do some more complex maths to accomplish this faster even with similar vram sizes
for ltx 2.5 it’s spending 60% time waiting for data to stream across the pci lane, I am certain I can improve this performance.
if someone over at AMD would like to have this work done on ROCM; software and hardware reach out.
The RTX 3090 baselines you provided for the unquantized LTX 2.5 model—about 21 minutes for a 5-second video—and MiniMax H3—about 51 minutes—are valuable for evaluating weight streaming. However, the results currently shown are all from a 3090. If you are looking for collaborators to port this work to ROCm, it would also help to specify the target AMD GPU, OS, and ROCm version.
For LTX 2.5, could you clarify how the “60% waiting on PCIe” figure was measured? Does it refer to end-to-end runtime, time spent on H2D copies and synchronization, or GPU wait time inferred from a profiler timeline? It would also be useful to share the model commit, weight and compute dtypes, resolution, frame count, inference steps, and negotiated PCIe generation and lane width.
For MiniMax, AMD’s register architecture alone is not enough to predict a speedup. The ROCm performance documentation also notes that VGPR pressure can reduce occupancy. It would be helpful to first share the most time-consuming kernels, CU utilization, occupancy, and register-pressure metrics.
A few refinements;
the %60 was Nsight system timeline per transformer evaluation slice 7.79 seconds
here’s a breakdown
58.53% Cuda Copy Union
47.90% Kernel Overlap
Slice Breakdown:
28.04% Compute & copy overlapped
30.50% Copy active without compute (un-overlapped copy exposure)
1.15% Compute active without copy
40.32% GPU idle (host-side dispatch gaps, Python/runtime overhead, and synchronization—not PCIe wait)
End-to-End Context (1,295.3 s wall time): Transformer evaluations account for 53.90% of total runtime, while video encoding/decoding (encode_video) accounts for 39.10%.
I haven’t had a thorough look at rocm or the generation of hardware from before rdna, udna or whatever else AMD is building.
I don’t know if I could improve performance, one thing I know is that the 3090 even with pci gen 3 motherboard is still faster than those lil unified memory inference things.
just these few changes would lower the full fp16 full fps unquantized model to generate 5second clip in 19 minutes 54 seconds; 1,193.58
iteration is slow with 3090 and there’s a lot of data to go through. Anyone have some AMD hardware!?
Another thing I am doing exact reproducible generation using the exact same seed and I check the hash of the output video to match against the baseline;
Pipeline: DFRPipeline / T2VA, Seed 42.
Resolution & Frames: 1344×768; 121 base frames @ 24 FPS upscaled via 2 temporal passes to 481 frames @ 96 FPS (~5.01 s duration).
Model & Upstream Code: Lightricks/LTX-2.5 (commit 5e6e71018ee1756ed329b697a7b4aedc934dfce9), upstream tag v1.3.0 (598ab41…).
Evaluations & Blocks: 35 transformer evaluations (8 base + 3 detailing + 8 temporal-1 + 16 temporal-2) across 48 streamed blocks = 1,680 total streamed blocks (~1.18 TiB logical H2D traffic).
Dtypes: BF16 transformer source weights and detailing LoRA weights; materialized to CUDA as torch.bfloat16 (no FP8/INT8 quantization; compilation disabled).
I am still doing some more tuning just for kicks, if I can get these numbers on a 3090, there’s a lot of headroom to get ltx 2.5 to realtime or less;
Minimax H3 takes 51 minutes per generation, that one is going a lot slower but I’m working on improving that performance as well but it’s already compute bound and most latency is hidden by streaming in the weights, I still want to try a few more things to improve performance though!
on 3090;
some findings!
Aggregate metrics like MAE (10^-7) can dangerously conceal localized sign inversions and exponent blowups. BQ32 is not safe for inference under any tolerance policy.
Doubling warps from 4 to 8 on Ampere sm_86 caused severe register pressure
I was able to get generation speed down to 17 minutes with a few more optimizations;
96/40 temporal tile chunking + two-warp fused Triton Q/K preprocessing with constant-memory 3D RoPE tables
LTX-2.5 on CUDA sm_86 (RTX 3090, 24 GiB), 481 frames 481 frames , 96 FPS 96 FPS , 768 × 1344 RGB 768×1344 RGB .
21 min 35 s baseline
~6-minute and 10-second speedup (a ~28% overall throughput gain) was accomplished without any quantization, preserving native BF16 arithmetic;
A big win
Fused Triton Q/K + 96/40 Tile: 17 min 13 s (Saved ~4 min 22 s)
If there’s anyone available on AMD that can get me access to AMD hardware I am sure I can improve performance of their generated code…
For Minimax, I started at 51 Minutes per 5 second
Reference:
3,154.694 s
Released profile:
2,886.553 s
Reduction:
8.4998%
Current released wall:
approximately 48 min 07 s
Both Minimax and LTX could use some custom kernel work to possibly increase performance on the 3090 or get access to AMD devices and write optimized software there
Easy wins are gone, the required work to improve performance!