experiment_config.rst 13 KB
Newer Older
liuzhe-lz's avatar
liuzhe-lz committed
1
2
3
4
5
6
7
===========================
Experiment Config Reference
===========================

Notes
=====

liuzhe-lz's avatar
liuzhe-lz committed
8
9
1. This document list field names is ``camelCase``.
   They need to be converted to ``snake_case`` for Python library ``nni.experiment``.
liuzhe-lz's avatar
liuzhe-lz committed
10

liuzhe-lz's avatar
liuzhe-lz committed
11
2. In this document type of fields are formatted as `Python type hint <https://docs.python.org/3.10/library/typing.html>`__.
liuzhe-lz's avatar
liuzhe-lz committed
12
13
   Therefore JSON objects are called `dict` and arrays are called `list`.

liuzhe-lz's avatar
liuzhe-lz committed
14
.. _path:
liuzhe-lz's avatar
liuzhe-lz committed
15
16

3. Some fields take a path to file or directory.
liuzhe-lz's avatar
liuzhe-lz committed
17
   Unless otherwise noted, both absolute path and relative path are supported, and ``~`` will be expanded to home directory.
liuzhe-lz's avatar
liuzhe-lz committed
18
19
20
21
22
23
24

   - When written in YAML file, relative paths are relative to the directory containing that file.
   - When assigned in Python code, relative paths are relative to current working directory.
   - All relative paths are converted to absolute when loading YAML file into Python class, and when saving Python class to YAML file.

4. Setting a field to ``None`` or ``null`` is equivalent to not setting the field.

liuzhe-lz's avatar
liuzhe-lz committed
25
26
27
28
29
30
31
32
33
34
35
36
37
Examples
========

Local Mode
^^^^^^^^^^

.. code-block:: yaml

    experimentName: MNIST
    searchSpaceFile: search_space.json
    trialCommand: python mnist.py
    trialCodeDirectory: .
    trialGpuNumber: 1
liuzhe-lz's avatar
liuzhe-lz committed
38
    trialConcurrency: 2
liuzhe-lz's avatar
liuzhe-lz committed
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
    maxExperimentDuration: 24h
    maxTrialNumber: 100
    tuner:
      name: TPE
      classArgs:
        optimize_mode: maximize
    trainingService:
      platform: local
      useActiveGpu: True

Local Mode (Inline Search Space)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. code-block:: yaml

    searchSpace:
      batch_size:
        _type: choice
        _value: [16, 32, 64]
      learning_rate:
        _type: loguniform
        _value: [0.0001, 0.1]
    trialCommand: python mnist.py
    trialGpuNumber: 1
liuzhe-lz's avatar
liuzhe-lz committed
63
    trialConcurrency: 2
liuzhe-lz's avatar
liuzhe-lz committed
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
    tuner:
      name: TPE
      classArgs:
        optimize_mode: maximize
    trainingService:
      platform: local
      useActiveGpu: True

Remote Mode
^^^^^^^^^^^

.. code-block:: yaml

    experimentName: MNIST
    searchSpaceFile: search_space.json
    trialCommand: python mnist.py
    trialCodeDirectory: .
    trialGpuNumber: 1
liuzhe-lz's avatar
liuzhe-lz committed
82
    trialConcurrency: 2
liuzhe-lz's avatar
liuzhe-lz committed
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
    maxExperimentDuration: 24h
    maxTrialNumber: 100
    tuner:
      name: TPE
      classArgs:
        optimize_mode: maximize
    trainingService:
      platform: remote
      machineList:
        - host: 11.22.33.44
          user: alice
          password: xxxxx
        - host: my.domain.com
          user: bob
          sshKeyFile: ~/.ssh/id_rsa

Reference
=========

liuzhe-lz's avatar
liuzhe-lz committed
102
ExperimentConfig
liuzhe-lz's avatar
liuzhe-lz committed
103
^^^^^^^^^^^^^^^^
liuzhe-lz's avatar
liuzhe-lz committed
104

liuzhe-lz's avatar
liuzhe-lz committed
105
106
experimentName
--------------
liuzhe-lz's avatar
liuzhe-lz committed
107
108
109
110
111
112

Mnemonic name of the experiment. This will be shown in web UI and nnictl.

