Skip to content

Commit beb1c98

Browse files
authored
Update xnnpack_README.md
1 parent 7a8d339 commit beb1c98

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,35 +21,35 @@ Phone verified: OnePlus 12, OnePlus 9 Pro. Samsung S23 (Llama only), Samsung S24
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 executorch python=3.10.0
27-
conda activate executorch
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+
3132
```
32-
git clone https://github.com/pytorch/executorch.git
33-
cd executorch
34-
git submodule sync
35-
git submodule update --init
33+
python3 -m venv .venv && source .venv/bin/activate && pip install --upgrade pip
3634
```
37-
Install dependencies
35+
36+
Or a Conda environment:
37+
3838
```
39-
./install_executorch.sh
39+
conda create -n et_xnnpack python=3.10.0
40+
conda activate et_xnnpack
4041
```
4142

42-
Optional: Use the --pybind flag to install with pybindings.
43+
Install dependencies
4344
```
44-
./install_executorch.sh --pybind xnnpack
45+
./install_executorch.sh
4546
```
4647

47-
4848
## Prepare Models
4949
In this demo app, we support text-only inference with up-to-date Llama models and image reasoning inference with LLaVA 1.5.
5050
* You can request and download model weights for Llama through Meta official [website](https://llama.meta.com/).
5151
* For chat use-cases, download the instruct models instead of pretrained.
52-
* Run `examples/models/llama/install_requirements.sh` to install dependencies.
52+
* Run `./examples/models/llama/install_requirements.sh` to install dependencies.
5353
* 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.
5454

5555
### For Llama 3.2 1B and 3B SpinQuant models

0 commit comments

Comments
 (0)