





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


_UpperCAmelCase             =							logging.get_logger(__name__)

_UpperCAmelCase             =							{
    'microsoft/cvt-13': 'https://huggingface.co/microsoft/cvt-13/resolve/main/config.json',
    # See all Cvt models at https://huggingface.co/models?filter=cvt
}






class        snake_case_    (		__lowercase						):
  A_      							=   'cvt'






  def __init__(							self			:					Union[str, Any]       ,  _snake_case			:					str=3       ,  _snake_case			:					Dict=[7, 3, 3]       ,  _snake_case			:					List[Any]=[4, 2, 2]       ,  _snake_case			:					Union[str, Any]=[2, 1, 1]       ,  _snake_case			:					Optional[int]=[64, 192, 384]       ,  _snake_case			:					str=[1, 3, 6]       ,  _snake_case			:					Dict=[1, 2, 10]       ,  _snake_case			:					Tuple=[4.0, 4.0, 4.0]       ,  _snake_case			:					Optional[int]=[0.0, 0.0, 0.0]       ,  _snake_case			:					Any=[0.0, 0.0, 0.0]       ,  _snake_case			:					Any=[0.0, 0.0, 0.1]       ,  _snake_case			:					int=[True, True, True]       ,  _snake_case			:					str=[False, False, True]       ,  _snake_case			:					Dict=["dw_bn", "dw_bn", "dw_bn"]       ,  _snake_case			:					List[Any]=[3, 3, 3]       ,  _snake_case			:					Dict=[1, 1, 1]       ,  _snake_case			:					Dict=[2, 2, 2]       ,  _snake_case			:					int=[1, 1, 1]       ,  _snake_case			:					str=[1, 1, 1]       ,  _snake_case			:					Tuple=0.02       ,  _snake_case			:					str=1E-12       ,  **_snake_case			:					int       ,  )->int:






   '''simple docstring'''

   super().__init__(**_snake_case      )
   __lowerCAmelCase					:	Dict      =       num_channels
   __lowerCAmelCase					:	Optional[Any]      =       patch_sizes
   __lowerCAmelCase					:	int      =       patch_stride
   __lowerCAmelCase					:	Optional[Any]      =       patch_padding
   __lowerCAmelCase					:	Optional[int]      =       embed_dim
   __lowerCAmelCase					:	Dict      =       num_heads
   __lowerCAmelCase					:	List[Any]      =       depth
   __lowerCAmelCase					:	List[str]      =       mlp_ratio
   __lowerCAmelCase					:	int      =       attention_drop_rate
   __lowerCAmelCase					:	Optional[Any]      =       drop_rate
   __lowerCAmelCase					:	str      =       drop_path_rate
   __lowerCAmelCase					:	Optional[Any]      =       qkv_bias
   __lowerCAmelCase					:	Optional[Any]      =       cls_token
   __lowerCAmelCase					:	List[str]      =       qkv_projection_method
   __lowerCAmelCase					:	Tuple      =       kernel_qkv
   __lowerCAmelCase					:	Dict      =       padding_kv
   __lowerCAmelCase					:	Union[str, Any]      =       stride_kv
   __lowerCAmelCase					:	Tuple      =       padding_q
   __lowerCAmelCase					:	Dict      =       stride_q
   __lowerCAmelCase					:	Any      =       initializer_range
   __lowerCAmelCase					:	Any      =       layer_norm_eps






from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_torch_available,
)


_UpperCAmelCase             =							{
    'configuration_gpt_bigcode': ['GPT_BIGCODE_PRETRAINED_CONFIG_ARCHIVE_MAP', 'GPTBigCodeConfig'],
}

try:
      if not is_torch_available():
            raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
      pass
else:
      _UpperCAmelCase             =							[
          'GPT_BIGCODE_PRETRAINED_MODEL_ARCHIVE_LIST',
          'GPTBigCodeForSequenceClassification',
          'GPTBigCodeForTokenClassification',
          'GPTBigCodeForCausalLM',
          'GPTBigCodeModel',
          'GPTBigCodePreTrainedModel',
      ]

if TYPE_CHECKING:
      from .configuration_gpt_bigcode import GPT_BIGCODE_PRETRAINED_CONFIG_ARCHIVE_MAP, GPTBigCodeConfig

      try:
            if not is_torch_available():
                  raise OptionalDependencyNotAvailable()
      except OptionalDependencyNotAvailable:
            pass
      else:
            from .modeling_gpt_bigcode import (
                GPT_BIGCODE_PRETRAINED_MODEL_ARCHIVE_LIST,
                GPTBigCodeForCausalLM,
                GPTBigCodeForSequenceClassification,
                GPTBigCodeForTokenClassification,
                GPTBigCodeModel,
                GPTBigCodePreTrainedModel,
            )


else:
      import sys

      _UpperCAmelCase             =							_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)