
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       _lowerCAmelCase   (      __a			):
				_lowercase     						='''mvp'''
				_lowercase     						=['''past_key_values''']
				_lowercase     						={'''num_attention_heads''': '''encoder_attention_heads''', '''hidden_size''': '''d_model'''}




				def __init__(   self							,							_UpperCamelCase=50_267							,							_UpperCamelCase=1_024							,							_UpperCamelCase=12							,							_UpperCamelCase=4_096							,							_UpperCamelCase=16							,							_UpperCamelCase=12							,							_UpperCamelCase=4_096							,							_UpperCamelCase=16							,							_UpperCamelCase=0.0							,							_UpperCamelCase=0.0							,							_UpperCamelCase="gelu"							,							_UpperCamelCase=1_024							,							_UpperCamelCase=0.1							,							_UpperCamelCase=0.0							,							_UpperCamelCase=0.0							,							_UpperCamelCase=0.02							,							_UpperCamelCase=0.0							,							_UpperCamelCase=False							,							_UpperCamelCase=True							,							_UpperCamelCase=1							,							_UpperCamelCase=0							,							_UpperCamelCase=2							,							_UpperCamelCase=True							,							_UpperCamelCase=2							,							_UpperCamelCase=2							,							_UpperCamelCase=False							,							_UpperCamelCase=100							,							_UpperCamelCase=800							,							**_UpperCamelCase							,							)							-> List[Any]:
							lowerCAmelCase_         =      vocab_size
							lowerCAmelCase_         =      max_position_embeddings
							lowerCAmelCase_         =      d_model
							lowerCAmelCase_         =      encoder_ffn_dim
							lowerCAmelCase_         =      encoder_layers
							lowerCAmelCase_         =      encoder_attention_heads
							lowerCAmelCase_         =      decoder_ffn_dim
							lowerCAmelCase_         =      decoder_layers
							lowerCAmelCase_         =      decoder_attention_heads
							lowerCAmelCase_         =      dropout
							lowerCAmelCase_         =      attention_dropout
							lowerCAmelCase_         =      activation_dropout
							lowerCAmelCase_         =      activation_function
							lowerCAmelCase_         =      init_std
							lowerCAmelCase_         =      encoder_layerdrop
							lowerCAmelCase_         =      decoder_layerdrop
							lowerCAmelCase_         =      classifier_dropout
							lowerCAmelCase_         =      use_cache
							lowerCAmelCase_         =      encoder_layers
							lowerCAmelCase_         =      scale_embedding  # scale factor will be sqrt(d_model) if True
							lowerCAmelCase_         =      use_prompt
							lowerCAmelCase_         =      prompt_length
							lowerCAmelCase_         =      prompt_mid_dim

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

							if self.forced_bos_token_id is None and kwargs.get("force_bos_token_to_be_generated"							,							_UpperCamelCase	):
										lowerCAmelCase_         =      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 typing import List

import datasets
from datasets.tasks import AudioClassification

from ..folder_based_builder import folder_based_builder


_A  =	datasets.utils.logging.get_logger(__name__)





class       _lowerCAmelCase   (      folder_based_builder.FolderBasedBuilderConfig			):
				_lowercase     						=None
				_lowercase     						=None





class       _lowerCAmelCase   (      folder_based_builder.FolderBasedBuilder			):
				_lowercase     						=datasets.Audio()
				_lowercase     						='''audio'''
				_lowercase     						=AudioFolderConfig
				_lowercase     						=42  # definition at the bottom of the script
				_lowercase     						=AudioClassification(audio_column='''audio'''   , label_column='''label'''			)


_A  =	[
    ".aiff",
    ".au",
    ".avr",
    ".caf",
    ".flac",
    ".htk",
    ".svx",
    ".mat4",
    ".mat5",
    ".mpc2k",
    ".ogg",
    ".paf",
    ".pvf",
    ".raw",
    ".rf64",
    ".sd2",
    ".sds",
    ".ircam",
    ".voc",
    ".w64",
    ".wav",
    ".nist",
    ".wavex",
    ".wve",
    ".xi",
    ".mp3",
    ".opus",
]
_A  =	AUDIO_EXTENSIONS



