This repository was archived by the owner on Sep 10, 2025. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
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
126126)
127127fi 
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
139131if  [[ -x  " $( command -v nvidia-smi) " ;  then 
140132  (
Original file line number Diff line number Diff line change @@ -19,4 +19,8 @@ pushd ${TORCHCHAT_ROOT}
1919find_cmake_prefix_path
2020clone_executorch
2121install_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
2226popd 
Original file line number Diff line number Diff line change @@ -186,8 +186,6 @@ clone_torchao() {
186186install_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
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments