


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


A      :    Optional[int]		=					logging.get_logger(__name__)

A      :    Any		=					{
    "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 (							lowercase__):


       """simple docstring"""




       A__											=			"luke"





       def __init__(   self							:			Tuple					,      __lowerCamelCase							:			Any=50267					,      __lowerCamelCase							:			Any=500000					,      __lowerCamelCase							:			str=768					,      __lowerCamelCase							:			int=256					,      __lowerCamelCase							:			str=12					,      __lowerCamelCase							:			int=12					,      __lowerCamelCase							:			Optional[int]=3072					,      __lowerCamelCase							:			Dict="gelu"					,      __lowerCamelCase							:			Optional[Any]=0.1					,      __lowerCamelCase							:			str=0.1					,      __lowerCamelCase							:			Dict=512					,      __lowerCamelCase							:			List[str]=2					,      __lowerCamelCase							:			Optional[int]=0.0_2					,      __lowerCamelCase							:			Union[str, Any]=1E-1_2					,      __lowerCamelCase							:			Union[str, Any]=True					,      __lowerCamelCase							:			List[str]=None					,      __lowerCamelCase							:			Dict=1					,      __lowerCamelCase							:			List[str]=0					,      __lowerCamelCase							:			Tuple=2					,      **__lowerCamelCase							:			List[str]					,      ):


             '''simple docstring'''



             super().__init__(pad_token_id=__lowerCamelCase					,      bos_token_id=__lowerCamelCase					,      eos_token_id=__lowerCamelCase					,      **__lowerCamelCase       )

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






def       lowercase_		(		_A			:    int    ,					_A			:    int						):

      """simple docstring"""




      while a != 0:
            lowerCamelCase__    ,   lowerCamelCase__		:				Optional[Any]    =  b % a, a
      return b


def       lowercase_		(		_A			:    int    ,					_A			:    int						):

      """simple docstring"""




      if gcd(_A    ,					_A						) != 1:
            lowerCamelCase__		:				List[str]    =  F"mod inverse of {a!r} and {m!r} does not exist"
            raise ValueError(_A						)
      lowerCamelCase__    ,   lowerCamelCase__    ,   lowerCamelCase__		:				Tuple    =  1, 0, a
      lowerCamelCase__    ,   lowerCamelCase__    ,   lowerCamelCase__		:				Optional[int]    =  0, 1, m
      while va != 0:
            lowerCamelCase__		:				Tuple    =  ua // va
            lowerCamelCase__    ,   lowerCamelCase__    ,   lowerCamelCase__    ,   lowerCamelCase__    ,   lowerCamelCase__    ,   lowerCamelCase__		:				str    =  (ua - q * va), (ua - q * va), (ua - q * va), va, va, va
      return ua % m


