@@ -9,7 +9,7 @@ This is a tutorial for building and installing Executorch from the GitHub reposi
9
9
This will install an ` executorch ` pip package to your conda environment and
10
10
allow you to export your PyTorch model to a flatbuffer file using ExecuTorch.
11
11
12
- ### Step 1: Set up a conda environment
12
+ ### Step 1: Set up a dev environment
13
13
14
14
To install conda, you can look at the
15
15
[ conda installation guide] ( https://conda.io/projects/conda/en/latest/user-guide/install/index.html ) .
@@ -19,13 +19,22 @@ conda create -yn executorch python=3.10.0
19
19
conda activate executorch
20
20
21
21
conda install -c conda-forge flatbuffers
22
+ ```
22
23
24
+ Setting up PyTorch
25
+ ``` bash
23
26
# Install the nightly builds
24
27
# Note: if you are behind a firewall an appropriate proxy server must be setup
25
28
# for all subsequent steps.
26
- pip install --force-reinstall --pre torch -i https://download.pytorch.org/whl/nightly/cpu
29
+ TORCH_VERSION=2.1.0.dev20230731
30
+ pip install --force-reinstall --pre torch==" ${TORCH_VERSION} " -i https://download.pytorch.org/whl/nightly/cpu
27
31
```
28
32
33
+ When getting a new version of the executorch repo (via clone, fetch, or pull),
34
+ you may need to re-install a new version the PyTorch nightly pip package. The
35
+ ` TORCH_VERSION ` value in this document will be the correct version for the
36
+ corresponsing version of the repo.
37
+
29
38
### Step 2: Install the ` executorch ` pip package
30
39
31
40
This will install an ` executorch ` pip package to your conda environment.
0 commit comments