README.md 1.08 KB
Newer Older
Zejun Lin's avatar
Zejun Lin committed
1
## NNI CTL
2
The NNI CTL module is used to control Neural Network Intelligence, including start a new experiment, stop an experiment and update an experiment etc.
Zejun Lin's avatar
Zejun Lin committed
3
4
## Environment

Deshui Yu's avatar
Deshui Yu committed
5
6
```
Ubuntu 16.04 or other Linux OS
7
python >= 3.6
Deshui Yu's avatar
Deshui Yu committed
8
9
```

Zejun Lin's avatar
Zejun Lin committed
10
## Installation
Deshui Yu's avatar
Deshui Yu committed
11

12
1. Enter tools directory
Chi Song's avatar
Chi Song committed
13
14

1. Use pip to install packages
Zejun Lin's avatar
Zejun Lin committed
15
    * Install for current user:
Deshui Yu's avatar
Deshui Yu committed
16

Chi Song's avatar
Chi Song committed
17
18
19
      ```bash
      python3 -m pip install --user -e .
      ```
Deshui Yu's avatar
Deshui Yu committed
20

Zejun Lin's avatar
Zejun Lin committed
21
    * Install for all users:
Deshui Yu's avatar
Deshui Yu committed
22

Chi Song's avatar
Chi Song committed
23
24
25
      ```bash
      python3 -m pip install -e .
      ```
Deshui Yu's avatar
Deshui Yu committed
26

27
1. Change the mode of nnictl file
Chi Song's avatar
Chi Song committed
28
29

    ```bash
Deshui Yu's avatar
Deshui Yu committed
30
    chmod +x ./nnictl
Chi Song's avatar
Chi Song committed
31
32
33
    ```

1. Add nnictl to your PATH system environment variable.
34

Zejun Lin's avatar
Zejun Lin committed
35
    * You could use `export` command to set PATH variable temporary.
36
37

          export PATH={your nnictl path}:$PATH
Deshui Yu's avatar
Deshui Yu committed
38

Zejun Lin's avatar
Zejun Lin committed
39
    * Or you could edit your `/etc/profile` file.
Chi Song's avatar
Chi Song committed
40
41
42
43
44
45
46
47
48
49
50
51
52

      ```txt
      1.sudo vim /etc/profile

      2.At the end of the file, add

            export PATH={your nnictl path}:$PATH

      save and exit.

      3.source /etc/profile
      ```

Zejun Lin's avatar
Zejun Lin committed
53
54
## To start using NNI CTL

Deshui Yu's avatar
Deshui Yu committed
55
56
please reference to the [NNI CTL document].

57
[NNI CTL document]: ../docs/en_US/Nnictl.md