Closed DePasqualeOrg closed 4 months ago
I think this is related to https://github.com/ml-explore/mlx-swift/issues/104 and https://github.com/ml-explore/mlx-c/issues/30. Let's wait until after MLX Swift is updated to the latest MLX (should be in the next few days) and see if the problem persists.
When I call
MLXLLM.generate
in my app running in Xcode 16.0 beta 2, the app crashes on macOS and iOS with the C++ errorvector[] index out of bounds
. This does not happen in Xcode 15. It appears to be related to the C++ libraries in macOS 15 and iOS 18. I'm running macOS 14 and iOS 17 on my devices.Unfortunately I can't reproduce this in the example app in this repo, but this is how I'm calling
MLXLLM.generate
. I'm storing a reference to a Task that can be canceled and whose result can be awaited. I'll try to put together a minimal reproduction based on this repo soon.