This guide explains how to set up the required environment for running diffusers on Berzelius HPC.
Note: As of March 1, 2024, Berzelius supports CUDA 12.2. The following instructions are specifically tailored for compatibility with Python 3.10 and PyTorch 2.5.1 to ensure stable performance.
- Access to Berzelius HPC
- Loaded Miniforge3 module
- Load the required module:
module load Miniforge3- Create a new conda environment:
mamba create -n diffusers python=3.10 -y- Activate the environment:
mamba activate diffusers- Install PyTorch and related packages:
mamba install pytorch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 pytorch-cuda=12.1 -c pytorch -c nvidia- Install diffusers:
mamba install -c conda-forge diffusersAfter setting up the environment, you can run the training script using:
sbatch run_train_drsk.sh