



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


A__	      =       logging.get_logger(__name__)

A__	      =       {
    'abeja/gpt-neox-japanese-2.7b': 'https://huggingface.co/abeja/gpt-neox-japanese-2.7b/resolve/main/config.json',
}





class 					__lowerCAmelCase (     lowerCamelCase__       ):
				__lowerCamelCase =				'''gpt_neox_japanese'''




				def __init__(							self						,				_snake_case=32000						,				_snake_case=2560						,				_snake_case=32						,				_snake_case=32						,				_snake_case=4						,				_snake_case="gelu"						,				_snake_case=1.00						,				_snake_case=10000						,				_snake_case=2048						,				_snake_case=0.02						,				_snake_case=1e-5						,				_snake_case=True						,				_snake_case=31996						,				_snake_case=31999						,				_snake_case=0.1						,				_snake_case=0.0						,				**_snake_case						,				):



									"""simple docstring"""





									super().__init__(bos_token_id=_snake_case						,				eos_token_id=_snake_case						,				**_snake_case		)
									_lowerCAmelCase						=    vocab_size
									_lowerCAmelCase						=    max_position_embeddings
									_lowerCAmelCase						=    hidden_size
									_lowerCAmelCase						=    num_hidden_layers
									_lowerCAmelCase						=    num_attention_heads
									_lowerCAmelCase						=    intermediate_multiple_size
									_lowerCAmelCase						=    hidden_act
									_lowerCAmelCase						=    rotary_pct
									_lowerCAmelCase						=    rotary_emb_base
									_lowerCAmelCase						=    initializer_range
									_lowerCAmelCase						=    layer_norm_eps
									_lowerCAmelCase						=    use_cache
									_lowerCAmelCase						=    attention_dropout
									_lowerCAmelCase						=    hidden_dropout







"""simple docstring"""






import re
def      lowerCamelCase       (     _UpperCamelCase		:      str							)		->       str:

							'''simple docstring'''



							if len(re.findall("""[ATCG]"""       ,			_UpperCamelCase							)							) != len(_UpperCamelCase							):
														raise ValueError("""Invalid Strand"""							)

							return dna.translate(dna.maketrans("""ATCG"""       ,			"""TAGC"""							)							)


if __name__ == "__main__":
							import doctest

							doctest.testmod()
