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: backends/mediatek/scripts/README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Before you begin, ensure you have the following prerequisites installed and conf
16
16
17
17
### 2. Android NDK
18
18
19
-
-**Download Android NDK**: Acquire the Android NDK from the [Android developer site](https://developer.android.com/ndk/downloads).
19
+
-**Download Android NDK**: Acquire the Android NDK version 26.3.11579264 from the [Android developer site](https://developer.android.com/ndk/downloads).
20
20
-**Set NDK Path**: Ensure that the `$ANDROID_NDK` environment variable is set to the path where the NDK is located.
Copy file name to clipboardExpand all lines: examples/demo-apps/android/LlamaDemo/README.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,12 @@ First it’s important to note that currently ExecuTorch provides support across
34
34
| QNN (Qualcomm AI Accelerators) |[link](https://github.com/pytorch/executorch/blob/main/examples/demo-apps/android/LlamaDemo/docs/delegates/qualcomm_README.md)|
35
35
| MediaTek (MediaTek AI Accelerators) |[link](https://github.com/pytorch/executorch/blob/main/examples/demo-apps/android/LlamaDemo/docs/delegates/mediatek_README.md)|
36
36
37
+
**WARNING** NDK r27 will cause issues like:
38
+
```
39
+
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZTVNSt6__ndk114basic_ifstreamIcNS_11char_traitsIcEEEE" referenced by "/data/app/~~F5IwquaXUZPdLpSEYA-JGA==/com.example.executorchllamademo-FSyx80gEhsQCsxz7hvS2Ew==/lib/arm64/libexecutorch.so"...
40
+
```
41
+
Please use NDK version 26.3.11579264.
42
+
37
43
## How to Use the App
38
44
39
45
This section will provide the main steps to use the app, along with a code snippet of the ExecuTorch API.
Copy file name to clipboardExpand all lines: examples/demo-apps/android/LlamaDemo/docs/delegates/qualcomm_README.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,13 @@ More specifically, it covers:
6
6
2. Building and linking libraries that are required to inference on-device for Android platform using Qualcomm AI accelerators.
7
7
3. Building the Android demo app itself.
8
8
9
-
Verified on Linux CentOS, QNN SDK [v2.26](https://softwarecenter.qualcomm.com/api/download/software/qualcomm_neural_processing_sdk/v2.26.0.240828.zip), python 3.10, Android SDK r27 and r26b.
9
+
Verified on Linux CentOS, QNN SDK [v2.26](https://softwarecenter.qualcomm.com/api/download/software/qualcomm_neural_processing_sdk/v2.26.0.240828.zip), python 3.10, Android SDK r26c.
* Download and unzip QNN SDK [v2.26](https://softwarecenter.qualcomm.com/api/download/software/qualcomm_neural_processing_sdk/v2.26.0.240828.zip)
15
-
* Download and unzip Android SDK [r27](https://developer.android.com/ndk/downloads)
15
+
* Download and unzip Android SDK [r26](https://developer.android.com/ndk/downloads)
16
16
* Android phone with Snapdragon8 Gen3 (SM8650) or Gen2 (SM8550). Gen 1 and lower SoC might be supported but not fully validated.
17
17
* Desired Llama model weights in .PTH format. You can download them on HuggingFace ([Example](https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct)).
18
18
@@ -40,7 +40,7 @@ Install dependencies
40
40
## Setup QNN
41
41
```
42
42
# Set these variables correctly for your environment
43
-
export ANDROID_NDK_ROOT=$HOME/android-ndk-r27 # Download android SDK and unzip to home directory
43
+
export ANDROID_NDK_ROOT=$HOME/android-ndk-r26 # Download android SDK and unzip to home directory
0 commit comments