Skip to content

Commit 0761dda

Browse files
committed
Move test spec file
1 parent cac2c05 commit 0761dda

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/upload-android-test-specs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ on:
44
pull_request:
55
paths:
66
- .github/workflows/upload-android-test-specs.yml
7-
- examples/demo-apps/android/LlamaDemo/android-llm-device-farm-test-spec.yml
7+
- extension/android/benchmark/android-llm-device-farm-test-spec.yml
88
push:
99
branches:
1010
- main
1111
paths:
1212
- .github/workflows/upload-android-test-specs.yml
13-
- examples/demo-apps/android/LlamaDemo/android-llm-device-farm-test-spec.yml
13+
- extension/android/benchmark/android-llm-device-farm-test-spec.yml
1414

1515
concurrency:
1616
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }}-${{ github.event_name == 'schedule' }}
@@ -30,7 +30,7 @@ jobs:
3030
${{ github.repository }}/${{ github.run_id }}/artifact
3131
retention-days: 1
3232
if-no-files-found: error
33-
path: examples/demo-apps/android/LlamaDemo/android-llm-device-farm-test-spec.yml
33+
path: extension/android/benchmark/android-llm-device-farm-test-spec.yml
3434

3535
validate-android-test-spec:
3636
needs: upload-android-test-spec-for-validation
@@ -75,7 +75,7 @@ jobs:
7575
7676
- name: Upload the spec to S3 ossci-android bucket
7777
shell: bash
78-
working-directory: examples/demo-apps/android/LlamaDemo/
78+
working-directory: extension/android/benchmark/
7979
env:
8080
SPEC_FILE: android-llm-device-farm-test-spec.yml
8181
run: |

examples/demo-apps/android/LlamaDemo/android-llm-device-farm-test-spec.yml renamed to extension/android/benchmark/android-llm-device-farm-test-spec.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ phases:
7676
# Run the new generic benchmark activity https://developer.android.com/tools/adb#am
7777
- echo "Run LLM benchmark"
7878
- |
79-
adb -s $DEVICEFARM_DEVICE_UDID shell am start -W -n com.example.executorchllamademo/.LlmBenchmarkRunner \
79+
adb -s $DEVICEFARM_DEVICE_UDID shell am start -W -n org.pytorch.minibench/.LlmBenchmarkActivity \
8080
--es "model_dir" "/data/local/tmp/llama" \
8181
--es "tokenizer_path" "/data/local/tmp/llama/tokenizer.bin"
8282
@@ -89,12 +89,12 @@ phases:
8989
MAX_ATTEMPT=10
9090
while [ -z "${BENCHMARK_RESULTS}" ] && [ $ATTEMPT -lt $MAX_ATTEMPT ]; do
9191
echo "Waiting for benchmark results..."
92-
BENCHMARK_RESULTS=$(adb -s $DEVICEFARM_DEVICE_UDID shell run-as com.example.executorchllamademo cat files/benchmark_results.json)
92+
BENCHMARK_RESULTS=$(adb -s $DEVICEFARM_DEVICE_UDID shell run-as org.pytorch.minibench cat files/benchmark_results.json)
9393
sleep 30
9494
((ATTEMPT++))
9595
done
9696
97-
adb -s $DEVICEFARM_DEVICE_UDID shell run-as com.example.executorchllamademo ls -la files/
97+
adb -s $DEVICEFARM_DEVICE_UDID shell run-as org.pytorch.minibench ls -la files/
9898
# Trying to pull the file using adb ends up with permission error, but this works too, so why not
9999
echo "${BENCHMARK_RESULTS}" > $DEVICEFARM_LOG_DIR/benchmark_results.json
100100

0 commit comments

Comments
 (0)