-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup_tpu.bash
27 lines (25 loc) · 913 Bytes
/
setup_tpu.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# First do this
### git config --global credential.helper store
### git clone https://github.com/clement-bonnet/lpn.git
### # username: ...
### # Token: ...
### nano ~/.bashrc
### alias python=python3.11
### alias python3=python
### alias pip='python3.11 -m pip'
### cd arc
### export PYTHONPATH=${PYTHONPATH}:${PWD}
### export HF_TOKEN=...
### export WANDB_API_KEY=...
### # Save and close
### source ~/.bashrc
# Then the following script can be run: `bash setup_tpu.bash`
sudo add-apt-repository ppa:deadsnakes/ppa -y
sudo apt update
sudo apt upgrade -y
sudo apt-get remove python3.8 -y
sudo apt-get remove python3.9 -y
sudo apt install python3.11 python3.11-distutils -y
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11
python3.11 -m pip install -U pip setuptools wheel
python3.11 -m pip install -U -r requirements.txt "jax[tpu]" -f https://storage.googleapis.com/jax-releases/libtpu_releases.html