Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLmEval crashes on IOS 18.x #184

Open
shadown opened this issue Jan 24, 2025 · 7 comments
Open

LLmEval crashes on IOS 18.x #184

shadown opened this issue Jan 24, 2025 · 7 comments

Comments

@shadown
Copy link

shadown commented Jan 24, 2025

I've been having a crash in iOS 18.x since I updated all libraries, no crashes on iOS 17.x. The crash takes place when calling GPU.snapshot(). Just to double check I've downloaded the latest mlx-swift-examples, compiled it and had it run under an iPhone 16 Pro (simulator). Out of the box it crashes at the same place.

image

image

@davidkoski
Copy link
Collaborator

mlx-swift won't run on the simulator -- the GPU doesn't support a high enough API:

@shadown
Copy link
Author

shadown commented Jan 24, 2025

mlx-swift won't run on the simulator -- the GPU doesn't support a high enough API:

Well, the problem is that it crashes on the physical iPhone 16 Pro running iOS 18.2.1.
I've developed and app that runs without problem on iOS 17.x, but the app was rejected when crashing on an iPad Air (5th gen) with iPadOS 18.2.1, I've tried in an iPhone 16 Pro Max running iOS 18.2.1 and crashes as well.
That's why I've used the Simulator.
On macOS runs without problem, on iPhone 14 Pro with iOS 17.6.1 also, no issues, but on iOS 18.x it crashes.
The only thing I did was updating the libraries. Where shall I look then?

@davidkoski
Copy link
Collaborator

If you can get the crash log from the device it would help:

and attach that here or if it might contain sensitive information you can email it to me at dkoski AT apple.com. The crash log is more helpful than being in the debugger at this point because it will contain some messages about the failure.

@AxelSjoberg
Copy link

mlx-swift won't run on the simulator -- the GPU doesn't support a high enough API:

@davidkoski You know if there are any plans for adding support so we can run mlx-swift on simulator?

@davidkoski
Copy link
Collaborator

@davidkoski You know if there are any plans for adding support so we can run mlx-swift on simulator?

There are none from the MLX team.

@AxelSjoberg
Copy link

@davidkoski too bad! Its a great framework for running things on Mac, but actually deploying the models into the apps feels harder than it should be atm. Either way thanks for a great framework!

@davidkoski
Copy link
Collaborator

The one thing I can suggest is using Catalyst to run the iOS app on your Mac (as an iPad app). This will let you develop the app on your Mac, which may be what you are looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants