facebookresearch / Pearl

A Production-ready Reinforcement Learning AI Agent Library brought by the Applied Reinforcement Learning team at Meta.
MIT License
2.6k stars 157 forks source link

save the trained agent for reuse #74

Open lz1159435992 opened 6 months ago

lz1159435992 commented 6 months ago

I would like to know whether there is a way to save the trained agent, as I did not see this part in the tutorial, nor did I find any related methods in the agent class.

rodrigodesalvobraz commented 6 months ago

Hi. We are actively working on this now. It should come out in a few days.

As a temporary solution using pickle.dump and pickle.load should work for saving trained agents.

I will notify you here when our solution is out. Thanks!

rodrigodesalvobraz commented 4 months ago

Update: we did put quite some time on this already but other issues got in the way. I hope to get back to it within the next couple of weeks.

luca3py commented 18 hours ago

Hi @rodrigodesalvobraz !

I hope you're doing well. I wanted to check in on the status of this issue, as it seems to have been pending for some time. Could you please provide an update?

Thank you in advance for your help!

rodrigodesalvobraz commented 18 hours ago

Thanks for checking. Yes, it's been pending for a while, and in fact most of the work has already been done, but then we had to focus on other things. I will use your inquiry as a reason to get back to this right away! Hopefully I can wrap it up it in a few days.

luca3py commented 17 hours ago

Thank you for the quick reply, @rodrigodesalvobraz Then I'll stay tuned for the next update! :)

Cheers!