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.
More from Infra
- SpaceX would need 42 approvals to build 250GW of compute on US ground, vs 6GW bottleneck — skorusARK · 2026-11-26
- Baseten ships least-privilege access for inference: short-lived tokens, egress limits — baseten · 2026-11-26
- Forking a modified inference engine for one model: 60-80 tok/s on a single RTX 3090 vs 25-32 stock — Express_Quail_1493 · 2026-11-26
- Polymarket launches GPU compute markets, pricing H100/B200/B300 rentals out to 2028 — marcofyi · 2026-11-26
- A DDIA-based framework for choosing the right database: read/write patterns first — cneuralnetwork · 2026-11-26
- Robot startup Abstract raises $2.5M to run robot brains in the cloud with 30ms latency — Scobleizer · 2026-11-26