mlx-swift
mlx-swift copied to clipboard
Add SuScaledRotaryEmbedding
I've ported this from the Python implementation: https://github.com/ml-explore/mlx-examples/blob/main/llms/mlx_lm/models/su_rope.py
This is needed for the new Phi 3.5 models. I still need to update mlx-swift-examples analogous to this PR in mlx-examples and test this.