LocalCheckpoint#

class openstef_foundation_models.models.checkpoint.LocalCheckpoint(**data: Any) None[source]

Bases: BaseConfig

A checkpoint resolved from a local filesystem path.

Parameters:

data (Any)

kind: Literal['local']
path: Path
metadata_path: Path | None
resolve() ResolvedCheckpoint[source]

Resolve the local weights and metadata.

Return type:

ResolvedCheckpoint

Returns:

A ResolvedCheckpoint pointing at the local weights file.

Raises:

FileNotFoundError – If the weights or metadata file does not exist.

model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': False, 'extra': 'ignore', 'protected_namespaces': ()}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].