Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
documentation:ml:berzelius [2022/03/23 11:07] – volkerk | documentation:ml:berzelius [2022/09/02 14:04] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== How to use Berzelius ====== | ====== How to use Berzelius ====== | ||
+ | |||
+ | Note that some of the links below might require you to have a password at SNIC | ||
==== Getting Started ==== | ==== Getting Started ==== | ||
Line 5: | Line 7: | ||
- below information is from memory and should be updated by the next person going through the process | - below information is from memory and should be updated by the next person going through the process | ||
- Get a login to SNIC: https:// | - Get a login to SNIC: https:// | ||
- | - You will be walked | + | - You will be walked |
- Note that you will have to accept the SNIC user agreements. | - Note that you will have to accept the SNIC user agreements. | ||
- After every step you will receive an email from supr@supr.snic.se. Read the emails carefully, they will tell you what to do next. | - After every step you will receive an email from supr@supr.snic.se. Read the emails carefully, they will tell you what to do next. | ||
- At some point you will have to write a small project proposal: https:// | - At some point you will have to write a small project proposal: https:// | ||
- | - - Go to Rounds page | + | |
- | | + | - In the sub-menu, select AI/ML and then select LiU Berzelius. |
- | | + | - Create the proposal for getting computation time on Berzelius. |
- You will get a confirmation email from snic.se and NSC Berzelius and later a confirmation email that your project was accepted. | - You will get a confirmation email from snic.se and NSC Berzelius and later a confirmation email that your project was accepted. | ||
- | - | + | - To access Berzelius a login account is needed: |
- | - read through | + | - Go to Accounts page and request an account |
- | - before | + | - Accept the Berzelius User Agreement. |
- | - | + | - Wait for your account |
+ | - When your account is ready you will receive an email instructing you to choose a password. | ||
+ | - https://www.nsc.liu.se/support/ | ||
+ | - Before | ||
+ | - | ||
- Finally, you can run '' | - Finally, you can run '' | ||
- ... and you should be in. | - ... and you should be in. | ||
Line 22: | Line 28: | ||
==== Once you are logged in ==== | ==== Once you are logged in ==== | ||
- | * Read through | + | * https:// |
* To not have to put in your password on every login, use an SSH key: https:// | * To not have to put in your password on every login, use an SSH key: https:// | ||
- | * Do not work on the shell you arrive at, it is a shared resource. Use the commant | + | * Do not work on the shell you arrive at, it is a shared resource. Use the command |
==== Working with Conda ==== | ==== Working with Conda ==== | ||
If you want to use conda: | If you want to use conda: | ||
- | * - On your private workstation, | + | * - On your private workstation, |
* - run '' | * - run '' | ||
* - '' | * - '' | ||
- | * - '' | + | * - '' |
* - '' | * - '' | ||
* - If you need ai-gym and atari-games, | * - If you need ai-gym and atari-games, | ||
Line 40: | Line 46: | ||
==== Working with Singularity ==== | ==== Working with Singularity ==== | ||
+ | |||
+ | Install Singularity by following this guide: https:// | ||
+ | |||
+ | Creating a simple Singularity image using a recipe file: https:// | ||
+ | - Create and open a recipe file using '' | ||
+ | - Choose an bootstrap agent that will create the base OS you want to use and add the corresponding lines to the recipe file: | ||
+ | * Bootstrap: docker | ||
+ | * From: ubuntu: | ||
+ | - Create the %post section which will execute commands within the singularity container: | ||
+ | * %post | ||
+ | * apt -y update | ||
+ | * apt -y install python3 | ||
+ | * apt -y install pip | ||
+ | * pip3 install --upgrade pip | ||
+ | * pip3 install torch torchvision torchaudio --extra-index-url https:// | ||
+ | - Add a %files section if any files are to be used by the singularity container: | ||
+ | * %files | ||
+ | * main.py / | ||
+ | * eval.py / | ||
+ | * logs/ / | ||
+ | - Specify in the %runscript section the standard script to be run: | ||
+ | * %runscript | ||
+ | * python3 main.py | ||
+ | - Create a .sif file from the recipe by running '' | ||
+ | - The script in the %runscript section can then be run with '' | ||
+ | - Other scripts can be run using '' | ||
+ | |||
+ | Using .sif file on Berzelius: | ||
+ | - Upload .sif file to Berzelius using '' | ||
+ | - Also upload all needed files to the same folder on Berzelius. | ||
+ | - Log into Berzelius, request computing resources and change directory to ''/ | ||
+ | - Run script using, for example '' | ||
* under investigation... | * under investigation... | ||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | ==== Important Pages ==== | ||
+ | |||
+ | * https:// |