@@ -203,7 +203,7 @@ jobs:
203
203
echo "::group::Install newer objcopy that supports --set-section-alignment"
204
204
yum install -y devtoolset-10-binutils
205
205
export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH
206
- echo "::endgroup::"
206
+ echo "::endgroup::"
207
207
208
208
echo "::group::Install required packages"
209
209
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121
@@ -244,7 +244,7 @@ jobs:
244
244
echo "::group::Install newer objcopy that supports --set-section-alignment"
245
245
yum install -y devtoolset-10-binutils
246
246
export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH
247
- echo "::endgroup::"
247
+ echo "::endgroup::"
248
248
249
249
echo "::group::Install required packages"
250
250
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121
@@ -291,7 +291,7 @@ jobs:
291
291
echo "::group::Install newer objcopy that supports --set-section-alignment"
292
292
yum install -y devtoolset-10-binutils
293
293
export PATH=/opt/rh/devtoolset-10/root/usr/bin/:$PATH
294
- echo "::endgroup::"
294
+ echo "::endgroup::"
295
295
296
296
echo "::group::Install required packages"
297
297
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121
@@ -441,7 +441,7 @@ jobs:
441
441
export MODEL_PATH=checkpoints/stories15M/stories15M.pt
442
442
export MODEL_NAME=stories15M
443
443
export MODEL_DIR=/tmp
444
-
444
+
445
445
echo "******************************************"
446
446
echo "*** vanilla ***"
447
447
echo "******************************************"
@@ -909,9 +909,11 @@ jobs:
909
909
910
910
python torchchat.py generate --checkpoint-path ${MODEL_DIR}/stories15M.pt --temperature 0 --prompt "${PROMPT}"
911
911
912
- python torchchat.py export --checkpoint-path ${MODEL_DIR}/stories15M.pt --output-dso-path /tmp/model.so
913
-
914
- ./cmake-out/aoti_run /tmp/model.so -z ${MODEL_DIR}/tokenizer.bin -i "${PROMPT}"
912
+ for dtype in fp32 fp16 bf16; do
913
+ echo "Running export + runner with dtype=$dtype"
914
+ python torchchat.py export --checkpoint-path ${MODEL_DIR}/stories15M.pt --dtype $dtype --output-dso-path /tmp/model.so
915
+ ./cmake-out/aoti_run /tmp/model.so -z ${MODEL_DIR}/tokenizer.bin -i "${PROMPT}"
916
+ done
915
917
916
918
echo "Tests complete."
917
919
0 commit comments