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] Save/load internal states of pseudo-random number generators #1526

Open
1 task done
lbergmann1 opened this issue May 25, 2023 · 0 comments
Open
1 task done
Labels
enhancement New feature or request

Comments

@lbergmann1
Copy link
Contributor

🚀 Feature

Hello,

I suggest to automatically save/load internal states of all pseudo-random number generators of a model (python, torch, numpy, action_space) in case of model.save()/model.load().

This is what I have done so far. I did not include RNGs of environments, because the model may be loaded with new training environments.

Motivation

I would like to save a checkpoint of my current model so that it is possible to continue training in a reproducible way, i.e. with the same results as if the training had never been interrupted.
Since internal states of RNGs are not saved, it is not possible to reproduce results in one long training sequence.

Pitch

No response

Alternatives

No response

Additional context

No response

Checklist

  • I have checked that there is no similar issue in the repo
@lbergmann1 lbergmann1 added the enhancement New feature or request label May 25, 2023
@lbergmann1 lbergmann1 changed the title [Feature Request] Save/load interal states of pseudo-random number generators [Feature Request] Save/load internal states of pseudo-random number generators May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant