Installation.md 5.07 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
20
    git clone -b v0.6 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
## **在 Windows 上安装**

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

* **通过源代码安装 NNI**
    
    先决条件:`python >=3.5`, `git`, `powershell`  
    在第一次使用 PowerShell 时,需要作为管理员运行此命令:
    
    ```bash
    Set-ExecutionPolicy -ExecutionPolicy Unrestricted
    ```
    
    然后可以使用管理员或当前用户安装 NNI:
    
    ```bash
    git clone https://github.com/Microsoft/nni.git
    cd nni
    powershell ./install.ps1
    ```

Chi Song's avatar
Chi Song committed
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
81
## **系统需求**

以下是 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
82
83
84
85
86
87
88
89
90
91
92
93
以下是 NNI 在 Windows 下的最低配置。 由于程序变更,NNI 的最低配置会有所更改。

|          | 最低配置                                  | 推荐配置                                      |
| -------- | ------------------------------------- | ----------------------------------------- |
| **操作系统** | 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
94
95
96
97
98
99
100
## 更多

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