type: ``Optional[str]``


liuzhe-lz's avatar
liuzhe-lz committed
113
114
searchSpaceFile
---------------
liuzhe-lz's avatar
liuzhe-lz committed
115
116
117
118
119

Path_ to a JSON file containing the search space.

type: ``Optional[str]``

liuzhe-lz's avatar
liuzhe-lz committed
120
Search space format is determined by tuner. Common format for built-in tuners is documeted `here <../Tutorial/SearchSpaceSpec.rst>`__.
liuzhe-lz's avatar
liuzhe-lz committed
121

liuzhe-lz's avatar
liuzhe-lz committed
122
Mutually exclusive to `searchSpace`_.
liuzhe-lz's avatar
liuzhe-lz committed
123
124


liuzhe-lz's avatar
liuzhe-lz committed
125
126
searchSpace
-----------
liuzhe-lz's avatar
liuzhe-lz committed
127
128
129

Search space object.

liuzhe-lz's avatar
liuzhe-lz committed
130
type: ``Optional[JSON]``
liuzhe-lz's avatar
liuzhe-lz committed
131

liuzhe-lz's avatar
liuzhe-lz committed
132
The format is determined by tuner. Common format for built-in tuners is documented `here <../Tutorial/SearchSpaceSpec.rst>`__.
liuzhe-lz's avatar
liuzhe-lz committed
133
134
135

Note that ``None`` means "no such field" so empty search space should be written as ``{}``.

liuzhe-lz's avatar
liuzhe-lz committed
136
Mutually exclusive to `searchSpaceFile`_.
liuzhe-lz's avatar
liuzhe-lz committed
137
138


liuzhe-lz's avatar
liuzhe-lz committed
139
140
trialCommand
------------
liuzhe-lz's avatar
liuzhe-lz committed
141

liuzhe-lz's avatar
liuzhe-lz committed
142
Command to launch trial.
liuzhe-lz's avatar
liuzhe-lz committed
143
144
145

type: ``str``

liuzhe-lz's avatar
liuzhe-lz committed
146
The command will be executed in bash on Linux and macOS, and in PowerShell on Windows.
liuzhe-lz's avatar
liuzhe-lz committed
147
148


liuzhe-lz's avatar
liuzhe-lz committed
149
150
trialCodeDirectory
------------------
liuzhe-lz's avatar
liuzhe-lz committed
151
152
153
154
155
156
157

`Path`_ to the directory containing trial source files.

type: ``str``

default: ``"."``

liuzhe-lz's avatar
liuzhe-lz committed
158
159
All files in this directory will be sent to training machine, unless there is a ``.nniignore`` file.
(See nniignore section of `quick start guide <../Tutorial/QuickStart.rst>`__ for details.)
liuzhe-lz's avatar
liuzhe-lz committed
160
161


liuzhe-lz's avatar
liuzhe-lz committed
162
163
trialConcurrency
----------------
liuzhe-lz's avatar
liuzhe-lz committed
164
165
166
167
168
169
170
171

Specify how many trials should be run concurrently.

type: ``int``

The real concurrency also depends on hardware resources and may be less than this value.


liuzhe-lz's avatar
liuzhe-lz committed
172
173
trialGpuNumber
--------------
liuzhe-lz's avatar
liuzhe-lz committed
174
175
176
177
178

Number of GPUs used by each trial.

type: ``Optional[int]``

liuzhe-lz's avatar
liuzhe-lz committed
179
180
181
This field might have slightly different meaning for various training services,
especially when set to ``0`` or ``None``.
See training service's document for details.
liuzhe-lz's avatar
liuzhe-lz committed
182

liuzhe-lz's avatar
liuzhe-lz committed
183
184
185
In local mode, setting the field to zero will prevent trials from accessing GPU (by empty ``CUDA_VISIBLE_DEVICES``).
And when set to ``None``, trials will be created and scheduled as if they did not use GPU,
but they can still use all GPU resources if they want.
liuzhe-lz's avatar
liuzhe-lz committed
186
187


liuzhe-lz's avatar
liuzhe-lz committed
188
189
maxExperimentDuration
---------------------
liuzhe-lz's avatar
liuzhe-lz committed
190
191
192
193
194
195
196
197
198
199
200
201

Limit the duration of this experiment if specified.

type: ``Optional[str]``

format: ``number + s|m|h|d``

examples: ``"10m"``, ``"0.5h"``

When time runs out, the experiment will stop creating trials but continue to serve web UI.


liuzhe-lz's avatar
liuzhe-lz committed
202
203
maxTrialNumber
--------------
liuzhe-lz's avatar
liuzhe-lz committed
204
205
206
207
208
209
210
211

Limit the number of trials to create if specified.

type: ``Optional[int]``

When the budget runs out, the experiment will stop creating trials but continue to serve web UI.


liuzhe-lz's avatar
liuzhe-lz committed
212
213
nniManagerIp
------------
liuzhe-lz's avatar
liuzhe-lz committed
214
215
216
217
218

IP of current machine, used by training machines to access NNI manager. Not used in local mode.

type: ``Optional[str]``

liuzhe-lz's avatar
liuzhe-lz committed
219
If not specified, IPv4 address of ``eth0`` will be used.
liuzhe-lz's avatar
liuzhe-lz committed
220

liuzhe-lz's avatar
liuzhe-lz committed
221
Must be set on Windows and systems using predictable network interface name, except for local mode.
liuzhe-lz's avatar
liuzhe-lz committed
222
223


liuzhe-lz's avatar
liuzhe-lz committed
224
225
226
227
useAnnotation
-------------

Enable `annotation <../Tutorial/AnnotationSpec.rst>`__.
liuzhe-lz's avatar
liuzhe-lz committed
228
229
230
231
232

type: ``bool``

default: ``False``

liuzhe-lz's avatar
liuzhe-lz committed
233
When using annotation, `searchSpace`_ and `searchSpaceFile`_ should not be specified manually.
liuzhe-lz's avatar
liuzhe-lz committed
234
235
236
237
238
239
240
241
242
243
244
245
246
247


debug
-----

Enable debug mode.

type: ``bool``

default: ``False``

When enabled, logging will be more verbose and some internal validation will be loosen.


liuzhe-lz's avatar
liuzhe-lz committed
248
249
logLevel
--------
liuzhe-lz's avatar
liuzhe-lz committed
250
251
252
253
254
255
256
257
258
259
260
261
262

Set log level of whole system.

type: ``Optional[str]``

values: ``"trace"``, ``"debug"``, ``"info"``, ``"warning"``, ``"error"``, ``"fatal"``

Defaults to "info" or "debug", depending on `debug`_ option.

Most modules of NNI will be affected by this value, including NNI manager, tuner, training service, etc.

The exception is trial, whose logging level is directly managed by trial code.

liuzhe-lz's avatar
liuzhe-lz committed
263
For Python modules, "trace" acts as logging level 0 and "fatal" acts as ``logging.CRITICAL``.
liuzhe-lz's avatar
liuzhe-lz committed
264
265


liuzhe-lz's avatar
liuzhe-lz committed
266
267
experimentWorkingDirectory
--------------------------
liuzhe-lz's avatar
liuzhe-lz committed
268

liuzhe-lz's avatar
liuzhe-lz committed
269
Specify the `directory <path>`_ to place log, checkpoint, metadata, and other run-time stuff.
liuzhe-lz's avatar
liuzhe-lz committed
270
271
272
273
274
275
276
277

type: ``Optional[str]``

By default uses ``~/nni-experiments``.

NNI will create a subdirectory named by experiment ID, so it is safe to use same directory for multiple experiments.


liuzhe-lz's avatar
liuzhe-lz committed
278
279
tunerGpuIndices
---------------
liuzhe-lz's avatar
liuzhe-lz committed
280
281
282

Limit the GPUs visible to tuner, assessor, and advisor.

liuzhe-lz's avatar
liuzhe-lz committed
283
type: ``Optional[list[int] | str]``
liuzhe-lz's avatar
liuzhe-lz committed
284
285
286
287
288
289
290
291
292

This will be the ``CUDA_VISIBLE_DEVICES`` environment variable of tuner process.

Because tuner, assessor, and advisor run in same process, this option will affect them all.


tuner
-----

liuzhe-lz's avatar
liuzhe-lz committed
293
Specify the tuner.
liuzhe-lz's avatar
liuzhe-lz committed
294
295
296
297
298
299
300

type: Optional `AlgorithmConfig`_


assessor
--------

liuzhe-lz's avatar
liuzhe-lz committed
301
Specify the assessor.
liuzhe-lz's avatar
liuzhe-lz committed
302
303
304
305
306
307
308

type: Optional `AlgorithmConfig`_


advisor
-------

liuzhe-lz's avatar
liuzhe-lz committed
309
Specify the advisor.
liuzhe-lz's avatar
liuzhe-lz committed
310
311
312
313

type: Optional `AlgorithmConfig`_


liuzhe-lz's avatar
liuzhe-lz committed
314
315
trainingService
---------------
liuzhe-lz's avatar
liuzhe-lz committed
316

liuzhe-lz's avatar
liuzhe-lz committed
317
Specify `training service <../TrainingService/Overview.rst>`__.
liuzhe-lz's avatar
liuzhe-lz committed
318
319
320
321
322

type: `TrainingServiceConfig`_


AlgorithmConfig
liuzhe-lz's avatar
liuzhe-lz committed
323
324
325
326
327
328
329
330
331
^^^^^^^^^^^^^^^

``AlgorithmConfig`` describes a tuner / assessor / advisor algorithm.

For custom algorithms, there are two ways to describe them:

  1. `Register the algorithm <../Tuner/InstallCustomizedTuner.rst>`__ to use it like built-in. (preferred)

  2. Specify code directory and class name directly.
liuzhe-lz's avatar
liuzhe-lz committed
332
333
334
335
336


name
----

liuzhe-lz's avatar
liuzhe-lz committed
337
Name of built-in or registered algorithm.
liuzhe-lz's avatar
liuzhe-lz committed
338

liuzhe-lz's avatar
liuzhe-lz committed
339
type: ``str`` for built-in and registered algorithm, ``None`` for other custom algorithm
liuzhe-lz's avatar
liuzhe-lz committed
340
341


liuzhe-lz's avatar
liuzhe-lz committed
342
343
className
---------
liuzhe-lz's avatar
liuzhe-lz committed
344

liuzhe-lz's avatar
liuzhe-lz committed
345
Qualified class name of not registered custom algorithm.
liuzhe-lz's avatar
liuzhe-lz committed
346

liuzhe-lz's avatar
liuzhe-lz committed
347
type: ``None`` for built-in and registered algorithm, ``str`` for other custom algorithm
liuzhe-lz's avatar
liuzhe-lz committed
348
349
350
351

example: ``"my_tuner.MyTuner"``


liuzhe-lz's avatar
liuzhe-lz committed
352
353
codeDirectory
-------------
liuzhe-lz's avatar
liuzhe-lz committed
354
355
356

`Path`_ to directory containing the custom algorithm class.

liuzhe-lz's avatar
liuzhe-lz committed
357
type: ``None`` for built-in and registered algorithm, ``str`` for other custom algorithm
liuzhe-lz's avatar
liuzhe-lz committed
358
359


liuzhe-lz's avatar
liuzhe-lz committed
360
361
classArgs
---------
liuzhe-lz's avatar
liuzhe-lz committed
362
363
364
365
366
367
368
369
370

Keyword arguments passed to algorithm class' constructor.

type: ``Optional[dict[str, Any]]``

See algorithm's document for supported value.


TrainingServiceConfig
liuzhe-lz's avatar
liuzhe-lz committed
371
^^^^^^^^^^^^^^^^^^^^^
liuzhe-lz's avatar
liuzhe-lz committed
372
373
374

One of following:

liuzhe-lz's avatar
liuzhe-lz committed
375
376
377
378
379
380
- `LocalConfig`_
- `RemoteConfig`_
- `OpenpaiConfig <openpai-class>`_
- `AmlConfig`_

For other training services, we suggest to use `v1 config schema <../Tutorial/ExperimentConfig.rst>`_ for now.
liuzhe-lz's avatar
liuzhe-lz committed
381
382
383


LocalConfig
liuzhe-lz's avatar
liuzhe-lz committed
384
^^^^^^^^^^^
liuzhe-lz's avatar
liuzhe-lz committed
385

