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
In order to be able to successfully build and run a model using the MPS backend for ExecuTorch, you'll need the following hardware and software components.
In order to be able to successfully build and run a model using the MPS backend for ExecuTorch, you'll need the following hardware and software components:
27
+
28
+
### Hardware:
29
+
- A [mac](https://www.apple.com/mac/) for tracing the model
@@ -40,47 +53,34 @@ In order to be able to successfully build and run a model using the MPS backend
40
53
### AOT (Ahead-of-time) Components
41
54
42
55
**Compiling model for MPS delegate**:
43
-
- In this step, you will generate a simple ExecuTorch program that lowers MobileNetV3 model to the MPS delegate. You'll then pass this Program(the `.pte` file) during the runtime to run it using the MPS backend.
56
+
- In this step, you will generate a simple ExecuTorch program that lowers MobileNetV3 model to the MPS delegate. You'll then pass this Program(the `.pte` file) during the runtime to run it using the MPS backend.
# Note: `mps_example` script uses by default the MPSPartitioner for ops that are not yet supported by the MPS delegate. To turn it off, pass `--no-use_partitioner`.
3. Create an instance of the Inspector API by passing in the ETDump you have sourced from the runtime along with the optionally generated ETRecord from step 1.
***Step 1***. Create the ExecuTorch core and MPS delegate frameworks to link on iOS
100
131
```bash
101
132
cd executorch
102
-
./build/build_apple_frameworks.sh --Release --mps
133
+
./build/build_apple_frameworks.sh --mps
103
134
```
104
135
105
136
`mps_delegate.xcframework` will be in `cmake-out` folder, along with `executorch.xcframework` and `portable_delegate.xcframework`:
@@ -123,4 +154,4 @@ In this tutorial, you have learned how to lower a model to the MPS delegate, bui
123
154
124
155
## Frequently encountered errors and resolution.
125
156
126
-
If you encountered any bugs or issues following this tutorial please file a bug/issue on the ExecuTorch repository, with hashtag **#mps**.
157
+
If you encountered any bugs or issues following this tutorial please file a bug/issue on the [ExecuTorch repository](https://github.com/pytorch/executorch/issues), with hashtag **#mps**.
0 commit comments