Skip to content

Commit

Permalink
Update on "[Test only] multimodal android binding"
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
larryliu0820 committed Jul 25, 2024
2 parents c894dd7 + 734e7e7 commit 1266c95
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions build/build_android_llm_demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,19 @@ build_android_native_library() {

cmake --build "${CMAKE_OUT}"/examples/models/llama2 -j "${CMAKE_JOBS}" --config Release

cmake examples/models/llava \
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake \
-DANDROID_ABI="$ANDROID_ABI" \
-DANDROID_PLATFORM=android-23 \
-DCMAKE_INSTALL_PREFIX="${CMAKE_OUT}" \
-DEXECUTORCH_USE_TIKTOKEN="${EXECUTORCH_USE_TIKTOKEN}" \
-DEXECUTORCH_BUILD_KERNELS_CUSTOM=ON \
-DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
-DEXECUTORCH_BUILD_XNNPACK=ON \
-DCMAKE_BUILD_TYPE=Release \
-B"${CMAKE_OUT}"/examples/models/llava

cmake --build "${CMAKE_OUT}"/examples/models/llava -j "${CMAKE_JOBS}" --config Release
# cmake examples/models/llava \
# -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake \
# -DANDROID_ABI="$ANDROID_ABI" \
# -DANDROID_PLATFORM=android-23 \
# -DCMAKE_INSTALL_PREFIX="${CMAKE_OUT}" \
# -DEXECUTORCH_USE_TIKTOKEN="${EXECUTORCH_USE_TIKTOKEN}" \
# -DEXECUTORCH_BUILD_KERNELS_CUSTOM=ON \
# -DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
# -DEXECUTORCH_BUILD_XNNPACK=ON \
# -DCMAKE_BUILD_TYPE=Release \
# -B"${CMAKE_OUT}"/examples/models/llava

# cmake --build "${CMAKE_OUT}"/examples/models/llava -j "${CMAKE_JOBS}" --config Release

cmake extension/android \
-DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK}/build/cmake/android.toolchain.cmake \
Expand Down

0 comments on commit 1266c95

Please sign in to comment.