1.配置环境
- configure our university's VPN (off-campus) or connect to our campus networ
- remote control :?
- Windows : powershell
- mac OS or Linux : terminal
- ? ?Connect to the assigned server using powershell or terminal by typing command: e.g. ssh INT408_01@10.7.6.69. Password is required.
- Configure lab environment?
- Create your own folder by your name (e.g. xiaoming) under the speficifed directory:
- if your user account is int408_01, and you are assigned with the first GPU card, then, you need to go to path: /Data_HDD/INT408_21/INT408_01/,by typing:
cd /Data_HDD/INT408_21/INT408_01/
- and create your folder by typing:
mkdir xiaoming
? Copy the code package to your created own folder by typing:
cp -r /Data_HDD/INT408_21/INT408_public/code/ /Data_HDD/INT408_21/INT408_01/xiaoming/
chmod 777 trainval_net_cifar10.py
python ./trainval_net_cifar10.py
- Establish the required Conda environment by typing:
conda create –n int408ass1 python=3.8
source activate int408ass1
conda install pytorch torchvision cudatoolkit=10.2 -c pytorch
? If you still cannot create conda environment based on the previous method, you can try to directly copy the conda environment ‘int408ass1’ for lab 1 from public folder to your allocated account by:
conda create –n int408ass1 python=3.8
cp -r /Data_HDD/INT408_21/INT408_public/int408ass1/ /home/your_account/.conda/envs
2. SFTP
可以用来upload和download
- remote side:(ls cd ...)?
- local side: (lls lcd ...)
- Download command: get
- Upload command: put
|