-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put the --alloc/--salloc/--sbatch args last
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
- Loading branch information
Showing
8 changed files
with
113 additions
and
55 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
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
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 |
---|---|---|
@@ -1,18 +1,33 @@ | ||
usage: mila code [-h] [--cluster {mila,cedar,narval,beluga,graham}] | ||
[--alloc ...] [--command VALUE] [--job VALUE] [--node VALUE] | ||
[--persist] | ||
PATH | ||
[--command VALUE] [--job JOB_ID] [--node NODE] [--persist] | ||
[--alloc ...] [--salloc ...] [--sbatch ...] | ||
[PATH] | ||
|
||
positional arguments: | ||
PATH Path to open on the remote machine | ||
PATH Path to open on the remote machine. Defaults to $HOME. | ||
Can be a relative or absolute path. When a relative | ||
path (that doesn't start with a '/', like foo/bar) is | ||
passed, the path is relative to the $HOME directory on | ||
the selected cluster. For example, foo/project will be | ||
interpreted as $HOME/foo/project. | ||
|
||
optional arguments: | ||
-h, --help show this help message and exit | ||
--alloc ... Extra options to pass to slurm | ||
--cluster {mila,cedar,narval,beluga,graham} | ||
Which cluster to connect to. | ||
--command VALUE Command to use to start vscode (defaults to "code" or | ||
the value of $MILATOOLS_CODE_COMMAND) | ||
--job VALUE Job ID to connect to | ||
--node VALUE Node to connect to | ||
--persist Whether the server should persist or not | ||
--job JOB_ID Job ID to connect to | ||
--node NODE Node to connect to | ||
|
||
Allocation optional arguments: | ||
Extra options to pass to slurm. | ||
|
||
--persist Whether the server should persist or not when using | ||
--alloc | ||
--alloc ... Extra options to pass to salloc or to sbatch if | ||
--persist is set. | ||
--salloc ... Extra options to pass to salloc. Same as using --alloc | ||
without --persist. | ||
--sbatch ... Extra options to pass to sbatch. Same as using --alloc | ||
with --persist. |
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 |
---|---|---|
@@ -1,17 +1,26 @@ | ||
usage: mila serve aim [-h] [--alloc ...] [--job VALUE] [--name VALUE] | ||
[--node VALUE] [--persist] [--port VALUE] | ||
[--profile VALUE] | ||
usage: mila serve aim [-h] [--job JOB_ID] [--name VALUE] [--node VALUE] | ||
[--port VALUE] [--profile VALUE] [--persist] | ||
[--alloc ...] [--salloc ...] [--sbatch ...] | ||
LOGDIR | ||
|
||
positional arguments: | ||
LOGDIR Path to the experiment logs | ||
|
||
optional arguments: | ||
-h, --help show this help message and exit | ||
--alloc ... Extra options to pass to slurm | ||
--job VALUE Job ID to connect to | ||
--job JOB_ID Job ID to connect to | ||
--name VALUE Name of the persistent server | ||
--node VALUE Node to connect to | ||
--persist Whether the server should persist or not | ||
--port VALUE Port to open on the local machine | ||
--profile VALUE Name of the profile to use | ||
|
||
Allocation optional arguments: | ||
Extra options to pass to slurm. | ||
|
||
--persist Whether the server should persist or not when using --alloc | ||
--alloc ... Extra options to pass to salloc or to sbatch if --persist | ||
is set. | ||
--salloc ... Extra options to pass to salloc. Same as using --alloc | ||
without --persist. | ||
--sbatch ... Extra options to pass to sbatch. Same as using --alloc with | ||
--persist. |
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 |
---|---|---|
@@ -1,17 +1,26 @@ | ||
usage: mila serve lab [-h] [--alloc ...] [--job VALUE] [--name VALUE] | ||
[--node VALUE] [--persist] [--port VALUE] | ||
[--profile VALUE] | ||
usage: mila serve lab [-h] [--job JOB_ID] [--name VALUE] [--node VALUE] | ||
[--port VALUE] [--profile VALUE] [--persist] | ||
[--alloc ...] [--salloc ...] [--sbatch ...] | ||
[PATH] | ||
|
||
positional arguments: | ||
PATH Path to open on the remote machine | ||
|
||
optional arguments: | ||
-h, --help show this help message and exit | ||
--alloc ... Extra options to pass to slurm | ||
--job VALUE Job ID to connect to | ||
--job JOB_ID Job ID to connect to | ||
--name VALUE Name of the persistent server | ||
--node VALUE Node to connect to | ||
--persist Whether the server should persist or not | ||
--port VALUE Port to open on the local machine | ||
--profile VALUE Name of the profile to use | ||
|
||
Allocation optional arguments: | ||
Extra options to pass to slurm. | ||
|
||
--persist Whether the server should persist or not when using --alloc | ||
--alloc ... Extra options to pass to salloc or to sbatch if --persist | ||
is set. | ||
--salloc ... Extra options to pass to salloc. Same as using --alloc | ||
without --persist. | ||
--sbatch ... Extra options to pass to sbatch. Same as using --alloc with | ||
--persist. |
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 |
---|---|---|
@@ -1,17 +1,26 @@ | ||
usage: mila serve mlflow [-h] [--alloc ...] [--job VALUE] [--name VALUE] | ||
[--node VALUE] [--persist] [--port VALUE] | ||
[--profile VALUE] | ||
usage: mila serve mlflow [-h] [--job JOB_ID] [--name VALUE] [--node VALUE] | ||
[--port VALUE] [--profile VALUE] [--persist] | ||
[--alloc ...] [--salloc ...] [--sbatch ...] | ||
LOGDIR | ||
|
||
positional arguments: | ||
LOGDIR Path to the experiment logs | ||
|
||
optional arguments: | ||
-h, --help show this help message and exit | ||
--alloc ... Extra options to pass to slurm | ||
--job VALUE Job ID to connect to | ||
--job JOB_ID Job ID to connect to | ||
--name VALUE Name of the persistent server | ||
--node VALUE Node to connect to | ||
--persist Whether the server should persist or not | ||
--port VALUE Port to open on the local machine | ||
--profile VALUE Name of the profile to use | ||
|
||
Allocation optional arguments: | ||
Extra options to pass to slurm. | ||
|
||
--persist Whether the server should persist or not when using --alloc | ||
--alloc ... Extra options to pass to salloc or to sbatch if --persist | ||
is set. | ||
--salloc ... Extra options to pass to salloc. Same as using --alloc | ||
without --persist. | ||
--sbatch ... Extra options to pass to sbatch. Same as using --alloc with | ||
--persist. |
21 changes: 15 additions & 6 deletions
21
tests/cli/test_commands/test_help_mila_serve_notebook_.txt
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 |
---|---|---|
@@ -1,17 +1,26 @@ | ||
usage: mila serve notebook [-h] [--alloc ...] [--job VALUE] [--name VALUE] | ||
[--node VALUE] [--persist] [--port VALUE] | ||
[--profile VALUE] | ||
usage: mila serve notebook [-h] [--job JOB_ID] [--name VALUE] [--node VALUE] | ||
[--port VALUE] [--profile VALUE] [--persist] | ||
[--alloc ...] [--salloc ...] [--sbatch ...] | ||
[PATH] | ||
|
||
positional arguments: | ||
PATH Path to open on the remote machine | ||
|
||
optional arguments: | ||
-h, --help show this help message and exit | ||
--alloc ... Extra options to pass to slurm | ||
--job VALUE Job ID to connect to | ||
--job JOB_ID Job ID to connect to | ||
--name VALUE Name of the persistent server | ||
--node VALUE Node to connect to | ||
--persist Whether the server should persist or not | ||
--port VALUE Port to open on the local machine | ||
--profile VALUE Name of the profile to use | ||
|
||
Allocation optional arguments: | ||
Extra options to pass to slurm. | ||
|
||
--persist Whether the server should persist or not when using --alloc | ||
--alloc ... Extra options to pass to salloc or to sbatch if --persist | ||
is set. | ||
--salloc ... Extra options to pass to salloc. Same as using --alloc | ||
without --persist. | ||
--sbatch ... Extra options to pass to sbatch. Same as using --alloc with | ||
--persist. |
22 changes: 16 additions & 6 deletions
22
tests/cli/test_commands/test_help_mila_serve_tensorboard_.txt
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 |
---|---|---|
@@ -1,17 +1,27 @@ | ||
usage: mila serve tensorboard [-h] [--alloc ...] [--job VALUE] [--name VALUE] | ||
[--node VALUE] [--persist] [--port VALUE] | ||
[--profile VALUE] | ||
usage: mila serve tensorboard [-h] [--job JOB_ID] [--name VALUE] | ||
[--node VALUE] [--port VALUE] [--profile VALUE] | ||
[--persist] [--alloc ...] [--salloc ...] | ||
[--sbatch ...] | ||
LOGDIR | ||
|
||
positional arguments: | ||
LOGDIR Path to the experiment logs | ||
|
||
optional arguments: | ||
-h, --help show this help message and exit | ||
--alloc ... Extra options to pass to slurm | ||
--job VALUE Job ID to connect to | ||
--job JOB_ID Job ID to connect to | ||
--name VALUE Name of the persistent server | ||
--node VALUE Node to connect to | ||
--persist Whether the server should persist or not | ||
--port VALUE Port to open on the local machine | ||
--profile VALUE Name of the profile to use | ||
|
||
Allocation optional arguments: | ||
Extra options to pass to slurm. | ||
|
||
--persist Whether the server should persist or not when using --alloc | ||
--alloc ... Extra options to pass to salloc or to sbatch if --persist | ||
is set. | ||
--salloc ... Extra options to pass to salloc. Same as using --alloc | ||
without --persist. | ||
--sbatch ... Extra options to pass to sbatch. Same as using --alloc with | ||
--persist. |