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.
Update Windows local mode doc (#1019)
Update Windows local mode doc
- Loading branch information
1 parent
a05db21
commit 2600395
Showing
5 changed files
with
152 additions
and
25 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
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,68 @@ | ||
# Windows Local Mode (experimental feature) | ||
Currently we only support local mode on Windows. Windows 10.1809 is well tested and recommended. | ||
|
||
## **Installation on Windows** | ||
|
||
**Anaconda python(64-bit) is highly recommended.** | ||
|
||
When you use powershell to run script for the first time, you need **run powershell as administrator** with this command: | ||
```bash | ||
Set-ExecutionPolicy -ExecutionPolicy Unrestricted | ||
``` | ||
|
||
* __Install NNI through pip__ | ||
|
||
Prerequisite: `python(64-bit) >= 3.5` | ||
```bash | ||
python -m pip install --upgrade nni | ||
``` | ||
|
||
* __Install NNI through source code__ | ||
|
||
Prerequisite: `python >=3.5`, `git`, `powershell` | ||
```bash | ||
git clone -b v0.7 https://github.com/Microsoft/nni.git | ||
cd nni | ||
powershell ./install.ps1 | ||
``` | ||
|
||
When these things are done, run the **config_windows.yml** file from your command line to start the experiment. | ||
|
||
```bash | ||
nnictl create --config nni/examples/trials/mnist/config_windows.yml | ||
``` | ||
For other examples you need to change trial command `python3` into `python` in each example yaml. | ||
|
||
## **Frequent met errors and answers** | ||
|
||
### simplejson failed when installing nni | ||
Make sure C++ 14.0 compiler installed. | ||
>builging 'simplejson._speedups' extension error: [WinError 3] The system cannot find the path specified | ||
### Fail to run powershell when install nni from source | ||
If you run powershell script for the first time and did not set the execution policies for executing the script, you will meet this error below. Try to run powershell as administrator with this command first: | ||
```bash | ||
Set-ExecutionPolicy -ExecutionPolicy Unrestricted | ||
``` | ||
>...cannot be loaded because running scripts is disabled on this system. | ||
### Trial failed with missing DLL in cmd or powershell | ||
This error caused by missing LIBIFCOREMD.DLL and LIBMMD.DLL and fail to install scipy. Anaconda python is highly recommended. If you use official python, make sure you have one of `Visual Studio`, `MATLAB`, `MKL` and `Intel Distribution for Python` installed on Windows before running nni. If not, try to install one of the softwares above or change to use Anaconda python(64-bit). | ||
>ImportError: DLL load failed | ||
### Trial failed on webUI | ||
Please check the trial log file stderr for more details. If there is no such file and nni is installed through pip, then you need to run powershell as administrator with this command first: | ||
```bash | ||
Set-ExecutionPolicy -ExecutionPolicy Unrestricted | ||
``` | ||
If there is a stderr file, please check out. Two possible cases are as follows: | ||
* forget to change the trial command `python3` into `python` in each experiment yaml. | ||
* forget to install experiment dependencies such as tensorflow, keras and so on. | ||
|
||
### Support tuner on Windows | ||
* SMAC is not supported | ||
* BOHB is supported, make sure C++ 14.0 compiler and dependencies installed successfully. | ||
|
||
Note: | ||
|
||
* If there is any error like `Segmentation fault`, please refer to [FAQ](FAQ.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
authorName: default | ||
experimentName: example_mnist | ||
trialConcurrency: 1 | ||
maxExecDuration: 1h | ||
maxTrialNum: 10 | ||
#choice: local, remote, pai | ||
trainingServicePlatform: local | ||
searchSpacePath: search_space.json | ||
#choice: true, false | ||
useAnnotation: false | ||
tuner: | ||
#choice: TPE, Random, Anneal, Evolution, BatchTuner, MetisTuner | ||
#SMAC (SMAC should be installed through nnictl) | ||
builtinTunerName: TPE | ||
classArgs: | ||
#choice: maximize, minimize | ||
optimize_mode: maximize | ||
trial: | ||
command: python mnist.py | ||
codeDir: . | ||
gpuNum: 0 |