





import logging

from transformers import PretrainedConfig


_UpperCAmelCase       =				logging.getLogger(__name__)


_UpperCAmelCase       =				{
    'bertabs-finetuned-cnndm': 'https://huggingface.co/remi/bertabs-finetuned-cnndm-extractive-abstractive-summarization/resolve/main/config.json',
}






class   snake_case_							(						_lowerCAmelCase		):
  A_     				=       "bertabs"






  def __init__(				self					:	Optional[int]  ,    _snake_case					:	str=30522  ,    _snake_case					:	Dict=512  ,    _snake_case					:	int=6  ,    _snake_case					:	Union[str, Any]=512  ,    _snake_case					:	str=8  ,    _snake_case					:	Dict=512  ,    _snake_case					:	Tuple=0.2  ,    _snake_case					:	Optional[int]=6  ,    _snake_case					:	List[Any]=768  ,    _snake_case					:	str=8  ,    _snake_case					:	Optional[int]=2048  ,    _snake_case					:	Optional[Any]=0.2  ,    **_snake_case					:	List[Any]  ,    )->Union[str, Any]:






   '''simple docstring'''

   super().__init__(**SCREAMING_SNAKE_CASE__     )

   __lowerCAmelCase	:			Tuple         =  vocab_size
   __lowerCAmelCase	:			Tuple         =  max_pos

   __lowerCAmelCase	:			Union[str, Any]         =  enc_layers
   __lowerCAmelCase	:			Dict         =  enc_hidden_size
   __lowerCAmelCase	:			Tuple         =  enc_heads
   __lowerCAmelCase	:			int         =  enc_ff_size
   __lowerCAmelCase	:			str         =  enc_dropout

   __lowerCAmelCase	:			Optional[Any]         =  dec_layers
   __lowerCAmelCase	:			List[Any]         =  dec_hidden_size
   __lowerCAmelCase	:			int         =  dec_heads
   __lowerCAmelCase	:			Union[str, Any]         =  dec_ff_size
   __lowerCAmelCase	:			Union[str, Any]         =  dec_dropout




"""simple docstring"""







def       _lowerCamelCase				(							UpperCAmelCase_ :       int     )	-> int:






	"""simple docstring"""





	assert (
	    isinstance(UpperCAmelCase_,	UpperCAmelCase_     ) and number_of_steps > 0
	), F"""number_of_steps needs to be positive integer, your input {number_of_steps}"""
	if number_of_steps == 1:
		return 1
	A__							,							A__											=					1, 1
	for _ in range(number_of_steps - 1     ):
		A__							,							A__											=					current + previous, current
	return current


if __name__ == "__main__":
			import doctest

			doctest.testmod()




