Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
9bf5c7a7
Commit
9bf5c7a7
authored
Apr 08, 2019
by
Shufan Huang
Committed by
chicm-ms
Apr 08, 2019
Browse files
Fix bug in NNICTLDOC and add several examples (#961)
* update doc * update example
parent
4deeeae1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
158 additions
and
46 deletions
+158
-46
docs/en_US/NNICTLDOC.md
docs/en_US/NNICTLDOC.md
+158
-46
No files found.
docs/en_US/NNICTLDOC.md
View file @
9bf5c7a7
...
...
@@ -25,7 +25,8 @@ nnictl support commands:
### Manage an experiment
<a
name=
"create"
></a>
*
__nnictl create__

`nnictl create`
*
Description
...
...
@@ -47,13 +48,34 @@ nnictl support commands:
|--port, -p|False| |the port of restful server|
|--debug, -d|False||set debug mode|
*
Examples
> create a new experiment with the default port: 8080
```bash
nnictl create --config nni/examples/trials/mnist/config.yml
```
> create a new experiment with specified port 8088
```bash
nnictl create --config nni/examples/trials/mnist/config.yml --port 8088
```
> create a new experiment with specified port 8088 and debug mode
```bash
nnictl create --config nni/examples/trials/mnist/config.yml --port 8088 --debug
```
Note:
```
Debug mode will disable version check function in Trialkeeper.
```
<a
name=
"resume"
></a>
*
__nnictl resume__

`nnictl resume`
*
Description
...
...
@@ -69,12 +91,21 @@ nnictl support commands:
|Name, shorthand|Required|Default|Description|
|------|------|------ |------|
|id|
Fals
e| |The id of the experiment you want to resume|
|id|
Tru
e| |The id of the experiment you want to resume|
|--port, -p| False| |Rest port of the experiment you want to resume|
|--debug, -d|False||set debug mode|
*
Example
> resume an experiment with specified port 8088
```bash
nnictl resume [experiment_id] --port 8088
```
<a
name=
"stop"
></a>
*
__nnictl stop__

`nnictl stop`
*
Description
...
...
@@ -86,17 +117,32 @@ nnictl support commands:
nnictl stop [id]
```
*
Detail
*
Details & Examples
1. If there is no id specified, and there is an experiment running, stop the running experiment, or print error message.
```bash
nnictl stop
```
2. If there is an id specified, and the id matches the running experiment, nnictl will stop the corresponding experiment, or will print error message.
```bash
nnictl stop [experiment_id]
```
1. If there is an id specified, and the id matches the running experiment, nnictl will stop the corresponding experiment, or will print error message.
2. If there is no id specified, and there is an experiment running, stop the running experiment, or print error message.
3. If the id ends with *, nnictl will stop all experiments whose ids matchs the regular.
4. If the id does not exist but match the prefix of an experiment id, nnictl will stop the matched experiment.
5. If the id does not exist but match multiple prefix of the experiment ids, nnictl will give id information.
6. Users could use 'nnictl stop all' to stop all experiments.
3. Users could use 'nnictl stop all' to stop all experiments.
```bash
nnictl stop all
```
4. If the id ends with *, nnictl will stop all experiments whose ids matchs the regular.
5. If the id does not exist but match the prefix of an experiment id, nnictl will stop the matched experiment.
6. If the id does not exist but match multiple prefix of the experiment ids, nnictl will give id information.
<a
name=
"update"
></a>
*
__nnictl update__

`nnictl update`
*
__nnictl update searchspace__
*
Description
...
...
@@ -116,6 +162,14 @@ nnictl support commands:
|id| False| |ID of the experiment you want to set|
|--filename, -f| True| |the file storing your new search space|
* Example
`update experiment's new search space with file dir 'examples/trials/mnist/search_space.json'`
```bash
nnictl update searchspace [experiment_id] --file examples/trials/mnist/search_space.json
```
*
__nnictl update concurrency__
*
Description
...
...
@@ -134,6 +188,14 @@ nnictl support commands:
|id| False| |ID of the experiment you want to set|
|--value, -v| True| |the number of allowed concurrent trials|
* Example
> update experiment's concurrency
```bash
nnictl update concurrency [experiment_id] --value [concurrency_number]
```
*
__nnictl update duration__
* Description
...
...
@@ -145,6 +207,7 @@ nnictl support commands:
```bash
nnictl update duration [OPTIONS]
```
* Options
|Name, shorthand|Required|Default|Description|
...
...
@@ -152,6 +215,14 @@ nnictl support commands:
|id| False| |ID of the experiment you want to set|
|--value, -v| True| |the experiment duration will be NUMBER seconds. SUFFIX may be 's' for seconds (the default), 'm' for minutes, 'h' for hours or 'd' for days.|
* Example
> update experiment's duration
```bash
nnictl update duration [experiment_id] --value [duration]
```
*
__nnictl update trialnum__
*
Description
...
...
@@ -170,8 +241,17 @@ nnictl support commands:
|id| False| |ID of the experiment you want to set|
|--value, -v| True| |the new number of maxtrialnum you want to set|
* Example
> update experiment's trial num
```bash
nnictl update trialnum --id [experiment_id] --value [trial_num]
```
<a
name=
"trial"
></a>
*
__nnictl trial__

`nnictl trial`
*
__nnictl trial ls__
...
...
@@ -210,8 +290,17 @@ nnictl support commands:
|id| False| |ID of the trial to be killed|
|--experiment, -E| True| |Experiment id of the trial|
* Example
> kill trail job
```bash
nnictl trial [trial_id] --vexperiment [experiment_id]
```
<a
name=
"top"
></a>
*
__nnictl top__

`nnictl top`
*
Description
...
...
@@ -231,7 +320,8 @@ nnictl support commands:
|--time, -t| False| |The interval to update the experiment status, the unit of time is second, and the default value is 3 second.|
<a
name=
"experiment"
></a>
### Manage experiment information

`Manage experiment information`
*
__nnictl experiment show__
...
...
@@ -282,7 +372,8 @@ nnictl support commands:
```
<a
name=
"config"
></a>
*
__nnictl config show__

`nnictl config show`
*
Description
...
...
@@ -295,7 +386,8 @@ nnictl support commands:
```
<a
name=
"log"
></a>
### Manage log

`Manage log`
*
__nnictl log stdout__
...
...
@@ -318,6 +410,14 @@ nnictl support commands:
|--tail, -t| False| |show tail lines of stdout|
|--path, -p| False| |show the path of stdout file|
*
Example
> Show the tail of stdout log content
```bash
nnictl log stdout [experiment_id] --tail [lines_number]
```
*
__nnictl log stderr__
*
Description
...
...
@@ -358,12 +458,14 @@ nnictl support commands:
|--experiment, -E| False| |Experiment ID of the trial, required when id is not empty.|
<a
name=
"webui"
></a>
### Manage webui

`Manage webui`
*
__nnictl webui url__
<a
name=
"tensorboard"
></a>
### Manage tensorboard

`Manage tensorboard`
*
__nnictl tensorboard start__
...
...
@@ -411,7 +513,8 @@ nnictl support commands:
|id| False| |ID of the experiment you want to set|
<a
name=
"package"
></a>
### Manage package

`Manage package`
*
__nnictl package install__
*
Description
...
...
@@ -430,6 +533,14 @@ nnictl support commands:
|------|------|------ |------|
|--name| True| |The name of package to be installed|
*
Example
> Install the packages needed in tuner SMAC
```bash
nnictl package install --name=SMAC
```
*
__nnictl package show__
*
Description
...
...
@@ -443,7 +554,8 @@ nnictl support commands:
```
<a
name=
"version"
></a>
### Check NNI version

`Check NNI version`
*
__nnictl --version__
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment