code: from collections import OrderedDict
  from typing import Mapping
  
  from ...configuration_utils import PretrainedConfig
  from ...onnx import OnnxConfig
  from ...utils import logging
  
  
  lowercase__    :       Dict						=			logging.get_logger(__name__)
  
  lowercase__    :       Dict						=			{
      '''google/electra-small-generator''': '''https://huggingface.co/google/electra-small-generator/resolve/main/config.json''',
      '''google/electra-base-generator''': '''https://huggingface.co/google/electra-base-generator/resolve/main/config.json''',
      '''google/electra-large-generator''': '''https://huggingface.co/google/electra-large-generator/resolve/main/config.json''',
      '''google/electra-small-discriminator''': (
          '''https://huggingface.co/google/electra-small-discriminator/resolve/main/config.json'''
      ),
      '''google/electra-base-discriminator''': (
          '''https://huggingface.co/google/electra-base-discriminator/resolve/main/config.json'''
      ),
      '''google/electra-large-discriminator''': (
          '''https://huggingface.co/google/electra-large-discriminator/resolve/main/config.json'''
      ),
  }
  
  
  
  
  class      lowercase_						(						UpperCamelCase_		):
  
  
  
  	"""simple docstring"""
  
  
  
  
  
  	UpperCAmelCase_						:      List[str]     =       """electra"""
  
  
  	def __init__(							self	,    __SCREAMING_SNAKE_CASE=30522	,    __SCREAMING_SNAKE_CASE=128	,    __SCREAMING_SNAKE_CASE=256	,    __SCREAMING_SNAKE_CASE=12	,    __SCREAMING_SNAKE_CASE=4	,    __SCREAMING_SNAKE_CASE=1024	,    __SCREAMING_SNAKE_CASE="gelu"	,    __SCREAMING_SNAKE_CASE=0.1	,    __SCREAMING_SNAKE_CASE=0.1	,    __SCREAMING_SNAKE_CASE=512	,    __SCREAMING_SNAKE_CASE=2	,    __SCREAMING_SNAKE_CASE=0.0_2	,    __SCREAMING_SNAKE_CASE=1e-12	,    __SCREAMING_SNAKE_CASE="first"	,    __SCREAMING_SNAKE_CASE=True	,    __SCREAMING_SNAKE_CASE="gelu"	,    __SCREAMING_SNAKE_CASE=0.1	,    __SCREAMING_SNAKE_CASE=0	,    __SCREAMING_SNAKE_CASE="absolute"	,    __SCREAMING_SNAKE_CASE=True	,    __SCREAMING_SNAKE_CASE=None	,    **__SCREAMING_SNAKE_CASE	,    )		->str:
  								super().__init__(pad_token_id=__SCREAMING_SNAKE_CASE	,    **__SCREAMING_SNAKE_CASE       )
  
  								lowerCAmelCase				=	vocab_size
  								lowerCAmelCase				=	embedding_size
  								lowerCAmelCase				=	hidden_size
  								lowerCAmelCase				=	num_hidden_layers
  								lowerCAmelCase				=	num_attention_heads
  								lowerCAmelCase				=	intermediate_size
  								lowerCAmelCase				=	hidden_act
  								lowerCAmelCase				=	hidden_dropout_prob
  								lowerCAmelCase				=	attention_probs_dropout_prob
  								lowerCAmelCase				=	max_position_embeddings
  								lowerCAmelCase				=	type_vocab_size
  								lowerCAmelCase				=	initializer_range
  								lowerCAmelCase				=	layer_norm_eps
  
  								lowerCAmelCase				=	summary_type
  								lowerCAmelCase				=	summary_use_proj
  								lowerCAmelCase				=	summary_activation
  								lowerCAmelCase				=	summary_last_dropout
  								lowerCAmelCase				=	position_embedding_type
  								lowerCAmelCase				=	use_cache
  								lowerCAmelCase				=	classifier_dropout
  
  
  
  
  class      lowercase_						(						UpperCamelCase_		):
  
  
  
  	"""simple docstring"""
  
  
  
  
  
  	@property
  	def     SCREAMING_SNAKE_CASE_       (							self       )		->Mapping[str, Mapping[int, str]]:
  								if self.task == "multiple-choice":
  															lowerCAmelCase				=	{0: '''batch''', 1: '''choice''', 2: '''sequence'''}
  								else:
  															lowerCAmelCase				=	{0: '''batch''', 1: '''sequence'''}
  								return OrderedDict(
  								    [
  								        ('''input_ids''', dynamic_axis),
  								        ('''attention_mask''', dynamic_axis),
  								        ('''token_type_ids''', dynamic_axis),
  								    ]       )
  
  
  
  
