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

Feature request: multiprocess env runner #126

Open
syuntoku14 opened this issue Feb 4, 2020 · 2 comments
Open

Feature request: multiprocess env runner #126

syuntoku14 opened this issue Feb 4, 2020 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@syuntoku14
Copy link

Hi Chris,

Do you plan to add an EnvRunner class supporting multiprocess?

@cpnota cpnota added the enhancement New feature or request label Feb 4, 2020
@cpnota
Copy link
Owner

cpnota commented Feb 4, 2020

Maybe. For most of the standard Gym environments, the environment isn't really the bottleneck, so it's not clear that you get much of a speedup. However, it could be useful for more computationally expensive environments. Do you have any specific use case in mind?

@syuntoku14
Copy link
Author

syuntoku14 commented Feb 4, 2020

I think most of the RL algorithms with pybullet envs require much training time since pybullet is computationally expensive. For example, chainerrl requires 1.5 days to train kuka-diverse-object-env with DQN.

It seems that some of the continuous control scripts in your code require more than 5 hours to train, so I am implementing a simple multiprocess runner to reduce the training time. I tested it by training kuka-diverse-object-env with 30 CPUs. It saved a lot of time(Maybe I'll send pull request after refactor and test it.)
https://github.com/syuntoku14/image_based_controls/blob/master/experiments/runner.py

@cpnota cpnota added this to To do in Multiagent Support Jan 18, 2021
@cpnota cpnota added this to the ALL Next milestone Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants