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


UpperCamelCase_   	=	logging.get_logger(__name__)

UpperCamelCase_   	=	{
    "speechbrain/m-ctc-t-large": "https://huggingface.co/speechbrain/m-ctc-t-large/resolve/main/config.json",
    # See all M-CTC-T models at https://huggingface.co/models?filter=mctct
}

class       a		(   __a					):
       lowercase_		:						Tuple   							=  "mctct"







       def __init__(						self  :  str      ,				snake_case__  :  str=8_065      ,				snake_case__  :  Optional[int]=1_536      ,				snake_case__  :  Optional[int]=36      ,				snake_case__  :  Union[str, Any]=6_144      ,				snake_case__  :  Any=4      ,				snake_case__  :  Any=384      ,				snake_case__  :  str=920      ,				snake_case__  :  Union[str, Any]=1E-5      ,				snake_case__  :  Any=0.3      ,				snake_case__  :  List[Any]="relu"      ,				snake_case__  :  Dict=0.0_2      ,				snake_case__  :  Any=0.3      ,				snake_case__  :  Optional[Any]=0.3      ,				snake_case__  :  Dict=1      ,				snake_case__  :  Any=0      ,				snake_case__  :  Union[str, Any]=2      ,				snake_case__  :  Any=1      ,				snake_case__  :  Union[str, Any]=0.3      ,				snake_case__  :  Optional[Any]=1      ,				snake_case__  :  Tuple=(7,)      ,				snake_case__  :  Union[str, Any]=(3,)      ,				snake_case__  :  Union[str, Any]=80      ,				snake_case__  :  Any=1      ,				snake_case__  :  Any=None      ,				snake_case__  :  List[str]="sum"      ,				snake_case__  :  Union[str, Any]=False      ,				**snake_case__  :  Optional[int]      ,				):
        """simple docstring"""







        super().__init__(**lowerCAmelCase_      ,				pad_token_id=lowerCAmelCase_      ,				bos_token_id=lowerCAmelCase_      ,				eos_token_id=lowerCAmelCase_ )
        __lowerCAmelCase         =							vocab_size
        __lowerCAmelCase         =							hidden_size
        __lowerCAmelCase         =							num_hidden_layers
        __lowerCAmelCase         =							intermediate_size
        __lowerCAmelCase         =							num_attention_heads
        __lowerCAmelCase         =							attention_head_dim
        __lowerCAmelCase         =							max_position_embeddings
        __lowerCAmelCase         =							layer_norm_eps
        __lowerCAmelCase         =							layerdrop
        __lowerCAmelCase         =							hidden_act
        __lowerCAmelCase         =							initializer_range
        __lowerCAmelCase         =							hidden_dropout_prob
        __lowerCAmelCase         =							attention_probs_dropout_prob
        __lowerCAmelCase         =							pad_token_id
        __lowerCAmelCase         =							bos_token_id
        __lowerCAmelCase         =							eos_token_id
        __lowerCAmelCase         =							conv_glu_dim
        __lowerCAmelCase         =							conv_dropout
        __lowerCAmelCase         =							num_conv_layers
        __lowerCAmelCase         =							input_feat_per_channel
        __lowerCAmelCase         =							input_channels
        __lowerCAmelCase         =							conv_channels
        __lowerCAmelCase         =							ctc_loss_reduction
        __lowerCAmelCase         =							ctc_zero_infinity

        # prevents config testing fail with exporting to json
        __lowerCAmelCase         =							list(lowerCAmelCase_ )
        __lowerCAmelCase         =							list(lowerCAmelCase_ )

        if len(self.conv_kernel ) != self.num_conv_layers:
         raise ValueError(
             "Configuration for convolutional module is incorrect. "
             "It is required that `len(config.conv_kernel)` == `config.num_conv_layers` "
             F"but is `len(config.conv_kernel) = {len(self.conv_kernel )}`, "
             F"`config.num_conv_layers = {self.num_conv_layers}`." )








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


