You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor script to use 'overwrites' variable for command-line arguments in training scripts (#1473)
The goal of this PR is to add support for command line arguments to the
bash training scripts. The `run_train.sh` had support for `overrides`,
however, the `multinode_trainer.slurm` script did not. This `overrides`
flag add supports for commands like: `sbatch multinode_trainer.slurm
--job.description="TEST_RUN"`
However, there is a problem with the current `overrides` implementation,
when passing arguments with space such as `"TEST RUN"` instead of
`"TEST_RUN"` then the variable `job.description` would only get `TEST`
as input and the training script throws an error for unrecognizing the
argument `RUN` which is passed in a different line. To address this I
simplify the code and directly pass the additional overrides through
`$@`. This solves the issue for commands such as: `sbatch
multinode_trainer.slurm --job.description="TEST RUN"`
0 commit comments