

'''simple docstring'''






import warnings

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


lowerCAmelCase__   		=      logging.get_logger(__name__)

lowerCAmelCase__   		=      {
    '''RUCAIBox/mvp''': '''https://huggingface.co/RUCAIBox/mvp/resolve/main/config.json''',
}






class      lowercase_      (lowerCamelCase__ ):




  """simple docstring"""




  SCREAMING_SNAKE_CASE       :    Optional[int]							     =     'mvp'
  SCREAMING_SNAKE_CASE       :    str							     =     ['past_key_values']
  SCREAMING_SNAKE_CASE       :    List[str]							     =     {'num_attention_heads': 'encoder_attention_heads', 'hidden_size': 'd_model'}






  def __init__( self  :	int   ,lowercase__  :	str=5_0_2_6_7   ,lowercase__  :	List[str]=1_0_2_4   ,lowercase__  :	Union[str, Any]=1_2   ,lowercase__  :	Optional[int]=4_0_9_6   ,lowercase__  :	Tuple=1_6   ,lowercase__  :	Union[str, Any]=1_2   ,lowercase__  :	Union[str, Any]=4_0_9_6   ,lowercase__  :	Optional[int]=1_6   ,lowercase__  :	int=0.0   ,lowercase__  :	Any=0.0   ,lowercase__  :	Optional[int]="gelu"   ,lowercase__  :	Dict=1_0_2_4   ,lowercase__  :	List[str]=0.1   ,lowercase__  :	Optional[int]=0.0   ,lowercase__  :	Optional[int]=0.0   ,lowercase__  :	Any=0.0_2   ,lowercase__  :	Any=0.0   ,lowercase__  :	List[str]=False   ,lowercase__  :	List[str]=True   ,lowercase__  :	Optional[int]=1   ,lowercase__  :	int=0   ,lowercase__  :	List[Any]=2   ,lowercase__  :	str=True   ,lowercase__  :	Dict=2   ,lowercase__  :	str=2   ,lowercase__  :	Tuple=False   ,lowercase__  :	List[str]=1_0_0   ,lowercase__  :	int=8_0_0   ,**lowercase__  :	Union[str, Any]   ,):
   __lowercase				    =					vocab_size
   __lowercase				    =					max_position_embeddings
   __lowercase				    =					d_model
   __lowercase				    =					encoder_ffn_dim
   __lowercase				    =					encoder_layers
   __lowercase				    =					encoder_attention_heads
   __lowercase				    =					decoder_ffn_dim
   __lowercase				    =					decoder_layers
   __lowercase				    =					decoder_attention_heads
   __lowercase				    =					dropout
   __lowercase				    =					attention_dropout
   __lowercase				    =					activation_dropout
   __lowercase				    =					activation_function
   __lowercase				    =					init_std
   __lowercase				    =					encoder_layerdrop
   __lowercase				    =					decoder_layerdrop
   __lowercase				    =					classifier_dropout
   __lowercase				    =					use_cache
   __lowercase				    =					encoder_layers
   __lowercase				    =					scale_embedding  # scale factor will be sqrt(d_model) if True
   __lowercase				    =					use_prompt
   __lowercase				    =					prompt_length
   __lowercase				    =					prompt_mid_dim

   super().__init__(
       pad_token_id=lowercase__   ,bos_token_id=lowercase__   ,eos_token_id=lowercase__   ,is_encoder_decoder=lowercase__   ,decoder_start_token_id=lowercase__   ,forced_eos_token_id=lowercase__   ,**lowercase__   ,)

   if self.forced_bos_token_id is None and kwargs.get('''force_bos_token_to_be_generated'''   ,lowercase__     ):
    __lowercase				    =					self.bos_token_id
    warnings.warn(
        F"Please make sure the config includes `forced_bos_token_id={self.bos_token_id}` in future versions. "
        '''The config can simply be saved and uploaded again to be fixed.'''     )





def    a__    (		snake_case__					:							int						,   snake_case__					:							int     ):
  return 1 if input_a == input_a else 0




def    a__    (		):
  assert xnor_gate(0						,   0     ) == 1
  assert xnor_gate(0						,   1     ) == 0
  assert xnor_gate(1						,   0     ) == 0
  assert xnor_gate(1						,   1     ) == 1


if __name__ == "__main__":
 print(xnor_gate(0, 0))
 print(xnor_gate(0, 1))
 print(xnor_gate(1, 0))
 print(xnor_gate(1, 1))





