Skip to content

Commit 585254a

Browse files
digantdesaifacebook-github-bot
authored andcommitted
Update Pytorch pip-install s/nighlty/specific_version
Summary: As title Reviewed By: dbort Differential Revision: D47924577 fbshipit-source-id: 29cc8020498d17d5bd4420e7abf5693c3b5e4a84
1 parent 3351eb4 commit 585254a

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Compared to the legacy Lite Interpreter, there are some major benefits:
4242
- [EXIR Spec](/docs/website/docs/ir_spec/00_exir.md)
4343
- [Exporting manual](/docs/website/docs/export/00_export_manual.md)
4444
- [Delegate to a backend](/docs/website/docs/tutorials/backend_delegate.md)
45-
- [Profiling] (/docs/website/docs/tutorials/profiling.md)
45+
- [Profiling](/docs/website/docs/tutorials/profiling.md)
4646
- [Executorch Google Colab](https://colab.research.google.com/drive/1m8iU4y7CRVelnnolK3ThS2l2gBo7QnAP#scrollTo=1o2t3LlYJQY5)
4747

4848
## Directory Structure [WIP]

docs/website/docs/tutorials/00_setting_up_executorch.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This is a tutorial for building and installing Executorch from the GitHub reposi
99
This will install an `executorch` pip package to your conda environment and
1010
allow you to export your PyTorch model to a flatbuffer file using ExecuTorch.
1111

12-
### Step 1: Set up a conda environment
12+
### Step 1: Set up a dev environment
1313

1414
To install conda, you can look at the
1515
[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
1919
conda activate executorch
2020

2121
conda install -c conda-forge flatbuffers
22+
```
2223

24+
Setting up PyTorch
25+
```bash
2326
# Install the nightly builds
2427
# Note: if you are behind a firewall an appropriate proxy server must be setup
2528
# 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
2731
```
2832

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+
2938
### Step 2: Install the `executorch` pip package
3039

3140
This will install an `executorch` pip package to your conda environment.

examples/install_requirements.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,12 @@
99
# here it is used to install torchvision's nighlty package because the latest
1010
# variant install an older version of pytorch, 1.8,
1111
# tested only on linux
12-
pip install --force-reinstall --pre torchvision -i https://download.pytorch.org/whl/nightly/cpu
12+
13+
# Note:
14+
# When getting a new version of the executorch repo (via clone, fetch, or pull),
15+
# you may need to re-install a new version the TorchVision nightly pip package. The
16+
# `TORCH_VISION_VERSION` value in this document will be the correct version for the
17+
# corresponsing version of the repo.
18+
19+
TORCH_VISION_VERSION=0.16.0.dev20230731
20+
pip install --force-reinstall --pre torchvision=="${TORCH_VISION_VERSION}" -i https://download.pytorch.org/whl/nightly/cpu

0 commit comments

Comments
 (0)