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

Commit 6e8d167

Browse files
authored
Merge branch 'main' into android-artifact-update
2 parents 71f6375 + dc832fb commit 6e8d167

27 files changed

+1236
-441
lines changed

.github/workflows/pull.yml

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -458,7 +458,6 @@ jobs:
458458
pip3 list
459459
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
460460
python3 -c 'import torchvision;print(f"torchvision: {torchvision.__version__, torchvision.version.git_version}")'
461-
python3 -c 'import torchaudio;print(f"torchaudio: {torchaudio.__version__, torchaudio.version.git_version}")'
462461
463462
cd ../..
464463
echo "Inside: ${PWD}"
@@ -578,7 +577,7 @@ jobs:
578577
- name: Setup Python
579578
uses: actions/setup-python@v2
580579
with:
581-
python-version: 3.10.11
580+
python-version: '3.10.11'
582581
- name: Print machine info
583582
run: |
584583
uname -a
@@ -626,6 +625,7 @@ jobs:
626625
with:
627626
runner: macos-m1-stable # neeps MPS, was macos-m1-stable
628627
script: |
628+
export PYTHON_VERSION="3.10"
629629
set -x
630630
# NS/MC: Remove previous installation of torch and torchao first
631631
# as this script does not install anything into conda env but rather as system dep
@@ -738,6 +738,7 @@ jobs:
738738
with:
739739
runner: macos-m1-stable # needs MPS, was macos-m1-stable
740740
script: |
741+
export PYTHON_VERSION="3.10"
741742
set -x
742743
# NS/MC: Remove previous installation of torch and torchao first
743744
# as this script does not install anything into conda env but rather as system dep
@@ -915,31 +916,19 @@ jobs:
915916
continue-on-error: true
916917
run: |
917918
echo "Installing ExecuTorch"
918-
bash torchchat/utils/scripts/build_native.sh et
919-
- name: Install ET pip
919+
bash torchchat/utils/scripts/install_et.sh
920+
- name: Install ExecuTorch python
920921
run: |
921-
echo "ET build directory"
922-
ls et-build | cat
923-
922+
echo "Install ExecuTorch python"
924923
pushd et-build/src/executorch
925-
if [ $(git rev-parse HEAD) != ${{env.et-git-hash}} ]; then
926-
echo "Mismatched hash. Make sure branch install_et.sh matches branch from Github cache."
927-
echo "On commit $(git rev-parse HEAD)"
928-
echo "Expected commit ${{env.et-git-hash}}"
929-
exit 1
930-
fi
931-
pip install .
924+
chmod +x ./install_requirements.sh
925+
chmod +x ./install_requirements.py
926+
./install_requirements.sh
932927
popd
933928
- name: Install runner
934929
run: |
935-
# Pull submodules (re2, abseil) for Tiktoken
936-
git submodule sync
937-
git submodule update --init
938-
939-
export TORCHCHAT_ROOT=${PWD}
940-
cmake -S . -B ./cmake-out -G Ninja
941-
cmake --build ./cmake-out --target et_run
942-
930+
echo "Installing runner"
931+
bash torchchat/utils/scripts/build_native.sh et
943932
- name: Run inference
944933
run: |
945934
python torchchat.py download stories15M

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ __pycache__/
66
# C extensions
77
*.so
88

9+
.vscode
910
.model-artifacts/
1011
.venv
1112
.torchchat
@@ -15,6 +16,7 @@ build/android/*
1516
et-build/*
1617
runner-et/cmake-out/*
1718
runner-aoti/cmake-out/*
19+
cmake-out/
1820

1921
# pte files
2022
*.pte
@@ -24,3 +26,7 @@ system_info.txt
2426

2527
# intermediate system file
2628
.DS_Store
29+
30+
# build artifacts
31+
checkpoints/
32+
exportedModels/

0 commit comments

Comments
 (0)