File size: 1,044 Bytes
feb6f45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
ARG BASE_IMAGE
FROM ${BASE_IMAGE}

RUN wget -q --output-document - https://raw.githubusercontent.com/HabanaAI/Megatron-DeepSpeed/main/megatron/core/requirements.txt | grep -v "^-e" > /tmp/requirements.txt

RUN pip install git+https://github.com/HabanaAI/DeepSpeed.git@1.15.1
RUN apt-get update -y && \
    apt install screen -y && \
    pip install transformers && \
    pip install -r /tmp/requirements.txt && \
    pip install wandb && \
    pip install git+https://github.com/polisettyvarma/lm-evaluation-harness.git@lm_harness_fixes && \
    apt-get install pdsh tmux -y

RUN mkdir ~/.ssh && \
cd ~/.ssh && \ 
sed -i 's/#Port 22/Port 3122/g' /etc/ssh/sshd_config && \
sed -i 's/#   Port 22/    Port 3122/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