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() {
130130prepare_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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments