black .
autoflake --remove-all-unused-imports -i ./*
isort .
lsof /dev/nvidia* | awk '{print $2}' | xargs -I {} kill {}
du -h | awk '$1 ~ /G/ && $1 > 1' | sort -h
: over 1gb of current disk
git config --global init.defaultBranch main
git config user.name "Simo Ryu"
git config user.email "[email protected]"
cd
export DEBIAN_FRONTEND=noninteractive
sudo apt update
sudo apt install -y software-properties-common
sudo apt install -y pdsh
sudo apt-get install -y tmux
sudo apt-get install -y htop
sudo apt-get install -y git-lfs
sudo git lfs install
sudo apt install -y ffmpeg
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install -y python3.9
sudo apt install -y python3.9-venv python3.9-distutils
sudo apt install -y libpython3.9-dev python3.9-dev
python3.9 -m ensurepip
python3.9 -m venv py39cuda
source ~/py39cuda/bin/activate
pip install torch deepspeed mosaicml-streaming tqdm click transformers wandb plotly pandas
wandb login
git config --global user.name "Simo Ryu"
git config --global user.email "[email protected]"
ACTIVATE_CMD="source ~/py39cuda/bin/activate"
# Check if the command is already in .bashrc
if grep -Fxq "$ACTIVATE_CMD" ~/.bashrc
then
echo "Virtual environment activation command already in .bashrc"
else
# Add the command to .bashrc
echo "$ACTIVATE_CMD" >> ~/.bashrc
echo "Virtual environment activation command added to .bashrc"
fi
$ACTIVATE_CMD
Iterate over servers to put the key