From 2304b9c128ec5e9c24f66cc758ddb84b1737fcaa Mon Sep 17 00:00:00 2001 From: Crysple Date: Wed, 19 Sep 2018 11:39:34 +0800 Subject: [PATCH 1/2] modify example config path to relative path and increase maxTrialNum --- examples/trials/auto-gbdt/config.yml | 4 ++-- examples/trials/ga_squad/config.yml | 6 +++--- examples/trials/mnist-annotation/config.yml | 4 ++-- examples/trials/mnist-batch-tune-keras/config.yml | 6 +++--- examples/trials/mnist-keras/config.yml | 6 +++--- examples/trials/mnist-smartparam/config.yml | 4 ++-- examples/trials/mnist/config.yml | 6 +++--- examples/trials/pytorch_cifar10/config.yml | 6 +++--- 8 files changed, 21 insertions(+), 21 deletions(-) diff --git a/examples/trials/auto-gbdt/config.yml b/examples/trials/auto-gbdt/config.yml index 205b6f3a76..3107b53cfc 100644 --- a/examples/trials/auto-gbdt/config.yml +++ b/examples/trials/auto-gbdt/config.yml @@ -5,7 +5,7 @@ maxExecDuration: 10h maxTrialNum: 10 #choice: local, remote trainingServicePlatform: local -searchSpacePath: ~/nni/examples/trials/auto-gbdt/search_space.json +searchSpacePath: search_space.json #choice: true, false useAnnotation: false tuner: @@ -16,5 +16,5 @@ tuner: optimize_mode: minimize trial: command: python3 main.py - codeDir: ~/nni/examples/trials/auto-gbdt/ + codeDir: . gpuNum: 0 \ No newline at end of file diff --git a/examples/trials/ga_squad/config.yml b/examples/trials/ga_squad/config.yml index a094a71f79..a0b1480992 100644 --- a/examples/trials/ga_squad/config.yml +++ b/examples/trials/ga_squad/config.yml @@ -2,18 +2,18 @@ authorName: default experimentName: example_ga_squad trialConcurrency: 1 maxExecDuration: 1h -maxTrialNum: 1 +maxTrialNum: 10 #choice: local, remote trainingServicePlatform: local #choice: true, false useAnnotation: false tuner: - codeDir: ~/nni/examples/tuners/ga_customer_tuner + codeDir: ../tuners/ga_customer_tuner classFileName: customer_tuner.py className: CustomerTuner classArgs: optimize_mode: maximize trial: command: python3 trial.py - codeDir: ~/nni/examples/trials/ga_squad + codeDir: . gpuNum: 0 \ No newline at end of file diff --git a/examples/trials/mnist-annotation/config.yml b/examples/trials/mnist-annotation/config.yml index f7a0b06da8..34f2f5a321 100644 --- a/examples/trials/mnist-annotation/config.yml +++ b/examples/trials/mnist-annotation/config.yml @@ -2,7 +2,7 @@ authorName: default experimentName: example_mnist trialConcurrency: 1 maxExecDuration: 1h -maxTrialNum: 1 +maxTrialNum: 10 #choice: local, remote trainingServicePlatform: local #choice: true, false @@ -15,5 +15,5 @@ tuner: optimize_mode: maximize trial: command: python3 mnist.py - codeDir: ~/nni/examples/trials/mnist-annotation + codeDir: . gpuNum: 0 \ No newline at end of file diff --git a/examples/trials/mnist-batch-tune-keras/config.yml b/examples/trials/mnist-batch-tune-keras/config.yml index 4b750a2394..eacee55a9f 100644 --- a/examples/trials/mnist-batch-tune-keras/config.yml +++ b/examples/trials/mnist-batch-tune-keras/config.yml @@ -2,10 +2,10 @@ authorName: default experimentName: example_mnist-keras trialConcurrency: 1 maxExecDuration: 1h -maxTrialNum: 6 +maxTrialNum: 10 #choice: local, remote trainingServicePlatform: local -searchSpacePath: ~/nni/examples/trials/mnist-batch-tune-keras/search_space.json +searchSpacePath: search_space.json #choice: true, false useAnnotation: false tuner: @@ -16,5 +16,5 @@ tuner: optimize_mode: maximize trial: command: python3 mnist-keras.py - codeDir: ~/nni/examples/trials/mnist-batch-tune-keras + codeDir: . gpuNum: 0 diff --git a/examples/trials/mnist-keras/config.yml b/examples/trials/mnist-keras/config.yml index 83baf364ad..483bb6837a 100644 --- a/examples/trials/mnist-keras/config.yml +++ b/examples/trials/mnist-keras/config.yml @@ -2,10 +2,10 @@ authorName: default experimentName: example_mnist-keras trialConcurrency: 1 maxExecDuration: 1h -maxTrialNum: 1 +maxTrialNum: 10 #choice: local, remote trainingServicePlatform: local -searchSpacePath: ~/nni/examples/trials/mnist-keras/search_space.json +searchSpacePath: search_space.json #choice: true, false useAnnotation: false tuner: @@ -16,5 +16,5 @@ tuner: optimize_mode: maximize trial: command: python3 mnist-keras.py - codeDir: ~/nni/examples/trials/mnist-keras + codeDir: . gpuNum: 0 \ No newline at end of file diff --git a/examples/trials/mnist-smartparam/config.yml b/examples/trials/mnist-smartparam/config.yml index 1343937742..78d08978e1 100644 --- a/examples/trials/mnist-smartparam/config.yml +++ b/examples/trials/mnist-smartparam/config.yml @@ -2,7 +2,7 @@ authorName: default experimentName: example_mnist-smartparam trialConcurrency: 1 maxExecDuration: 1h -maxTrialNum: 1 +maxTrialNum: 10 #choice: local, remote trainingServicePlatform: local #choice: true, false @@ -15,5 +15,5 @@ tuner: optimize_mode: maximize trial: command: python3 mnist.py - codeDir: ~/nni/examples/trials/mnist-smartparam + codeDir: . gpuNum: 0 \ No newline at end of file diff --git a/examples/trials/mnist/config.yml b/examples/trials/mnist/config.yml index 331afab2b9..bc56c95dec 100644 --- a/examples/trials/mnist/config.yml +++ b/examples/trials/mnist/config.yml @@ -2,10 +2,10 @@ authorName: default experimentName: example_mnist trialConcurrency: 1 maxExecDuration: 1h -maxTrialNum: 1 +maxTrialNum: 10 #choice: local, remote trainingServicePlatform: local -searchSpacePath: ~/nni/examples/trials/mnist/search_space.json +searchSpacePath: search_space.json #choice: true, false useAnnotation: false tuner: @@ -16,5 +16,5 @@ tuner: optimize_mode: maximize trial: command: python3 mnist.py - codeDir: ~/nni/examples/trials/mnist + codeDir: . gpuNum: 0 \ No newline at end of file diff --git a/examples/trials/pytorch_cifar10/config.yml b/examples/trials/pytorch_cifar10/config.yml index 102191315c..d813e1ce7c 100644 --- a/examples/trials/pytorch_cifar10/config.yml +++ b/examples/trials/pytorch_cifar10/config.yml @@ -2,10 +2,10 @@ authorName: default experimentName: example_pytorch_cifar10 trialConcurrency: 1 maxExecDuration: 100h -maxTrialNum: 1 +maxTrialNum: 10 #choice: local, remote trainingServicePlatform: local -searchSpacePath: ~/nni/examples/trials/pytorch_cifar10/search_space.json +searchSpacePath: search_space.json #choice: true, false useAnnotation: false tuner: @@ -16,5 +16,5 @@ tuner: optimize_mode: maximize trial: command: python3 main.py - codeDir: ~/nni/examples/trials/pytorch_cifar10 + codeDir: . gpuNum: 1 From b796da14cafd6599948a4b3af4df8cb76f14d9f7 Mon Sep 17 00:00:00 2001 From: Crysple Date: Thu, 20 Sep 2018 10:01:56 +0800 Subject: [PATCH 2/2] add document --- docs/GetStarted.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/GetStarted.md b/docs/GetStarted.md index 5239c1aa5e..63ef51b9f9 100644 --- a/docs/GetStarted.md +++ b/docs/GetStarted.md @@ -23,6 +23,13 @@ source install.sh +* __Install NNI for all users__ + + sudo pip3 install -v --user git+https://github.com/Microsoft/nni.git@v0.1 + + * Note: NNI will be installed to `/usr/share/nni` for all users and to `~/.local/nni` for current user. Respectively, the examples will be copied to `/usr/share/nni/examples` or `~/.local/nni/examples`. + * The following tutorial assumes that NNI is installed for current user. + ## **Quick start: run a customized experiment** An experiment is to run multiple trial jobs, each trial job tries a configuration which includes a specific neural architecture (or model) and hyper-parameter values. To run an experiment through NNI, you should: