HubCheckpoint#
- class openstef_foundation_models.models.checkpoint.HubCheckpoint(**data: Any) None[source]
Bases:
BaseConfigA checkpoint resolved from a HuggingFace Hub repository.
- Parameters:
data (
Any)
- kind: Literal['hub']
- repo_id: str
- filename: str
- repo_type: str
- resolve() ResolvedCheckpoint[source]
Download the weights and metadata from the Hub and resolve them.
- Return type:
ResolvedCheckpoint- Returns:
A
ResolvedCheckpointpointing at the downloaded weights file.
- 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].