@@ -434,7 +434,7 @@ jobs:
434434 - name : Setup Python
435435 uses : actions/setup-python@v2
436436 with :
437- python-version : 3.10.11
437+ python-version : ' 3.10.11'
438438 - name : Setup Xcode
439439 if : runner.os == 'macOS'
440440 uses : maxim-lobanov/setup-xcode@v1
@@ -577,7 +577,7 @@ jobs:
577577 - name : Setup Python
578578 uses : actions/setup-python@v2
579579 with :
580- python-version : 3.10.11
580+ python-version : ' 3.10.11'
581581 - name : Print machine info
582582 run : |
583583 uname -a
@@ -625,6 +625,7 @@ jobs:
625625 with :
626626 runner : macos-m1-stable # neeps MPS, was macos-m1-stable
627627 script : |
628+ export PYTHON_VERSION="3.10"
628629 set -x
629630 # NS/MC: Remove previous installation of torch and torchao first
630631 # as this script does not install anything into conda env but rather as system dep
@@ -737,6 +738,7 @@ jobs:
737738 with :
738739 runner : macos-m1-stable # needs MPS, was macos-m1-stable
739740 script : |
741+ export PYTHON_VERSION="3.10"
740742 set -x
741743 # NS/MC: Remove previous installation of torch and torchao first
742744 # as this script does not install anything into conda env but rather as system dep
@@ -914,31 +916,19 @@ jobs:
914916 continue-on-error : true
915917 run : |
916918 echo "Installing ExecuTorch"
917- bash torchchat/utils/scripts/build_native .sh et
918- - name : Install ET pip
919+ bash torchchat/utils/scripts/install_et .sh
920+ - name : Install ExecuTorch python
919921 run : |
920- echo "ET build directory"
921- ls et-build | cat
922-
922+ echo "Install ExecuTorch python"
923923 pushd et-build/src/executorch
924- if [ $(git rev-parse HEAD) != ${{env.et-git-hash}} ]; then
925- echo "Mismatched hash. Make sure branch install_et.sh matches branch from Github cache."
926- echo "On commit $(git rev-parse HEAD)"
927- echo "Expected commit ${{env.et-git-hash}}"
928- exit 1
929- fi
930- pip install .
924+ chmod +x ./install_requirements.sh
925+ chmod +x ./install_requirements.py
926+ ./install_requirements.sh
931927 popd
932928 - name : Install runner
933929 run : |
934- # Pull submodules (re2, abseil) for Tiktoken
935- git submodule sync
936- git submodule update --init
937-
938- export TORCHCHAT_ROOT=${PWD}
939- cmake -S . -B ./cmake-out -G Ninja
940- cmake --build ./cmake-out --target et_run
941-
930+ echo "Installing runner"
931+ bash torchchat/utils/scripts/build_native.sh et
942932 - name : Run inference
943933 run : |
944934 python torchchat.py download stories15M
0 commit comments