You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-17Lines changed: 17 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -238,31 +238,31 @@ run `python3 torchchat.py export`
238
238
239
239
### Deploy and run on iOS
240
240
241
-
The following assumes you've completed the steps for [Setting up
242
-
Executorch](#set-up-executorch) and
241
+
The following assumes you've completed the steps for [Setting up Executorch](#set-up-executorch).
243
242
244
-
Open the xcode project
245
-
```
246
-
open et-build/src/executorch/examples/demo-apps/apple_ios/LLaMA/LLaMA.xcodeproj
247
-
```
248
-
Then click the Play button to launch the app in Simulator.
243
+
#### Requirements
244
+
- Xcode 15.0 or later
245
+
- A development provisioning profile with the [`increased-memory-limit`](https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_kernel_increased-memory-limit) entitlement.
249
246
250
-
To run on a device, given that you already have it set up for
251
-
development, you'll need to have a provisioning profile with the
entitlement. Just change the app's bundle identifier to whatever
254
-
matches your provisioning profile with the aforementioned capability
255
-
enabled.
247
+
#### Steps
256
248
257
-
After the app launched successfully, copy an exported ExecuTorch model (`.pte`) and tokenizer (`.bin`) files to the iLLaMA folder.
249
+
1. Open the Xcode project:
250
+
```bash
251
+
open et-build/src/executorch/examples/demo-apps/apple_ios/LLaMA/LLaMA.xcodeproj
252
+
```
253
+
2. Click the Play button to launch the app in the Simulator.
258
254
259
-
For the Simulator, just drag&drop both files onto the Simulator window and save at `On My iPhone > iLLaMA` folder.
255
+
3. To run on a device, ensure you have it set up for development and a provisioning profile with the `increased-memory-limit` entitlement. Update the app's bundle identifier to match your provisioning profile with the required capability.
260
256
261
-
For a device, open it in a separate Finder window, navigate to the Files tab, drag&drop both files to the iLLaMA folder and wait till the copying finishes.
257
+
4. After successfully launching the app, copy the exported ExecuTorch model (`.pte`) and tokenizer (`.model`) files to the iLLaMA folder. You can find the model file called `llama3.pte` in the current `torchchat` directory and the tokenizer file at `$(python3 torchchat.py where llama3)/tokenizer.model` path.
262
258
263
-
Now, follow the app's UI guidelines to pick the model and tokenizer files from the local filesystem and issue a prompt.
259
+
- **For the Simulator:** Drag and drop both files onto the Simulator window and save them in the `On My iPhone > iLLaMA` folder.
260
+
- **For a device:** Open a separate Finder window, navigate to the Files tab, drag and drop both files into the iLLaMA folder, and wait for the copying to finish.
261
+
262
+
5. Follow the app's UI guidelines to selectthe model and tokenizer files from the local filesystem and issue a prompt.
0 commit comments