File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 35
35
36
36
# Build LLM Demo for Android
37
37
export BUILD_AAR_DIR=aar-out
38
+ export EXECUTORCH_BUILD_EXTENSION_LLM=ON
38
39
mkdir -p $BUILD_AAR_DIR
39
40
bash scripts/build_android_library.sh
40
41
cp ${BUILD_AAR_DIR}/executorch.aar $ARTIFACTS_DIR_NAME
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ if(EXECUTORCH_BUILD_EXTENSION_TRAINING)
151
151
target_compile_definitions (executorch_jni PUBLIC EXECUTORCH_BUILD_EXTENSION_TRAINING=1 )
152
152
endif ()
153
153
154
- if (EXECUTORCH_BUILD_LLAMA_JNI )
154
+ if (EXECUTORCH_BUILD_EXTENSION_LLM )
155
155
target_sources (executorch_jni PRIVATE jni/jni_layer_llama.cpp jni/log.cpp )
156
156
list (APPEND link_libraries llama_runner llava_runner )
157
157
target_compile_definitions (executorch_jni PUBLIC EXECUTORCH_BUILD_LLAMA_JNI=1 )
Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ build_android_native_library() {
55
55
-DEXECUTORCH_BUILD_EXTENSION_TRAINING=ON \
56
56
-DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
57
57
-DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON \
58
+ -DEXECUTORCH_BUILD_EXTENSION_LLM=" ${EXECUTORCH_BUILD_EXTENSION_LLM:- OFF} " \
58
59
-DEXECUTORCH_BUILD_KERNELS_LLM=" ${EXECUTORCH_BUILD_EXTENSION_LLM:- ON} " \
59
- -DEXECUTORCH_BUILD_LLAMA_JNI=" ${EXECUTORCH_BUILD_EXTENSION_LLM:- ON} " \
60
60
-DEXECUTORCH_BUILD_NEURON=" ${EXECUTORCH_BUILD_NEURON} " \
61
61
-DNEURON_BUFFER_ALLOCATOR_LIB=" ${NEURON_BUFFER_ALLOCATOR_LIB} " \
62
62
-DEXECUTORCH_BUILD_QNN=" ${EXECUTORCH_BUILD_QNN} " \
You can’t perform that action at this time.
0 commit comments