Skip to content

CheckpointFile ​

python
CheckpointFile(name: str)

Source

Properties ​

filename ​

python
filename: str

Source

name ​

python
name: str

Source

Methods ​

extension ​

python
extension() -> str

Source

extensions ​

python
extensions() -> tuple[str, ...]

Get every file extension files of this checkpoint type can be saved with.

The first entry is the default used when saving; loaders should accept all of them.

Returns:

  • tuple[str, ...] – The extensions, default first.

Source

load ​

python
load(file_path: str | PathLike, name: str) -> Self

Source

save ​

python
save(checkpoint_directory: str | PathLike) -> Path

Source