File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -130,9 +130,9 @@ cleanup_files() {
130
130
prepare_artifacts_upload () {
131
131
if [ -n " $UPLOAD_DIR " ]; then
132
132
echo " Preparing for uploading generated artifacs"
133
+ zip -j model.zip " ${EXPORTED_MODEL_NAME} " tokenizer.bin
133
134
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} "
136
136
fi
137
137
}
138
138
Original file line number Diff line number Diff line change @@ -48,11 +48,27 @@ jobs:
48
48
- name : Set parameters
49
49
id : set-parameters
50
50
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"
51
58
run : |
52
59
set -ex
53
60
MODELS="${{ inputs.models }}"
61
+ if [ -z "$MODELS" ]; then
62
+ MODELS="$CRON_DEFAULT_MODELS"
63
+ fi
54
64
DEVICES="${{ inputs.devices }}"
65
+ if [ -z "$DEVICES" ]; then
66
+ DEVICES="$CRON_DEFAULT_DEVICES"
67
+ fi
55
68
DELEGATES="${{ inputs.delegates }}"
69
+ if [ -z "$DELEGATES" ]; then
70
+ DELEGATES="$CRON_DEFAULT_DELEGATES"
71
+ fi
56
72
57
73
# Mapping devices to their corresponding device-pool-arn
58
74
declare -A DEVICE_POOL_ARNS
You can’t perform that action at this time.
0 commit comments