Skip to content

Save checkpoint version dirs as version_003 so that they sort lexicographically #20799

@Taylor-C-Reese

Description

@Taylor-C-Reese

Description & Motivation

Lightning saves checkpoint version dirs as version_3, version_21, etc. The problem with this is that when you do a listing, version_21 is between version_2 and version_3, making it easy to miss.

A simple solution, which is commonly used for these situations, is to name them version_002, version_003,... version_021, which solves the problem completely.

Note: If there's interest for this, this seems like a great first issue, and I'd be happy to write the patch.

Pitch

No response

Alternatives

No response

Additional context

No response

cc @lantiga @Borda @justusschock

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIs an improvement or enhancementstrategy: ddpDistributedDataParallel

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions