Skip to content

Commit 73ba867

Browse files
Documentation updates: Added Unity instance parallelization to enviro… (#5143)
* Updated Learning-Environment-Create-New.md with a section on parallel unity instances. * Added trailing whitespace to Learning Environment Create New md file. * Added trailing whitespace to Learning Environment Create New md file after fixes. * Minor updates. * Minor updates. * Whitespace fixes.
1 parent 8457c5b commit 73ba867

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/Learning-Environment-Create-New.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,3 +472,18 @@ RollerBall environment:
472472
your Assets browser, turning it into a prefab.
473473
1. You can now instantiate copies of the TrainingArea prefab. Drag them into
474474
your scene, positioning them so that they do not overlap.
475+
476+
## Optional: Training Using Concurrent Unity Instances
477+
Another level of parallelization comes by training using
478+
[concurrent Unity instances](ML-Agents-Overview.md#additional-features).
479+
For example,
480+
481+
```
482+
mlagents-learn config/rollerball_config.yaml --run-id=RollerBall --num-envs=2
483+
```
484+
485+
will start ML Agents training with two environment instances. Combining multiple
486+
training areas within the same scene, with concurrent Unity instances, effectively
487+
gives you two levels of parallelism to speed up training. The command line option
488+
`--num-envs=<n>` controls the number of concurrent Unity instances that are
489+
executed in parallel during training.

0 commit comments

Comments
 (0)