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

Request: save/resume training #25

Closed
123mitnik opened this issue Jul 2, 2016 · 4 comments
Closed

Request: save/resume training #25

123mitnik opened this issue Jul 2, 2016 · 4 comments

Comments

@123mitnik
Copy link

how difficult would be to implement:

  • save training progress
  • load training progress and continue training
  • load training progress and test (no training)
@dementrock
Copy link
Member

Hi @123mitnik,

Right now the first and last are supported already. By default, if you run experiment in "stub" mode (i.e. calling stub(globals()) and then running experiment via run_experiment_lite, it should be saving pickle files under the data directory. Then, you can run python scripts/sim_policy.py PKL_FILE to replay the trained policy.

Which algorithm(s) do you need the resume training feature for? I can give a shot at implementing a primitive version.

@123mitnik
Copy link
Author

the main focus is on Trust Region Policy Optimization and second on the list is Truncated Natural Policy Gradient
my homebrew env is doing some time consuming tasks and it will take huge amounts of time to finish the training end to end

it will be great asset if you can resume the policy training .. just a lifesaver in demanding envs

I would like to Thank You for your fast replay. And to appreciate how wonderful rllab is !

@dementrock
Copy link
Member

dementrock commented Jul 3, 2016

Hi @123mitnik, I've pushed an experimental implementation.

For new experiment runs (must be under "stub" mode), now the snapshot files (ending in .pkl) will store a serialized version of the Algorithm object. Then, you can resume training by running

python scripts/resume_training.py PATH_TO_PKL_FILE.pkl

@123mitnik
Copy link
Author

wow !!! that was FAST

Thank You so much !!! ... will start using it immediately

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

No branches or pull requests

2 participants