stable-baselines icon indicating copy to clipboard operation
stable-baselines copied to clipboard

[Question] Profiling with custum environment and MPI

Open AlessandroZavoli opened this issue 5 years ago • 1 comments

I would like to better understand what are the bottleneck in my code ( PPO[mpi] with MLP and custom environment) Could someone point me to a good reference to understand how to profile the code?

Alessandro

AlessandroZavoli avatar Jul 18 '20 10:07 AlessandroZavoli

I do not have tips for proper profiling (I do things caveman-style with printing), but you could try using PPO2 (non-mpi) variant of PPO to avoid hassling with MPI. PPO2 code has gone through more updates as well. For baseline results try running the code with a simple env (e.g. Cartpole-v1), after which you can study your custom env what is slowing things down.

Miffyli avatar Jul 19 '20 17:07 Miffyli