@@ -452,7 +452,6 @@ jobs:
452452 echo "Intalling pip3 packages"
453453 ./install/install_requirements.sh
454454
455- export TORCHCHAT_ROOT=$PWD
456455 ./torchchat/utils/scripts/install_et.sh
457456
458457 pip3 list
@@ -621,6 +620,9 @@ jobs:
621620 python torchchat.py remove stories15m
622621
623622 test-mps :
623+ uses : actions/setup-python@v2
624+ with :
625+ python-version : 3.10.11
624626 uses : pytorch/test-infra/.github/workflows/macos_job.yml@main
625627 with :
626628 runner : macos-m1-stable # neeps MPS, was macos-m1-stable
@@ -733,6 +735,9 @@ jobs:
733735
734736 echo "Tests complete."
735737 test-mps-dtype :
738+ uses : actions/setup-python@v2
739+ with :
740+ python-version : 3.10.11
736741 uses : pytorch/test-infra/.github/workflows/macos_job.yml@main
737742 with :
738743 runner : macos-m1-stable # needs MPS, was macos-m1-stable
@@ -915,30 +920,6 @@ jobs:
915920 run : |
916921 echo "Installing ExecuTorch"
917922 bash torchchat/utils/scripts/build_native.sh et
918- - name : Install ET pip
919- run : |
920- echo "ET build directory"
921- ls et-build | cat
922-
923- 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 .
931- popd
932- - name : Install runner
933- 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-
942923 - name : Run inference
943924 run : |
944925 python torchchat.py download stories15M
0 commit comments