

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


_lowerCAmelCase					:			Optional[Any]  				=			logging.get_logger(__name__)

_lowerCAmelCase					:			Any  				=			{
    "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 	__magic_name__    (			lowerCAmelCase_      ):
			SCREAMING_SNAKE_CASE							   =						'speech_to_text_2'
			SCREAMING_SNAKE_CASE							   =						['past_key_values']
			SCREAMING_SNAKE_CASE							   =						{'num_attention_heads': 'decoder_attention_heads', 'hidden_size': 'd_model'}





			def __init__(		self					,  __snake_case=1_0000					,  __snake_case=6					,  __snake_case=2048					,  __snake_case=4					,  __snake_case=0.0					,  __snake_case=True					,  __snake_case="relu"					,  __snake_case=256					,  __snake_case=0.1					,  __snake_case=0.0					,  __snake_case=0.0					,  __snake_case=0.02					,  __snake_case=2					,  __snake_case=True					,  __snake_case=1					,  __snake_case=0					,  __snake_case=2					,  __snake_case=1024					,  **__snake_case					,  )   -> int:




						'''simple docstring'''
						__a        =vocab_size
						__a        =d_model
						__a        =decoder_ffn_dim
						__a        =decoder_layers
						__a        =decoder_attention_heads
						__a        =dropout
						__a        =attention_dropout
						__a        =activation_dropout
						__a        =activation_function
						__a        =init_std
						__a        =decoder_layerdrop
						__a        =use_cache
						__a        =decoder_layers
						__a        =scale_embedding  # scale factor will be sqrt(d_model) if True
						__a        =max_target_positions

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









_lowerCAmelCase					:			Optional[int]  				=			"\n# Transformers installation\n! pip install transformers datasets\n# To install from source instead of the last release, comment the command above and uncomment the following one.\n# ! pip install git+https://github.com/huggingface/transformers.git\n"

_lowerCAmelCase					:			Tuple  				=			[{"type": "code", "content": INSTALL_CONTENT}]
_lowerCAmelCase					:			Optional[int]  				=			{
    "{processor_class}": "FakeProcessorClass",
    "{model_class}": "FakeModelClass",
    "{object_class}": "FakeObjectClass",
}






