


"""simple docstring"""


from collections import OrderedDict
from typing import Mapping

from packaging import version

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


_snake_case          =							logging.get_logger(__name__)

_snake_case          =							{
    "google/vit-base-patch16-224": "https://huggingface.co/vit-base-patch16-224/resolve/main/config.json",
    # See all ViT models at https://huggingface.co/models?filter=vit
}



class   _a      (      SCREAMING_SNAKE_CASE_ ):
    a_    :				List[Any]             =    'vit'
    def __init__( self							:					int							,					SCREAMING_SNAKE_CASE__							:					str=7_68							,					SCREAMING_SNAKE_CASE__							:					Optional[Any]=12							,					SCREAMING_SNAKE_CASE__							:					Tuple=12							,					SCREAMING_SNAKE_CASE__							:					str=30_72							,					SCREAMING_SNAKE_CASE__							:					str="gelu"							,					SCREAMING_SNAKE_CASE__							:					List[str]=0.0							,					SCREAMING_SNAKE_CASE__							:					str=0.0							,					SCREAMING_SNAKE_CASE__							:					List[Any]=0.02							,					SCREAMING_SNAKE_CASE__							:					Optional[Any]=1e-12							,					SCREAMING_SNAKE_CASE__							:					Optional[Any]=2_24							,					SCREAMING_SNAKE_CASE__							:					str=16							,					SCREAMING_SNAKE_CASE__							:					Optional[int]=3							,					SCREAMING_SNAKE_CASE__							:					Any=True							,					SCREAMING_SNAKE_CASE__							:					Union[str, Any]=16							,					**SCREAMING_SNAKE_CASE__							:					str							,					):
          super().__init__(**SCREAMING_SNAKE_CASE__				)

          lowerCamelCase__           =		hidden_size
          lowerCamelCase__           =		num_hidden_layers
          lowerCamelCase__           =		num_attention_heads
          lowerCamelCase__           =		intermediate_size
          lowerCamelCase__           =		hidden_act
          lowerCamelCase__           =		hidden_dropout_prob
          lowerCamelCase__           =		attention_probs_dropout_prob
          lowerCamelCase__           =		initializer_range
          lowerCamelCase__           =		layer_norm_eps
          lowerCamelCase__           =		image_size
          lowerCamelCase__           =		patch_size
          lowerCamelCase__           =		num_channels
          lowerCamelCase__           =		qkv_bias
          lowerCamelCase__           =		encoder_stride





class   _a      (      SCREAMING_SNAKE_CASE_ ):
    a_    :				Dict             =    version.parse('1.11' )
    @property
    def      _UpperCamelCase       ( self							:					Optional[Any]				):
          return OrderedDict(
              [
                  ('pixel_values', {0: 'batch', 1: 'num_channels', 2: 'height', 3: 'width'}),
              ]				)


    @property
    def      _UpperCamelCase       ( self							:					List[Any]				):
          return 1e-4







"""simple docstring"""


from typing import TYPE_CHECKING

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


_snake_case          =							{
    "configuration_m2m_100": ["M2M_100_PRETRAINED_CONFIG_ARCHIVE_MAP", "M2M100Config", "M2M100OnnxConfig"],
    "tokenization_m2m_100": ["M2M100Tokenizer"],
}


try:
   if not is_torch_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   _snake_case          =							[
       "M2M_100_PRETRAINED_MODEL_ARCHIVE_LIST",
       "M2M100ForConditionalGeneration",
       "M2M100Model",
       "M2M100PreTrainedModel",
   ]


if TYPE_CHECKING:
   from .configuration_mam_aaa import M2M_100_PRETRAINED_CONFIG_ARCHIVE_MAP, MaMaaaConfig, MaMaaaOnnxConfig
   from .tokenization_mam_aaa import MaMaaaTokenizer

   try:
      if not is_torch_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .modeling_mam_aaa import (
          M2M_100_PRETRAINED_MODEL_ARCHIVE_LIST,
          MaMaaaForConditionalGeneration,
          MaMaaaModel,
          MaMaaaPreTrainedModel,
      )


else:
   import sys

   _snake_case          =							_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)



