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: examples/demo-apps/apple_ios/LLaMA/README.md
+11-6Lines changed: 11 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -23,20 +23,25 @@ Download already exported LLaMA/LLaVA models along with tokenizers from [Hugging
23
23
24
24
## Build and Run
25
25
26
-
1. Open the Xcode project:
26
+
1. Make sure git submodules are up-to-date:
27
+
```bash
28
+
git submodule update --init --recursive
29
+
```
30
+
31
+
2. Open the Xcode project:
27
32
```bash
28
33
open examples/demo-apps/apple_ios/LLaMA/LLaMA.xcodeproj
29
34
```
30
35
31
-
2. Click the Play button to launch the app in the Simulator.
36
+
3. Click the Play button to launch the app in the Simulator.
32
37
33
-
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.
38
+
4. 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.
34
39
35
-
4. After successfully launching the app, copy the exported ExecuTorch model (`.pte`) and tokenizer (`.model`) files to the iLLaMA folder.
40
+
5. After successfully launching the app, copy the exported ExecuTorch model (`.pte`) and tokenizer (`.model`) files to the iLLaMA folder.
36
41
37
42
- **For the Simulator:** Drag and drop both files onto the Simulator window and save them in the `On My iPhone > iLLaMA` folder.
38
-
- **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.
43
+
- **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.
39
44
40
-
5. Follow the app's UI guidelines to selectthe model and tokenizer files from the local filesystem and issue a prompt.
45
+
6. Follow the app's UI guidelines to selectthe model and tokenizer files from the local filesystem and issue a prompt.
41
46
42
47
For more details check out the [Using ExecuTorch on iOS](../../../../docs/source/using-executorch-ios.md) page.
0 commit comments