style_context: from __future__ import annotations
  
  from enum import Enum
  
  
  
  
  class      lowercase_						(						UpperCamelCase_		):
  
  
  
  	"""simple docstring"""
  
  
  
  
  
  	UpperCAmelCase_						:      str     =       24
  	UpperCAmelCase_						:      Dict     =       21
  	UpperCAmelCase_						:      List[str]     =       18
  	UpperCAmelCase_						:      Optional[int]     =       15
  	UpperCAmelCase_						:      str     =       12
  	UpperCAmelCase_						:      Union[str, Any]     =       9
  	UpperCAmelCase_						:      List[Any]     =       6
  	UpperCAmelCase_						:      Any     =       3
  	UpperCAmelCase_						:      List[str]     =       2
  	UpperCAmelCase_						:      Any     =       1
  	UpperCAmelCase_						:      Any     =       -1
  	UpperCAmelCase_						:      Any     =       -2
  	UpperCAmelCase_						:      Optional[int]     =       -3
  	UpperCAmelCase_						:      List[Any]     =       -6
  	UpperCAmelCase_						:      Optional[int]     =       -9
  	UpperCAmelCase_						:      str     =       -12
  	UpperCAmelCase_						:      Union[str, Any]     =       -15
  	UpperCAmelCase_						:      List[str]     =       -18
  	UpperCAmelCase_						:      str     =       -21
  	UpperCAmelCase_						:      Dict     =       -24
  
  
  
  
  class      lowercase_						(						UpperCamelCase_		):
  
  
  
  	"""simple docstring"""
  
  
  
  
  
  	UpperCAmelCase_						:      List[str]     =       8
  	UpperCAmelCase_						:      Union[str, Any]     =       7
  	UpperCAmelCase_						:      int     =       6
  	UpperCAmelCase_						:      int     =       5
  	UpperCAmelCase_						:      Any     =       4
  	UpperCAmelCase_						:      Dict     =       3
  	UpperCAmelCase_						:      Tuple     =       2
  	UpperCAmelCase_						:      Any     =       1
  
  def      SCREAMING_SNAKE_CASE_  (		snake_case__     ,						snake_case__     ,						snake_case__     ,						)  ->			float:
  							if isinstance(snake_case__     ,						snake_case__							):
  														lowerCAmelCase				=	SIUnit[known_prefix.lower()]
  							if isinstance(snake_case__     ,						snake_case__							):
  														lowerCAmelCase				=	SIUnit[unknown_prefix.lower()]
  							lowerCAmelCase				=	known_amount * (
  							    1_0 ** (known_prefix.value - unknown_prefix.value)
  							)
  							return unknown_amount
  
  def      SCREAMING_SNAKE_CASE_  (		snake_case__     ,						snake_case__     ,						snake_case__     ,						)  ->			float:
  							if isinstance(snake_case__     ,						snake_case__							):
  														lowerCAmelCase				=	BinaryUnit[known_prefix.lower()]
  							if isinstance(snake_case__     ,						snake_case__							):
  														lowerCAmelCase				=	BinaryUnit[unknown_prefix.lower()]
  							lowerCAmelCase				=	known_amount * (
  							    2 ** ((known_prefix.value - unknown_prefix.value) * 1_0)
  							)
  							return unknown_amount
  
  
  if __name__ == "__main__":
  	import doctest
  
  	doctest.testmod()
  
  
  
  