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

Resuming NFSP Training #1291

Open
i-Madsen opened this issue Nov 25, 2024 · 1 comment
Open

Resuming NFSP Training #1291

i-Madsen opened this issue Nov 25, 2024 · 1 comment

Comments

@i-Madsen
Copy link
Contributor

I'd like to save NFSP agents during the training process and be able to restore them for further training later. However, the nfsp.py file states that the save/restore functions "don't save the experience replay buffers and should only be used to restore the agent's policy, not resume training."

I've tried modifying it to save/restore the replay buffer and step counter agents, but haven't been successful in continuing training (it still appears to restart).

What is the proper way to do this?

@lanctot
Copy link
Collaborator

lanctot commented Nov 28, 2024

Hi @i-Madsen, yes that's right -- the NFSP code does not support full checkpointing, so you'll have to implement it yourself.

I'm not sure why your custom solution wouldn't work; it should be straight-forward to write everything in the replay buffer and reload it?

If you get it working, it would great to contribute it as I'm sure others would find this useful.

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