

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


_lowerCamelCase      :					Dict					    =      logging.get_logger(__name__)

_lowerCamelCase      :					int					    =      {
    '''uw-madison/mra-base-512-4''': '''https://huggingface.co/uw-madison/mra-base-512-4/resolve/main/config.json''',
}





class        lowerCAmelCase__  (					__magic_name__			):



       '''simple docstring'''







       lowercase_						=    """mra"""

       def __init__(							self ,   lowercase__=5_0_2_6_5 ,   lowercase__=7_6_8 ,   lowercase__=1_2 ,   lowercase__=1_2 ,   lowercase__=3_0_7_2 ,   lowercase__="gelu" ,   lowercase__=0.1 ,   lowercase__=0.1 ,   lowercase__=5_1_2 ,   lowercase__=1 ,   lowercase__=0.02 ,   lowercase__=1E-5 ,   lowercase__="absolute" ,   lowercase__=4 ,   lowercase__="full" ,   lowercase__=0 ,   lowercase__=0 ,   lowercase__=1 ,   lowercase__=0 ,   lowercase__=2 ,   **lowercase__ ,   ):







             '''simple docstring'''



             super().__init__(pad_token_id=lowercase__ ,   bos_token_id=lowercase__ ,   eos_token_id=lowercase__ ,   **lowercase__     )

             __A    =vocab_size
             __A    =max_position_embeddings
             __A    =hidden_size
             __A    =num_hidden_layers
             __A    =num_attention_heads
             __A    =intermediate_size
             __A    =hidden_act
             __A    =hidden_dropout_prob
             __A    =attention_probs_dropout_prob
             __A    =initializer_range
             __A    =type_vocab_size
             __A    =layer_norm_eps
             __A    =position_embedding_type
             __A    =block_per_row
             __A    =approx_mode
             __A    =initial_prior_first_n_blocks
             __A    =initial_prior_diagonal_n_blocks





from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_speech_available, is_torch_available


_lowerCamelCase      :					int					    =      {
    '''configuration_audio_spectrogram_transformer''': [
        '''AUDIO_SPECTROGRAM_TRANSFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP''',
        '''ASTConfig''',
    ]
}

try:
   if not is_torch_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   _lowerCamelCase      :					Tuple					    =      [
       '''AUDIO_SPECTROGRAM_TRANSFORMER_PRETRAINED_MODEL_ARCHIVE_LIST''',
       '''ASTForAudioClassification''',
       '''ASTModel''',
       '''ASTPreTrainedModel''',
   ]

try:
   if not is_speech_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   _lowerCamelCase      :					Optional[Any]					    =      ['''ASTFeatureExtractor''']

if TYPE_CHECKING:
   from .configuration_audio_spectrogram_transformer import (
       AUDIO_SPECTROGRAM_TRANSFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP,
       ASTConfig,
   )

   try:
      if not is_torch_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .modeling_audio_spectrogram_transformer import (
          AUDIO_SPECTROGRAM_TRANSFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
          ASTForAudioClassification,
          ASTModel,
          ASTPreTrainedModel,
      )

   try:
      if not is_speech_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .feature_extraction_audio_spectrogram_transformer import ASTFeatureExtractor


else:
   import sys

   _lowerCamelCase      :					Optional[int]					    =      _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)