liuzhe-lz's avatar
liuzhe-lz committed
386
Detailed `here <../TrainingService/LocalMode.rst>`__.
liuzhe-lz's avatar
liuzhe-lz committed
387
388
389
390
391
392
393

platform
--------

Constant string ``"local"``.


liuzhe-lz's avatar
liuzhe-lz committed
394
395
useActiveGpu
------------
liuzhe-lz's avatar
liuzhe-lz committed
396
397
398

Specify whether NNI should submit trials to GPUs occupied by other tasks.

liuzhe-lz's avatar
liuzhe-lz committed
399
type: ``Optional[bool]``
liuzhe-lz's avatar
liuzhe-lz committed
400

liuzhe-lz's avatar
liuzhe-lz committed
401
Must be set when `trialGpuNumber` greater than zero.
liuzhe-lz's avatar
liuzhe-lz committed
402

liuzhe-lz's avatar
liuzhe-lz committed
403
If your are using desktop system with GUI, set this to ``True``.
liuzhe-lz's avatar
liuzhe-lz committed
404
405


liuzhe-lz's avatar
liuzhe-lz committed
406
407
maxTrialNumberPerGpu
---------------------
liuzhe-lz's avatar
liuzhe-lz committed
408
409
410
411
412
413
414
415

Specify how many trials can share one GPU.

type: ``int``

default: ``1``


liuzhe-lz's avatar
liuzhe-lz committed
416
417
gpuIndices
----------
liuzhe-lz's avatar
liuzhe-lz committed
418
419
420

Limit the GPUs visible to trial processes.

liuzhe-lz's avatar
liuzhe-lz committed
421
type: ``Optional[list[int] | str]``
liuzhe-lz's avatar
liuzhe-lz committed
422

liuzhe-lz's avatar
liuzhe-lz committed
423
If `trialGpuNumber`_ is less than the length of this value, only a subset will be visible to each trial.
liuzhe-lz's avatar
liuzhe-lz committed
424
425
426
427
428

This will be used as ``CUDA_VISIBLE_DEVICES`` environment variable.


RemoteConfig
liuzhe-lz's avatar
liuzhe-lz committed
429
^^^^^^^^^^^^
liuzhe-lz's avatar
liuzhe-lz committed
430

liuzhe-lz's avatar
liuzhe-lz committed
431
Detailed `here <../TrainingService/RemoteMachineMode.rst>`__.
liuzhe-lz's avatar
liuzhe-lz committed
432
433
434
435
436
437
438

platform
--------

Constant string ``"remote"``.


liuzhe-lz's avatar
liuzhe-lz committed
439
440
machineList
-----------
liuzhe-lz's avatar
liuzhe-lz committed
441
442
443
444
445
446

List of training machines.

type: list of `RemoteMachineConfig`_


liuzhe-lz's avatar
liuzhe-lz committed
447
448
reuseMode
---------
liuzhe-lz's avatar
liuzhe-lz committed
449

liuzhe-lz's avatar
liuzhe-lz committed
450
Enable reuse `mode <../Tutorial/ExperimentConfig.rst#reuse>`__.
liuzhe-lz's avatar
liuzhe-lz committed
451

liuzhe-lz's avatar
liuzhe-lz committed
452
type: ``bool``
liuzhe-lz's avatar
liuzhe-lz committed
453
454
455


RemoteMachineConfig
liuzhe-lz's avatar
liuzhe-lz committed
456
^^^^^^^^^^^^^^^^^^^
liuzhe-lz's avatar
liuzhe-lz committed
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472

host
----

IP or hostname (domain name) of the machine.

type: ``str``


port
----

SSH service port.

type: ``int``

liuzhe-lz's avatar
liuzhe-lz committed
473
default: ``22``
liuzhe-lz's avatar
liuzhe-lz committed
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490


user
----

Login user name.

type: ``str``


password
--------

Login password.

type: ``Optional[str]``

liuzhe-lz's avatar
liuzhe-lz committed
491
If not specified, `sshKeyFile`_ will be used instead.
liuzhe-lz's avatar
liuzhe-lz committed
492
493


liuzhe-lz's avatar
liuzhe-lz committed
494
495
sshKeyFile
----------
liuzhe-lz's avatar
liuzhe-lz committed
496

