'''simple docstring'''




from collections import OrderedDict
from typing import Mapping

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig


_lowercase		:				Union[str, Any]	       =		{
    "albert-base-v1": "https://huggingface.co/albert-base-v1/resolve/main/config.json",
    "albert-large-v1": "https://huggingface.co/albert-large-v1/resolve/main/config.json",
    "albert-xlarge-v1": "https://huggingface.co/albert-xlarge-v1/resolve/main/config.json",
    "albert-xxlarge-v1": "https://huggingface.co/albert-xxlarge-v1/resolve/main/config.json",
    "albert-base-v2": "https://huggingface.co/albert-base-v2/resolve/main/config.json",
    "albert-large-v2": "https://huggingface.co/albert-large-v2/resolve/main/config.json",
    "albert-xlarge-v2": "https://huggingface.co/albert-xlarge-v2/resolve/main/config.json",
    "albert-xxlarge-v2": "https://huggingface.co/albert-xxlarge-v2/resolve/main/config.json",
}





class 					__magic_name__		(					_UpperCAmelCase):
			UpperCamelCase__       = '''albert'''







			def __init__(			self       :						List[Any]       ,    lowercase_       :						List[str]=30000       ,    lowercase_       :						Optional[Any]=128       ,    lowercase_       :						List[str]=4096       ,    lowercase_       :						str=12       ,    lowercase_       :						List[Any]=1       ,    lowercase_       :						List[str]=64       ,    lowercase_       :						Optional[int]=16384       ,    lowercase_       :						List[Any]=1       ,    lowercase_       :						List[str]="gelu_new"       ,    lowercase_       :						Optional[Any]=0       ,    lowercase_       :						Optional[Any]=0       ,    lowercase_       :						Tuple=512       ,    lowercase_       :						List[Any]=2       ,    lowercase_       :						Union[str, Any]=0.02       ,    lowercase_       :						int=1E-12       ,    lowercase_       :						Union[str, Any]=0.1       ,    lowercase_       :						Dict="absolute"       ,    lowercase_       :						Any=0       ,    lowercase_       :						List[str]=2       ,    lowercase_       :						Union[str, Any]=3       ,    **lowercase_       :						str       ,    ):
										super().__init__(pad_token_id=lowercase_       ,    bos_token_id=lowercase_       ,    eos_token_id=lowercase_       ,    **lowercase_					)

										lowercase_      :    List[str]       		= vocab_size
										lowercase_      :    List[Any]       		= embedding_size
										lowercase_      :    Tuple       		= hidden_size
										lowercase_      :    Tuple       		= num_hidden_layers
										lowercase_      :    Dict       		= num_hidden_groups
										lowercase_      :    Optional[Any]       		= num_attention_heads
										lowercase_      :    Dict       		= inner_group_num
										lowercase_      :    List[str]       		= hidden_act
										lowercase_      :    int       		= intermediate_size
										lowercase_      :    Union[str, Any]       		= hidden_dropout_prob
										lowercase_      :    Any       		= attention_probs_dropout_prob
										lowercase_      :    str       		= max_position_embeddings
										lowercase_      :    Union[str, Any]       		= type_vocab_size
										lowercase_      :    Optional[Any]       		= initializer_range
										lowercase_      :    Dict       		= layer_norm_eps
										lowercase_      :    Optional[Any]       		= classifier_dropout_prob
										lowercase_      :    Any       		= position_embedding_type





class 					__magic_name__		(					_UpperCAmelCase):







			@property
			def 			SCREAMING_SNAKE_CASE_  (			self       :						Tuple					):
										if self.task == "multiple-choice":
																	lowercase_      :    Optional[int]       		= {0: """batch""", 1: """choice""", 2: """sequence"""}
										else:
																	lowercase_      :    int       		= {0: """batch""", 1: """sequence"""}
										return OrderedDict(
										    [
										        ("""input_ids""", dynamic_axis),
										        ("""attention_mask""", dynamic_axis),
										        ("""token_type_ids""", dynamic_axis),
										    ]					)






'''simple docstring'''




from __future__ import annotations




def 							lowerCamelCase			(   UpperCAmelCase__ :      list   ,   UpperCAmelCase__ :      int | None = None   ,   UpperCAmelCase__ :      int | None = None				)    ->   None:
							if start is None:
														lowercase_      :    Any       		= 0

							if end is None:
														lowercase_      :    List[Any]       		= len(UpperCAmelCase__				) - 1

							if start >= end:
														return

							lowercase_      :    Optional[int]       		= (start + end) // 2

							slowsort(UpperCAmelCase__   ,   UpperCAmelCase__   ,   UpperCAmelCase__				)
							slowsort(UpperCAmelCase__   ,   mid + 1   ,   UpperCAmelCase__				)

							if sequence[end] < sequence[mid]:
														lowercase_		,		lowercase_      :    Dict       		= sequence[mid], sequence[end]

							slowsort(UpperCAmelCase__   ,   UpperCAmelCase__   ,   end - 1				)


if __name__ == "__main__":
						from doctest import testmod

						testmod()





