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

[Bug] rwkv-raven-3b-q4f16_2 not found when compiling the iOS project #31

Open
yuehengwu opened this issue Sep 13, 2023 · 6 comments
Open
Labels
bug Something isn't working

Comments

@yuehengwu
Copy link

🐛 Bug

To Reproduce

In the DoctorGPT project, following the compilation documentation for mlc-llm, I get an error when executing the script.

sh ./prepare_libs.sh
Traceback (most recent call last):
  File "/Users/wyh/Desktop/Programs/DoctorGPT/ios/prepare_model_lib.py", line 29, in <module>
    main()
  File "/Users/wyh/Desktop/Programs/DoctorGPT/ios/prepare_model_lib.py", line 19, in main
    raise RuntimeError(
RuntimeError: Cannot find lib for rwkv-raven-3b-q4f16_2 in the following candidate path: ['/Users/wyh/Desktop/Programs/DoctorGPT/dist/rwkv-raven-3b-q4f16_2/rwkv-raven-3b-q4f16_2-iphone.tar', '/Users/wyh/Desktop/Programs/DoctorGPT/dist/prebuilt/lib/rwkv-raven-3b-q4f16_2-iphone.tar']

But after I modified /ios/MLCChat/app-config.json, the prepare_libs.sh script executed successfully, and Xcode was able to compile successfully.

IMG_9084B58BB2C7-1

However, the program crashes when running.

截屏2023-09-13 22 58 41
@yuehengwu yuehengwu added the bug Something isn't working label Sep 13, 2023
@altruismb
Copy link

hello, how did you fix it, what needs to be modify, can you please provide guidance

@altruismb
Copy link

🐛 Bug

To Reproduce

In the DoctorGPT project, following the compilation documentation for mlc-llm, I get an error when executing the script.

sh ./prepare_libs.sh
Traceback (most recent call last):
  File "/Users/wyh/Desktop/Programs/DoctorGPT/ios/prepare_model_lib.py", line 29, in <module>
    main()
  File "/Users/wyh/Desktop/Programs/DoctorGPT/ios/prepare_model_lib.py", line 19, in main
    raise RuntimeError(
RuntimeError: Cannot find lib for rwkv-raven-3b-q4f16_2 in the following candidate path: ['/Users/wyh/Desktop/Programs/DoctorGPT/dist/rwkv-raven-3b-q4f16_2/rwkv-raven-3b-q4f16_2-iphone.tar', '/Users/wyh/Desktop/Programs/DoctorGPT/dist/prebuilt/lib/rwkv-raven-3b-q4f16_2-iphone.tar']

But after I modified /ios/MLCChat/app-config.json, the prepare_libs.sh script executed successfully, and Xcode was able to compile successfully.

IMG_9084B58BB2C7-1

However, the program crashes when running.

截屏2023-09-13 22 58 41

hello, how did you fix it, what needs to be modify, can you please provide guidance

@yuehengwu
Copy link
Author

hello, how did you fix it, what needs to be modify, can you please provide guidance

I didn't fix it. I can just compile success it in Xcode, but it will crash after running it.

@princeomon
Copy link

What did you change in /ios/MLCChat/app-config.json, the prepare_libs.sh script?

@yuehengwu
Copy link
Author

yuehengwu commented Oct 30, 2023

What did you change in /ios/MLCChat/app-config.json, the prepare_libs.sh script?

I did not modify the prepare_libs.sh file and I changed app-config.json to the following code because rwkv-raven-3b-q4f16_2 was not found

截屏2023-10-30 09 05 25

@princeomon
Copy link

What did you change in /ios/MLCChat/app-config.json, the prepare_libs.sh script?

I did not modify the prepare_libs.sh file and I changed app-config.json to the following code because rwkv-raven-3b-q4f16_2 was not found

截屏2023-10-30 09 05 25

Thank you. I got it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants