Peter Kisfaludi and Claude Opus 4.8
5a06b460b2
Fix Ulysses sequence-parallel crash in self-forcing causal Wan DiT
...
Under Ulysses SP (num_gpus>=2), self-forcing causal Wan models
(causal_wanvideo.py) crash in `_apply_rotary_emb`:
RuntimeError: The size of tensor a (4680) must match tensor b (9360)
at non-singleton dimension 1
Cause: the DiT builds RoPE for `post_patch_num_frames * get_sp_world_size()`
(sp x too long) but the causal pipeline *replicates* the full token sequence and
a full-size KV cache on every rank (it does not shard the sequence), so the
attention applies that over-long RoPE to the full local query.
Fix:
- Remove `* get_sp_world_size()` from the RoPE length (relativistic, standard,
and train branches) so RoPE matches the full local sequence. No-op at sp=1.
- Parallelize the causal attention across HEADS (Ulysses over heads): each rank
computes attention for its head slice `[rank*H/sp:(rank+1)*H/sp]` over the full
sequence, then `sequence_model_parallel_all_gather(dim=2)` reconstructs all
heads. Applied uniformly to all three attention paths (flex_attention,
KV-cache `self.attn`, and the relativistic window). A sequence all-to-all a la
wanvideo.py is incompatible with the causal KV-cache windowing (global token
coords), so head-parallel is the exact-matching approach; heads are
independent so it is numerically identical to single-GPU.
Verified: `wlsaidhi/SFWan2.1-T2V-1.3B-Diffusers`, 480x832, 21 frames (7
autoregressive KV-cache blocks), seed 1234, on 2x GPU vs 1x GPU:
torch.equal=True, max_abs_diff=0.0 (byte-identical). 2-GPU previously crashed.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-08-28 05:05:24 +00:00
William Lin and shaoxiongduan
a534ba20a0
[feat] Add MiniMax H3 LoRA inference and preview launchers ( #1771 )
...
Co-authored-by: shaoxiongduan <shaoxiongduan@gmail.com >
2026-08-27 14:43:39 -07:00
KyleNeverGivesUp
e9bbaca07d
[perf] Disable every offload path on unified memory, unblocking MiniMax H3 generation on one GB10 ( #1715 )
2026-08-26 15:32:56 -07:00
KyleNeverGivesUp
9bfa585448
[perf]: stop holding the whole checkpoint during DiT load, unblocking MiniMax H3 on one GB10 ( #1714 )
2026-08-26 15:23:51 -07:00
Raghav K
b2062556a9
[perf] VSA Triton: widen the autotune num_stages range (the optimum was outside it) ( #1706 )
2026-08-26 12:30:56 -07:00
KyleNeverGivesUp
c9c5585758
[perf]: MiniMax H3 on GB10 - skip text encoder CPU offload on unified memory (5m49s to 30ms) ( #1710 )
2026-08-26 12:03:14 -07:00
William Lin
9212f4f218
[ci] make GPU validation change-aware ( #1747 )
2026-08-25 21:26:25 -07:00
Aryan Kumar and Aryan Kumar
6388db815b
[bugfix] FastMetal-QAD MLX support: refuse CUDA QAD trees, use packed mlx_dit config, stream loads ( #1736 ) ( #1758 )
...
Co-authored-by: Aryan Kumar <aryan5v@users.noreply.github.com >
2026-08-25 14:51:40 -07:00
lpc0220
7a4285189f
[kernel] Route block-sparse VSA to the sm_100a forward behind FASTVIDEO_VSA_SM100A (opt-in) ( #1754 )
2026-08-24 15:26:56 -07:00
William Lin
a837fe841a
[docs] Update FastH3 README ( #1749 )
2026-08-23 05:05:58 -07:00
William Lin
f9e3680f11
[perf] Align FastH3 optimized inference profile ( #1748 )
2026-08-23 02:01:03 -07:00
William Lin
98f761ec45
[bugfix] validation: inherit the trained denoising ladder ( #1738 )
2026-08-22 23:09:26 -07:00
Shao Duan
c041318f2c
[perf] Add fused NVLink all-to-all for Ulysses ( #1740 )
2026-08-22 23:06:24 -07:00
William Lin
604e0205a4
[perf] Keep odd MiniMax-H3 VSA tiles on sm100a ( #1745 )
2026-08-22 18:29:30 -07:00
William Lin
13213395b4
[perf] Parallelize MiniMax-H3 VAE over sequence ranks ( #1744 )
2026-08-22 18:05:31 -07:00
William Lin
46afee5998
[bugfix] Classify MiniMax-H3 inference controls in schema inventory ( #1743 )
2026-08-22 17:17:02 -07:00
William Lin
c488fa1211
[perf] Add opt-in packed-varlen FA4 for MiniMax-H3 ( #1742 )
2026-08-22 17:16:47 -07:00
William Lin
d3cff517cd
[perf] Add opt-in regional fullgraph compile for DiT inference ( #1741 )
2026-08-22 12:14:39 -07:00
Junda Su
2f3d407406
[perf] Optimize MiniMax H3 VAE decoding ( #1734 )
2026-08-21 14:57:32 -07:00
Kaiqin Kong
bcffa4026e
[perf] Optimize MiniMax-H3 text encoder memory ( #1732 )
2026-08-21 14:57:06 -07:00
William Lin
6d6a10be7a
[feat] FastVideo-Minimax-FastH3-Preview few-step example + 64-token-tile VSA-H3 inference path ( #1731 )
2026-08-21 12:40:09 -05:00
Kaiqin Kong
73dd105f3d
[perf] Add opt-in MiniMax-H3 Sol-Engine fusions ( #1735 )
2026-08-21 12:39:28 -05:00
William Lin and Claude Fable 5
56d4a6074f
[bugfix] fastvideo-kernel: fix Triton block-sparse backward logit scaling (bf16 K pre-scaling) ( #1730 )
...
Co-authored-by: Claude Fable 5 <noreply@anthropic.com >
2026-08-21 04:50:06 -05:00
Shao Duan
c4ad4227c0
[misc] MiniMax-H3: move the AdaLN converter into scripts/checkpoint_conversion ( #1712 )
2026-08-21 02:15:00 -05:00
KyleNeverGivesUp and SolitaryThinker
a63ccce73d
[docs]: add a maintained inference cookbook ( #1290 )
...
Co-authored-by: SolitaryThinker <wlsaidhi@gmail.com >
2026-08-21 01:53:44 -05:00
KyleNeverGivesUp
0462e1b0e7
[perf]: MiniMax H3 - build the Qwen3-VL encoder only as far as it is read (-13.7 GB) ( #1711 )
2026-08-20 23:19:25 -05:00
lpc0220
907f2100ec
[kernel] sm_100a CUDA block-sparse VSA forward (Blackwell), 64- and 128-token blocks ( #1719 )
2026-08-20 23:16:25 -05:00
Kaiqin Kong
e0a3db5651
[perf] Reduce MiniMax-H3 VAE peak memory ( #1703 )
2026-08-20 23:13:23 -05:00
Raghav K
fca45bc8e1
[perf] Quantize frames to uint8 on-device before the post-decode D->H copy ( #1362 )
2026-08-20 21:55:55 -05:00
Aryan Kumar
86d639c848
[docs] Announce FastMetal-QAD ( #1721 )
2026-08-19 13:45:49 -07:00
00338aa9ca
[perf] Add FA4 CuTe backward support for VSA-256 ( #1639 )
...
Co-authored-by: Hyunsung Lee <hyunsungl@sizigistudios.com >
Co-authored-by: alexzms <3036648523@qq.com >
2026-08-19 11:46:49 -07:00
Aryan Kumar and Aryan Kumar
8537dcd6de
[feat]: Apple Silicon MLX runtime — INT8 Wan2.1 and Wan2.2 inference ( #1638 )
...
Co-authored-by: Aryan Kumar <aryan5v@users.noreply.github.com >
2026-08-18 15:08:00 -07:00
William Lin
8208536cd1
[bugfix] profiler region system: record + export actually work, usability roll-up ( #1691 )
2026-08-09 20:35:53 -07:00
Kai
0653f8f3af
[new-model] Add V2A: native MMAudio inference pipeline ( #1622 )
2026-08-09 17:29:27 -07:00
William Lin
e0d702decb
[feat] VSA for MiniMax H3: packed mixed-modality sparse attention ( #1695 )
2026-08-09 13:10:51 -07:00
Shao Duan
541ef014ee
[perf] MiniMax-H3: rank-reduced AdaLN pruned model option (-39% params, -23 GiB VRAM) ( #1699 )
2026-08-09 12:31:57 -07:00
William Lin
ffc1a7a58b
[refactor] H3 pipeline cleanup: shared helpers, dead machinery, loop-invariant hoists ( #1698 )
2026-08-09 04:51:31 -07:00
William Lin
9028953625
[misc] yapf pass under CI's interpreter (3.12) + pin hook language_version ( #1702 )
2026-08-08 22:24:17 -07:00
KyleNeverGivesUp and Claude Opus 5
6eb95693a1
[misc]: re-run yapf on main so pre-commit passes again ( #1700 )
...
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com >
2026-08-07 16:17:52 -07:00
Junda Su
c3567eb468
[feat] add Minimax H3 sft pipeline ( #1688 )
2026-08-07 16:12:04 -07:00
William Lin
15568f27db
[perf]: H3 torch.compile + CUDA graphs (1.2-1.3x) with denoising step marking ( #1689 )
2026-08-06 16:23:33 -07:00
Kaiqin Kong
126a75ad63
[misc] Support partial Hugging Face model downloads ( #1684 )
2026-08-06 16:09:46 -07:00
Raghav K and SolitaryThinker
a2bfc7cdb2
[docs] DGX Spark (GB10) performance & tuning guide + reproduction examples ( #1631 )
...
Co-authored-by: SolitaryThinker <wlsaidhi@gmail.com >
2026-08-06 14:36:38 -07:00
William Lin
b963a24612
[bugfix]: hard-fail when ATTN_QAT_INFER is selected but the kernel is unusable ( #1690 )
2026-08-06 13:12:27 -07:00
William Lin
fb7be2fe2c
[ci]: add golden-gate lane — single-layer bitwise DiT fingerprints for all SSIM-covered families ( #1682 )
2026-08-05 12:47:03 -07:00
William Lin
ab00392664
[bugfix]: add GB200 to the inline SSIM device tables #1676 missed ( #1681 )
2026-08-05 10:33:46 -07:00
Shao Duan
9f1e7c19d2
[bugfix] Wan I2V: CLIP image conditioning silently dropped when passed as a tensor during training ( #1673 )
2026-08-05 01:35:09 -07:00
Kaiqin Kong
e8b0e4c61e
[feat] Add MiniMax H3 ( #1674 )
2026-08-04 13:54:39 -07:00
Haochen Jiang
9145ffdc46
[bugfix]: keep _resolved_attention_backend out of the positional config signature ( #1678 )
2026-08-03 17:09:15 -07:00
William Lin
c3d07c870b
[bugfix]: give GB200 its own SSIM reference folder instead of B200's ( #1676 )
2026-08-03 15:14:25 -07:00