mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-22 09:13:01 +00:00
slurm-pretrain-plot: add ARGS
This commit is contained in:
parent
f4d1d1d77e
commit
2cd59a01a5
1 changed files with 2 additions and 1 deletions
|
@ -24,6 +24,7 @@ show_help() {
|
||||||
echo -e " INPUT The path to the input file (.jsonl.gz) containing the embedded data to plot (see the pretrain-predict subcommand for embedding data)" >&2;
|
echo -e " INPUT The path to the input file (.jsonl.gz) containing the embedded data to plot (see the pretrain-predict subcommand for embedding data)" >&2;
|
||||||
echo -e " CHECKPOINT The filepath to the checkpoint (.hdf5) file to load" >&2;
|
echo -e " CHECKPOINT The filepath to the checkpoint (.hdf5) file to load" >&2;
|
||||||
echo -e " POSTFIX Arbitrary string to add to filename." >&2;
|
echo -e " POSTFIX Arbitrary string to add to filename." >&2;
|
||||||
|
echo -e " ARGS Any additional args to pass to pretrain-plot." >&2;
|
||||||
echo -e "" >&2;
|
echo -e "" >&2;
|
||||||
echo -e "The code used to identify the run is taken automatically from the filename of the config file." >&2;
|
echo -e "The code used to identify the run is taken automatically from the filename of the config file." >&2;
|
||||||
exit;
|
exit;
|
||||||
|
@ -69,7 +70,7 @@ echo ">>> Installing requirements";
|
||||||
conda run -n py38 pip install -r requirements.txt;
|
conda run -n py38 pip install -r requirements.txt;
|
||||||
echo ">>> Training model";
|
echo ">>> Training model";
|
||||||
#shellcheck disable=SC2086
|
#shellcheck disable=SC2086
|
||||||
conda run -n py38 /usr/bin/env time -v src/index.py pretrain-predict --input "${INPUT}" --output "${filepath_output}" -c "${CHECKPOINT}"
|
conda run -n py38 /usr/bin/env time -v src/index.py pretrain-predict --input "${INPUT}" --output "${filepath_output}" -c "${CHECKPOINT}" ${ARGS}
|
||||||
echo ">>> exited with code $?";
|
echo ">>> exited with code $?";
|
||||||
|
|
||||||
INPUT="${filepath_output}" POSTFIX="${POSTFIX}" sbatch slurm-pretrain-plot.job
|
INPUT="${filepath_output}" POSTFIX="${POSTFIX}" sbatch slurm-pretrain-plot.job
|
||||||
|
|
Loading…
Reference in a new issue