We have a few GPU machines that we can use.
honeydew.cs.uwaterloo.ca
has an NVIDIA Titan XP with 12GB RAM. We gratefully acknowledge the support of NVIDIA Corporation with the donation of the Titan Xp GPU.beaker.cs.uwaterloo.ca
has an NVIDIA Titan XP with 12GB RAM. This machine was donated by Morgan McGuire of NVIDIA.koios.cs.uwaterloo.ca
has 8 NVIDIA Titan XPs, each with 12GB RAM. This machine belongs to Tyler, but he invites us to use it. Thanks Tyler!
This is a convenient way to use koios
without having to mess around with ssh
. The machine is set up with jupyterhub
. To request an account, go to
koios.cs.uwaterloo.ca/hub/signup
An admin will then have to go to koios.cs.uwaterloo.ca/hub/authorize
to authorize the account. After that, just point your browser to
koios.cs.uwaterloo.ca
To load your code onto it, we suggest using git
. Open up a terminal, and git
-away!
You can git clone "<git repo url>"
in the terminal easily. However, this works well only if your repo is public.
For the private repo, you need to grant a permission.
cd .ssh
ssh-keygen
- For the simplicity, just enter in response to the comments.
- Then open
id_rsa.pub
and copy the content of the file usingvim
, for example. - Then, on your cloud server, (github, gitlab, ...) , on your
profile > settings
, - On the left, side-bar select
SSH and GPG keys
thennew ssh key
and paste the copied key from the clipboard. - For example,
[https://github.com/settings/keys](https://github.com/settings/ssh/new)
, - Obviously a good description helps to recall
SSH->Device
later.
- Login to remote machine
ssh honeydew.cs.uwaterloo.ca
If you are doing this from off-campus, you might have to use a VPN.
- Instantiate the machine-learning environment (if you want to use
pyTorch
, etc)
source activate ml
- On remote machine, start the notebook on a specified port, and run it in the background. The command
nohup
allows the process to continue even if you close the terminal window or logout of the server. Note that the output will then be directed to the filenohup.out
.
nohup jupyter notebook --no-browser --port=8885 &
- Make note of the URL that the notebook is running on. You might have to look in the file
nohup.out
for this. It'll have a really long random string of characters. - Log out of remote machine.
- Create an
ssh
tunnel to the chosen port
ssh -N -f -L localhost:8884:localhost:8885 honeydew.cs.uwaterloo.ca
- In your browser, go to the URL that you noted, but replace 8885 with 8884
http://localhost:8884
You can close the terminal window, or the browser window, but that won’t affect the notebook. You can always repeat steps 6 and 7 to continue where you left off. Amazing, right?!
Type nvidia-smi
to see the GPU load.