You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/demo-apps/android/LlamaDemo/README.md
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,13 @@ This app demonstrates the use of the LLaMA chat app demonstrating local inferenc
4
4
5
5
## Prerequisites
6
6
* 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.
* 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.
10
14
* Supported Host OS: CentOS, macOS Sonoma on Apple Silicon.
11
15
12
16
```{note}
@@ -33,7 +37,7 @@ The demo app searches in `/data/local/tmp/llama` for .pte and .bin files as LLAM
33
37
```{note}
34
38
<path_to_android_ndk> is the root for the NDK, which is usually located under
35
39
/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.
0 commit comments