Closed Deepakgthomas closed 9 months ago
Hello, could you please provide some information about the CPU you are using and how many cores do you have? Same for the GPU. What is the jaxlib version you are using? You should be using gymnasium instead of gym too.
SBX becomes much slower than SB3 when the number of cpus are limited
in your case, are you sure the gpu is used? how slow is SBX? or is it the compilation time? (if so, https://github.com/araffin/sbx/pull/21 will help)
maybe could you share a run using W&B? For instance: https://wandb.ai/openrlbenchmark/sb3/reports/SB3-vs-SBX--VmlldzoyOTczNDg2
My apologies. My program was buggy.
🐛 Bug
SBX becomes much slower than SB3 when the number of cpus are limited
To Reproduce
Steps to reproduce the behavior.
Expected behavior
If you want to compare
sb3
vssbx
, you can uncommentfrom stable_baselines3 import SAC
and comment outfrom sbx import SAC
. I am noticing thatsb3
is much faster thansbx
in such situationsSystem Info
Describe the characteristic of your environment:
You can use
sb3.get_system_info()
to print relevant packages info:Checklist