Closed eflopez1 closed 3 years ago
Relevant issue #171
Thanks for the kind words! These help us continue working on these projects :).
As error suggests, MPI algorithms do not support vectorized environments. Your options include changing to PPO2 (which is more mature code) or calling mpiexec -np 8
as suggested here.
Sidenote: I suggest taking a look at stable-baselines3 for cleaner implementations and future support.
Hello,
First off, I want to thank you all for the great work that has been put into stable-baselines. This repository has carried my current project for a while now, and I would be utterly lost had it not been for the help of this repository.
Now, there is a problem that I am facing that I am almost certain is a result of my lack of proper MPI knowledge, but wanted to pose it here before making that final assumption. PPO1 has worked well for a while now on a custom environment dubbed 'Strings', and recently I have attempted to implement multi-processing to increase sample efficiency (the environment is made using a physics simulator that is limited to one core at a time, so multiprocessing would assist by allowing multiple of the same/similar environment to be spawned on multiple cores). I believe that I have setup the code properly, creating a vectorized environment using SubprocVecEnv and passing that to the model.
Upon executing using MPI the following error occurs: Execution:
Error:
Apologies for this rather base question, and thank you in advance for any guidance.