

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


lowerCAmelCase__		      =       logging.get_logger(__name__)

lowerCAmelCase__		      =       {
    'microsoft/trocr-base-handwritten': (
        'https://huggingface.co/microsoft/trocr-base-handwritten/resolve/main/config.json'
    ),
    # See all TrOCR models at https://huggingface.co/models?filter=trocr
}

class     a__  (    lowerCamelCase_	):
			"""simple docstring"""







			__lowerCamelCase       				=				'trocr'
			__lowerCamelCase       				=				['past_key_values']
			__lowerCamelCase       				=				{
			    'num_attention_heads': 'decoder_attention_heads',
			    'hidden_size': 'd_model',
			    'num_hidden_layers': 'decoder_layers',
			}


			def __init__(			self					,					lowercase=50265					,					lowercase=1024					,					lowercase=12					,					lowercase=16					,					lowercase=4096					,					lowercase="gelu"					,					lowercase=512					,					lowercase=0.1					,					lowercase=0.0					,					lowercase=0.0					,					lowercase=2					,					lowercase=0.02					,					lowercase=0.0					,					lowercase=True					,					lowercase=False					,					lowercase=True					,					lowercase=True					,					lowercase=1					,					lowercase=0					,					lowercase=2					,					**lowercase					,					)     ->  Optional[int]:
							'''simple docstring'''






							A__						=	vocab_size
							A__						=	d_model
							A__						=	decoder_layers
							A__						=	decoder_attention_heads
							A__						=	decoder_ffn_dim
							A__						=	activation_function
							A__						=	max_position_embeddings
							A__						=	dropout
							A__						=	attention_dropout
							A__						=	activation_dropout
							A__						=	init_std
							A__						=	decoder_layerdrop
							A__						=	use_cache
							A__						=	scale_embedding
							A__						=	use_learned_position_embeddings
							A__						=	layernorm_embedding

							super().__init__(
							    pad_token_id=__a					,					bos_token_id=__a					,					eos_token_id=__a					,					decoder_start_token_id=__a					,					**__a					,					)








'''simple docstring'''







def  _lowerCamelCase				( lowercase						:      int = 100						)	->	int:
				_a								= 0
				_a								= 0
				for i in range(1    ,							n + 1						):
								sum_of_squares += i**2
								sum_of_ints += i
				return sum_of_ints**2 - sum_of_squares


if __name__ == "__main__":
					print(f"""{solution() = }""")
