



"""simple docstring"""






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


__snake_case				:  Union[str, Any] =       logging.get_logger(__name__)

__snake_case				:  Any =       {
    'alibaba-damo/mgp-str-base': 'https://huggingface.co/alibaba-damo/mgp-str-base/resolve/main/config.json',
}



class      A__  (    __SCREAMING_SNAKE_CASE				):




	'''simple docstring'''





	SCREAMING_SNAKE_CASE        =      'mgp-str'

	def __init__(	self:						Optional[int]			,     _SCREAMING_SNAKE_CASE:						Optional[Any]=[32, 128]			,     _SCREAMING_SNAKE_CASE:						List[str]=4			,     _SCREAMING_SNAKE_CASE:						Optional[int]=3			,     _SCREAMING_SNAKE_CASE:						Optional[int]=27			,     _SCREAMING_SNAKE_CASE:						Optional[int]=38			,     _SCREAMING_SNAKE_CASE:						Dict=5_0257			,     _SCREAMING_SNAKE_CASE:						Dict=3_0522			,     _SCREAMING_SNAKE_CASE:						Optional[int]=768			,     _SCREAMING_SNAKE_CASE:						Optional[Any]=12			,     _SCREAMING_SNAKE_CASE:						str=12			,     _SCREAMING_SNAKE_CASE:						Union[str, Any]=4.0			,     _SCREAMING_SNAKE_CASE:						int=True			,     _SCREAMING_SNAKE_CASE:						Union[str, Any]=False			,     _SCREAMING_SNAKE_CASE:						Optional[int]=1e-5			,     _SCREAMING_SNAKE_CASE:						Tuple=0.0			,     _SCREAMING_SNAKE_CASE:						List[str]=0.0			,     _SCREAMING_SNAKE_CASE:						Optional[int]=0.0			,     _SCREAMING_SNAKE_CASE:						Optional[Any]=False			,     _SCREAMING_SNAKE_CASE:						Dict=0.02			,     **_SCREAMING_SNAKE_CASE:						Optional[int]			,     )							->			Any:

				"""simple docstring"""

				super().__init__(**_SCREAMING_SNAKE_CASE)

				__lowerCAmelCase :    Any				=			image_size
				__lowerCAmelCase :    Optional[int]				=			patch_size
				__lowerCAmelCase :    Union[str, Any]				=			num_channels
				__lowerCAmelCase :    Union[str, Any]				=			max_token_length
				__lowerCAmelCase :    Tuple				=			num_character_labels
				__lowerCAmelCase :    int				=			num_bpe_labels
				__lowerCAmelCase :    List[Any]				=			num_wordpiece_labels
				__lowerCAmelCase :    Optional[Any]				=			hidden_size
				__lowerCAmelCase :    List[str]				=			num_hidden_layers
				__lowerCAmelCase :    List[Any]				=			num_attention_heads
				__lowerCAmelCase :    Optional[int]				=			mlp_ratio
				__lowerCAmelCase :    Dict				=			distilled
				__lowerCAmelCase :    Union[str, Any]				=			layer_norm_eps
				__lowerCAmelCase :    List[Any]				=			drop_rate
				__lowerCAmelCase :    Dict				=			qkv_bias
				__lowerCAmelCase :    Union[str, Any]				=			attn_drop_rate
				__lowerCAmelCase :    Optional[int]				=			drop_path_rate
				__lowerCAmelCase :    Union[str, Any]				=			output_aa_attentions
				__lowerCAmelCase :    int				=			initializer_range




"""simple docstring"""






from abc import ABC, abstractmethod
from argparse import ArgumentParser



class      A__  (    __SCREAMING_SNAKE_CASE				):




	'''simple docstring'''





	@staticmethod
	@abstractmethod
	def 				_SCREAMING_SNAKE_CASE  (	_SCREAMING_SNAKE_CASE:						ArgumentParser)							->			Optional[int]:

				"""simple docstring"""

				raise NotImplementedError()







	@abstractmethod
	def 				_SCREAMING_SNAKE_CASE  (	self:						Union[str, Any])							->			Dict:

				"""simple docstring"""

				raise NotImplementedError()