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


_lowerCamelCase					:   Optional[Any]							=		logging.get_logger(__name__)

_lowerCamelCase					:   Dict							=		{
    '''sail/poolformer_s12''': '''https://huggingface.co/sail/poolformer_s12/resolve/main/config.json''',
    # See all PoolFormer models at https://huggingface.co/models?filter=poolformer
}


class 						lowercase    (     a     ):
							lowercase__						:       Tuple								=							"""poolformer"""




							def __init__(						self   :					Optional[Any]	,							_UpperCamelCase   :					Any=3	,							_UpperCamelCase   :					Any=16	,							_UpperCamelCase   :					str=16	,							_UpperCamelCase   :					Dict=3	,							_UpperCamelCase   :					Optional[Any]=4.0	,							_UpperCamelCase   :					Tuple=[2, 2, 6, 2]	,							_UpperCamelCase   :					List[Any]=[64, 128, 320, 512]	,							_UpperCamelCase   :					List[str]=[7, 3, 3, 3]	,							_UpperCamelCase   :					str=[4, 2, 2, 2]	,							_UpperCamelCase   :					int=[2, 1, 1, 1]	,							_UpperCamelCase   :					Any=4	,							_UpperCamelCase   :					List[Any]=0.0	,							_UpperCamelCase   :					str="gelu"	,							_UpperCamelCase   :					str=True	,							_UpperCamelCase   :					Dict=1e-5	,							_UpperCamelCase   :					Optional[int]=0.0_2	,							**_UpperCamelCase   :					str	,							)					->				List[str]:



												'''simple docstring'''

												SCREAMING_SNAKE_CASE    			=       num_channels
												SCREAMING_SNAKE_CASE    			=       patch_size
												SCREAMING_SNAKE_CASE    			=       stride
												SCREAMING_SNAKE_CASE    			=       padding
												SCREAMING_SNAKE_CASE    			=       pool_size
												SCREAMING_SNAKE_CASE    			=       hidden_sizes
												SCREAMING_SNAKE_CASE    			=       mlp_ratio
												SCREAMING_SNAKE_CASE    			=       depths
												SCREAMING_SNAKE_CASE    			=       patch_sizes
												SCREAMING_SNAKE_CASE    			=       strides
												SCREAMING_SNAKE_CASE    			=       num_encoder_blocks
												SCREAMING_SNAKE_CASE    			=       drop_path_rate
												SCREAMING_SNAKE_CASE    			=       hidden_act
												SCREAMING_SNAKE_CASE    			=       use_layer_scale
												SCREAMING_SNAKE_CASE    			=       layer_scale_init_value
												SCREAMING_SNAKE_CASE    			=       initializer_range
												super().__init__(**_UpperCamelCase      )



class 						lowercase    (     a     ):
							lowercase__						:       List[Any]								=							version.parse("""1.11"""     )




							@property
							def 	__snake_case(						self   :					List[str]      )					->				Mapping[str, Mapping[int, str]]:



												'''simple docstring'''

												return OrderedDict(
												    [
												        ("pixel_values", {0: "batch", 1: "num_channels", 2: "height", 3: "width"}),
												    ]      )





							@property
							def 	__snake_case(						self   :					str      )					->				float:



												'''simple docstring'''

												return 2e-3





from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_flax_available,
    is_tf_available,
    is_tokenizers_available,
    is_torch_available,
)


_lowerCamelCase					:   Optional[int]							=		{
    '''configuration_blenderbot''': [
        '''BLENDERBOT_PRETRAINED_CONFIG_ARCHIVE_MAP''',
        '''BlenderbotConfig''',
        '''BlenderbotOnnxConfig''',
    ],
    '''tokenization_blenderbot''': ['''BlenderbotTokenizer'''],
}

try:
							if not is_tokenizers_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							_lowerCamelCase					:   List[Any]							=		['''BlenderbotTokenizerFast''']

try:
							if not is_torch_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							_lowerCamelCase					:   Tuple							=		[
							    '''BLENDERBOT_PRETRAINED_MODEL_ARCHIVE_LIST''',
							    '''BlenderbotForCausalLM''',
							    '''BlenderbotForConditionalGeneration''',
							    '''BlenderbotModel''',
							    '''BlenderbotPreTrainedModel''',
							]


try:
							if not is_tf_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							_lowerCamelCase					:   List[str]							=		[
							    '''TFBlenderbotForConditionalGeneration''',
							    '''TFBlenderbotModel''',
							    '''TFBlenderbotPreTrainedModel''',
							]


try:
							if not is_flax_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							_lowerCamelCase					:   Optional[int]							=		[
							    '''FlaxBlenderbotForConditionalGeneration''',
							    '''FlaxBlenderbotModel''',
							    '''FlaxBlenderbotPreTrainedModel''',
							]


if TYPE_CHECKING:
							from .configuration_blenderbot import (
							    BLENDERBOT_PRETRAINED_CONFIG_ARCHIVE_MAP,
							    BlenderbotConfig,
							    BlenderbotOnnxConfig,
							)
							from .tokenization_blenderbot import BlenderbotTokenizer

							try:
														if not is_tokenizers_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .tokenization_blenderbot_fast import BlenderbotTokenizerFast

							try:
														if not is_torch_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .modeling_blenderbot import (
														    BLENDERBOT_PRETRAINED_MODEL_ARCHIVE_LIST,
														    BlenderbotForCausalLM,
														    BlenderbotForConditionalGeneration,
														    BlenderbotModel,
														    BlenderbotPreTrainedModel,
														)

							try:
														if not is_tf_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .modeling_tf_blenderbot import (
														    TFBlenderbotForConditionalGeneration,
														    TFBlenderbotModel,
														    TFBlenderbotPreTrainedModel,
														)

							try:
														if not is_flax_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .modeling_flax_blenderbot import (
														    FlaxBlenderbotForConditionalGeneration,
														    FlaxBlenderbotModel,
														    FlaxBlenderbotPreTrainedModel,
														)

else:
							import sys

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




