ARG BASE_IMAGE | |
FROM ${BASE_IMAGE} | |
RUN wget -q --output-document - https://raw.githubusercontent.com/HabanaAI/Model-References/master/PyTorch/nlp/DeepSpeedExamples/Megatron-DeepSpeed/requirements.txt | |
pip install git+https://github.com/HabanaAI/DeepSpeed.git && \ | |
apt-get update -y && \ | |
pip install -r /DeepSpeedExamples/Megatron-DeepSpeed/requirements.txt && \ | |
apt-get install pdsh tmux -y | |
RUN mkdir ~/.ssh && \ | |
cd ~/.ssh && \ | |
sed -i 's/#Port 22/Port 3022/g' /etc/ssh/sshd_config && \ | |
sed -i 's/# Port 22/ Port 3022/g' /etc/ssh/ssh_config && \ | |
sed -i 's/3022/3122/g' ~/.bashrc && \ | |
echo "Host *" >> ~/.ssh/config && \ | |
echo "ForwardAgent yes" >> ~/.ssh/config && \ | |
echo "StrictHostKeyChecking no" >> ~/.ssh/config && \ | |
echo "UserKnownHostsFile /dev/null" >> ~/.ssh/config && \ | |
echo "LogLevel ERROR" >> ~/.ssh/config && \ | |
chmod 600 ~/.ssh/config | |