'''simple docstring'''

from ...configuration_utils import PretrainedConfig
from ...utils import logging


UpperCamelCase__  :						int					=      logging.get_logger(__name__)

UpperCamelCase__  :						Optional[int]					=      {'openai-gpt': 'https://huggingface.co/openai-gpt/resolve/main/config.json'}


class 					_lowercase						(   lowerCAmelCase ):
      '''simple docstring'''


      UpperCAmelCase_   :   int   				= '''openai-gpt'''
      UpperCAmelCase_   :   str   				= {
          '''max_position_embeddings''': '''n_positions''',
          '''hidden_size''': '''n_embd''',
          '''num_attention_heads''': '''n_head''',
          '''num_hidden_layers''': '''n_layer''',
      }




      def __init__(					self       ,lowerCamelCase_=40478       ,lowerCamelCase_=512       ,lowerCamelCase_=768       ,lowerCamelCase_=12       ,lowerCamelCase_=12       ,lowerCamelCase_="gelu"       ,lowerCamelCase_=0.1       ,lowerCamelCase_=0.1       ,lowerCamelCase_=0.1       ,lowerCamelCase_=1e-5       ,lowerCamelCase_=0.02       ,lowerCamelCase_="cls_index"       ,lowerCamelCase_=True       ,lowerCamelCase_=None       ,lowerCamelCase_=True       ,lowerCamelCase_=0.1       ,**lowerCamelCase_       ,)      ->      Optional[int]:



         '''simple docstring'''



         UpperCAmelCase__				:					Optional[int] 					=	vocab_size
         UpperCAmelCase__				:					Optional[Any] 					=	n_positions
         UpperCAmelCase__				:					Union[str, Any] 					=	n_embd
         UpperCAmelCase__				:					int 					=	n_layer
         UpperCAmelCase__				:					Tuple 					=	n_head
         UpperCAmelCase__				:					Dict 					=	afn
         UpperCAmelCase__				:					List[Any] 					=	resid_pdrop
         UpperCAmelCase__				:					int 					=	embd_pdrop
         UpperCAmelCase__				:					Optional[int] 					=	attn_pdrop
         UpperCAmelCase__				:					Optional[int] 					=	layer_norm_epsilon
         UpperCAmelCase__				:					Union[str, Any] 					=	initializer_range
         UpperCAmelCase__				:					Dict 					=	summary_type
         UpperCAmelCase__				:					Optional[Any] 					=	summary_use_proj
         UpperCAmelCase__				:					List[str] 					=	summary_activation
         UpperCAmelCase__				:					List[Any] 					=	summary_first_dropout
         UpperCAmelCase__				:					Dict 					=	summary_proj_to_labels
         super().__init__(**lowerCamelCase_				)





'''simple docstring'''

from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


UpperCamelCase__  :						str					=      {
    'configuration_git': ['GIT_PRETRAINED_CONFIG_ARCHIVE_MAP', 'GitConfig', 'GitVisionConfig'],
    'processing_git': ['GitProcessor'],
}

try:
  if not is_torch_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  UpperCamelCase__  :						str					=      [
      'GIT_PRETRAINED_MODEL_ARCHIVE_LIST',
      'GitForCausalLM',
      'GitModel',
      'GitPreTrainedModel',
      'GitVisionModel',
  ]

if TYPE_CHECKING:
  from .configuration_git import GIT_PRETRAINED_CONFIG_ARCHIVE_MAP, GitConfig, GitVisionConfig
  from .processing_git import GitProcessor

  try:
    if not is_torch_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .modeling_git import (
        GIT_PRETRAINED_MODEL_ARCHIVE_LIST,
        GitForCausalLM,
        GitModel,
        GitPreTrainedModel,
        GitVisionModel,
    )

else:
  import sys

  UpperCamelCase__  :						Tuple					=      _LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)




