Closed Ahmed-Radwan094 closed 5 months ago
Is it possible to move the rollout buffer completely to the GPU?
By saving, you mean that the data stored in on the cpu? currently not, you would need to write a custom buffer (and probably update SB3, gym API assumes numpy arrays), you can also have a look at related issues on SB3 repo (https://github.com/DLR-RM/stable-baselines3/issues/314 and all linked issues).
Thank you for the fast response. Yes, I meant storing. I think I will work on upgrading to support tensors.
❓ Question
I am using PPO algorithm, and it seems that the rollout buffer is saved to the CPU, which causes high memory consumption on my device. Is it possible to move the rollout buffer completely to the GPU?
Checklist