remove cmake

This commit is contained in:
2024-06-21 11:58:41 +08:00
parent 11ccadb0df
commit c69bbe2c71

View File

@@ -15,11 +15,11 @@ apt-get install -y wget curl htop jq vim bash libaio-dev build-essential openssh
apt-get install -y --no-install-recommends software-properties-common build-essential autotools-dev nfs-common pdsh cmake g++ gcc curl wget vim tmux emacs less unzip htop iftop iotop ca-certificates openssh-client openssh-server rsync iputils-ping net-tools sudo llvm-dev re2c apt-get install -y --no-install-recommends software-properties-common build-essential autotools-dev nfs-common pdsh cmake g++ gcc curl wget vim tmux emacs less unzip htop iftop iotop ca-certificates openssh-client openssh-server rsync iputils-ping net-tools sudo llvm-dev re2c
add-apt-repository ppa:git-core/ppa -y add-apt-repository ppa:git-core/ppa -y
apt-get install -y git libnuma-dev wget apt-get install -y git libnuma-dev wget
# install latest cmake # # install latest cmake
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc | sudo apt-key add - # wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc | sudo apt-key add -
sudo apt-add-repository "deb https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main" # sudo apt-add-repository "deb https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main"
sudo apt-get update # sudo apt-get update
sudo apt-get install -y cmake # sudo apt-get install -y cmake
# Configure SSH for password and public key authentication # Configure SSH for password and public key authentication
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
@@ -118,7 +118,7 @@ python3 -m pip install --no-cache-dir ./transformers[deepspeed-testing]
# # (https://www.deepspeed.ai/tutorials/advanced-install/#pre-install-deepspeed-ops) # # (https://www.deepspeed.ai/tutorials/advanced-install/#pre-install-deepspeed-ops)
python3 -m pip uninstall -y torch torchvision torchaudio python3 -m pip uninstall -y torch torchvision torchaudio
# # install pytorch create conda env aleay exists # # install pytorch create conda env aleay exists
conda install cmake ninja conda install -y cmake ninja
git clone --recursive https://github.com/pytorch/pytorch ${STAGE_DIR}/pytorch git clone --recursive https://github.com/pytorch/pytorch ${STAGE_DIR}/pytorch
cd ${STAGE_DIR}/pytorch cd ${STAGE_DIR}/pytorch
git submodule sync git submodule sync