@@ -28,14 +28,16 @@ jobs:
28
28
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh --build-tool buck2
29
29
export ARTIFACTS_DIR_NAME=artifacts-to-be-uploaded
30
30
31
+ mkdir -p ${ARTIFACTS_DIR_NAME}/fp32-xnnpack-custom
32
+ bash examples/models/llama/install_requirements.sh
33
+ bash ".ci/scripts/test_llama.sh" -model stories110M -build_tool cmake -dtype fp16 -mode portable -upload ${ARTIFACTS_DIR_NAME}/fp32-xnnpack-custom
34
+
31
35
# Build LLM Demo for Android
32
36
export BUILD_AAR_DIR=aar-out
33
- bash build/build_android_library.sh ${ARTIFACTS_DIR_NAME}
37
+ mkdir -p $BUILD_AAR_DIR
38
+ bash scripts/build_android_library.sh ${ARTIFACTS_DIR_NAME}
34
39
bash .ci/scripts/build_android_instrumentation.sh ${ARTIFACTS_DIR_NAME}
35
40
36
- mkdir -p ${ARTIFACTS_DIR_NAME}/fp32-xnnpack-custom
37
- bash ".ci/scripts/test_llama.sh" -model stories110M -build_tool cmake -dtype fp16 -mode portable -upload ${ARTIFACTS_DIR_NAME}/fp32-xnnpack-custom
38
-
39
41
mkdir -p examples/demo-apps/android/LlamaDemo/app/libs
40
42
cp aar-out/executorch.aar examples/demo-apps/android/LlamaDemo/app/libs
41
43
pushd examples/demo-apps/android/LlamaDemo
94
96
curl -O https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/llm_demo/app-debug.apk
95
97
curl -O https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/llm_demo/app-debug-androidTest.apk
96
98
curl -O https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/fp32-xnnpack-custom/model.zip
97
- curl -o android-test-debug.apk https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/library_test_dir/executorch-debug.apk
98
99
curl -o android-test-debug-androidTest.apk https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/library_test_dir/executorch-debug-androidTest.apk
99
100
unzip model.zip
100
101
mv *.pte model.pte
@@ -119,7 +120,7 @@ jobs:
119
120
with :
120
121
api-level : ${{ env.API_LEVEL }}
121
122
arch : x86_64
122
- script : ./build /run_android_emulator.sh
123
+ script : ./scripts /run_android_emulator.sh
123
124
# NB: This is to boot the emulator faster following the instructions on
124
125
# https://github.com/ReactiveCircus/android-emulator-runner. The max number
125
126
# of cores we can set is 6, any higher number will be reduced to 6.
0 commit comments