Skip to content

Instantly share code, notes, and snippets.

@benfoley
Last active November 16, 2022 11:38
Show Gist options
  • Save benfoley/4e61ecb13e71684fd4309d75e1527a2d to your computer and use it in GitHub Desktop.
Save benfoley/4e61ecb13e71684fd4309d75e1527a2d to your computer and use it in GitHub Desktop.
Elpis startup script for Ronin
# Version 0.4
# Install ubuntu drivers
sudo apt-get install -y build-essential
sudo apt-get install -y linux-headers-$(uname -r)
sudo apt install -y ubuntu-drivers-common
sudo ubuntu-drivers autoinstall
# sudo reboot
# Install cuda
sudo apt install -y nvidia-cuda-toolkit
# Install docker
sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg lsb-release
curl https://get.docker.com | sh \
&& sudo systemctl --now enable docker
# Install nvidia docker
distribution=$(. /etc/os-release;echo $ID$VERSION_ID) \
&& curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - \
&& curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update
sudo apt-get install -y nvidia-docker2
sudo systemctl restart docker
sudo usermod -aG docker $USER
sudo chown $USER /var/run/docker.sock
sudo chmod 666 /var/run/docker.sock
sudo apt -y install nvtop
# Get elpis
cd ~
git clone https://github.com/CoEDL/elpis.git
# Will make it easier to copy model files etc out of the container
mkdir state
# Download and run Elpis (non-interactive so that Elpis starts automatically)
docker run -d --rm --name elpis --gpus all -p 8080:5001/tcp -p 6006:6006/tcp coedl/elpis:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment