Skip to content

Commit 1e20c91

Browse files
committed
fixes
1 parent b1f53ce commit 1e20c91

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.ci/scripts/validate.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ function run_eval_sanity_check(){
321321
CHECKPOINT_PATH="$1"
322322
TARGET_DEVICE="${2:-cpu}"
323323
PROMPT="Hello, my name is"
324-
DTYPES="${4:-default}"
325324

326325
if [ "$#" -gt 2 ]; then
327326
# Additional arguments provided
@@ -331,6 +330,19 @@ if [ "$#" -gt 2 ]; then
331330
run_compile || exit 1
332331
;;
333332
"aoti")
333+
DTYPES="default"
334+
run_aoti || exit 1
335+
;;
336+
"aoti-bfloat16")
337+
DTYPES="bfloat16"
338+
run_aoti || exit 1
339+
;;
340+
"aoti-float16")
341+
DTYPES="float16"
342+
run_aoti || exit 1
343+
;;
344+
"aoti-float32")
345+
DTYPES="float32"
334346
run_aoti || exit 1
335347
;;
336348
"executorch")

.github/workflows/pull.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ jobs:
216216
echo "::endgroup::"
217217
218218
echo "::group::Run inference"
219-
bash .ci/scripts/validate.sh "./checkpoints/${REPO_NAME}/model.pth" "cuda" "aoti" "bfloat16"
219+
bash .ci/scripts/validate.sh "./checkpoints/${REPO_NAME}/model.pth" "cuda" "aoti-bfloat16"
220220
echo "::endgroup::"
221221
222222
test-gpu-aoti-float32:
@@ -252,7 +252,7 @@ jobs:
252252
echo "::endgroup::"
253253
254254
echo "::group::Run inference"
255-
bash .ci/scripts/validate.sh "./checkpoints/${REPO_NAME}/model.pth" "cuda" "aoti" "float32"
255+
bash .ci/scripts/validate.sh "./checkpoints/${REPO_NAME}/model.pth" "cuda" "aoti-float32"
256256
echo "::endgroup::"
257257
258258
test-gpu-aoti-float16:
@@ -288,7 +288,7 @@ jobs:
288288
echo "::endgroup::"
289289
290290
echo "::group::Run inference"
291-
bash .ci/scripts/validate.sh "./checkpoints/${REPO_NAME}/model.pth" "cuda" "aoti" "float16"
291+
bash .ci/scripts/validate.sh "./checkpoints/${REPO_NAME}/model.pth" "cuda" "aoti-float16"
292292
echo "::endgroup::"
293293
294294
test-gpu-eval-sanity-check:

0 commit comments

Comments
 (0)