From 7dbcdad8667b679b4c41800f0417d2c55ed4f567 Mon Sep 17 00:00:00 2001 From: Michael Gschwind <61328285+mikekgfb@users.noreply.github.com> Date: Wed, 17 Apr 2024 13:35:15 -0700 Subject: [PATCH] kludge workaround for AOTI fail on x86 Linux (#243) --- .github/workflows/compile-dtype.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/compile-dtype.yml b/.github/workflows/compile-dtype.yml index ec99f9e3f..37b28e1f7 100644 --- a/.github/workflows/compile-dtype.yml +++ b/.github/workflows/compile-dtype.yml @@ -44,9 +44,6 @@ jobs: export MODEL_NAME=stories15M export MODEL_DIR=/tmp for DTYPE in bfloat16 float16 float32; do - # if [ $(uname -s) == Darwin ]; then - # export DTYPE=float16 - # fi python generate.py --dtype ${DTYPE} --checkpoint-path ${MODEL_PATH} --temperature 0 > ./output_eager cat ./output_eager python generate.py --dtype ${DTYPE} --compile --checkpoint-path ${MODEL_PATH} --temperature 0 > ./output_compiled @@ -108,9 +105,13 @@ jobs: python generate.py --dtype ${DTYPE} --compile --quant '{"linear:int4" : {"groupsize": 32}}' --checkpoint-path ${MODEL_PATH} --temperature 0 > ./output_compiled cat ./output_compiled python export.py --dtype ${DTYPE} --quant '{"linear:int4" : {"groupsize": 32}}' --checkpoint-path ${MODEL_PATH} --output-dso-path ${MODEL_DIR}/${MODEL_NAME}.so - python generate.py --dtype ${DTYPE} --checkpoint-path ${MODEL_PATH} --temperature 0 --dso-path ${MODEL_DIR}/${MODEL_NAME}.so > ./output_aoti - cat ./output_aoti - + if [ $(uname -s) == Linux ]; then + echo "skipping INT4 groupwise quantization because AOTI fails" + else + python generate.py --dtype ${DTYPE} --checkpoint-path ${MODEL_PATH} --temperature 0 --dso-path ${MODEL_DIR}/${MODEL_NAME}.so > ./output_aoti + cat ./output_aoti + fi + echo "tests complete for ${DTYPE}" done