dppo/install_dppo.sh
ys1087@partner.kit.edu 05dddfa10c Add HoReKa cluster setup and SLURM scripts
- Add installation script for HoReKa with Python 3.10 venv
- Add SLURM job submission scripts for dev and production runs
- Add convenient submit_job.sh wrapper for easy job submission
- Update .gitignore to allow shell scripts (removed *.sh exclusion)
- Configure git remotes: upstream (original) and origin (fork)
2025-08-27 11:57:32 +02:00

43 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
#SBATCH --job-name=dppo_install
#SBATCH --account=hk-project-p0022232
#SBATCH --partition=dev_accelerated
#SBATCH --gres=gpu:1
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=4
#SBATCH --time=00:30:00
#SBATCH --mem=16G
#SBATCH --output=logs/dppo_install_%j.out
#SBATCH --error=logs/dppo_install_%j.err
# Load CUDA module (required for PyTorch)
module load devel/cuda/12.4
# Print job info
echo "Starting DPPO installation..."
echo "Job ID: $SLURM_JOB_ID"
echo "Node: $SLURM_NODELIST"
echo "GPU: $CUDA_VISIBLE_DEVICES"
# Navigate to dppo directory (uses current directory)
cd $SLURM_SUBMIT_DIR
# Create and activate virtual environment with Python 3.10
python3.10 -m venv .venv
source .venv/bin/activate
# Upgrade pip
pip install --upgrade pip
# Install base package
pip install -e .
# Install gym dependencies (optional - comment out if not needed)
pip install -e .[gym]
echo "Installation completed!"
echo "Python version: $(python --version)"
echo "Pip version: $(pip --version)"
echo "Installed packages:"
pip list