Skip to content

Commit d0ce19a

Browse files
authored
Update mps_README.md
1 parent 90cffa5 commit d0ce19a

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

examples/demo-apps/apple_ios/LLaMA/docs/delegates/mps_README.md

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,14 @@ conda activate et_mps
2424
Checkout ExecuTorch repo and sync submodules
2525

2626
```
27-
git clone https://github.com/pytorch/executorch.git
28-
cd executorch
29-
git submodule sync
30-
git submodule update --init
27+
git clone -b release/0.6 https://github.com/pytorch/executorch.git --depth 1 --recurse-submodules --shallow-submodules && cd executorch
3128
```
3229

3330
Install dependencies
3431

3532
```
3633
./install_executorch.sh
34+
./backends/apple/mps/install_requirements.sh
3735
```
3836

3937
## Prepare Models
@@ -42,7 +40,7 @@ In this demo app, we support text-only inference with Llama 3.1, Llama 3, and Ll
4240
Install the required packages to export the model
4341

4442
```
45-
sh examples/models/llama/install_requirements.sh
43+
./examples/models/llama/install_requirements.sh
4644
```
4745

4846
Export the model
@@ -78,16 +76,6 @@ The prebuilt ExecuTorch runtime, backend, and kernels are available as a Swift P
7876
### Xcode
7977
Open the project in Xcode.In Xcode, go to `File > Add Package Dependencies`. Paste the URL of the ExecuTorch repo into the search bar and select it. Make sure to change the branch name to the desired ExecuTorch version, e.g., “swiftpm-0.6.0”, or a branch name in format "swiftpm-<version>.<year_month_date>" (e.g. "swiftpm-0.6.0-20250501") for a nightly build on a specific date.
8078

81-
Note: If you're running into any issues related to package dependencies, quit Xcode entirely, delete the whole executorch repo, clean the caches by running the command below in terminal and clone the repo again.
82-
83-
```
84-
rm -rf \
85-
~/Library/org.swift.swiftpm \
86-
~/Library/Caches/org.swift.swiftpm \
87-
~/Library/Caches/com.apple.dt.Xcode \
88-
~/Library/Developer/Xcode/DerivedData
89-
```
90-
9179
Link your binary with the ExecuTorch runtime and any backends or kernels used by the exported ML model. It is recommended to link the core runtime to the components that use ExecuTorch directly, and link kernels and backends against the main app target.
9280

9381
Note: To access logs, link against the Debug build of the ExecuTorch runtime, i.e., the executorch_debug framework. For optimal performance, always link against the Release version of the deliverables (those without the _debug suffix), which have all logging overhead removed.

0 commit comments

Comments
 (0)