Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion backends/vulkan/docs/android_demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ First, build and install ExecuTorch libraries, then build the LLaMA runner
binary using the Android NDK toolchain.

```shell
(rm -rf cmake-android-out && \
./install_requirements.sh --clean
(mkdir cmake-android-out && \
cmake . -DCMAKE_INSTALL_PREFIX=cmake-android-out \
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake \
-DANDROID_ABI=$ANDROID_ABI \
Expand Down
2 changes: 1 addition & 1 deletion backends/xnnpack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ After exporting the XNNPACK Delegated model, we can now try running it with exam
cd executorch

# Get a clean cmake-out directory
rm -rf cmake-out
./install_requirements.sh --clean
mkdir cmake-out

# Configure cmake
Expand Down
3 changes: 2 additions & 1 deletion docs/source/build-run-xtensa.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ In order to run the CMake build, you need the path to the following:

```bash
cd executorch
rm -rf cmake-out
./install_requirements.sh --clean
mkdir cmake-out
# prebuild and install executorch library
cmake -DCMAKE_TOOLCHAIN_FILE=<path_to_executorch>/backends/cadence/cadence.cmake \
-DCMAKE_INSTALL_PREFIX=cmake-out \
Expand Down
3 changes: 2 additions & 1 deletion docs/source/llm/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,8 @@ At this point, the working directory should contain the following files:

If all of these are present, you can now build and run:
```bash
(rm -rf cmake-out && mkdir cmake-out && cd cmake-out && cmake ..)
./install_requirements.sh --clean
(mkdir cmake-out && cd cmake-out && cmake ..)
cmake --build cmake-out -j10
./cmake-out/nanogpt_runner
```
Expand Down
2 changes: 1 addition & 1 deletion docs/source/tutorial-xnnpack-delegate-lowering.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ After exporting the XNNPACK Delegated model, we can now try running it with exam
cd executorch

# Get a clean cmake-out directory
rm -rf cmake-out
./install_requirements.sh --clean
mkdir cmake-out

# Configure cmake
Expand Down
2 changes: 1 addition & 1 deletion examples/demo-apps/android/ExecuTorchDemo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export ANDROID_ABI=arm64-v8a
export QNN_SDK_ROOT=<path-to-qnn-sdk>

./install_requirements.sh --clean
mkdir cmake-android-out && cd cmake-android-out
mkdir cmake-android-out
cmake . -DCMAKE_INSTALL_PREFIX=cmake-android-out \
-DCMAKE_TOOLCHAIN_FILE="${ANDROID_NDK}/build/cmake/android.toolchain.cmake" \
-DANDROID_ABI="${ANDROID_ABI}" \
Expand Down
3 changes: 1 addition & 2 deletions examples/models/llama/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,8 @@ This example tries to reuse the Python code, with minimal modifications to make
```
git clean -xfd
pip uninstall executorch
./install_requirements.sh --clean
./install_requirements.sh --pybind xnnpack

rm -rf cmake-out
```
- If you encounter `pthread` related issues during link time, add `pthread` in `target_link_libraries` in `CMakeLists.txt`
- On Mac, if there is linking error in Step 4 with error message like
Expand Down
3 changes: 2 additions & 1 deletion examples/models/phi-3-mini-lora/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ python export_model.py
2. Run the inference model using an example runtime. For more detailed steps on this, check out [Build & Run](https://pytorch.org/executorch/stable/getting-started-setup.html#build-run).
```
# Clean and configure the CMake build system. Compiled programs will appear in the executorch/cmake-out directory we create here.
(rm -rf cmake-out && mkdir cmake-out && cd cmake-out && cmake ..)
./install_requirements.sh --clean
(mkdir cmake-out && cd cmake-out && cmake ..)
# Build the executor_runner target
cmake --build cmake-out --target executor_runner -j9
Expand Down
4 changes: 2 additions & 2 deletions examples/portable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ Use `-h` (or `--help`) to see all the supported models.

```bash
# Build the tool from the top-level `executorch` directory.
(rm -rf cmake-out \
&& mkdir cmake-out \
./install_requirements.sh --clean
(mkdir cmake-out \
&& cd cmake-out \
&& cmake -DEXECUTORCH_PAL_DEFAULT=posix ..) \
&& cmake --build cmake-out -j32 --target executor_runner
Expand Down
4 changes: 2 additions & 2 deletions examples/xnnpack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Once we have the model binary (pte) file, then let's run it with ExecuTorch runt
cd executorch

# Get a clean cmake-out directory
rm -rf cmake-out
./install_requiements.sh --clean
mkdir cmake-out

# Configure cmake
Expand Down Expand Up @@ -86,7 +86,7 @@ After exporting the XNNPACK Delegated model, we can now try running it with exam
cd executorch

# Get a clean cmake-out directory
rm -rf cmake-out
./install_requirements.sh --clean
mkdir cmake-out

# Configure cmake
Expand Down
2 changes: 1 addition & 1 deletion extension/training/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ After exporting the model for training, we can now try learning using CMake. We
cd executorch

# Get a clean cmake-out directory
rm -rf cmake-out
./install_requirements.sh --clean
mkdir cmake-out

# Configure cmake
Expand Down
Loading