2424 build-llm-demo :
2525 name : build-llm-demo
2626 uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
27- strategy :
28- matrix :
29- tokenizer : [bpe, tiktoken]
3027 with :
3128 runner : linux.2xlarge
3229 docker-image : executorch-ubuntu-22.04-clang12-android
4441 export ARTIFACTS_DIR_NAME=artifacts-to-be-uploaded
4542
4643 # Build LLM Demo for Android
47- bash build/build_android_llm_demo.sh ${{ matrix.tokenizer }} ${ ARTIFACTS_DIR_NAME}
44+ bash build/build_android_llm_demo.sh ${ARTIFACTS_DIR_NAME}
4845
4946 # Upload artifacts to S3. The artifacts are needed not only by the device farm but also TorchChat
5047 upload-artifacts :
@@ -155,13 +152,6 @@ jobs:
155152 id-token : write
156153 contents : read
157154 uses : pytorch/test-infra/.github/workflows/mobile_job.yml@main
158- strategy :
159- matrix :
160- # https://github.com/pytorch/executorch/blob/main/examples/demo-apps/android/LlamaDemo/README.md#alternative-2-build-from-local-machine
161- # mentions that tiktoken is only for Llama3. So, we can export it later in another archive
162- # like https://ossci-assets.s3.amazonaws.com/executorch-android-llama2-7b-0717.zip when this is
163- # updated to run Llama3
164- tokenizer : [bpe]
165155 with :
166156 device-type : android
167157 runner : linux.2xlarge
@@ -171,8 +161,8 @@ jobs:
171161 # This is the custom Android device pool that only includes Samsung Galaxy S2x
172162 device-pool-arn : arn:aws:devicefarm:us-west-2:308535385114:devicepool:02a2cf0f-6d9b-45ee-ba1a-a086587469e6/e59f866a-30aa-4aa1-87b7-4510e5820dfa
173163 # Uploaded to S3 from the previous job, the name of the app comes from the project itself
174- android-app-archive : https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifact/llm_demo_${{ matrix.tokenizer }} /app-debug.apk
175- android-test-archive : https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifact/llm_demo_${{ matrix.tokenizer }} /app-debug-androidTest.apk
164+ android-app-archive : https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifact/llm_demo /app-debug.apk
165+ android-test-archive : https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifact/llm_demo /app-debug-androidTest.apk
176166 test-spec : https://ossci-android.s3.amazonaws.com/executorch/android-llm-device-farm-test-spec.yml
177167 # Among the input, this is the biggest file, so it is cached on AWS to make the test faster. Note that the file is deleted by AWS after 30
178168 # days and the job will automatically re-upload the file when that happens.
0 commit comments