





'''simple docstring'''







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


_a   :					List[str]           =       logging.get_logger(__name__)

_a   :					Tuple           =       {
    'google/pegasus-large': 'https://huggingface.co/google/pegasus-large/resolve/main/config.json',
    # See all PEGASUS models at https://huggingface.co/models?filter=pegasus
}





class        _UpperCAmelCase				(		lowerCAmelCase_  ):
		a  :  Union[str, Any]      ='pegasus'
		a  :  str      =['past_key_values']
		a  :  List[Any]      ={'num_attention_heads': 'encoder_attention_heads', 'hidden_size': 'd_model'}
		def __init__(    self,__SCREAMING_SNAKE_CASE=5_02_65,__SCREAMING_SNAKE_CASE=10_24,__SCREAMING_SNAKE_CASE=12,__SCREAMING_SNAKE_CASE=40_96,__SCREAMING_SNAKE_CASE=16,__SCREAMING_SNAKE_CASE=12,__SCREAMING_SNAKE_CASE=40_96,__SCREAMING_SNAKE_CASE=16,__SCREAMING_SNAKE_CASE=0.0,__SCREAMING_SNAKE_CASE=0.0,__SCREAMING_SNAKE_CASE=True,__SCREAMING_SNAKE_CASE=True,__SCREAMING_SNAKE_CASE="gelu",__SCREAMING_SNAKE_CASE=10_24,__SCREAMING_SNAKE_CASE=0.1,__SCREAMING_SNAKE_CASE=0.0,__SCREAMING_SNAKE_CASE=0.0,__SCREAMING_SNAKE_CASE=0.02,__SCREAMING_SNAKE_CASE=0,__SCREAMING_SNAKE_CASE=False,__SCREAMING_SNAKE_CASE=0,__SCREAMING_SNAKE_CASE=1,__SCREAMING_SNAKE_CASE=1,**__SCREAMING_SNAKE_CASE,):



					'''simple docstring'''

					__lowerCAmelCase   		=							vocab_size
					__lowerCAmelCase   		=							max_position_embeddings
					__lowerCAmelCase   		=							d_model
					__lowerCAmelCase   		=							encoder_ffn_dim
					__lowerCAmelCase   		=							encoder_layers
					__lowerCAmelCase   		=							encoder_attention_heads
					__lowerCAmelCase   		=							decoder_ffn_dim
					__lowerCAmelCase   		=							decoder_layers
					__lowerCAmelCase   		=							decoder_attention_heads
					__lowerCAmelCase   		=							dropout
					__lowerCAmelCase   		=							attention_dropout
					__lowerCAmelCase   		=							activation_dropout
					__lowerCAmelCase   		=							activation_function
					__lowerCAmelCase   		=							init_std
					__lowerCAmelCase   		=							encoder_layerdrop
					__lowerCAmelCase   		=							decoder_layerdrop
					__lowerCAmelCase   		=							use_cache
					__lowerCAmelCase   		=							encoder_layers
					__lowerCAmelCase   		=							scale_embedding  # scale factor will be sqrt(d_model) if True
					super().__init__(
					    pad_token_id=lowerCAmelCase__,eos_token_id=lowerCAmelCase__,is_encoder_decoder=lowerCAmelCase__,decoder_start_token_id=lowerCAmelCase__,forced_eos_token_id=lowerCAmelCase__,**lowerCAmelCase__,)
		@property
		def     lowerCamelCase__     (    self     ):



					'''simple docstring'''

					return self.encoder_attention_heads







		@property
		def     lowerCamelCase__     (    self     ):



					'''simple docstring'''

					return self.d_model








'''simple docstring'''

def    a__							(							lowercase   :	str )						->						int:





     """simple docstring"""

     assert column_title.isupper()
     _UpperCamelCase							       =			0
     _UpperCamelCase							       =			len(lowercase ) - 1
     _UpperCamelCase							       =			0

     while index >= 0:
          _UpperCamelCase							       =			(ord(column_title[index] ) - 64) * pow(26,   lowercase )
          answer += value
          power += 1
          index -= 1

     return answer


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

   testmod()



