


'''simple docstring'''



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


__UpperCAmelCase      :int			    =       logging.get_logger(__name__)

__UpperCAmelCase      :List[str]			    =       {
    "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	):


     """simple docstring"""






     SCREAMING_SNAKE_CASE	:			Optional[Any]							       =       "mctct"

     def __init__(    self					:		Union[str, Any]							,			snake_case					:		List[str]=8065							,			snake_case					:		str=1536							,			snake_case					:		str=36							,			snake_case					:		List[str]=6144							,			snake_case					:		List[Any]=4							,			snake_case					:		Any=384							,			snake_case					:		List[Any]=920							,			snake_case					:		List[Any]=1E-5							,			snake_case					:		str=0.3							,			snake_case					:		Optional[int]="relu"							,			snake_case					:		List[Any]=0.02							,			snake_case					:		int=0.3							,			snake_case					:		Union[str, Any]=0.3							,			snake_case					:		Optional[Any]=1							,			snake_case					:		Tuple=0							,			snake_case					:		Union[str, Any]=2							,			snake_case					:		Dict=1							,			snake_case					:		Optional[Any]=0.3							,			snake_case					:		str=1							,			snake_case					:		str=(7,)							,			snake_case					:		Optional[int]=(3,)							,			snake_case					:		Any=80							,			snake_case					:		Any=1							,			snake_case					:		List[str]=None							,			snake_case					:		Tuple="sum"							,			snake_case					:		Any=False							,			**snake_case					:		str							,			)						->							Union[str, Any]:
          super().__init__(**snake_case							,			pad_token_id=snake_case							,			bos_token_id=snake_case							,			eos_token_id=snake_case      )
          __UpperCAmelCase     :			List[Any]  							=      vocab_size
          __UpperCAmelCase     :			Dict  							=      hidden_size
          __UpperCAmelCase     :			List[str]  							=      num_hidden_layers
          __UpperCAmelCase     :			Optional[Any]  							=      intermediate_size
          __UpperCAmelCase     :			List[str]  							=      num_attention_heads
          __UpperCAmelCase     :			Any  							=      attention_head_dim
          __UpperCAmelCase     :			int  							=      max_position_embeddings
          __UpperCAmelCase     :			Tuple  							=      layer_norm_eps
          __UpperCAmelCase     :			int  							=      layerdrop
          __UpperCAmelCase     :			Any  							=      hidden_act
          __UpperCAmelCase     :			List[Any]  							=      initializer_range
          __UpperCAmelCase     :			Union[str, Any]  							=      hidden_dropout_prob
          __UpperCAmelCase     :			Union[str, Any]  							=      attention_probs_dropout_prob
          __UpperCAmelCase     :			int  							=      pad_token_id
          __UpperCAmelCase     :			Union[str, Any]  							=      bos_token_id
          __UpperCAmelCase     :			Optional[int]  							=      eos_token_id
          __UpperCAmelCase     :			Optional[int]  							=      conv_glu_dim
          __UpperCAmelCase     :			Tuple  							=      conv_dropout
          __UpperCAmelCase     :			List[str]  							=      num_conv_layers
          __UpperCAmelCase     :			Optional[int]  							=      input_feat_per_channel
          __UpperCAmelCase     :			Dict  							=      input_channels
          __UpperCAmelCase     :			str  							=      conv_channels
          __UpperCAmelCase     :			int  							=      ctc_loss_reduction
          __UpperCAmelCase     :			Tuple  							=      ctc_zero_infinity

          # prevents config testing fail with exporting to json
          __UpperCAmelCase     :			Any  							=      list(snake_case      )
          __UpperCAmelCase     :			Dict  							=      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}`.'      )



'''simple docstring'''



from argparse import ArgumentParser

from .env import EnvironmentCommand




def      _a     (						):





     '''simple docstring'''






     __UpperCAmelCase     :			Optional[Any]  							=      ArgumentParser('''Diffusers CLI tool'''      , usage='''diffusers-cli <command> [<args>]'''  )
     __UpperCAmelCase     :			Union[str, Any]  							=      parser.add_subparsers(help='''diffusers-cli command helpers'''  )

     # Register commands
     EnvironmentCommand.register_subcommand(_lowercase  )

     # Let's go
     __UpperCAmelCase     :			Union[str, Any]  							=      parser.parse_args()

     if not hasattr(_lowercase      , '''func'''  ):
          parser.print_help()
          exit(1  )

     # Run
     __UpperCAmelCase     :			Any  							=      args.func(_lowercase  )
     service.run()


if __name__ == "__main__":
      main()