Skip to content

Commit 706a447

Browse files
committed
Evaluate AOTI
1 parent e37c6da commit 706a447

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.ci/scripts/validate.sh

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -279,17 +279,16 @@ function eval_model_sanity_check() {
279279

280280
python -W ignore eval.py --dtype ${DTYPE} --quant "$QUANT_OPTIONS" --checkpoint-path "$CHECKPOINT_PATH" --device "$TARGET_DEVICE" --limit 5 > "$MODEL_DIR/eval_eager" || exit 1
281281
cat "$MODEL_DIR/eval_eager"
282-
fi;
283-
284282

285-
# there is some issues with AOTI cpu and cuda, need to fix and enable the test for cuda as well
286-
echo "*************************************************"
287-
echo "******** INT4 group-wise quantized (AOTI) *******"
288-
echo "*************************************************"
289-
if [ "$DTYPE" != "float16" ]; then
290-
python3 -W ignore export.py --dtype ${DTYPE} --quant "$QUANT_OPTIONS" --checkpoint-path "$CHECKPOINT_PATH" --output-dso-path ${MODEL_DIR}/${MODEL_NAME}.so --device "$TARGET_DEVICE" || exit 1
291-
python3 -W ignore eval.py --dtype ${DTYPE} --checkpoint-path "$CHECKPOINT_PATH" --dso-path ${MODEL_DIR}/${MODEL_NAME}.so --device "$TARGET_DEVICE" --limit 5 > "$MODEL_DIR/output_eval_aoti" || exit 1
292-
cat "$MODEL_DIR/output_eval_aoti"
283+
# there is some issues with AOTI cpu and cuda, need to fix and enable the test for cuda as well
284+
echo "*************************************************"
285+
echo "******** INT4 group-wise quantized (AOTI) *******"
286+
echo "*************************************************"
287+
if [ "$DTYPE" != "float16" ]; then
288+
python3 -W ignore export.py --dtype ${DTYPE} --quant "$QUANT_OPTIONS" --checkpoint-path "$CHECKPOINT_PATH" --output-dso-path ${MODEL_DIR}/${MODEL_NAME}.so --device "$TARGET_DEVICE" || exit 1
289+
python3 -W ignore eval.py --dtype ${DTYPE} --checkpoint-path "$CHECKPOINT_PATH" --dso-path ${MODEL_DIR}/${MODEL_NAME}.so --device "$TARGET_DEVICE" --limit 5 > "$MODEL_DIR/output_eval_aoti" || exit 1
290+
cat "$MODEL_DIR/output_eval_aoti"
291+
fi;
293292
fi;
294293

295294
done

0 commit comments

Comments
 (0)