Installation.md 5.18 KB
Newer Older
Chi Song's avatar
Chi Song committed
1
2
# 安装 NNI

Chi Song's avatar
Chi Song committed
3
当前支持在 Linux,Mac 和 Windows(本机模式)下安装。
Chi Song's avatar
Chi Song committed
4

Chi Song's avatar
Chi Song committed
5
## **在 Linux 和 Mac 下安装**
Chi Song's avatar
Chi Song committed
6
7
8
9
10
11
12
13
14
15
16

* **通过 pip 命令安装 NNI**
    
    先决条件:`python >= 3.5`
    
    ```bash
    python3 -m pip install --upgrade nni
    ```

* **通过源代码安装 NNI**
    
Chi Song's avatar
Chi Song committed
17
    先决条件:`python >=3.5`, `git`, `wget`
Chi Song's avatar
Chi Song committed
18
19
    
    ```bash
Chi Song's avatar
Chi Song committed
20
    git clone -b v0.7 https://github.com/Microsoft/nni.git
Chi Song's avatar
Chi Song committed
21
22
23
24
25
26
27
28
    cd nni
    ./install.sh
    ```

* **在 docker 映像中安装 NNI**
    
    也可将 NNI 安装到 docker 映像中。 参考[这里](../deployment/docker/README.md)来生成 NNI 的 Docker 映像。 也可通过此命令从 Docker Hub 中直接拉取 NNI 的映像 `docker pull msranni/nni:latest`

Chi Song's avatar
Chi Song committed
29
30
## **在 Windows 上安装**

Chi Song's avatar
Chi Song committed
31
32
33
34
35
在第一次使用 PowerShell 运行脚本时,需要用**使用管理员权限**运行如下命令: 

    bash
      Set-ExecutionPolicy -ExecutionPolicy Unrestricted 强烈推荐使用 Anaconda。

Chi Song's avatar
Chi Song committed
36
37
* **通过 pip 命令安装 NNI**
    
Chi Song's avatar
Chi Song committed
38
    先决条件:`python(64-bit) >= 3.5`
Chi Song's avatar
Chi Song committed
39
40
41
42
43
44
45
46
    
    ```bash
    python -m pip install --upgrade nni
    ```

* **通过源代码安装 NNI**
    
    先决条件:`python >=3.5`, `git`, `powershell`  
Chi Song's avatar
Chi Song committed
47
    可使用管理员或当前用户权限运行下列命令:
Chi Song's avatar
Chi Song committed
48
49
    
    ```bash
Chi Song's avatar
Chi Song committed
50
    git clone -b v0.7 https://github.com/Microsoft/nni.git
Chi Song's avatar
Chi Song committed
51
52
53
54
    cd nni
    powershell ./install.ps1
    ```

Chi Song's avatar
Chi Song committed
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
## **系统需求**

以下是 NNI 在 Linux 下的最低配置。 由于程序变更,NNI 的最低配置会有所更改。

|          | 最低配置                                  | 推荐配置                                      |
| -------- | ------------------------------------- | ----------------------------------------- |
| **操作系统** | Ubuntu 16.04 或以上版本                    | Ubuntu 16.04 或以上版本                        |
| **CPU**  | Intel® Core™ i3 或 AMD Phenom™ X3 8650 | Intel® Core™ i5 或 AMD Phenom™ II X3 或更高配置 |
| **GPU**  | NVIDIA® GeForce® GTX 460              | NVIDIA® GeForce® GTX 660 或更高配置            |
| **内存**   | 4 GB                                  | 6 GB                                      |
| **存储**   | 30 GB 可用的磁盘空间                         |                                           |
| **网络**   | 宽带连接                                  |                                           |
| **分辨率**  | 1024 x 768 以上                         |                                           |

以下是 NNI 在 MacOS 下的最低配置。 由于程序变更,NNI 的最低配置会有所更改。

|          | 最低配置                                               | 推荐配置                     |
| -------- | -------------------------------------------------- | ------------------------ |
| **操作系统** | macOS 10.14.1 (最新版本)                               | macOS 10.14.1 (最新版本)     |
| **CPU**  | Intel® Core™ i5-760 或更高                            | Intel® Core™ i7-4770 或更高 |
| **GPU**  | NVIDIA® GeForce® GT 750M 或 AMD Radeon™ R9 M290 或更高 | AMD Radeon™ R9 M395X 或更高 |
| **内存**   | 4 GB                                               | 8 GB                     |
| **存储**   | 70GB 可用空间及 7200 RPM 硬盘                             | 70GB 可用空间 SSD 硬盘         |
| **网络**   | 宽带连接                                               |                          |
| **分辨率**  | 1024 x 768 以上                                      |                          |

Chi Song's avatar
Chi Song committed
81
以下是 NNI 在 Windows 上的最低配置,推荐使用 Windows 10 1809 版。 由于程序变更,NNI 的最低配置会有所更改。
Chi Song's avatar
Chi Song committed
82
83
84
85
86
87
88
89
90
91
92

|          | 最低配置                                  | 推荐配置                                      |
| -------- | ------------------------------------- | ----------------------------------------- |
| **操作系统** | Windows 10                            | Windows 10                                |
| **CPU**  | Intel® Core™ i3 或 AMD Phenom™ X3 8650 | Intel® Core™ i5 或 AMD Phenom™ II X3 或更高配置 |
| **GPU**  | NVIDIA® GeForce® GTX 460              | NVIDIA® GeForce® GTX 660 或更高配置            |
| **内存**   | 4 GB                                  | 6 GB                                      |
| **存储**   | 30 GB 可用的磁盘空间                         |                                           |
| **网络**   | 宽带连接                                  |                                           |
| **分辨率**  | 1024 x 768 以上                         |                                           |

Chi Song's avatar
Chi Song committed
93
94
95
96
97
98
99
## 更多

* [概述](Overview.md)
* [使用命令行工具 nnictl](NNICTLDOC.md)
* [使用 NNIBoard](WebUI.md)
* [定制搜索空间](SearchSpaceSpec.md)
* [配置 Experiment](ExperimentConfig.md)
Chi Song's avatar
Chi Song committed
100
* [如何在本机运行 Experiment (支持多 GPU 卡)?](LocalMode.md)
Chi Song's avatar
Chi Song committed
101
102
103
104
* [如何在多机上运行 Experiment?](RemoteMachineMode.md)
* [如何在 OpenPAI 上运行 Experiment?](PAIMode.md)
* [如何通过 Kubeflow 在 Kubernetes 上运行 Experiment?](KubeflowMode.md)
* [如何通过 FrameworkController 在 Kubernetes 上运行 Experiment?](FrameworkControllerMode.md)