-
Notifications
You must be signed in to change notification settings - Fork 34
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
[Question] fps drops significantly over time #54
Comments
what mujoco version do you use? Do you have the same issue with built-env mujoco env? (for instance I haven't experienced that so far, might do some runs that I will log in open rl benchmark later. |
Yes, it happens for the built in mujoco envs as well. I think I have narrowed it down to my use of |
I'm doing many runs on MuJoCo envs and I cannot see the effect you describe so far: https://wandb.ai/openrlbenchmark/sbx/runs/99wrpkc7?nw=nwuseraraffin (other runs are available in https://wandb.ai/openrlbenchmark/sbx/). To reproduce, use the train script from the readme (using RL Zoo) and:
Note: I'm using the hyperparameter file is simply: # Default hyperparameters for SB3 are tuned for MuJoCo
default_hyperparams = dict(
n_envs=1,
n_timesteps=int(1e6),
policy="MlpPolicy",
policy_kwargs={},
normalize=True,
)
hyperparams = {}
for env_id in [
"HalfCheetah-v4",
"Humanoid-v4",
"HalfCheetahBulletEnv-v0",
"Ant-v4",
"Hopper-v4",
"Walker2d-v4",
"Swimmer-v4",
]:
hyperparams[env_id] = default_hyperparams EDIT: I'll try with multiple envs later |
Note: when using multiple envs, you should probably adjust the For instance:
When using 4 envs instead of 1 (the default n_steps is 2048, 2048/4 = 512) |
It seems there is some sort of (memory?) leak when using |
Question
I'm training a simple PPO agent in a mujoco gym env, however I've noticed that over the course of training the FPS goes down significantly. The fps keeps going down, even after the updates have started.
I'm wondering what could be the cause of this?
Additional context
gpu
, although running on cpu yields similar resultsThe following charts show cpu usage and fps over time, where this particular run took 17h on a machine with:
Checklist
The text was updated successfully, but these errors were encountered: