Eclectic-Sheep / sheeprl

Distributed Reinforcement Learning accelerated by Lightning Fabric
https://eclecticsheep.ai
Apache License 2.0
305 stars 31 forks source link

Automatic deletion of oldest checkpoints #170

Closed michele-milesi closed 9 months ago

michele-milesi commented 9 months ago

It would be nice to have the possibility to automatically delete the oldest checkpoints so as to avoid filling up the disk. In particular, one could add an argument (checkpoint.keep_last) that specifies the number of checkpoints to keep during the execution of the experiment. If the checkpoint.keep_last parameter is None, then no checkpoint will be deleted automatically.