This is an old revision of the document!
Running LLMs
If you want to run a Large Language Model (LLM) on Habrok, here's one possible and relatively easy way to do it.
Login with your account on Habrok (obviously).
ssh pnumber@login1.hb.hpc.rug.nl
Start an interactive job on an A100 node (single GPU):
srun --nodes=1 --ntasks=1 --partition=gpushort --mem=120G --time=04:00:00 --gres=gpu:a100:1 --pty bash
Load the Python and CUDA modules:
module load Python/3.11.5-GCCcore-13.2.0 CUDA/12.1.1
Create a virtual environment (only once):
python3 -m venv .envActivate the venv:
source .env/bin/activate
Upgrade
pip(optional):pip install --upgrade pip