ssh into the Armis2:
ssh [email protected]
For this project, you will use Armis2 services for storing and working with your data. First, clone the git repository here:
/home/uniqname
Finally, any data you want towork with can be saved here:
/scratch/bdsi_root/bdsi1/uniqname
Since you will be working with GPUs, you would have to load the python and cuda modules
#Load the correct Python version (3.8.8) in the terminal: module load python3.8-anaconda #Next, load the cuda module: module load cuda
Create a virtual environment:
cd ~ pip install virtualenv which python3 # Use the path printed here as argument to -p, below is an example virtualenv -p /usr/bin/python3 BdsiEnv source BdsiEnv/bin/activate
By default everything runs in one default python environment, but doing this will create a localized python3 environment. Whatever you install in this environment is hidden to the outside global environment, as if you had a separate python installation altogether. It's always a good idea to have individual environments for projects to keep workspaces separate.
Install requirements:
Go to BDSI_2022_ML directory and type:
pip install -r requirements_lite.txt
The virtualenv you set up will contain the module "gdown" which we will use to download files from Google Drive onto your scratch directory. First, navigate to the data folder in the cloned repository. Next, click on the .zip data files and generate their links, which will contain the FILE ID. Enter the FILE ID in the command:
gdown https://drive.google.com/uc?id=[FILE ID]
Next, you will have to unzip the files you just downloaded. Type the command in the linux terminal:
unzip [FILE_NAME].zip
pip install ipykernel # Install jupyter kernel in your virtualenv (make sure it is active first) python -m ipykernel install --user --name BdsiEnv # To make sure you have installed it correctly, type in: jupyter kernelspec list #You should be able to see it in your available kernels #No browser: jupyter notebook --no-browser --port=8894 ssh -N -f -L localhost:8892:localhost:8894 [email protected]
In order to access GPUs, make sure you have tensorflow-gpu package in your virtualenv. Next, you need to specify certain settings in the Armis2 browser page order to access the GPUs:
Anaconda Python module from which to run Jupyter : python3.8-anaconda/2021.05 Slurm account: bdsi1 partition: gpu Number of hours: 2 Number of cores: 1 Memory (GB): 4 Number of GPUs: 1 Module commands: load python3.8-anaconda cudnn cuda
With the settings above, click on launch.