You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- custom_ops.py: support 1D freqs in the Python fake op. When freqs is
1D, compute inv_freq = 1/freqs and build angles from positions,
matching the C++ runtime behavior. 2D freqs path unchanged.
- MLXInterpreter.h: pass base=nullopt when freqs is provided. MLX's
fast::rope requires exactly one of base or freqs.
- mlx_source_transformations.py: pass dims=rotary_dim (not head_dim)
with 1D freqs containing only the non-zero rotary frequencies. The
old code passed 2D precomputed angles which was incorrect at the C++
level.
- test_ops.py: add RopeCustomFreqsTest (3 configs) verifying export and
MLX delegation with 1D custom frequencies.
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments