General
- pslist: rkill (kill entire process tree)
CUDA computing setup snippets
# python deepy.py train.py configs/125M.yml configs/local_setup.yml
apt-get update
apt-get install -y vim sudo screen ripgrep
wget <https://developer.download.nvidia.com/compute/cuda/11.7.1/local_installers/cuda_11.7.1_515.65.01_linux.run>
sudo sh cuda_11.7.1_515.65.01_linux.run
#
# %sudo ALL=(ALL) NOPASSWD: ALL
#
adduser yz
adduser yz sudo
apt-get install -y make build-essential libssl-dev zlib1g-dev \\
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \\
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
apt-get install -y libopenmpi-dev
apt-get install -y direnv
su - yz
cat > .screenrc
escape ^\\\\
defscrollback 100000
EOF
git clone <https://github.com/asdf-vm/asdf.git> ~/.asdf --branch v0.13.1
asdf direnv setup --shell bash --version latest
#cat >> ~/.bashrc << EOF
#. $HOME/.asdf/asdf.sh
#. $HOME/.asdf/completions/asdf.bash
#alias aoeu=asdf
#eval "\\$(direnv hook bash)"
#EOF
asdf plugin add direnv
asdf plugin add python
aoeu install python 3.8.18
aoeu local python 3.8.18
cat > .envrc <<EOF
use asdf
layout python
EOF
pip install --upgrade pip
pip install poetry
pip install torch torchvision torchaudio