CheckpointMetadata#
- class openstef_foundation_models.models.checkpoint.CheckpointMetadata(**data: Any) None[source]
Bases:
BaseConfigMetadata describing a foundation-model checkpoint.
This document travels next to the weights file and drives the generic inference path, so that no model-family specifics are hardcoded in the backends or forecasters.
- Parameters:
data (
Any)
- schema_version: int
- model_family: str
- output_name: str
- context_length: int
- output_patch_size: int
- horizon_patches: int
- resolution_minutes: int
- precision: Literal['fp32', 'fp16', 'int8']
- static_shapes: bool
- property horizon_length: int
Total number of forecast timesteps the model emits.
- Returns:
output_patch_size * horizon_patches.
- 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].