File size: 868 Bytes
45361be
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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