UpperCamelCase_   	=	logging.get_logger(__name__)

UpperCamelCase_   	=	{
    "speechbrain/m-ctc-t-large": "https://huggingface.co/speechbrain/m-ctc-t-large/resolve/main/config.json",
    # See all M-CTC-T models at https://huggingface.co/models?filter=mctct
}

class       a		(   __UpperCAmelCase					):
							lowercase_		:						Union[str, Any]   							=  'mctct'







							def __init__(						self  :  Dict      ,				snake_case__  :  Any=8_065      ,				snake_case__  :  Tuple=1_536      ,				snake_case__  :  Union[str, Any]=36      ,				snake_case__  :  List[Any]=6_144      ,				snake_case__  :  Tuple=4      ,				snake_case__  :  List[str]=384      ,				snake_case__  :  List[Any]=920      ,				snake_case__  :  Any=1E-5      ,				snake_case__  :  List[Any]=0.3      ,				snake_case__  :  List[str]="relu"      ,				snake_case__  :  List[Any]=0.0_2      ,				snake_case__  :  Optional[Any]=0.3      ,				snake_case__  :  List[str]=0.3      ,				snake_case__  :  List[Any]=1      ,				snake_case__  :  Optional[int]=0      ,				snake_case__  :  Any=2      ,				snake_case__  :  Any=1      ,				snake_case__  :  List[str]=0.3      ,				snake_case__  :  Tuple=1      ,				snake_case__  :  Union[str, Any]=(7,)      ,				snake_case__  :  List[Any]=(3,)      ,				snake_case__  :  List[Any]=80      ,				snake_case__  :  Optional[int]=1      ,				snake_case__  :  List[str]=None      ,				snake_case__  :  int="sum"      ,				snake_case__  :  Dict=False      ,				**snake_case__  :  List[str]      ,				):
								"""simple docstring"""







								super().__init__(**snake_case__      ,				pad_token_id=snake_case__      ,				bos_token_id=snake_case__      ,				eos_token_id=snake_case__ )
								__lowerCAmelCase         =							vocab_size
								__lowerCAmelCase         =							hidden_size
								__lowerCAmelCase         =							num_hidden_layers
								__lowerCAmelCase         =							intermediate_size
								__lowerCAmelCase         =							num_attention_heads
								__lowerCAmelCase         =							attention_head_dim
								__lowerCAmelCase         =							max_position_embeddings
								__lowerCAmelCase         =							layer_norm_eps
								__lowerCAmelCase         =							layerdrop
								__lowerCAmelCase         =							hidden_act
								__lowerCAmelCase         =							initializer_range
								__lowerCAmelCase         =							hidden_dropout_prob
								__lowerCAmelCase         =							attention_probs_dropout_prob
								__lowerCAmelCase         =							pad_token_id
								__lowerCAmelCase         =							bos_token_id
								__lowerCAmelCase         =							eos_token_id
								__lowerCAmelCase         =							conv_glu_dim
								__lowerCAmelCase         =							conv_dropout
								__lowerCAmelCase         =							num_conv_layers
								__lowerCAmelCase         =							input_feat_per_channel
								__lowerCAmelCase         =							input_channels
								__lowerCAmelCase         =							conv_channels
								__lowerCAmelCase         =							ctc_loss_reduction
								__lowerCAmelCase         =							ctc_zero_infinity

								# prevents config testing fail with exporting to json
								__lowerCAmelCase         =							list(snake_case__ )
								__lowerCAmelCase         =							list(snake_case__ )

								if len(self.conv_kernel ) != self.num_conv_layers:
									raise ValueError(
									    "Configuration for convolutional module is incorrect. "
									    "It is required that `len(config.conv_kernel)` == `config.num_conv_layers` "
									    F"but is `len(config.conv_kernel) = {len(self.conv_kernel )}`, "
									    F"`config.num_conv_layers = {self.num_conv_layers}`." )






