Skip to content

Instantly share code, notes, and snippets.

@nicola-lunghi
Created March 19, 2020 13:47
Show Gist options
  • Save nicola-lunghi/538b363ab6dc116b24b6cf19abe5bcfc to your computer and use it in GitHub Desktop.
Save nicola-lunghi/538b363ab6dc116b24b6cf19abe5bcfc to your computer and use it in GitHub Desktop.
#!/bin/sh -eux
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-container-toolkit
sudo systemctl restart docker
#!/bin/sh -eux
docker run \
--gpus all \
--name fah -p 7396:7396 \
-v $(pwd)/fah-data:/root \
-d coreweave/fah-gpu:7.5.1 \
FAHClient --user=Anonymous --team=0 \
--gpu=true --smp=true \
--priority=mid \
--cpu-usage=80 \
--web-allow=0/0 \
--allow=0/0 \
--gpu-usage=80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment