Skip to content

Commit 40894f1

Browse files
committed
fix
1 parent 1e20c91 commit 40894f1

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.ci/scripts/validate.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,12 @@ function generate_compiled_model_output() {
110110
function generate_aoti_model_output() {
111111
local CHECKPOINT_PATH="$1"
112112
local TARGET_DEVICE="${2:-cpu}"
113-
local DTYPES="${3-default}"
113+
local DTYPES="${3}"
114114
local MODEL_DIR="${CHECKPOINT_PATH%/*}"
115115
local MODEL_NAME=$(basename "$CHECKPOINT_PATH" | sed 's/\.[^.]*$//')
116116

117+
echo "Local DTYPES=$DTYPES"
118+
117119
if [[ DTYPES="default" ]]; then
118120
if [[ $CHECKPOINT_PATH != *"stories"* && $TARGET_DEVICE == "cuda" ]]; then
119121
DTYPES="bfloat16"
@@ -299,6 +301,7 @@ function run_compile() {
299301
}
300302

301303
function run_aoti() {
304+
echo "Passing DTYPES=$DTYPES"
302305
generate_aoti_model_output "$CHECKPOINT_PATH" "$TARGET_DEVICE" "$DTYPES" || exit 1
303306
}
304307

@@ -327,31 +330,39 @@ if [ "$#" -gt 2 ]; then
327330
for arg in "${@:3}"; do
328331
case "$arg" in
329332
"compile")
333+
echo "arg:$arg"
330334
run_compile || exit 1
331335
;;
332336
"aoti")
337+
echo "arg:$arg"
333338
DTYPES="default"
334339
run_aoti || exit 1
335340
;;
336341
"aoti-bfloat16")
342+
echo "arg:$arg"
337343
DTYPES="bfloat16"
338344
run_aoti || exit 1
339345
;;
340346
"aoti-float16")
347+
echo "arg:$arg"
341348
DTYPES="float16"
342349
run_aoti || exit 1
343350
;;
344351
"aoti-float32")
352+
echo "arg:$arg"
345353
DTYPES="float32"
346354
run_aoti || exit 1
347355
;;
348356
"executorch")
357+
echo "arg:$arg"
349358
run_executorch || exit 1
350359
;;
351360
"eval")
361+
echo "arg:$arg"
352362
run_eval || exit 1
353363
;;
354364
"eval_sanity_check")
365+
echo "arg:$arg"
355366
run_eval_sanity_check || exit 1
356367
;;
357368
*)

0 commit comments

Comments
 (0)