This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Multi-phase support * update document (#92) * Edit readme.md * updated a word * Update GetStarted.md * Update GetStarted.md * refact readme, getstarted and write your trial md. * Update README.md * Update WriteYourTrial.md * Update WriteYourTrial.md * Update WriteYourTrial.md * Update WriteYourTrial.md * Fix nnictl bugs and add new feature (#75) * fix nnictl bug * fix nnictl create bug * add experiment status logic * add more information for nnictl * fix Evolution Tuner bug * refactor code * fix code in updater.py * fix nnictl --help * fix classArgs bug * update check response.status_code logic * Updates * remove Buffer warning (#100) * update readme in ga_squad * update readme * fix typo * Update README.md * Update README.md * Update README.md * Updates * updates * updates * updates * Add support for debugging mode * fix setup.py (#115) * Add DAG model configuration format for SQuAD example. * Explain config format for SQuAD QA model. * Add more detailed introduction about the evolution algorithm.
- Loading branch information
Showing
23 changed files
with
492 additions
and
123 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
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 |
---|---|---|
|
@@ -26,31 +26,40 @@ The tool dispatches and runs trial jobs that generated by tuning algorithms to s | |
* As a researcher and data scientist, you want to implement your own AutoML algorithms and compare with other algorithms | ||
* As a ML platform owner, you want to support AutoML in your platform | ||
|
||
# Getting Started with NNI | ||
# Get Started with NNI | ||
|
||
## **Installation** | ||
Install through python pip. (the current version only supports linux, nni on ubuntu 16.04 or newer has been well tested) | ||
* requirements: python >= 3.5, git, wget | ||
pip Installation Prerequisites | ||
* linux (ubuntu 16.04 or newer version has been well tested) | ||
* python >= 3.5 | ||
* git, wget | ||
|
||
``` | ||
pip3 install -v --user git+https://github.com/Microsoft/[email protected] | ||
source ~/.bashrc | ||
``` | ||
|
||
## **Quick start: run your first experiment at local** | ||
It only requires 3 steps to start an experiment on NNI: | ||
![](./docs/3_steps.jpg) | ||
|
||
|
||
NNI provides a set of examples in the package to get you familiar with the above process. In the following example [/examples/trials/mnist], we had already set up the configuration and updated the training codes for you. You can directly run the following command to start an experiment. | ||
|
||
## **Quick start: run an experiment at local** | ||
Requirements: | ||
* NNI installed on your local machine | ||
* tensorflow installed | ||
**NOTE**: The following example is an experiment built on TensorFlow, make sure you have **TensorFlow installed** before running the following command. | ||
|
||
Run the following command to create an experiment for [mnist] | ||
Try it out: | ||
```bash | ||
nnictl create --config ~/nni/examples/trials/mnist-annotation/config.yml | ||
nnictl create --config ~/nni/examples/trials/mnist/config.yml | ||
``` | ||
This command will start an experiment and a WebUI. The WebUI endpoint will be shown in the output of this command (for example, `http://localhost:8080`). Open this URL in your browser. You can analyze your experiment through WebUI, or browse trials' tensorboard. | ||
|
||
In the command output, find out the **Web UI url** and open it in your browser. You can analyze your experiment through WebUI, or browse trials' tensorboard. | ||
|
||
To learn more about how this example was constructed and how to analyze the experiement results in NNI Web UI, please refer to [How to write a trial run on NNI (MNIST as an example)?](docs/WriteYourTrial.md) | ||
|
||
## **Please refer to [Get Started Tutorial](docs/GetStarted.md) for more detailed information.** | ||
## More tutorials | ||
* [How to write a trial running on NNI (Mnist as an example)?](docs/WriteYourTrial.md) | ||
|
||
* [Tutorial of NNI python annotation.](tools/nni_annotation/README.md) | ||
* [Tuners supported by NNI.](src/sdk/pynni/nni/README.md) | ||
* [How to enable early stop (i.e. assessor) in an experiment?](docs/EnableAssessor.md) | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
**How to contribute** | ||
=== | ||
## Best practice for debug NNI source code | ||
|
||
For debugging NNI source code, your development environment should be under Ubuntu 16.04 (or above) system with python 3 and pip 3 installed, then follow the below steps. | ||
|
||
**1. Clone the source code** | ||
|
||
Run the command | ||
``` | ||
git clone https://github.com/Microsoft/nni.git | ||
``` | ||
to clone the source code | ||
|
||
**2. Prepare the debug environment and install dependencies** | ||
|
||
Change directory to the source code folder, then run the command | ||
``` | ||
make install-dependencies | ||
``` | ||
to install the dependent tools for the environment | ||
|
||
**3. Build source code** | ||
|
||
Run the command | ||
``` | ||
make build | ||
``` | ||
to build the source code | ||
|
||
**4. Install NNI to development environment** | ||
|
||
Run the command | ||
``` | ||
make dev-install | ||
``` | ||
to install the distribution content to development environment, and create cli scripts | ||
|
||
**5. Check if the environment is ready** | ||
|
||
Now, you can try to start an experiment to check if your environment is ready | ||
For example, run the command | ||
``` | ||
nnictl create --config ~/nni/examples/trials/mnist/config.yml | ||
``` | ||
And open web ui to check if everything is OK | ||
|
||
**6. Redeploy** | ||
|
||
After you change some code, just use **step 4** to rebuild your code, then the change will take effect immediately | ||
|
||
--- | ||
At last, wish you have a wonderful day. |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.