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

Iphone 12 pro, ipad and iphone 15 or some other device this llama.rn pakage has issue. Even the device has latest os and enough gpu to run the model. #102

Open
PratikBhatti83 opened this issue Dec 29, 2024 · 3 comments

Comments

@PratikBhatti83
Copy link

When using the llama.rn package, the initLlama function fails to initialize, throwing a "Failed to load model" error.
Screenshot 2024-12-29 at 1 41 18 PM

@PratikBhatti83 PratikBhatti83 changed the title Iphone 12 pro, ipad and iphone 15 or some other device this llama.rn pakage has issue. Iphone 12 pro, ipad and iphone 15 or some other device this llama.rn pakage has issue. Even the device has lates os and enough gpu to run the model. Dec 29, 2024
@PratikBhatti83 PratikBhatti83 changed the title Iphone 12 pro, ipad and iphone 15 or some other device this llama.rn pakage has issue. Even the device has lates os and enough gpu to run the model. Iphone 12 pro, ipad and iphone 15 or some other device this llama.rn pakage has issue. Even the device has latest os and enough gpu to run the model. Dec 29, 2024
@PratikBhatti83
Copy link
Author

@jhen0409 @a-ghorbani is there any solution for this? could you please help me to solve this problem

@jhen0409
Copy link
Member

jhen0409 commented Jan 2, 2025

I can't figure the cause based on the error message. Could you provide more information, like Xcode logs or what models are you using?

@PratikBhatti83
Copy link
Author

PratikBhatti83 commented Jan 2, 2025

@jhen0409 i used Llama-3.2-1B-Instruct-Q4_K_M.gguf this model!

Xcode log is like below error only

Context initialization failed: Error: Failed to load model.

Meanwhile on other device like Iphone 13, Iphone 14 Pro I can able to run this model. but some of the device it's failed to load model while intiazation. i think you should update lllama.cpp version or sync the latest code because I checked llama.cpp doesn't have this type of initialization issue.

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

2 participants