applied-ai-018's picture
Add files using upload-large-folder tool
45361be verified
raw
history blame contribute delete
868 Bytes
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