ML-Agents SPS Plugin
A plugin for Unity ML-Agents to log Steps Per Second (SPS) to TensorBoard and the console, providing insights into training speed and performance. This tool allows users to monitor the number of steps completed per second, helping to optimize training configuration, including the number of parallel executables (--num-envs) and parallel agents/areas.
Example Output
Here’s an example of the output you’ll see in the console with this plugin:
[INFO] Brain. Steps Per Second: 5275.42.
[INFO] Brain. Step: 44020000. Time Elapsed: 235.580 s. Mean Reward: 1379.877. Std of Reward: 184.503. Training.
[INFO] Brain. Step: 44030000. Time Elapsed: 250.285 s. No episode was completed since last summary. Training.
[INFO] Brain. Steps Per Second: 898.65.
[INFO] Brain. Step: 44040000. Time Elapsed: 250.563 s. No episode was completed since last summary. Training.
Features
- Steps Per Second Logging: Logs the SPS (Steps Per Second) to TensorBoard, making it easy to track training speed over time.
- Performance Monitoring: Enables users to fine-tune the number of parallel executables and agents to maximize hardware utilization and minimize idle time.
- TensorBoard Integration: Integrates seamlessly with TensorBoard to visualize SPS, enabling easier comparison and analysis of training performance.
Installation
Install via PyPI in the same python virtual environment that you have mlagents installed:
pip install mlagents_sps_plugin
Run ML-Agents Training as Usual: Just run your mlagents-learn commands as you normally would. The plugin will automatically log the Steps Per Second (SPS) to TensorBoard and the console so you can monitor the performance in real-time.
Contributing
We welcome contributions! If you have ideas for improvements, feel free to submit a pull request or open an issue.
Support
If you appreciate this work or are looking for software and AI development, visit Digiwave for more details on our tech services.
Metadata
Release files for mlagents-sps-plugin 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mlagents_sps_plugin-0.1.0.tar.gz | 4.0 kB | Without provenance | Details for mlagents_sps_plugin-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mlagents_sps_plugin-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mlagents_sps_plugin-0.1.0-py3-none-any.whl |
Total release size: 8.7 kB
Release files / mlagents_sps_plugin-0.1.0.tar.gz
| Download URL | mlagents_sps_plugin-0.1.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2efd09c2db003493ca78ac2c674f56e8beb076bdda091667f22b005e708f8aa
|
|
BLAKE2b-256 checksum How to use checksums |
ed8f613572017632110b55d2ee553d76a47efd30c4343b51a6d920358420ba63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / mlagents_sps_plugin-0.1.0-py3-none-any.whl
| Download URL | mlagents_sps_plugin-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8825ae22f8f98dcb88c541c7b215b7034d96f7a44a6fa32bbde47ebee134eb14
|
|
BLAKE2b-256 checksum How to use checksums |
c785bfbaa2747df1343024729f597eae761ab5e609f3d4a373d6da4786ec9b14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Security for mlagents-sps-plugin 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.