mlx-swift icon indicating copy to clipboard operation
mlx-swift copied to clipboard

Swift API for MLX

Results 22 mlx-swift issues
Sort by recently updated
recently updated
newest added

Part of the fix for https://github.com/ml-explore/mlx-swift-examples/issues/53 Ready!

This was a bug in MLX core that I think got inherited in MLX Swift. The following should work rather than throwing a broadcast error: ```swift import MLX let a...

Hi, could you please share an example on how to use mlx-swift to run the stable diffusion 1.5, which is similar to the one given under https://github.com/ml-explore/mlx-examples/tree/main/stable_diffusion?

enhancement

I want to use this library in my react native project, would be awesome if it was also packaged as a cocoapods package.

It took me a few failed Xcode builds to realize mlx-swift was a repo dependent on its sibling mlx-c and mlx projects; and that we're using `git submodules`. Perhaps its...

We should avoid using hardcoded absolute link in Documentation bundle. The result is the web version is fine but build and open the documentation in Xcode will give us a...

Code: ``` let tokenId: Int = logits[idx].item() ``` Occurs occasionally, not 100% reproducible Crash Stacks: ``` 0 libsystem_kernel.dylib 0x00000001e9a86974 __pthread_kill + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001fd5090ec pthread_kill + 268 (pthread.c:1717)...

I would love to use MLX Swift inside an Xcode playground, to get an environment similar to Jupyter notebooks. However when I try to do this, I get an error:...

This may just be my confusion but as shown in the example below, I was expecting that calling `asArray` on the `MLXArray` returned from indexing would give `[1, 2, 4,...

bug

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](https://github.com/ml-explore/mlx-examples/pull/886) in mlx-examples and...