Every group will be assigned a computer with a GPU for the whole course.
- Follow one of the two step-by-step guides below to see how to connect to these computers remotely using VS code, either on Campux Machines (recommended) or on your Personal Machines (advanced).
- Once you are connected remotely, open a terminal window in VS Code.
- Create your own venv :
cd /users/local
mkdir username
cd username
python3 -m venv myvenv
source ./myvenv/bin/activate # activate the created environment, to be done at each connection
pip install torch --cache-dir . # important not to store cache in your home
# and install other necessary libraries (torchvision, tqdm...)
- Run your script:
python3 myscript.py
By default you have access to your /home
directory from the school, but as it is on the network it will be slower.
In order to have a faster data access, create a directory in /users/local
Remember this is an internal hard drive with limited capacity, and should only be used for temporary results. Always save your valuable code / results in a secure place.
For training networks, the datasets SHOULD be stored in /users/local/xxxx
, otherwise training will be massively slowed down.
When saving network weights (checkpoints, in ‘pt’ or ‘pth’ format) , also use /users/local
as they can be very large files.
VS Code used for this tutorial: 1.64.2
- Install VS Code Extension named
Remote Development
. - Hit F1 key and go to
Remote-SSH: Connect To Host...
- Enter your pc id:
fl-tp-br-xxx.imta.fr
- Enter your password when prompted
- If asked about fingerprints, hit
Continue
- You should have a green rectangle with
SSH: fl-tp-br-xxx
on the bottom left corner of your screen. If you don't or got an error along the way, call the teacher for help.
VS Code used for this tutorial: 1.64.2
-
Install an OpenSSH compatible SSH client
-
Install VS Code Extension named
Remote Development
. -
Hit F1 key and go to
Remote-SSH: Open Configuration File...
. Click on the first line proposed.- On Linux or Mac, add these lines to the file (replace YOUR_LOGIN by your own username):
Host brain1.imt User YOUR_LOGIN Compression yes HostName fl-tp-br-xxx.imta.fr Host *.imt ProxyCommand ssh YOUR_LOGIN@ssh.telecom-bretagne.eu "/bin/nc `basename %h .imt` %p"
- On Windows, add these lines to the file (replace YOUR_LOGIN by your own username):
Host brain1.imt User YOUR_LOGIN Compression yes HostName fl-tp-br-xxx.imta.fr Host *.imt ProxyCommand C:\Windows\System32\OpenSSH\ssh.exe YOUR_LOGIN@ssh.telecom-bretagne.eu "/bin/nc `basename %h .imt` %p"
-
Hit F1 key and go to
Remote-SSH: Connect To Host...
-
Select
brain1.imt
-
Enter passwords when prompted
-
If asked about fingerprints, hit
Continue
-
You should have a green rectangle with
SSH: fl-tp-br-xxx.imta.fr
on the bottom left corner of your screen. If you don't or got an error along the way, call the teacher for help.