forked from microsoft/nni
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
76 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,16 +22,29 @@ The tool dispatches and runs trial jobs generated by tuning algorithms to search | |
|
||
## **Install & Verify** | ||
|
||
**pip install** | ||
* We only support Linux in current stage, Ubuntu 16.04 or higher are tested and supported. Simply run the following `pip install` in an environment that has `python >= 3.5`, `git` and `wget`. | ||
|
||
**Install through pip** | ||
* We only support Linux in current stage, Ubuntu 16.04 or higher are tested and supported. Simply run the following `pip install` in an environment that has `python >= 3.5`. | ||
```bash | ||
python3 -m pip install --user nni | ||
``` | ||
python3 -m pip install -v --user git+https://github.com/Microsoft/[email protected] | ||
source ~/.bashrc | ||
|
||
**Install through source code** | ||
* We only support Linux (Ubuntu 16.04 or higher) in our current stage. | ||
* Run the following commands in an environment that has `python >= 3.5`, `git` and `wget`. | ||
```bash | ||
git clone -b v0.3.0 https://github.com/Microsoft/nni.git | ||
cd nni | ||
source install.sh | ||
``` | ||
|
||
**verify install** | ||
* The following example is an experiment built on TensorFlow, make sure you have `TensorFlow installed` before running it. | ||
**Verify install** | ||
* The following example is an experiment built on TensorFlow. Make sure you have **TensorFlow installed** before running it. | ||
* Download the examples via clone the source code. | ||
```bash | ||
cd ~ | ||
git clone -b v0.3.0 https://github.com/Microsoft/nni.git | ||
``` | ||
* Run the mnist example. | ||
```bash | ||
nnictl create --config ~/nni/examples/trials/mnist/config.yml | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,47 @@ | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
strategy: | ||
matrix: | ||
Python36: | ||
PYTHON_VERSION: '3.6' | ||
jobs: | ||
|
||
steps: | ||
- job: 'Install_through_pip' | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
strategy: | ||
matrix: | ||
Python36: | ||
PYTHON_VERSION: '3.6' | ||
|
||
steps: | ||
- script: python3 -m pip install --upgrade pip setuptools | ||
displayName: 'Install python tools' | ||
- script: | | ||
source install.sh | ||
displayName: 'Install dependencies' | ||
python3 -m pip install nni --user | ||
displayName: 'Install nni toolkit via pip' | ||
- script: | | ||
cd test | ||
export PATH=$HOME/.local/bin:$PATH | ||
python3 naive_test.py | ||
PATH=$HOME/.local/bin:$PATH python3 naive_test.py | ||
displayName: 'Integration tests' | ||
- script: | | ||
cd test | ||
export PATH=$HOME/.local/bin:$PATH | ||
python3 sdk_tuner_test.py | ||
PATH=$HOME/.local/bin:$PATH python3 sdk_tuner_test.py | ||
displayName: 'Built-in tuner tests' | ||
- job: 'Install_through_source_code' | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
strategy: | ||
matrix: | ||
Python36: | ||
PYTHON_VERSION: '3.6' | ||
|
||
steps: | ||
- script: python3 -m pip install --upgrade pip setuptools | ||
displayName: 'Install python tools' | ||
- script: | | ||
source install.sh | ||
displayName: 'Install nni toolkit via source code' | ||
- script: | | ||
cd test | ||
PATH=$HOME/.local/bin:$PATH python3 naive_test.py | ||
displayName: 'Integration tests' | ||
- script: | | ||
cd test | ||
PATH=$HOME/.local/bin:$PATH python3 sdk_tuner_test.py | ||
displayName: 'Built-in tuner tests' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
long_description = fh.read() | ||
|
||
setuptools.setup( | ||
name = 'nni-pkg', | ||
name = 'nni', | ||
version = '0.3.0', | ||
author = 'Microsoft NNI team', | ||
author_email = '[email protected]', | ||
|
@@ -22,12 +22,12 @@ | |
packages = setuptools.find_packages(), | ||
python_requires = '>=3.5', | ||
install_requires = [ | ||
'nni', | ||
'nni-sdk', | ||
'schema', | ||
'pyyaml', | ||
'psutil', | ||
'requests', | ||
'paramiko' | ||
'astor' | ||
], | ||
classifiers = [ | ||
'Programming Language :: Python :: 3', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,18 +8,16 @@ | |
git | ||
wget | ||
|
||
python pip should also be correctly installed. You could use "which pip" or "pip -V" to check in Linux. | ||
python pip should also be correctly installed. You could use "python3 -m pip -v" to check in Linux. | ||
|
||
* __Install NNI through pip__ | ||
|
||
pip3 install -v --user git+https://github.com/Microsoft/[email protected] | ||
source ~/.bashrc | ||
python3 -m pip install --user nni | ||
|
||
* __Install NNI through source code__ | ||
|
||
git clone -b v0.2 https://github.com/Microsoft/nni.git | ||
git clone -b v0.3.0 https://github.com/Microsoft/nni.git | ||
cd nni | ||
chmod +x install.sh | ||
source install.sh | ||
|
||
## Further reading | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pip3 install numpy | ||
python3 -m pip install numpy | ||
sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran | ||
sudo pip3 install scipy | ||
sudo pip3 install sklearn | ||
sudo python3 -m pip install scipy | ||
sudo python3 -m pip install sklearn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ def run(self): | |
subprocess.run(['make', 'pip-install'], check=True) | ||
|
||
setup( | ||
name = 'NNI', | ||
name = 'nni', | ||
version = '0.3.0', | ||
author = 'Microsoft NNI Team', | ||
author_email = '[email protected]', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters