




'''simple docstring'''







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


lowercase      :   List[Any]      =       logging.get_logger(__name__)

lowercase      :   Dict      =       {
    """MIT/ast-finetuned-audioset-10-10-0.4593""": (
        """https://huggingface.co/MIT/ast-finetuned-audioset-10-10-0.4593/resolve/main/config.json"""
    ),
}







class 					_a (a__	):





     '''simple docstring'''



     lowerCAmelCase_  :     int          =					"""audio-spectrogram-transformer"""







     def __init__(				self							,__a=768							,__a=12							,__a=12							,__a=3_072							,__a="gelu"							,__a=0.0							,__a=0.0							,__a=0.02							,__a=1E-12							,__a=16							,__a=True							,__a=10							,__a=10							,__a=1_024							,__a=128							,**__a							,)      ->				Tuple:
          super().__init__(**__a							)

          snake_case			:      Any        =			hidden_size
          snake_case			:      Dict        =			num_hidden_layers
          snake_case			:      List[Any]        =			num_attention_heads
          snake_case			:      Optional[Any]        =			intermediate_size
          snake_case			:      str        =			hidden_act
          snake_case			:      Dict        =			hidden_dropout_prob
          snake_case			:      int        =			attention_probs_dropout_prob
          snake_case			:      Dict        =			initializer_range
          snake_case			:      Optional[int]        =			layer_norm_eps
          snake_case			:      Tuple        =			patch_size
          snake_case			:      List[Any]        =			qkv_bias
          snake_case			:      Dict        =			frequency_stride
          snake_case			:      Union[str, Any]        =			time_stride
          snake_case			:      Optional[int]        =			max_length
          snake_case			:      str        =			num_mel_bins









'''simple docstring'''







from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


lowercase      :   Union[str, Any]      =       {
    """configuration_instructblip""": [
        """INSTRUCTBLIP_PRETRAINED_CONFIG_ARCHIVE_MAP""",
        """InstructBlipConfig""",
        """InstructBlipQFormerConfig""",
        """InstructBlipVisionConfig""",
    ],
    """processing_instructblip""": ["""InstructBlipProcessor"""],
}

try:
      if not is_torch_available():
            raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
      pass
else:
      lowercase      :   Union[str, Any]      =       [
          """INSTRUCTBLIP_PRETRAINED_MODEL_ARCHIVE_LIST""",
          """InstructBlipQFormerModel""",
          """InstructBlipPreTrainedModel""",
          """InstructBlipForConditionalGeneration""",
          """InstructBlipVisionModel""",
      ]

if TYPE_CHECKING:
      from .configuration_instructblip import (
          INSTRUCTBLIP_PRETRAINED_CONFIG_ARCHIVE_MAP,
          InstructBlipConfig,
          InstructBlipQFormerConfig,
          InstructBlipVisionConfig,
      )
      from .processing_instructblip import InstructBlipProcessor

      try:
            if not is_torch_available():
                  raise OptionalDependencyNotAvailable()
      except OptionalDependencyNotAvailable:
            pass
      else:
            from .modeling_instructblip import (
                INSTRUCTBLIP_PRETRAINED_MODEL_ARCHIVE_LIST,
                InstructBlipForConditionalGeneration,
                InstructBlipPreTrainedModel,
                InstructBlipQFormerModel,
                InstructBlipVisionModel,
            )

else:
      import sys

      lowercase      :   List[Any]      =       _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)



