

import warnings

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


__A      		=     logging.get_logger(__name__)

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



class   lowercase_   (  __lowercase					):
      UpperCamelCase_      :		List[Any]										=    "mvp"
      UpperCamelCase_      :		Union[str, Any]										=    ["past_key_values"]
      UpperCamelCase_      :		Union[str, Any]										=    {"num_attention_heads": "encoder_attention_heads", "hidden_size": "d_model"}



      def __init__(      self				:    Optional[Any]      , A__				:    Union[str, Any]=50267      , A__				:    Union[str, Any]=1024      , A__				:    Optional[Any]=12      , A__				:    str=4096      , A__				:    Optional[Any]=16      , A__				:    Any=12      , A__				:    int=4096      , A__				:    List[str]=16      , A__				:    Dict=0.0      , A__				:    Optional[Any]=0.0      , A__				:    Tuple="gelu"      , A__				:    Tuple=1024      , A__				:    Optional[Any]=0.1      , A__				:    Tuple=0.0      , A__				:    str=0.0      , A__				:    Optional[Any]=0.02      , A__				:    Tuple=0.0      , A__				:    Any=False      , A__				:    int=True      , A__				:    Tuple=1      , A__				:    List[str]=0      , A__				:    Union[str, Any]=2      , A__				:    List[Any]=True      , A__				:    Any=2      , A__				:    Optional[int]=2      , A__				:    Any=False      , A__				:    str=100      , A__				:    Optional[int]=800      , **A__				:    Dict      , )   ->					List[str]:
        _snake_case						=							vocab_size
        _snake_case						=							max_position_embeddings
        _snake_case						=							d_model
        _snake_case						=							encoder_ffn_dim
        _snake_case						=							encoder_layers
        _snake_case						=							encoder_attention_heads
        _snake_case						=							decoder_ffn_dim
        _snake_case						=							decoder_layers
        _snake_case						=							decoder_attention_heads
        _snake_case						=							dropout
        _snake_case						=							attention_dropout
        _snake_case						=							activation_dropout
        _snake_case						=							activation_function
        _snake_case						=							init_std
        _snake_case						=							encoder_layerdrop
        _snake_case						=							decoder_layerdrop
        _snake_case						=							classifier_dropout
        _snake_case						=							use_cache
        _snake_case						=							encoder_layers
        _snake_case						=							scale_embedding  # scale factor will be sqrt(d_model) if True
        _snake_case						=							use_prompt
        _snake_case						=							prompt_length
        _snake_case						=							prompt_mid_dim

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

        if self.forced_bos_token_id is None and kwargs.get('''force_bos_token_to_be_generated'''      , A__		):
          _snake_case						=							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.'''		)




from math import factorial



def 				snake_case_(_UpperCamelCase			,	_UpperCamelCase					)							->     int:



  """simple docstring"""






  if n < k or k < 0:
    raise ValueError('''Please enter positive integers for n and k where n >= k'''					)
  return factorial(_UpperCamelCase					) // (factorial(_UpperCamelCase					) * factorial(n - k					))


if __name__ == "__main__":
 print(
     '''The number of five-card hands possible from a standard''',
     f'''fifty-two card deck is: {combinations(52, 5)}\n''',
 )

 print(
     '''If a class of 40 students must be arranged into groups of''',
     f'''4 for group projects, there are {combinations(40, 4)} ways''',
     '''to arrange them.\n''',
 )

 print(
     '''If 10 teams are competing in a Formula One race, there''',
     f'''are {combinations(10, 3)} ways that first, second and''',
     '''third place can be awarded.''',
 )

