Skip to content

Commit 6426d6b

Browse files
committed
Update instructions
1 parent 856e085 commit 6426d6b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

examples/demo-apps/android/LlamaDemo/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ This app demonstrates the use of the LLaMA chat app demonstrating local inferenc
44

55
## Prerequisites
66
* Set up your ExecuTorch repo and environment if you haven’t done so by following the [Setting up ExecuTorch](https://pytorch.org/executorch/stable/getting-started-setup) to set up the repo and dev environment.
7-
* Download and install the [Android Studio](https://developer.android.com/studio).
8-
* Use Android Studio to install the [Android SDK API Level 34](https://developer.android.com/about/versions/14/setup-sdk).
9-
* Use Android Studio to install the [Android NDK 25](https://developer.android.com/studio/projects/install-ndk). You can install it with Android Studio Settings -> Language & Frameworks -> Android SDK -> SDK Tools -> Check NDK (Side by side) row.
7+
* Install [Java 17 JDK](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html).
8+
* Install the [Android SDK API Level 34](https://developer.android.com/about/versions/14/setup-sdk) and
9+
[Android NDK 25](https://developer.android.com/studio/projects/install-ndk).
10+
* If you have Android Studio set up, you can install them with
11+
* Android Studio Settings -> Language & Frameworks -> Android SDK -> SDK Platforms -> Check the row with API Level 34.
12+
* Android Studio Settings -> Language & Frameworks -> Android SDK -> SDK Tools -> Check NDK (Side by side) row.
13+
* Alternatively, you can follow [this guide](https://github.com/pytorch/executorch/blob/856e085b9344c8b0bf220a97976140a5b76356aa/examples/demo-apps/android/LlamaDemo/SDK.md) to set up Java/SDK/NDK with CLI.
1014
* Supported Host OS: CentOS, macOS Sonoma on Apple Silicon.
1115

1216
```{note}
@@ -33,7 +37,7 @@ The demo app searches in `/data/local/tmp/llama` for .pte and .bin files as LLAM
3337
```{note}
3438
<path_to_android_ndk> is the root for the NDK, which is usually located under
3539
/Users/<user>/Library/Android/sdk/ndk/<version> for macOS, and contains NOTICE and README.md.
36-
We use <path_to_android_ndk>/build/cmake/android.toolchain.cmake for CMake to cross-compile.
40+
We use <path_to_android_ndk>/build/cmake/android.toolchain.cmake for CMake to cross-compile.
3741
```
3842
```bash
3943
export ANDROID_NDK=<path_to_android_ndk>

0 commit comments

Comments
 (0)