Skip to content

Update iOS.md #517

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

Merged
merged 2 commits into from
Apr 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions docs/iOS.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
# Running LLaMA models on iOS

Check out the [tutorial](https://pytorch.org/executorch/main/llm/llama-demo-ios.html) on how to build the iOS demo app running your
PyTorch models with [ExecuTorch](https://github.com/pytorch/executorch).
On a Mac set-up [ExecuTorch](executorch_setup.md) and open the LLaMA app project with Xcode:

```
git clone https://github.com/pytorch/executorch.git

cd executorch

git submodule update --init

open examples/demo-apps/apple_ios/LLaMA/LLaMA.xcodeproj
open et-build/src/executorch/examples/demo-apps/apple_ios/LLaMA/LLaMA.xcodeproj
```

Then click the Play button in Xcode to launch the app in Simulator.
Then click the Play button to launch the app in Simulator.

To run on a device, given that you already have it set up for development, you'll need to have a provisioning profile with the [`increased-memory-limit`](https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_kernel_increased-memory-limit) entitlement. Just change the app's bundle identifier to whatever matches your provisioning profile with the aforementioned capability enabled.

Expand Down