Created
March 8, 2023 13:26
-
-
Save sradc/7158a3fcf18973264fba9db03bb0b4a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Installing conda..." | |
# https://waylonwalker.com/install-miniconda/ | |
mkdir -p ~/miniconda3 | |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh | |
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3 | |
rm -rf ~/miniconda3/miniconda.sh | |
~/miniconda3/bin/conda init bash | |
# set up pytorch | |
echo "Installing Python dependencies..." | |
source ~/miniconda3/etc/profile.d/conda.sh | |
conda install pytorch torchvision torchaudio pytorch-cuda=11.6 -c pytorch -c nvidia | |
python -m pip install --upgrade pip | |
pip install transformers accelerate bitsandbytes | |
pip freeze > requirements-from-setup.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment