'''simple docstring'''




from ... import PretrainedConfig


_lowercase		:				Union[str, Any]	       =		{
    "sijunhe/nezha-cn-base": "https://huggingface.co/sijunhe/nezha-cn-base/resolve/main/config.json",
}





class 					__magic_name__		(					_UpperCAmelCase):
			UpperCamelCase__       = NEZHA_PRETRAINED_CONFIG_ARCHIVE_MAP
			UpperCamelCase__       = '''nezha'''







			def __init__(			self       :						Dict       ,    lowercase_       :						Tuple=21128       ,    lowercase_       :						Dict=768       ,    lowercase_       :						Dict=12       ,    lowercase_       :						Optional[int]=12       ,    lowercase_       :						str=3072       ,    lowercase_       :						Dict="gelu"       ,    lowercase_       :						List[str]=0.1       ,    lowercase_       :						List[str]=0.1       ,    lowercase_       :						Dict=512       ,    lowercase_       :						str=64       ,    lowercase_       :						Optional[int]=2       ,    lowercase_       :						List[Any]=0.02       ,    lowercase_       :						Optional[int]=1E-12       ,    lowercase_       :						Tuple=0.1       ,    lowercase_       :						List[str]=0       ,    lowercase_       :						Optional[Any]=2       ,    lowercase_       :						str=3       ,    lowercase_       :						Optional[int]=True       ,    **lowercase_       :						Dict       ,    ):
										super().__init__(pad_token_id=lowercase_       ,    bos_token_id=lowercase_       ,    eos_token_id=lowercase_       ,    **lowercase_					)

										lowercase_      :    Dict       		= vocab_size
										lowercase_      :    int       		= hidden_size
										lowercase_      :    List[str]       		= num_hidden_layers
										lowercase_      :    int       		= num_attention_heads
										lowercase_      :    List[Any]       		= hidden_act
										lowercase_      :    List[str]       		= intermediate_size
										lowercase_      :    Optional[int]       		= hidden_dropout_prob
										lowercase_      :    int       		= attention_probs_dropout_prob
										lowercase_      :    Union[str, Any]       		= max_position_embeddings
										lowercase_      :    Tuple       		= max_relative_position
										lowercase_      :    List[str]       		= type_vocab_size
										lowercase_      :    List[str]       		= initializer_range
										lowercase_      :    List[str]       		= layer_norm_eps
										lowercase_      :    Union[str, Any]       		= classifier_dropout
										lowercase_      :    List[Any]       		= use_cache






'''simple docstring'''




import argparse


_lowercase		:				Optional[int]	       =		"docs/source/_static/js/custom.js"




def 							lowerCamelCase			(   UpperCAmelCase__ :      Tuple				)    ->   Dict:
							with open(UpperCAmelCase__   ,   encoding="""utf-8"""   ,   newline="""\n"""				) as f:
														lowercase_      :    Optional[int]       		= f.readlines()
							lowercase_      :    Tuple       		= 0

							# First let's put the right version
							while not lines[index].startswith("""const stableVersion ="""				):
														index += 1
							lowercase_      :    Optional[Any]       		= F'''const stableVersion = "v{version}"\n'''

							# Then update the dictionary
							while not lines[index].startswith("""const versionMapping = {"""				):
														index += 1

							# We go until the end
							while not lines[index].startswith("""}"""				):
														index += 1
							# We add the new version at the end
							lines[index - 1] += F'''    "v{version}": "v{version}",\n'''

							with open(UpperCAmelCase__   ,   """w"""   ,   encoding="""utf-8"""   ,   newline="""\n"""				) as f:
														f.writelines(UpperCAmelCase__				)


if __name__ == "__main__":
						_lowercase		:				Union[str, Any]	       =		argparse.ArgumentParser()
						parser.add_argument("--version", help="Release version.")
						_lowercase		:				Dict	       =		parser.parse_args()
						update_custom_js(args.version)





