






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


SCREAMING_SNAKE_CASE__							=		logging.get_logger(__name__)

SCREAMING_SNAKE_CASE__							=		{"""openai-gpt""": """https://huggingface.co/openai-gpt/resolve/main/config.json"""}
class 						lowerCamelCase_				(      lowerCamelCase ):
				a__					       =  '''openai-gpt'''
				a__					       =  {
				    '''max_position_embeddings''': '''n_positions''',
				    '''hidden_size''': '''n_embd''',
				    '''num_attention_heads''': '''n_head''',
				    '''num_hidden_layers''': '''n_layer''',
				}







				def __init__(						self       ,					__lowerCAmelCase=4_0_4_7_8       ,					__lowerCAmelCase=5_1_2       ,					__lowerCAmelCase=7_6_8       ,					__lowerCAmelCase=1_2       ,					__lowerCAmelCase=1_2       ,					__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       ,					):
								"""simple docstring"""
								__magic_name__		:List[str]        =      vocab_size
								__magic_name__		:Optional[Any]        =      n_positions
								__magic_name__		:Tuple        =      n_embd
								__magic_name__		:List[Any]        =      n_layer
								__magic_name__		:Optional[Any]        =      n_head
								__magic_name__		:Optional[int]        =      afn
								__magic_name__		:Tuple        =      resid_pdrop
								__magic_name__		:str        =      embd_pdrop
								__magic_name__		:int        =      attn_pdrop
								__magic_name__		:Optional[Any]        =      layer_norm_epsilon
								__magic_name__		:Union[str, Any]        =      initializer_range
								__magic_name__		:int        =      summary_type
								__magic_name__		:Dict        =      summary_use_proj
								__magic_name__		:Union[str, Any]        =      summary_activation
								__magic_name__		:str        =      summary_first_dropout
								__magic_name__		:Optional[Any]        =      summary_proj_to_labels
								super().__init__(**__lowerCAmelCase     )














from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


SCREAMING_SNAKE_CASE__      :			Tuple							=		{
    """configuration_table_transformer""": [
        """TABLE_TRANSFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP""",
        """TableTransformerConfig""",
        """TableTransformerOnnxConfig""",
    ]
}

try:
					if not is_torch_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					SCREAMING_SNAKE_CASE__      :			List[str]							=		[
					    """TABLE_TRANSFORMER_PRETRAINED_MODEL_ARCHIVE_LIST""",
					    """TableTransformerForObjectDetection""",
					    """TableTransformerModel""",
					    """TableTransformerPreTrainedModel""",
					]


if TYPE_CHECKING:
					from .configuration_table_transformer import (
					    TABLE_TRANSFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP,
					    TableTransformerConfig,
					    TableTransformerOnnxConfig,
					)

					try:
										if not is_torch_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .modeling_table_transformer import (
										    TABLE_TRANSFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
										    TableTransformerForObjectDetection,
										    TableTransformerModel,
										    TableTransformerPreTrainedModel,
										)

else:
					import sys

					SCREAMING_SNAKE_CASE__      :			Union[str, Any]							=		_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)






