forked from yang-song/score_sde_pytorch
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
helper scripts for running sampling on JASMIN/LOTUS
- Loading branch information
1 parent
f7f62a1
commit e9f327b
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
# Wrapper script around commands for training a model to queue on LOTUS on JASMIN | ||
|
||
source ~/.bashrc | ||
mamba activate mv-mlde | ||
|
||
set -euo pipefail | ||
|
||
cd /home/users/vf20964/code/mlde | ||
|
||
export DERIVED_DATA=/gws/nopw/j04/bris_climdyn/henrya/bp-backups/ | ||
export KK_SLACK_WH_URL=https://hooks.slack.com | ||
export WANDB_EXPERIMENT_NAME="ml-downscaling-emulator" | ||
|
||
checkpoint=$1 | ||
em=$2 | ||
dataset=$3 | ||
split=$4 | ||
workdir=$5 | ||
|
||
python bin/predict.py --checkpoint ${checkpoint} --num-samples 1 --dataset ${dataset} --split ${split} --ensemble-member ${em} ${workdir} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
# Script for queueing a training job on LOTUS on JASMIN via lotus-wrapper script | ||
|
||
set -euo pipefail | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
|
||
# 12em NCSN++ | ||
# /gws/nopw/j04/bris_climdyn/henrya/workdirs/score-sde/deterministic/ukcp_local_pr_12em_cncsnpp/bham_pSTV | ||
|
||
# 12em Plain U-Net | ||
# /gws/nopw/j04/bris_climdyn/henrya/workdirs/score-sde/deterministic/ukcp_local_pr_12em_plain_unet/bham_pSTV | ||
|
||
# 1em Plain U-Net | ||
# /gws/nopw/j04/bris_climdyn/henrya/workdirs/score-sde/deterministic/ukcp_local_pr_1em_plain_unet/bham_pSTV | ||
|
||
for em in 01; do sbatch --gres=gpu:1 --partition=orchid --account=orchid --time=01:00:00 --mem=16G -- ${SCRIPT_DIR}/lotus-sampling-wrapper epoch_100 ${em} bham64_ccpm-4x_1em_vort850_pr val /gws/nopw/j04/bris_climdyn/henrya/workdirs/score-sde/deterministic/ukcp_local_pr_1em_plain_unet/bham_pSTV; done |