Skip to content

Store last.ckpt as symlink when appropriate to save space #14973

@ZhaofengWu

Description

@ZhaofengWu

🚀 Feature

Currently, if I'm understanding correctly, last.ckpt is always stored as a separate model file (unless it's disabled, of course). But sometimes the same checkpoint already exists, for example as the best checkpoint, or as one of the top-k checkpoints. When this happens, it'd be very helpful that only a symlink is stored to reduce space usage.

Motivation

Modern models could take up a lot of disk space. In the typical use case where only the best and last checkpoints are stored, this could reduce the space usage by ~half.

cc @Borda @awaelchli

Metadata

Metadata

Assignees

No one assigned

    Labels

    checkpointingRelated to checkpointingfeatureIs an improvement or enhancementgood first issueGood for newcomershelp wantedOpen to be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions