Skip to main content

PretrainedConfig

A checkpoint's identity as the registry resolves it from its configuration alone, before any weight is read: the family that serves it, its model type and architecture, the family's description and its license page, where its definition is written and who wrote it, the component classes it serves, the modalities it takes and gives, the variant's facts, what its processor carries, and whether the family runs here (runnable; identity_only_purpose says what an identity-only family is for).

__init__​

__init__(self, family: 'str', model_type: 'str', architecture: 'str', vendor: 'str', description: 'str', license_url: 'str', definition_library: 'str', definition_author: 'str', component_classes: 'tuple[str, ...]', diffusers_components: 'tuple[str, ...]', pipeline_tags: 'tuple[str, ...]', input_modalities: 'tuple[str, ...]', output_modalities: 'tuple[str, ...]', is_moe: 'bool', is_multimodal: 'bool', has_tokenizer: 'bool', has_image_processor: 'bool', has_audio_processor: 'bool', has_video_processor: 'bool', num_hidden_layers: 'int', hidden_size: 'int', num_attention_heads: 'int', num_key_value_heads: 'int', sliding_window: 'int', num_experts: 'int', runnable: 'bool', identity_only_purpose: 'str') -> None

Initialize self. See help(type(self)) for accurate signature.