Skip to content

Commit a8106fd

Browse files
committed
up
1 parent d79f870 commit a8106fd

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

install/install_requirements.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,7 @@ then
126126
)
127127
fi
128128

129-
# For torchao need to install from github since nightly build doesn't have macos build.
130-
# TODO: Remove this and install nightly build, once it supports macos
131-
# USE_CPP=1 indicates that the torchao experimental aten kernels will be built and loaded
132-
# if on Mac with Apple Silicon
133-
export TORCHAO_PIN=$(cat install/.pins/torchao-pin.txt)
134-
(
135-
set -x
136-
USE_CPP=1 $PIP_EXECUTABLE install git+https://github.com/pytorch/ao.git@${TORCHAO_PIN}
137-
)
129+
bash install/install_torchao.sh
138130

139131
if [[ -x "$(command -v nvidia-smi)" ]]; then
140132
(

torchchat/utils/scripts/install_et.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@ pushd ${TORCHCHAT_ROOT}
1919
find_cmake_prefix_path
2020
clone_executorch
2121
install_executorch_libs $ENABLE_ET_PYBIND
22+
23+
# During installation, ET uninstalls torchchat's preferred version of torchao
24+
# so we reinstall here
25+
bash install/install/install_torchao.sh
2226
popd

torchchat/utils/scripts/install_utils.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,6 @@ clone_torchao() {
186186
install_torchao_aten_ops() {
187187
local device=${1:-cpu}
188188

189-
USE_CPP=1 pip install "${TORCHCHAT_ROOT}/torchao-build/src/ao"
190-
191189
if [[ "$device" == "cpu" ]]; then
192190
echo "Building torchao custom ops for ATen"
193191
pushd ${TORCHCHAT_ROOT}/torchao-build/src/ao/torchao/experimental

0 commit comments

Comments
 (0)