24
24
build-llm-demo :
25
25
name : build-llm-demo
26
26
uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
27
- strategy :
28
- matrix :
29
- tokenizer : [bpe, tiktoken]
30
27
with :
31
28
runner : linux.2xlarge
32
29
docker-image : executorch-ubuntu-22.04-clang12-android
44
41
export ARTIFACTS_DIR_NAME=artifacts-to-be-uploaded
45
42
46
43
# 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}
48
45
49
46
# Upload artifacts to S3. The artifacts are needed not only by the device farm but also TorchChat
50
47
upload-artifacts :
@@ -155,13 +152,6 @@ jobs:
155
152
id-token : write
156
153
contents : read
157
154
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]
165
155
with :
166
156
device-type : android
167
157
runner : linux.2xlarge
@@ -171,8 +161,8 @@ jobs:
171
161
# This is the custom Android device pool that only includes Samsung Galaxy S2x
172
162
device-pool-arn : arn:aws:devicefarm:us-west-2:308535385114:devicepool:02a2cf0f-6d9b-45ee-ba1a-a086587469e6/e59f866a-30aa-4aa1-87b7-4510e5820dfa
173
163
# 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
176
166
test-spec : https://ossci-android.s3.amazonaws.com/executorch/android-llm-device-farm-test-spec.yml
177
167
# 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
178
168
# days and the job will automatically re-upload the file when that happens.
0 commit comments