It behaves identically asrm
except that it won't delete files with important
or .keep
(customizable through SAFE_RM_IMPORTANCE_MARK
). The idea is to mark important files beforehand so they can always survive future disk cleanup.
What triggered me to create this is I accidentally removed some baseline models, which I spent lots of GPU hours to train and all my current training jobs depend on. To prevent future disasters, I come up with this solution. Hope you find it useful too.