liuzhe-lz's avatar
liuzhe-lz committed
497
`Path`_ to sshKeyFile (identity file).
liuzhe-lz's avatar
liuzhe-lz committed
498

liuzhe-lz's avatar
liuzhe-lz committed
499
type: ``Optional[str]``
liuzhe-lz's avatar
liuzhe-lz committed
500
501
502
503

Only used when `password`_ is not specified.


liuzhe-lz's avatar
liuzhe-lz committed
504
505
sshPassphrase
-------------
liuzhe-lz's avatar
liuzhe-lz committed
506
507
508
509
510
511

Passphrase of SSH identity file.

type: ``Optional[str]``


liuzhe-lz's avatar
liuzhe-lz committed
512
513
useActiveGpu
------------
liuzhe-lz's avatar
liuzhe-lz committed
514
515
516
517
518

Specify whether NNI should submit trials to GPUs occupied by other tasks.

type: ``bool``

liuzhe-lz's avatar
liuzhe-lz committed
519
520
default: ``False``

liuzhe-lz's avatar
liuzhe-lz committed
521

liuzhe-lz's avatar
liuzhe-lz committed
522
523
maxTrialNumberPerGpu
--------------------
liuzhe-lz's avatar
liuzhe-lz committed
524
525
526
527
528
529
530
531

Specify how many trials can share one GPU.

type: ``int``

default: ``1``


liuzhe-lz's avatar
liuzhe-lz committed
532
533
gpuIndices
----------
liuzhe-lz's avatar
liuzhe-lz committed
534
535
536

Limit the GPUs visible to trial processes.

liuzhe-lz's avatar
liuzhe-lz committed
537
type: ``Optional[list[int] | str]``
liuzhe-lz's avatar
liuzhe-lz committed
538

liuzhe-lz's avatar
liuzhe-lz committed
539
If `trialGpuNumber`_ is less than the length of this value, only a subset will be visible to each trial.
liuzhe-lz's avatar
liuzhe-lz committed
540
541
542
543

This will be used as ``CUDA_VISIBLE_DEVICES`` environment variable.


544
pythonPath
liuzhe-lz's avatar
liuzhe-lz committed
545
-------------------
liuzhe-lz's avatar
liuzhe-lz committed
546

547
548
549
550
551
552
553
Specify a python environment, this path will insert at the front of PATH. Here are some examples: 
   - (linux) pythonPath: /opt/python3.7/bin
   - (windows) pythonPath: C:/Python37

Notice: If you are working on anaconda,there are some difference. You have to add "../script" and "../Library/bin" to this and separated by ";" on windows, example as below:
   - (linux anaconda) pythonPath: /home/yourname/anaconda3/envs/myenv/bin/
   - (windows anaconda) pythonPath: C:/Users/yourname/.conda/envs/myenv;C:/Users/yourname/.conda/envs/myenv/Scripts;C:/Users/yourname/.conda/envs/myenv/Library/bin
liuzhe-lz's avatar
liuzhe-lz committed
554
555
556
557
558

type: ``Optional[str]``

This is useful if preparing steps vary for different machines.

liuzhe-lz's avatar
liuzhe-lz committed
559
.. _openpai-class:
liuzhe-lz's avatar
liuzhe-lz committed
560

liuzhe-lz's avatar
liuzhe-lz committed
561
562
OpenpaiConfig
^^^^^^^^^^^^^
liuzhe-lz's avatar
liuzhe-lz committed
563

liuzhe-lz's avatar
liuzhe-lz committed
564
Detailed `here <../TrainingService/PaiMode.rst>`__.
liuzhe-lz's avatar
liuzhe-lz committed
565
566
567
568
569
570
571
572
573
574
575
576
577
578

platform
--------

Constant string ``"openpai"``.


host
----

Hostname of OpenPAI service.

type: ``str``

liuzhe-lz's avatar
liuzhe-lz committed
579
580
581
582
This may includes ``https://`` or ``http://`` prefix.

HTTPS will be used by default.

liuzhe-lz's avatar
liuzhe-lz committed
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601

username
--------

OpenPAI user name.

type: ``str``


token
-----

OpenPAI user token.

type: ``str``

This can be found in your OpenPAI user settings page.


liuzhe-lz's avatar
liuzhe-lz committed
602
603
dockerImage
-----------
liuzhe-lz's avatar
liuzhe-lz committed
604

liuzhe-lz's avatar
liuzhe-lz committed
605
Name and tag of docker image to run the trials.
liuzhe-lz's avatar
liuzhe-lz committed
606

liuzhe-lz's avatar
liuzhe-lz committed
607
type: ``str``
liuzhe-lz's avatar
liuzhe-lz committed
608

liuzhe-lz's avatar
liuzhe-lz committed
609
default: ``"msranni/nni:latest"``
liuzhe-lz's avatar
liuzhe-lz committed
610
611


liuzhe-lz's avatar
liuzhe-lz committed
612
613
nniManagerStorageMountPoint
---------------------------
liuzhe-lz's avatar
liuzhe-lz committed
614

liuzhe-lz's avatar
liuzhe-lz committed
615
`Mount point <path>`_ of storage service (typically NFS) on current machine.
liuzhe-lz's avatar
liuzhe-lz committed
616
617
618
619

type: ``str``


liuzhe-lz's avatar
liuzhe-lz committed
620
621
containerStorageMountPoint
--------------------------
liuzhe-lz's avatar
liuzhe-lz committed
622

liuzhe-lz's avatar
liuzhe-lz committed
623
Mount point of storage service (typically NFS) in docker container.
liuzhe-lz's avatar
liuzhe-lz committed
624
625
626

type: ``str``

liuzhe-lz's avatar
liuzhe-lz committed
627
This must be an absolute path.
liuzhe-lz's avatar
liuzhe-lz committed
628
629


liuzhe-lz's avatar
liuzhe-lz committed
630
631
reuseMode
---------
liuzhe-lz's avatar
liuzhe-lz committed
632

liuzhe-lz's avatar
liuzhe-lz committed
633
Enable reuse `mode <../Tutorial/ExperimentConfig.rst#reuse>`__.
liuzhe-lz's avatar
liuzhe-lz committed
634
635
636
637
638
639

type: ``bool``

default: ``False``


liuzhe-lz's avatar
liuzhe-lz committed
640
641
openpaiConfig
-------------
liuzhe-lz's avatar
liuzhe-lz committed
642

liuzhe-lz's avatar
liuzhe-lz committed
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
Embedded OpenPAI config file.

type: ``Optional[JSON]``


openpaiConfigFile
-----------------

`Path`_ to OpenPAI config file.

type: ``Optional[str]``

An example can be found `here <https://github.com/microsoft/pai/blob/master/docs/manual/cluster-user/examples/hello-world-job.yaml>`__


AmlConfig
^^^^^^^^^

Detailed `here <../TrainingService/AMLMode.rst>`__.


platform
--------

Constant string ``"aml"``.


dockerImage
-----------

Name and tag of docker image to run the trials.
liuzhe-lz's avatar
liuzhe-lz committed
674
675
676

type: ``str``

liuzhe-lz's avatar
liuzhe-lz committed
677
default: ``"msranni/nni:latest"``
liuzhe-lz's avatar
liuzhe-lz committed
678
679


liuzhe-lz's avatar
liuzhe-lz committed
680
681
682
683
subscriptionId
--------------

Azure subscription ID.
liuzhe-lz's avatar
liuzhe-lz committed
684
685
686
687

type: ``str``


liuzhe-lz's avatar
liuzhe-lz committed
688
689
690
691
resourceGroup
-------------

Azure resource group name.
liuzhe-lz's avatar
liuzhe-lz committed
692

liuzhe-lz's avatar
liuzhe-lz committed
693
type: ``str``
liuzhe-lz's avatar
liuzhe-lz committed
694
695


liuzhe-lz's avatar
liuzhe-lz committed
696
697
workspaceName
-------------
liuzhe-lz's avatar
liuzhe-lz committed
698

liuzhe-lz's avatar
liuzhe-lz committed
699
700
701
Azure workspace name.

type: ``str``
liuzhe-lz's avatar
liuzhe-lz committed
702
703


liuzhe-lz's avatar
liuzhe-lz committed
704
705
706
707
708
709
computeTarget
-------------

AML compute cluster name.

type: ``str``