This repository was archived by the owner on Sep 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -918,7 +918,8 @@ jobs:
918918 bash torchchat/utils/scripts/build_native.sh et
919919 - name : Install runner
920920 run : |
921- bash torchchat/utils/scripts/build_native.sh et
921+ echo "Installing runner"
922+ bash torchchat/utils/scripts/build_native.sh et skip_et_install
922923 - name : Run inference
923924 run : |
924925 python torchchat.py download stories15M
@@ -1074,7 +1075,8 @@ jobs:
10741075 bash torchchat/utils/scripts/build_native.sh et link_torchao
10751076 - name : Install runner
10761077 run : |
1077- bash torchchat/utils/scripts/build_native.sh et link_torchao
1078+ echo "Installing runner"
1079+ bash torchchat/utils/scripts/build_native.sh et skip_et_install link_torchao
10781080 - name : Install runner AOTI
10791081 id : install-runner-aoti
10801082 run : |
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ if [ $# -eq 0 ]; then
2727fi
2828
2929LINK_TORCHAO=OFF
30+ SKIP_ET_INSTALL=OFF
3031while (( "$# " )) ; do
3132 case " $1 " in
3233 -h|--help)
@@ -48,6 +49,11 @@ while (( "$#" )); do
4849 LINK_TORCHAO=ON
4950 shift
5051 ;;
52+ skip_et_install)
53+ echo " Skipping ET install..."
54+ SKIP_ET_INSTALL=ON
55+ shift
56+ ;;
5157 * )
5258 echo " Invalid option: $1 "
5359 show_help
@@ -68,9 +74,11 @@ git submodule update --init
6874git submodule sync
6975if [[ " $TARGET " == " et" ]]; then
7076 find_cmake_prefix_path
71- install_pip_dependencies
72- clone_executorch
73- install_executorch_libs false
77+ if [[ " $SKIP_ET_INSTALL " == " OFF" ]]; then
78+ install_pip_dependencies
79+ clone_executorch
80+ install_executorch_libs false
81+ fi
7482
7583 if [[ " $LINK_TORCHAO " == " ON" ]]; then
7684 EXECUTORCH_INCLUDE_DIRS=" ${TORCHCHAT_ROOT} /${ET_BUILD_DIR} /install/include;${TORCHCHAT_ROOT} /${ET_BUILD_DIR} /src"
You can’t perform that action at this time.
0 commit comments