Files
hao-ai-lab-FastVideo/fastvideo/layers
Mihir Jagtap df2cfbeefc Update rotary_embedding.py
# For rotate_half style RoPE (used by HunyuanVideo, GameCraft),
        # we need to expand cos/sin to full head_dim using repeat_interleave.
        # The rotate_half operation works on consecutive PAIRS: (x0,x1), (x2,x3)...
        # so cos/sin must be interleaved: [c0,c0,c1,c1,...] to match the pairing.
        # Using torch.cat would produce [c0,c1,...,c0,c1,...] which is WRONG.
2026-02-08 21:23:13 -08:00
..
2025-07-24 22:43:12 -07:00
2025-12-21 00:57:52 -06:00
2025-07-24 22:43:12 -07:00
2025-07-24 22:43:12 -07:00
2026-02-08 21:23:13 -08:00
2025-07-24 22:43:12 -07:00