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: docs/source/getting-started.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -137,7 +137,7 @@ For a full example of running a model on Android, see the [DeepLabV3AndroidDemo]
137
137
#### Installation
138
138
ExecuTorch supports both iOS and MacOS via C++, as well as hardware backends for CoreML, MPS, and CPU. The iOS runtime library is provided as a collection of .xcframework targets and are made available as a Swift PM package.
139
139
140
-
To get started with 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 in format “swiftpm-”, (e.g. “swiftpm-0.5.0”). The ExecuTorch dependency can also be added to the package file manually. See [Using ExecuTorch on iOS](using-executorch-ios.md) for more information.
140
+
To get started with 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 in format “swiftpm-”, (e.g. “swiftpm-0.6.0”). The ExecuTorch dependency can also be added to the package file manually. See [Using ExecuTorch on iOS](using-executorch-ios.md) for more information.
141
141
142
142
#### Runtime APIs
143
143
Models can be loaded and run from Objective-C using the C++ APIs.
Copy file name to clipboardExpand all lines: docs/source/using-executorch-building-from-source.md
+11-15Lines changed: 11 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,27 +36,23 @@ portability details.
36
36
37
37
## Environment Setup
38
38
39
-
### Create a Virtual Environment
39
+
### Clone ExecuTorch
40
40
41
-
[Install conda on your machine](https://conda.io/projects/conda/en/latest/user-guide/install/index.html). Then, create a virtual environment to manage our dependencies.
42
41
```bash
43
-
# Create and activate a conda environment named "executorch"
Or alternatively, [install conda on your machine](https://conda.io/projects/conda/en/latest/user-guide/install/index.html). Then, create a Conda environment named "executorch".
Copy file name to clipboardExpand all lines: docs/source/using-executorch-ios.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ The prebuilt ExecuTorch runtime, backend, and kernels are available as a [Swift
25
25
26
26
#### Xcode
27
27
28
-
In Xcode, go to `File > Add Package Dependencies`. Paste the URL of the [ExecuTorch repo](https://github.com/pytorch/executorch) into the search bar and select it. Make sure to change the branch name to the desired ExecuTorch version in format "swiftpm-<version>", (e.g. "swiftpm-0.5.0"), or a branch name in format "swiftpm-<version>.<year_month_date>" (e.g. "swiftpm-0.5.0-20250228") for a nightly build on a specific date.
28
+
In Xcode, go to `File > Add Package Dependencies`. Paste the URL of the [ExecuTorch repo](https://github.com/pytorch/executorch) into the search bar and select it. Make sure to change the branch name to the desired ExecuTorch version in format "swiftpm-<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.
29
29
30
30

31
31
@@ -58,7 +58,7 @@ let package = Package(
58
58
],
59
59
dependencies: [
60
60
// Use "swiftpm-<version>.<year_month_day>" branch name for a nightly build.
4. Install the required dependencies, including those needed for the backends like [Core ML](backends-coreml.md) or [MPS](backends-mps.md). Choose one:
109
+
4. Install the required dependencies, including those needed for the backends like [Core ML](backends-coreml.md) or [MPS](backends-mps.md). Choose one, or both:
In this section, we will need to set up the ExecuTorch repo first with Conda environment management. Make sure you have Conda available in your system (or follow the instructions to install it [here](https://anaconda.org/anaconda/conda)). The commands below are running on Linux (CentOS).
23
23
24
-
Create a Conda environment
24
+
Checkout ExecuTorch repo and sync submodules
25
+
25
26
```
26
-
conda create -yn et_mtk python=3.10.0
27
-
conda activate et_mtk
27
+
git clone -b release/0.6 https://github.com/pytorch/executorch.git && cd executorch
In this section, we will need to set up the ExecuTorch repo first with Conda environment management. Make sure you have Conda available in your system (or follow the instructions to install it [here](https://anaconda.org/anaconda/conda)). The commands below are running on Linux (CentOS).
21
21
22
-
Create a Conda environment
22
+
Checkout ExecuTorch repo and sync submodules
23
+
23
24
```
24
-
conda create -n et_qnn python=3.10.0
25
-
conda activate et_qnn
25
+
git clone -b release/0.6 https://github.com/pytorch/executorch.git && cd executorch
In this section, we will need to set up the ExecuTorch repo first with Conda environment management. Make sure you have Conda available in your system (or follow the instructions to install it [here](https://anaconda.org/anaconda/conda)). The commands below are running on Linux (CentOS).
23
23
24
-
Create a Conda environment
24
+
Checkout ExecuTorch repo and sync submodules
25
+
25
26
```
26
-
conda create -yn executorch python=3.10.0
27
-
conda activate executorch
27
+
git clone -b release/0.6 https://github.com/pytorch/executorch.git && cd executorch
Optional: Use the --pybind flag to install with pybindings.
42
+
Install dependencies
43
43
```
44
-
./install_executorch.sh --pybind xnnpack
44
+
./install_executorch.sh
45
45
```
46
46
47
-
48
47
## Prepare Models
49
48
In this demo app, we support text-only inference with up-to-date Llama models and image reasoning inference with LLaVA 1.5.
50
49
* You can request and download model weights for Llama through Meta official [website](https://llama.meta.com/).
51
50
* For chat use-cases, download the instruct models instead of pretrained.
52
-
* Run `examples/models/llama/install_requirements.sh` to install dependencies.
51
+
* Run `./examples/models/llama/install_requirements.sh` to install dependencies.
53
52
* Rename tokenizer for Llama3.x with command: `mv tokenizer.model tokenizer.bin`. We are updating the demo app to support tokenizer in original format directly.
0 commit comments