Skip to content

Commit 0301db6

Browse files
authored
Update mediatek_README.md
1 parent 0dc3394 commit 0301db6

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

examples/demo-apps/android/LlamaDemo/docs/delegates/mediatek_README.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,30 @@ Phone verified: MediaTek Dimensity 9300 (D9300) chip.
2121
## Setup ExecuTorch
2222
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).
2323

24-
Create a Conda environment
24+
Checkout ExecuTorch repo and sync submodules
25+
2526
```
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 --depth 1 --recurse-submodules --shallow-submodules && cd executorch
2828
```
2929

30-
Checkout ExecuTorch repo and sync submodules
30+
Create either a Python virtual environment:
31+
32+
```
33+
python3 -m venv .venv && source .venv/bin/activate && pip install --upgrade pip
3134
```
32-
git clone https://github.com/pytorch/executorch.git
33-
cd executorch
34-
git submodule sync
35-
git submodule update --init
35+
36+
Or a Conda environment:
37+
38+
```
39+
conda create -n et_xnnpack python=3.10.0
40+
conda activate et_xnnpack
3641
```
42+
3743
Install dependencies
3844
```
3945
./install_executorch.sh
4046
```
47+
4148
## Setup Environment Variables
4249
### Download Buck2 and make executable
4350
* Download Buck2 from the official [Release Page](https://github.com/facebook/buck2/releases/tag/2024-02-01)

0 commit comments

Comments
 (0)