
'''simple docstring'''

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


snake_case									=    logging.get_logger(__name__)

snake_case									=    {
    """facebook/s2t-wav2vec2-large-en-de""": (
        """https://huggingface.co/facebook/s2t-wav2vec2-large-en-de/resolve/main/config.json"""
    ),
    # See all Speech2Text models at https://huggingface.co/models?filter=speech2text2
}




class    lowerCAmelCase       (     UpperCamelCase_  ):
 A_				:				Any	=			"""speech_to_text_2"""
 A_				:				List[Any]	=			["""past_key_values"""]
 A_				:				List[str]	=			{"""num_attention_heads""": """decoder_attention_heads""", """hidden_size""": """d_model"""}


 def __init__(    self  : int			,							a__  : Any=1_0000			,							a__  : Optional[Any]=6			,							a__  : Union[str, Any]=2048			,							a__  : str=4			,							a__  : Dict=0.0			,							a__  : Any=True			,							a__  : Tuple="relu"			,							a__  : Dict=256			,							a__  : int=0.1			,							a__  : List[Any]=0.0			,							a__  : Dict=0.0			,							a__  : Tuple=0.02			,							a__  : Optional[Any]=2			,							a__  : List[str]=True			,							a__  : Tuple=1			,							a__  : int=0			,							a__  : Optional[Any]=2			,							a__  : Any=1024			,							**a__  : Dict			,							):
  '''simple docstring'''

  lowerCAmelCase__     :   Optional[int]     		=	vocab_size
  lowerCAmelCase__     :   List[str]     		=	d_model
  lowerCAmelCase__     :   Union[str, Any]     		=	decoder_ffn_dim
  lowerCAmelCase__     :   int     		=	decoder_layers
  lowerCAmelCase__     :   Optional[Any]     		=	decoder_attention_heads
  lowerCAmelCase__     :   int     		=	dropout
  lowerCAmelCase__     :   Tuple     		=	attention_dropout
  lowerCAmelCase__     :   Any     		=	activation_dropout
  lowerCAmelCase__     :   int     		=	activation_function
  lowerCAmelCase__     :   Optional[Any]     		=	init_std
  lowerCAmelCase__     :   int     		=	decoder_layerdrop
  lowerCAmelCase__     :   Union[str, Any]     		=	use_cache
  lowerCAmelCase__     :   int     		=	decoder_layers
  lowerCAmelCase__     :   Optional[int]     		=	scale_embedding  # scale factor will be sqrt(d_model) if True
  lowerCAmelCase__     :   Tuple     		=	max_target_positions

  super().__init__(
      pad_token_id=a__			,							bos_token_id=a__			,							eos_token_id=a__			,							decoder_start_token_id=a__			,							**a__			,							)







'''simple docstring'''

def        UpperCAmelCase_ (  lowerCamelCase_			):







 """simple docstring"""


 return number & 1 == 0


if __name__ == "__main__":
     import doctest

     doctest.testmod()





