






"""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


A__	:    Dict			 = logging.get_logger(__name__)

A__	:    Optional[int]			 = {
    'microsoft/beit-base-patch16-224-pt22k': (
        'https://huggingface.co/microsoft/beit-base-patch16-224-pt22k/resolve/main/config.json'
    ),
    # See all BEiT models at https://huggingface.co/models?filter=beit
}







class        lowercase__      (							snake_case__       ):
			_UpperCAmelCase		:Optional[int]             =			"beit"


			def __init__(				self					:  str       ,	snake_case__					:  Optional[Any]=8192       ,	snake_case__					:  Optional[int]=768       ,	snake_case__					:  Union[str, Any]=12       ,	snake_case__					:  Tuple=12       ,	snake_case__					:  List[Any]=3072       ,	snake_case__					:  Optional[int]="gelu"       ,	snake_case__					:  Dict=0.0       ,	snake_case__					:  Optional[int]=0.0       ,	snake_case__					:  str=0.02       ,	snake_case__					:  int=1E-12       ,	snake_case__					:  Union[str, Any]=224       ,	snake_case__					:  Tuple=16       ,	snake_case__					:  Optional[Any]=3       ,	snake_case__					:  Optional[Any]=False       ,	snake_case__					:  Optional[Any]=False       ,	snake_case__					:  Any=False       ,	snake_case__					:  List[str]=False       ,	snake_case__					:  List[Any]=0.1       ,	snake_case__					:  Optional[int]=0.1       ,	snake_case__					:  Tuple=True       ,	snake_case__					:  Tuple=[3, 5, 7, 11]       ,	snake_case__					:  Any=[1, 2, 3, 6]       ,	snake_case__					:  int=True       ,	snake_case__					:  List[str]=0.4       ,	snake_case__					:  Union[str, Any]=256       ,	snake_case__					:  Tuple=1       ,	snake_case__					:  List[Any]=False       ,	snake_case__					:  Optional[Any]=255       ,	**snake_case__					:  List[Any]       ,	):
										super().__init__(**snake_case__ )

										lowerCamelCase_	:							List[str]									=vocab_size
										lowerCamelCase_	:							List[str]									=hidden_size
										lowerCamelCase_	:							str									=num_hidden_layers
										lowerCamelCase_	:							Optional[Any]									=num_attention_heads
										lowerCamelCase_	:							Dict									=intermediate_size
										lowerCamelCase_	:							int									=hidden_act
										lowerCamelCase_	:							List[Any]									=hidden_dropout_prob
										lowerCamelCase_	:							Optional[Any]									=attention_probs_dropout_prob
										lowerCamelCase_	:							Dict									=initializer_range
										lowerCamelCase_	:							Optional[int]									=layer_norm_eps

										lowerCamelCase_	:							List[str]									=image_size
										lowerCamelCase_	:							Tuple									=patch_size
										lowerCamelCase_	:							str									=num_channels
										lowerCamelCase_	:							Any									=use_mask_token
										lowerCamelCase_	:							List[Any]									=use_absolute_position_embeddings
										lowerCamelCase_	:							Dict									=use_relative_position_bias
										lowerCamelCase_	:							Optional[int]									=use_shared_relative_position_bias
										lowerCamelCase_	:							int									=layer_scale_init_value
										lowerCamelCase_	:							List[str]									=drop_path_rate
										lowerCamelCase_	:							Tuple									=use_mean_pooling
										# decode head attributes (semantic segmentation)
										lowerCamelCase_	:							Dict									=out_indices
										lowerCamelCase_	:							Dict									=pool_scales
										# auxiliary head attributes (semantic segmentation)
										lowerCamelCase_	:							int									=use_auxiliary_head
										lowerCamelCase_	:							Any									=auxiliary_loss_weight
										lowerCamelCase_	:							List[Any]									=auxiliary_channels
										lowerCamelCase_	:							Tuple									=auxiliary_num_convs
										lowerCamelCase_	:							Tuple									=auxiliary_concat_input
										lowerCamelCase_	:							Any									=semantic_loss_ignore_index







class        lowercase__      (							snake_case__       ):
			_UpperCAmelCase		:Optional[int]             =			version.parse("1.11"       )


			@property
			def      UpperCAmelCase__						(				self					:  Optional[int] ):
										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 _LazyModule


A__	:    Tuple			 = {'tokenization_byt5': ['ByT5Tokenizer']}


if TYPE_CHECKING:
						from .tokenization_byta import ByTaTokenizer
else:
						import sys

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



