
'''simple docstring'''







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


_lowercase			:  Optional[int]   							=	logging.get_logger(__name__)

_lowercase			:  str   							=	{"ctrl": "https://huggingface.co/ctrl/resolve/main/config.json"}






class 			lowerCAmelCase__       (  lowerCamelCase_					):
					lowerCAmelCase_					       =					'''ctrl'''
					lowerCAmelCase_					       =					['''past_key_values''']
					lowerCAmelCase_					       =					{
					    '''max_position_embeddings''': '''n_positions''',
					    '''hidden_size''': '''n_embd''',
					    '''num_attention_heads''': '''n_head''',
					    '''num_hidden_layers''': '''n_layer''',
					}






					def __init__(       self    ,							__SCREAMING_SNAKE_CASE=24_65_34    ,							__SCREAMING_SNAKE_CASE=2_56    ,							__SCREAMING_SNAKE_CASE=12_80    ,							__SCREAMING_SNAKE_CASE=81_92    ,							__SCREAMING_SNAKE_CASE=48    ,							__SCREAMING_SNAKE_CASE=16    ,							__SCREAMING_SNAKE_CASE=0.1    ,							__SCREAMING_SNAKE_CASE=0.1    ,							__SCREAMING_SNAKE_CASE=1E-6    ,							__SCREAMING_SNAKE_CASE=0.02    ,							__SCREAMING_SNAKE_CASE=True    ,							**__SCREAMING_SNAKE_CASE    ,							):


											"""simple docstring"""





											lowercase_     :					Dict													=	vocab_size
											lowercase_     :					Dict													=	n_positions
											lowercase_     :					Tuple													=	n_embd
											lowercase_     :					Dict													=	n_layer
											lowercase_     :					Any													=	n_head
											lowercase_     :					str													=	dff
											lowercase_     :					Dict													=	resid_pdrop
											lowercase_     :					Optional[Any]													=	embd_pdrop
											lowercase_     :					Dict													=	layer_norm_epsilon
											lowercase_     :					Optional[Any]													=	initializer_range

											lowercase_     :					List[Any]													=	use_cache

											super().__init__(**__SCREAMING_SNAKE_CASE		)





'''simple docstring'''







def  snake_case_		(    __SCREAMING_SNAKE_CASE :			str							):



						"""simple docstring"""





						assert column_title.isupper()
						lowercase_     :					Dict													=	0
						lowercase_     :					Tuple													=	len(__SCREAMING_SNAKE_CASE							) - 1
						lowercase_     :					Optional[int]													=	0

						while index >= 0:
												lowercase_     :					Optional[Any]													=	(ord(column_title[index]							) - 64) * pow(26				,				__SCREAMING_SNAKE_CASE							)
												answer += value
												power += 1
												index -= 1

						return answer


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

							testmod()



