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

[MRG] compress pickle #244

Merged
merged 7 commits into from
Sep 19, 2022
Merged

Conversation

TimotheeMathieu
Copy link
Collaborator

@TimotheeMathieu TimotheeMathieu commented Sep 16, 2022

In this PR I give the possibility to compress (with bz2) the pickle files of an agent.
By default, we keep the old behavior of no compression because compression takes a bit of time (order of 2~3min on my laptop).

This is especially useful when the environment (which is automatically saved with the agent) is large. In particular, with farmgym, I had a pickle file for one agent of size 300M and after compression the same agent is saved in 1.5M.

Maybe we could make this the default behavior, I know that pytorch by default compress its checkpoints for instance.

@TimotheeMathieu TimotheeMathieu changed the title compress pickle [MRG] compress pickle Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant