File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -126,15 +126,7 @@ then
126
126
)
127
127
fi
128
128
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
138
130
139
131
if [[ -x " $( command -v nvidia-smi) " ]]; then
140
132
(
Original file line number Diff line number Diff line change @@ -19,4 +19,8 @@ pushd ${TORCHCHAT_ROOT}
19
19
find_cmake_prefix_path
20
20
clone_executorch
21
21
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
22
26
popd
Original file line number Diff line number Diff line change @@ -186,8 +186,6 @@ clone_torchao() {
186
186
install_torchao_aten_ops () {
187
187
local device=${1:- cpu}
188
188
189
- USE_CPP=1 pip install " ${TORCHCHAT_ROOT} /torchao-build/src/ao"
190
-
191
189
if [[ " $device " == " cpu" ]]; then
192
190
echo " Building torchao custom ops for ATen"
193
191
pushd ${TORCHCHAT_ROOT} /torchao-build/src/ao/torchao/experimental
You can’t perform that action at this time.
0 commit comments