This is an old revision of the document!


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
  1. 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
  2. Load the Python and CUDA modules:

    module load Python/3.11.5-GCCcore-13.2.0 CUDA/12.1.1
  3. Create a virtual environment (only once):

    python3 -m venv .env
  4. Activate the venv:

    source .env/bin/activate
  5. Upgrade pip (optional):

    pip install --upgrade pip