


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


_UpperCAmelCase	:     str   =logging.get_logger(__name__)

_UpperCAmelCase	:     int   ={'''ctrl''': '''https://huggingface.co/ctrl/resolve/main/config.json'''}







class  snake_case__(							_lowerCAmelCase							):







						'''simple docstring'''




						SCREAMING_SNAKE_CASE__					:     Tuple    =							"""ctrl"""
						SCREAMING_SNAKE_CASE__					:     List[str]    =							["""past_key_values"""]
						SCREAMING_SNAKE_CASE__					:     str    =							{
						    """max_position_embeddings""": """n_positions""",
						    """hidden_size""": """n_embd""",
						    """num_attention_heads""": """n_head""",
						    """num_hidden_layers""": """n_layer""",
						}




						def __init__( self      ,  __lowercase=2_4_6_5_3_4      ,  __lowercase=2_5_6      ,  __lowercase=1_2_8_0      ,  __lowercase=8_1_9_2      ,  __lowercase=4_8      ,  __lowercase=1_6      ,  __lowercase=0.1      ,  __lowercase=0.1      ,  __lowercase=1e-6      ,  __lowercase=0.02      ,  __lowercase=True      ,  **__lowercase      ,  )    ->			int:
										lowerCAmelCase_       :					Dict			 = vocab_size
										lowerCAmelCase_       :					List[str]			 = n_positions
										lowerCAmelCase_       :					List[Any]			 = n_embd
										lowerCAmelCase_       :					Dict			 = n_layer
										lowerCAmelCase_       :					List[Any]			 = n_head
										lowerCAmelCase_       :					List[str]			 = dff
										lowerCAmelCase_       :					Dict			 = resid_pdrop
										lowerCAmelCase_       :					List[Any]			 = embd_pdrop
										lowerCAmelCase_       :					Optional[int]			 = layer_norm_epsilon
										lowerCAmelCase_       :					Union[str, Any]			 = initializer_range

										lowerCAmelCase_       :					str			 = use_cache

										super().__init__(**__lowercase							)






'''simple docstring'''


lowerCAmelCase					:     str												='''
# Installazione di Transformers
! pip install transformers datasets
# Per installare dalla fonte invece dell\'ultima versione rilasciata, commenta il comando sopra e
# rimuovi la modalità commento al comando seguente.
# ! pip install git+https://github.com/huggingface/transformers.git
'''

lowerCAmelCase					:     int												=[{'''type''': '''code''', '''content''': INSTALL_CONTENT}]
lowerCAmelCase					:     List[str]												={
    '''{processor_class}''': '''FakeProcessorClass''',
    '''{model_class}''': '''FakeModelClass''',
    '''{object_class}''': '''FakeObjectClass''',
}


