Skip to content

Commit

Permalink
chore: add cluster utils
Browse files Browse the repository at this point in the history
  • Loading branch information
dtch1997 committed Apr 25, 2024
1 parent 4a97734 commit dcd731a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/persona_generalization.qsub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,21 @@
#$ -l h_vmem=64G # Request 64GB of memory per job
#$ -l gpu=1 # Request 1 GPU
#$ -ac allow=L # Specify the type of GPU
#$ -o $HOME/logs
#$ -e $HOME/logs

# Add locally installed executables to PATH
# (e.g. pdm)
export PATH=$PATH:/home/$USER/.local/bin
source /home/$USER/.bash_profile
send_slack_notification "Job $JOB_NAME:$JOB_ID started"

# NOTE: Assume you have already cloned the repository and checked out correct branch
# Navigate to the project directory
cd /home/$USER/Scratch/repepo


# NOTE: Assume you have already installed pdm
pdm install

# Run the script
pdm run python repepo/experiments/persona_generalization.py --output_dir repepo/experiments/persona_generalization
send_slack_notification "Job $JOB_NAME:$JOB_ID ended"

0 comments on commit dcd731a

Please sign in to comment.