





"""simple docstring"""





from ... import PretrainedConfig


lowerCAmelCase__     			=			{
    '''sijunhe/nezha-cn-base''': '''https://huggingface.co/sijunhe/nezha-cn-base/resolve/main/config.json''',
}





class        _lowerCamelCase      (       _lowercase ):
						UpperCAmelCase_ =			NEZHA_PRETRAINED_CONFIG_ARCHIVE_MAP
						UpperCAmelCase_ =			"nezha"


						def __init__(self   ,							__a=2_11_28   ,							__a=7_68   ,							__a=12   ,							__a=12   ,							__a=30_72   ,							__a="gelu"   ,							__a=0.1   ,							__a=0.1   ,							__a=5_12   ,							__a=64   ,							__a=2   ,							__a=0.02   ,							__a=1e-1_2   ,							__a=0.1   ,							__a=0   ,							__a=2   ,							__a=3   ,							__a=True   ,							**__a   ,							) ->   str:
								super().__init__(pad_token_id=__a   ,							bos_token_id=__a   ,							eos_token_id=__a   ,							**__a		)

								UpperCamelCase   =	vocab_size
								UpperCamelCase   =	hidden_size
								UpperCamelCase   =	num_hidden_layers
								UpperCamelCase   =	num_attention_heads
								UpperCamelCase   =	hidden_act
								UpperCamelCase   =	intermediate_size
								UpperCamelCase   =	hidden_dropout_prob
								UpperCamelCase   =	attention_probs_dropout_prob
								UpperCamelCase   =	max_position_embeddings
								UpperCamelCase   =	max_relative_position
								UpperCamelCase   =	type_vocab_size
								UpperCamelCase   =	initializer_range
								UpperCamelCase   =	layer_norm_eps
								UpperCamelCase   =	classifier_dropout
								UpperCamelCase   =	use_cache













"""simple docstring"""





def       a__					(					_SCREAMING_SNAKE_CASE    ):




		"""simple docstring"""


		UpperCamelCase   =	0
		for ch in input_str:
				UpperCamelCase   =	ord(_SCREAMING_SNAKE_CASE    )
				UpperCamelCase   =	pow(2  ,	_SCREAMING_SNAKE_CASE    )

				# If we already turned on bit for current character's unicode
				if bitmap >> ch_unicode & 1 == 1:
						return False
				bitmap |= ch_bit_index_on
		return True


if __name__ == "__main__":
						import doctest

						doctest.testmod()






