Skip to content

Commit ae7747f

Browse files
author
Guang Yang
committed
Fix periodic run and model name for benchmarking
1 parent 99e1ae1 commit ae7747f

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.ci/scripts/test_llama.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ cleanup_files() {
130130
prepare_artifacts_upload() {
131131
if [ -n "$UPLOAD_DIR" ]; then
132132
echo "Preparing for uploading generated artifacs"
133+
zip -j model.zip "${EXPORTED_MODEL_NAME}" tokenizer.bin
133134
mkdir -p "${UPLOAD_DIR}"
134-
zip -j "model.zip" "${MODEL_NAME}" tokenizer.bin
135-
cp "model.zip" "${UPLOAD_DIR}"
135+
mv model.zip "${UPLOAD_DIR}"
136136
fi
137137
}
138138

.github/workflows/android-perf.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,27 @@ jobs:
4848
- name: Set parameters
4949
id: set-parameters
5050
shell: bash
51+
env:
52+
# Separate default values from the workflow dispatch. To ensure defaults are accessible
53+
# during scheduled runs and to provide flexibility for different defaults between
54+
# on-demand and periodic benchmarking.
55+
CRON_DEFAULT_MODELS: "stories110M"
56+
CRON_DEFAULT_DEVICES: "samsung_galaxy_s2x"
57+
CRON_DEFAULT_DELEGATES: "xnnpack"
5158
run: |
5259
set -ex
5360
MODELS="${{ inputs.models }}"
61+
if [ -z "$MODELS" ]; then
62+
MODELS="$CRON_DEFAULT_MODELS"
63+
fi
5464
DEVICES="${{ inputs.devices }}"
65+
if [ -z "$DEVICES" ]; then
66+
DEVICES="$CRON_DEFAULT_DEVICES"
67+
fi
5568
DELEGATES="${{ inputs.delegates }}"
69+
if [ -z "$DELEGATES" ]; then
70+
DELEGATES="$CRON_DEFAULT_DELEGATES"
71+
fi
5672
5773
# Mapping devices to their corresponding device-pool-arn
5874
declare -A DEVICE_POOL_ARNS

0 commit comments

Comments
 (0)