Skip to content

Commit 41c8802

Browse files
committed
fixes
1 parent 850df46 commit 41c8802

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
@@ -217,7 +217,7 @@ jobs:
217217
echo "::endgroup::"
218218
219219
echo "::group::Run inference"
220-
bash .ci/scripts/validate.sh "./checkpoints/${REPO_NAME}/model.pth" "cuda" "aoti" "bfloat16"
220+
bash .ci/scripts/validate.sh "./checkpoints/${REPO_NAME}/model.pth" "cuda" "aoti-bfloat16"
221221
echo "::endgroup::"
222222
223223
test-gpu-aoti-float32:
@@ -253,7 +253,7 @@ jobs:
253253
echo "::endgroup::"
254254
255255
echo "::group::Run inference"
256-
bash .ci/scripts/validate.sh "./checkpoints/${REPO_NAME}/model.pth" "cuda" "aoti" "float32"
256+
bash .ci/scripts/validate.sh "./checkpoints/${REPO_NAME}/model.pth" "cuda" "aoti-float32"
257257
echo "::endgroup::"
258258
259259
test-gpu-aoti-float16:
@@ -289,7 +289,7 @@ jobs:
289289
echo "::endgroup::"
290290
291291
echo "::group::Run inference"
292-
bash .ci/scripts/validate.sh "./checkpoints/${REPO_NAME}/model.pth" "cuda" "aoti" "float16"
292+
bash .ci/scripts/validate.sh "./checkpoints/${REPO_NAME}/model.pth" "cuda" "aoti-float16"
293293
echo "::endgroup::"
294294
295295
test-gpu-eval-sanity-check:

0 commit comments

Comments
 (0)