Skip to content
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

[Feature Request] Reproducibility using SB3 - SubProcVecEnv #2097

Open
2 tasks done
douglas-machado-st opened this issue Mar 10, 2025 · 1 comment
Open
2 tasks done
Labels
question Further information is requested

Comments

@douglas-machado-st
Copy link

🚀 Feature

Hello,

First of all, congratulations on the amazing job developing and maintaining this work.

I'm trying to achieve reproducible training using multiprocessing for a custom environment. While attempting to do so, I noticed that for SB3, it is an open question on how to accomplish this. According to the Gymnasium documentation for custom environments, when discussing reproducibility, they state:

To get reproducible sampling of actions, a seed can be set with env.action_space.seed(123).

So far, I haven't managed to find where this is set in SB3, and I'm trying my best to find a solution.

Motivation

Get reproducibility in training

Pitch

One simple flow to set seeds through the different levels of the training

Alternatives

No response

Additional context

Maybe provide in the docs all the sources of randomness so we can try to find where to seed properly

Checklist

  • I have checked that there is no similar issue in the repo
  • If I'm requesting a new feature, I have proposed alternatives
@douglas-machado-st douglas-machado-st added the enhancement New feature or request label Mar 10, 2025
@araffin araffin added question Further information is requested and removed enhancement New feature or request labels Mar 10, 2025
@araffin
Copy link
Member

araffin commented Mar 10, 2025

hello,
what have you tried so far?
have you checked the sb3 doc and related issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants