list_checkpoints

list_checkpoints(main_dir)[source]

List all checkpoints in a main checkpoint directory.

Parameters:

main_dir (Path) – Main checkpoint directory.

Returns:

List of checkpoint information, sorted by iteration number.

Return type:

list[CheckpointInfo]

Raises:

CheckpointNotFoundError – If the main directory does not exist.