Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.0.0 Singleton mode #153

Merged
merged 121 commits into from
Sep 3, 2018
Merged

v2.0.0 Singleton mode #153

merged 121 commits into from
Sep 3, 2018

Conversation

kengz
Copy link
Owner

@kengz kengz commented Sep 1, 2018

v2.0.0: make components independent of the framework so it can be used outside of SLM-Lab for development and production, and improve usability. Backward-incompatible with v1.x.

Singleton Mode as Default

  • singleton case (single-agent-env-body) is now the default. Any implementations need only to worry about singleton.
  • space case (multi-agent-env-body) is now an extension from singleton case. Simply add space_{method} to handle the space logic.
  • make components more independent from framework
  • major logic simplification to improve usability. Simplify the AEB and init sequences. remove post_body_init()

Distributed and Cuda

  • add distributed cases to unit tests
  • make distributed usable for both singleton (single agent) and space (multiagent) cases.
  • add attribute Net.cuda_id for device assignment (per network basis), and auto-calculate the cuda_id by trial and session index to distribute jobs
  • enable cuda and add GPU support for all algorithms, except for distributed (A3C, DPPO etc.)

Refactoring and Improvements

  • save() and load() now include network optimizers
  • refactor set_manual_seed to util
  • rename StackReplay to ConcatReplay for clarity
  • improve network training check of weights and grad norms
  • introduce BaseEnv as base class to OpenAIEnv and UnityEnv
  • optimize computations, major refactoring
  • update Dockerfile and release

@kengz kengz merged commit 861657d into master Sep 3, 2018
@kengz kengz deleted the singleton branch September 3, 2018 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant