




"""simple docstring"""




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


__UpperCAmelCase =				logging.get_logger(__name__)

__UpperCAmelCase =				{
    'studio-ousia/luke-base': 'https://huggingface.co/studio-ousia/luke-base/resolve/main/config.json',
    'studio-ousia/luke-large': 'https://huggingface.co/studio-ousia/luke-large/resolve/main/config.json',
}







class      __lowercase			(    __lowerCamelCase					):
  snake_case_				       =       """luke"""

  def __init__(  self		:			int					,A		:			List[Any]=50_267					,A		:			Optional[int]=500_000					,A		:			Any=768					,A		:			str=256					,A		:			List[str]=12					,A		:			int=12					,A		:			Tuple=3_072					,A		:			Dict="gelu"					,A		:			Optional[int]=0.1					,A		:			int=0.1					,A		:			Dict=512					,A		:			List[str]=2					,A		:			List[Any]=0.0_2					,A		:			Optional[Any]=1e-12					,A		:			Any=True					,A		:			Union[str, Any]=None					,A		:			Any=1					,A		:			Optional[Any]=0					,A		:			List[Any]=2					,**A		:			Optional[int]					,):






   '''simple docstring'''
   super().__init__(pad_token_id=A					,bos_token_id=A					,eos_token_id=A					,**A    )

   UpperCAmelCase__					:  List[str]					   =					vocab_size
   UpperCAmelCase__					:  Optional[int]					   =					entity_vocab_size
   UpperCAmelCase__					:  Any					   =					hidden_size
   UpperCAmelCase__					:  List[str]					   =					entity_emb_size
   UpperCAmelCase__					:  int					   =					num_hidden_layers
   UpperCAmelCase__					:  Optional[int]					   =					num_attention_heads
   UpperCAmelCase__					:  List[Any]					   =					hidden_act
   UpperCAmelCase__					:  str					   =					intermediate_size
   UpperCAmelCase__					:  Union[str, Any]					   =					hidden_dropout_prob
   UpperCAmelCase__					:  Optional[Any]					   =					attention_probs_dropout_prob
   UpperCAmelCase__					:  Optional[int]					   =					max_position_embeddings
   UpperCAmelCase__					:  List[str]					   =					type_vocab_size
   UpperCAmelCase__					:  str					   =					initializer_range
   UpperCAmelCase__					:  List[str]					   =					layer_norm_eps
   UpperCAmelCase__					:  Union[str, Any]					   =					use_entity_aware_attention
   UpperCAmelCase__					:  Any					   =					classifier_dropout








"""simple docstring"""




from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


__UpperCAmelCase =				{
    'configuration_table_transformer': [
        'TABLE_TRANSFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP',
        'TableTransformerConfig',
        'TableTransformerOnnxConfig',
    ]
}

try:
      if not is_torch_available():
            raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
      pass
else:
      __UpperCAmelCase =				[
          '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

      __UpperCAmelCase =				_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)





