Running Wan2.1 across two MacBooks over Thunderbolt 5 cuts video gen time from 95 to 51 min

lam_jesus · reddit · 2026-11-26

A developer split Wan2.1 T2V 1.3B's CFG denoising across two MacBook Pro M4 Pro machines via Thunderbolt 5 and MLX distributed (JACCL/RDMA), reducing a single video's generation time from 95 to 51 minutes (1.87x speedup).

How it works: with CFG each denoising step runs the model twice (positive/negative prompt). A new --cfg-parallel flag assigns one pass per Mac, exchanging 8MB per step over the cable. Both machines load the full model—this saves time, not memory.

Setup: enable RDMA once from Recovery (rdmactl enable, macOS 26.2+), identical Python env and weight paths, a JACCL hosts.json, then launch via mlx.launch.

Gotcha: macOS kills GPU command buffers that wait too long (kIOGPUCommandBufferCallbackErrorTimeout); the fix is doing the exchange on the CPU stream before queuing more GPU work.

Limits: only works with CFG on (distilled/guidance=1 has nothing to split); Wan2.1 T2V only (no I2V/Wan2.2 yet); requires TB5 Macs. CFG parallelism itself isn't new (xDiT does it on NVIDIA), but this is the author's open PR porting it to Mac.

Original post →

More from Infra

Infra channel →