Skip to content

Commit

Permalink
merge queue training and sampling jobs on JASMIN into one
Browse files Browse the repository at this point in the history
  • Loading branch information
henryaddison committed Aug 8, 2024
1 parent a401317 commit 75fd83c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 16 deletions.
30 changes: 30 additions & 0 deletions bin/jasmin/queue-mlde
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash
# Script for queueing a model job on LOTUS on JASMIN via lotus-wrapper script

set -euo pipefail

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

smem=128G
stime=1-00:00:00

while getopts ":m:t:" opt; do
case ${opt} in
m)
smem=${OPTARG}
;;
t)
stime=${OPTARG}
;;
\? )
# echo "Invalid option: -${OPTARG}" 1>&2
;;
: )
echo "Invalid option: $OPTARG requires an argument" 1>&2
exit 1
;;
esac
done
shift "$((OPTIND -1))"

sbatch --parsable --gres=gpu:1 --partition=orchid --account=orchid --time=${stime} --mem=${smem} -- ${SCRIPT_DIR}/lotus-wrapper $@
8 changes: 0 additions & 8 deletions bin/jasmin/queue-sampling

This file was deleted.

8 changes: 0 additions & 8 deletions bin/jasmin/queue-training

This file was deleted.

0 comments on commit 75fd83c

Please sign in to comment.