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