Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 55a98e4

Browse files
committed
ci fixes
1 parent dff891a commit 55a98e4

File tree

2 files changed

+7
-25
lines changed

2 files changed

+7
-25
lines changed

.github/workflows/pull.yml

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -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

runner/build_android.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ fi
2222
export ET_BUILD_DIR="et-build-android"
2323
export CMAKE_OUT_DIR="cmake-out-android"
2424
export EXECUTORCH_BUILD_KERNELS_CUSTOM_AOT="OFF"
25+
export EXECUTORCH_BUILD_EXTENSION_TENSOR="ON"
2526
export EXECUTORCH_BUILD_KERNELS_CUSTOM="ON"
2627
export CMAKE_OUT_DIR="cmake-out-android"
2728
# export DCMAKE_INSTALL_PREFIX=cmake-out-android

0 commit comments

Comments
 (0)