NniOnWindows.md 1.66 KB
Newer Older
1
# Windows 上的 NNI(实验阶段的功能)
Chi Song's avatar
Chi Song committed
2

3
当前 Windows 上支持本机、远程和 OpenPAI 模式。 推荐 Windows 10 的 1809 版,其经过了测试。
Chi Song's avatar
Chi Song committed
4
5
6

## **在 Windows 上安装**

Chi Song's avatar
Chi Song committed
7
详细信息参考[安装文档](Installation.md)
Chi Song's avatar
Chi Song committed
8

Chi Song's avatar
Chi Song committed
9
完成操作后,使用 **config_windows.yml** 配置来开始 Experiment 进行验证。
Chi Song's avatar
Chi Song committed
10
11

```bash
12
nnictl create --config nni\examples\trials\mnist\config_windows.yml
Chi Song's avatar
Chi Song committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
```

同样,其它示例的 YAML 配置中也需将 Trial 命令的 `python3` 替换为 `python`

## **常见问答**

### 安装 NNI 时出现 simplejson 错误

确保安装了 C++ 14.0 编译器。

> building 'simplejson._speedups' extension error: [WinError 3] The system cannot find the path specified

### 在命令行或 PowerShell 中,Trial 因为缺少 DLL 而失败

Chi Song's avatar
Chi Song committed
27
此错误因为缺少 LIBIFCOREMD.DLL 和 LIBMMD.DLL 文件,且 SciPy 安装失败。 使用 Anaconda 或 Miniconda 和 Python(64位)可解决。
Chi Song's avatar
Chi Song committed
28
29
30
31
32

> ImportError: DLL load failed

### Web 界面上的 Trial 错误

Chi Song's avatar
Chi Song committed
33
检查 Trial 日志文件来了解详情。
Chi Song's avatar
Chi Song committed
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49

如果存在 stderr 文件,也需要查看其内容。 可能的错误情况包括:

* 忘记将 Experiment 配置的 Trial 命令中的 `python3` 改为 `python`
* 忘记安装 Experiment 的依赖,如 TensorFlow,Keras 等。

### 无法在 Windows 上使用 BOHB

确保安装了 C ++ 14.0 编译器然后尝试运行 `nnictl package install --name=BOHB` 来安装依赖项。

### Windows 上不支持的 Tuner

当前不支持 SMAC,原因可参考[此问题](https://github.com/automl/SMAC3/issues/483)

注意:

Chi Song's avatar
Chi Song committed
50
* 如果遇到如 `Segmentation fault` 这样的任何错误,参考[常见问题](FAQ.md)