NNI安装後的验证01

上回我们安装完成後,如何确认安装的正确性呢?当然是下载实验样本来炸炸看。

首先,请先建一个子目录。
其次,复制一份含原始码的范例(最新版为 v2.4):

git clone -b v2.4 https://github.com/Microsoft/nni.git

修改设定档

  • 请先进入子目录 -- nni\examples\trials\mnist-pytorch
  • 打开设定档 -- config_detailed.yml,注释部分说明得很清楚。
  • 大略浏览一下第11行开始的 searchSpace ,感受一下。
  • 第25行,trialCommand: python3 mnist.py。python3 改为 python,因为Windows之故。
  • 第26行,trialCodeDirectory: . 。
  • 第27行,trialGpuNumber: 0,因为没安装NVIDIA GPU,所以CUDA数为0。
  • 第37行,optimize_mode: maximize。
  • 第42行,platform: local。因在本机执行。

开始执行MNIST范例

当修改检查完 config_detail.yml 设定档後。执行时要求WebUI在 port 8085作为进出埠,以免可能和现有的Web服务相冲突,如ASP.NET or Office等。可自行从IIS管理员的站台查看。

nnictl create --config config_detailed.yml -p 8085

若您有照着顺序无误的进行,恭喜您,一定会看到以下的讯息:(注意Web UI urls)

INFO:  Starting restful server...
INFO:  Successfully started Restful server!
INFO:  Starting experiment...
INFO:  Successfully started experiment!
------------------------------------------------------------------------------------
The experiment id is w6RM9AfU
The Web UI urls are: http://192.168.1.5:8085   http://172.26.32.1:8085   http://127.0.0.1:8085
------------------------------------------------------------------------------------

You can use these commands to get more information about the experiment
------------------------------------------------------------------------------------
         commands                       description
1. nnictl experiment show        show the information of experiments
2. nnictl trial ls               list all of trial jobs
3. nnictl top                    monitor the status of running experiments
4. nnictl log stderr             show stderr log content
5. nnictl log stdout             show stdout log content
6. nnictl stop                   stop an experiment
7. nnictl trial kill             kill a trial job by id
8. nnictl --help                 get help information about nnictl
------------------------------------------------------------------------------------
Command reference document https://nni.readthedocs.io/en/latest/Tutorial/Nnictl.html
------------------------------------------------------------------------------------

我们已指定port为8085,所以,请在浏览器网址,输入 127.0.0.1:8085,进入WebUI管理介面。此时,您将会很开心的看到管理介面。
若不幸发生错误,请将所有的 experiments关闭。再慢慢除错。

 nnictl stop --all

欲知後事如何,请看下回分解。


<<:  {DAY10} SQL查询语法2

>>:  Day-8:Rails的CRUD

Day 6 不免俗的来个 Hello World Docker

Docker 官方制作了一个有趣的 Hello-world docker 映像档,现在就来拉取下来跑...

前人种树,後人乘凉之自动产生程序码片段 (下)

前一篇介绍了如何在PyCharm 中客制化建立自动产生程序码的方式及看到了实际执行的效果 但。。。 ...

[Day16] 依据反馈改进初始对话流

从昨天的文章中,我们获得了数种进行绿野仙踪实验的方法 在今日的文章,假定我们已经获取用户的反馈。并...

[Day3] 引擎简介 - RPG Maker 引入插件

在工具列中的工具选项,找到插件管理器 点下去後跳出一个视窗 在这里就可以引入你想引入的插件啦 这边有...

[Day13] Storybook - MDX

MDX 是 Storybook 提供的另一种攥写文件的格式,MDX 结合了 Markdown 和 J...