Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update doc: refactor ExperimentConfig.md (#602)
Browse files Browse the repository at this point in the history
* fix doc

* add link in doc

* update

* add nnictl package cmd
SparkSnail authored and leckie-chn committed Jan 21, 2019

Unverified

This user has not yet uploaded their public signing key.
1 parent 1509c83 commit 74e9031
Showing 2 changed files with 69 additions and 31 deletions.
17 changes: 13 additions & 4 deletions docs/ExperimentConfig.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,12 @@
A config file is needed when create an experiment, the path of the config file is provide to nnictl.
The config file is written in yaml format, and need to be written correctly.
This document describes the rule to write config file, and will provide some examples and templates.

- [Template](#Template) (the templates of an config file)
- [Configuration spec](#Configuration) (the configuration specification of every attribute in config file)
- [Examples](#Examples) (the examples of config file)

<a name="Template"></a>
## Template
* __light weight(without Annotation and Assessor)__
```
@@ -107,7 +113,8 @@ machineList:
username:
passwd:
```
## Configuration
<a name="Configuration"></a>
## Configuration spec
* __authorName__
* Description

@@ -123,14 +130,16 @@ machineList:
* __trialConcurrency__
* Description

__trialConcurrency__ specifies the max num of trial jobs run simultaneously.
__trialConcurrency__ specifies the max num of trial jobs run simultaneously.

Note: if trialGpuNum is bigger than the free gpu numbers, and the trial jobs running simultaneously can not reach trialConcurrency number, some trial jobs will be put into a queue to wait for gpu allocation.
Note: if trialGpuNum is bigger than the free gpu numbers, and the trial jobs running simultaneously can not reach trialConcurrency number, some trial jobs will be put into a queue to wait for gpu allocation.

* __maxExecDuration__
* Description

__maxExecDuration__ specifies the max duration time of an experiment.The unit of the time is {__s__, __m__, __h__, __d__}, which means {_seconds_, _minutes_, _hours_, _days_}.

Note: The maxExecDuration spec set the time of an experiment, not a trial job. If the experiment reach the max duration time, the experiment will not stop, but could not submit new trial jobs any more.

* __maxTrialNum__
* Description
@@ -421,7 +430,7 @@ machineList:



<a name="Examples"></a>
## Examples
* __local mode__

83 changes: 56 additions & 27 deletions docs/NNICTLDOC.md
Original file line number Diff line number Diff line change
@@ -5,20 +5,23 @@ __nnictl__ is a command line tool, which can be used to control experiments, suc

## Commands
nnictl support commands:
```
nnictl create
nnictl stop
nnictl update
nnictl resume
nnictl trial
nnictl experiment
nnictl config
nnictl log
nnictl webui
nnictl tensorboard
nnictl top
```
- [nnictl create](#create)
- [nnictl resume](#resume)
- [nnictl stop](#stop)
- [nnictl update](#update)
- [nnictl trial](#trial)
- [nnictl top](#top)
- [nnictl experiment](#experiment)
- [nnictl config](#config)
- [nnictl log](#log)
- [nnictl webui](#webui)
- [nnictl tensorboard](#tensorboard)
- [nnictl package](#package)



### Manage an experiment
<a name="create"></a>
* __nnictl create__
* Description

@@ -37,7 +40,7 @@ nnictl top
| ------ | ------ | ------ |------ |
| --config, -c| True| |yaml configure file of the experiment|
| --port, -p | False| |the port of restful server|

<a name="resume"></a>
* __nnictl resume__

* Description
@@ -56,7 +59,7 @@ nnictl top


<a name="stop"></a>
* __nnictl stop__
* Description

@@ -74,7 +77,7 @@ nnictl top
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
<a name="update"></a>
* __nnictl update__

* __nnictl update searchspace__
@@ -142,7 +145,7 @@ nnictl top
| --value, -v| True| |the new number of maxtrialnum you want to set|


<a name="trial"></a>
* __nnictl trial__
* __nnictl trial ls__
* Description
@@ -173,10 +176,10 @@ nnictl top
| ------ | ------ | ------ |------ |
| id| False| |ID of the experiment you want to set|
| --trialid, -t| True| |ID of the trial you want to kill.|
* __nnictl top__
* Description
<a name="top"></a>
* __nnictl top__

* Description

Monitor all of running experiments.

@@ -192,7 +195,7 @@ nnictl top
| --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

* __nnictl experiment show__
@@ -240,7 +243,7 @@ nnictl top
| all| False| False|Show all of experiments, including stopped experiments.|



<a name="config"></a>
* __nnictl config show__
* Description

@@ -250,7 +253,7 @@ nnictl top

nnictl config show
<a name="log"></a>
### Manage log
* __nnictl log stdout__
* Description
@@ -305,7 +308,7 @@ nnictl top
| ------ | ------ | ------ |------ |
| id| False| |the id of trial|


<a name="webui"></a>
### Manage webui
* __nnictl webui url__
* Description
@@ -322,7 +325,7 @@ nnictl top
| ------ | ------ | ------ |------ |
| id| False| |ID of the experiment you want to set|


<a name="tensorboard"></a>
### Manage tensorboard
* __nnictl tensorboard start__
* Description
@@ -362,4 +365,30 @@ nnictl top
| Name, shorthand | Required|Default | Description |
| ------ | ------ | ------ |------ |
| id| False| |ID of the experiment you want to set|
| id| False| |ID of the experiment you want to set|

<a name="package"></a>
### Manage package
* __nnictl package install__
* Description

Install the packages needed in nni experiments.

* Usage

nnictl package install [OPTIONS]
Options:
| Name, shorthand | Required|Default | Description |
| ------ | ------ | ------ |------ |
| --name| True| |The name of package to be installed|

* __nnictl package show__
* Description

List the packages supported.

* Usage

nnictl package show

0 comments on commit 74e9031

Please sign in to comment.