"ts/nni_manager/package.json" did not exist on "50697a2ff5e710fe87cf21aed8565a413b5043d1"
Installation.md 5.06 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.8 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
推荐使用 Anaconda 或 Miniconda。
Chi Song's avatar
Chi Song committed
32

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

* **通过源代码安装 NNI**
    
Chi Song's avatar
Chi Song committed
43
44
    先决条件:`python >=3.5`, `git`, `PowerShell`
    
Chi Song's avatar
Chi Song committed
45
    ```bash
Chi Song's avatar
Chi Song committed
46
    git clone -b v0.8 https://github.com/Microsoft/nni.git
Chi Song's avatar
Chi Song committed
47
    cd nni
Chi Song's avatar
Chi Song committed
48
    powershell -ExecutionPolicy Bypass -file install.ps1
Chi Song's avatar
Chi Song committed
49
50
    ```

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

以下是 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
77
以下是 NNI 在 Windows 上的最低配置,推荐使用 Windows 10 1809 版。 由于程序变更,NNI 的最低配置会有所更改。
Chi Song's avatar
Chi Song committed
78
79
80
81
82
83
84
85
86
87
88

|          | 最低配置                                  | 推荐配置                                      |
| -------- | ------------------------------------- | ----------------------------------------- |
| **操作系统** | 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
89
90
## 更多

Chi Song's avatar
Chi Song committed
91
* [概述](../Overview.md)
Chi Song's avatar
Chi Song committed
92
* [使用命令行工具 nnictl](Nnictl.md)
Chi Song's avatar
Chi Song committed
93
94
95
* [使用 NNIBoard](WebUI.md)
* [定制搜索空间](SearchSpaceSpec.md)
* [配置 Experiment](ExperimentConfig.md)
Chi Song's avatar
Chi Song committed
96
97
98
99
100
* [如何在本机运行 Experiment (支持多 GPU 卡)?](../TrainingService/LocalMode.md)
* [如何在多机上运行 Experiment?](../TrainingService/RemoteMachineMode.md)
* [如何在 OpenPAI 上运行 Experiment?](../TrainingService/PaiMode.md)
* [如何通过 Kubeflow 在 Kubernetes 上运行 Experiment?](../TrainingService/KubeflowMode.md)
* [如何通过 FrameworkController 在 Kubernetes 上运行 Experiment?](../TrainingService/FrameworkControllerMode.md)