File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
examples/demo-apps/android/LlamaDemo Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 8
8
set -eu
9
9
10
10
CMAKE_OUT=" ${CMAKE_OUT:- cmake-out-android} "
11
+ EXECUTORCH_USE_TIKTOKEN=" ${EXECUTORCH_USE_TIKTOKEN:- OFF} "
11
12
# Note: Set up ANDROID_NDK and ANDROID_ABI
12
13
cmake . -DCMAKE_INSTALL_PREFIX=" ${CMAKE_OUT} " \
13
14
-DCMAKE_TOOLCHAIN_FILE=" ${ANDROID_NDK} /build/cmake/android.toolchain.cmake" \
14
15
-DANDROID_ABI=" ${ANDROID_ABI} " \
15
16
-DEXECUTORCH_BUILD_XNNPACK=ON \
16
17
-DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON \
17
18
-DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
19
+ -DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON \
18
20
-DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
19
21
-DEXECUTORCH_BUILD_QNN=ON \
20
22
-DQNN_SDK_ROOT=" ${QNN_SDK_ROOT} " \
@@ -32,6 +34,7 @@ cmake examples/models/llama2 \
32
34
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK /build/cmake/android.toolchain.cmake \
33
35
-DANDROID_ABI=" $ANDROID_ABI " \
34
36
-DCMAKE_INSTALL_PREFIX=" ${CMAKE_OUT} " \
37
+ -DEXECUTORCH_BUILD_KERNELS_CUSTOM=ON \
35
38
-DCMAKE_BUILD_TYPE=Release \
36
39
-B" ${CMAKE_OUT} " /examples/models/llama2
37
40
You can’t perform that action at this time.
0 commit comments