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

Unable to locate llama3.2 model and tokenizer files in the ios demo app #5840

Open
hietalajulius opened this issue Oct 3, 2024 · 6 comments
Assignees
Labels
iOS iOS related build and execution issues triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@hietalajulius
Copy link

hietalajulius commented Oct 3, 2024

Following this tutorial: https://github.com/pytorch/executorch/blob/main/examples/demo-apps/apple_ios/LLaMA/docs/delegates/xnnpack_README.md (on main, commit 92d1d1e410b11945869472e88a2247305921989a, iPhone 12 Pro, iOS 17.6.1)

When I drag and drop the model and tokenizer files in finder, they are not visible in the file navigator when trying to select them in the app:

Screenshot 2024-10-02 at 22 36 55 (llama3_2.pte and tokenizer.bin inside the directories)

Any ideas what I'm doing wrong?

update: airdropping the files from my mac makes them visible and selectable in the app but it still says "Select model..." when both model and tokenizer are seemingly set.
image

@iseeyuan iseeyuan added the iOS iOS related build and execution issues label Oct 3, 2024
@iseeyuan
Copy link
Contributor

iseeyuan commented Oct 3, 2024

@shoumikhin , could you help look at this?

@a8nova
Copy link

a8nova commented Oct 5, 2024

I am also facing a similar issue

@WuhanMonkey
Copy link
Contributor

cc. @Riandy

@Riandy
Copy link
Contributor

Riandy commented Oct 10, 2024

Try dropping them "outside" the models and tokenizers folder, basically direct child of the "iLLAMA" app in your finder.

Something like
iLLaMA

  • <your_model_file.pte>
  • <your_tokenizer_file.bin>

@hietalajulius
Copy link
Author

Try dropping them "outside" the models and tokenizers folder, basically direct child of the "iLLAMA" app in your finder.

Something like iLLaMA

  • <your_model_file.pte>
  • <your_tokenizer_file.bin>

Looks like the same thing with this setup
Screenshot 2024-10-11 at 9 18 40

@kirklandsign kirklandsign added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Oct 14, 2024
@shoumikhin
Copy link
Contributor

@hietalajulius try removing the app from the device, deploying&launching the app again, then copy the files, wait till copying finishes and proceed with the app UI to pick them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iOS iOS related build and execution issues triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

No branches or pull requests

7 participants