




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


a_										=       logging.get_logger(__name__)

a_										=       {
    "facebook/opt-125m": "https://huggingface.co/facebook/opt-125m/blob/main/config.json",
    "facebook/opt-350m": "https://huggingface.co/facebook/opt-350m/blob/main/config.json",
    "facebook/opt-1.3b": "https://huggingface.co/facebook/opt-1.3b/blob/main/config.json",
    "facebook/opt-2.7b": "https://huggingface.co/facebook/opt-2.7b/blob/main/config.json",
    "facebook/opt-6.7b": "https://huggingface.co/facebook/opt-6.7b/blob/main/config.json",
    "facebook/opt-13b": "https://huggingface.co/facebook/opt-13b/blob/main/config.json",
}

class 	_lowerCamelCase  (     _SCREAMING_SNAKE_CASE				):

      """simple docstring"""

      lowerCAmelCase__     :	str      =   "opt"
      lowerCAmelCase__     :	Tuple      =   ["past_key_values"]







      def __init__(       self   :	Optional[int]	,    snake_case   :	Optional[int]=50272	,    snake_case   :	Optional[Any]=768	,    snake_case   :	Any=12	,    snake_case   :	List[Any]=3072	,    snake_case   :	int=2048	,    snake_case   :	str=True	,    snake_case   :	Union[str, Any]=False	,    snake_case   :	Dict=None	,    snake_case   :	Optional[int]=0.1	,    snake_case   :	int=0.0	,    snake_case   :	int=12	,    snake_case   :	Optional[Any]="relu"	,    snake_case   :	Optional[int]=0.0	,    snake_case   :	Optional[int]=0.02	,    snake_case   :	Any=True	,    snake_case   :	Tuple=1	,    snake_case   :	List[str]=2	,    snake_case   :	Optional[int]=2	,    snake_case   :	Optional[Any]=True	,    snake_case   :	Any=True	,    **snake_case   :	Dict	,    ):
          super().__init__(
              pad_token_id=snake_case	,    bos_token_id=snake_case	,    eos_token_id=snake_case	,    **snake_case	,    )
          __UpperCamelCase											=  vocab_size
          __UpperCamelCase											=  max_position_embeddings
          __UpperCamelCase											=  num_attention_heads
          __UpperCamelCase											=  word_embed_proj_dim if word_embed_proj_dim is not None else hidden_size
          __UpperCamelCase											=  ffn_dim
          __UpperCamelCase											=  hidden_size
          __UpperCamelCase											=  num_hidden_layers
          __UpperCamelCase											=  dropout
          __UpperCamelCase											=  attention_dropout
          __UpperCamelCase											=  activation_function
          __UpperCamelCase											=  init_std
          __UpperCamelCase											=  layerdrop
          __UpperCamelCase											=  use_cache
          __UpperCamelCase											=  do_layer_norm_before
          # We keep these variables at `True` for backward compatibility.
          __UpperCamelCase											=  enable_bias
          __UpperCamelCase											=  layer_norm_elementwise_affine

          # Note that the only purpose of `_remove_final_layer_norm` is to keep backward compatibility
          # with checkpoints that have been fine-tuned before transformers v4.20.1
          # see https://github.com/facebookresearch/metaseq/pull/164
          __UpperCamelCase											=  _remove_final_layer_norm












def    __SCREAMING_SNAKE_CASE				(					lowercase_ )    ->		int:

    """simple docstring"""


    if not isinstance(lowercase_   ,       lowercase_ ):
        raise TypeError('''recursive_lucas_number accepts only integer arguments.''' )
    if n_th_number == 0:
        return 2
    if n_th_number == 1:
        return 1

    return recursive_lucas_number(n_th_number - 1 ) + recursive_lucas_number(
        n_th_number - 2 )




def    __SCREAMING_SNAKE_CASE				(					lowercase_ )    ->		int:

    """simple docstring"""


    if not isinstance(lowercase_   ,       lowercase_ ):
        raise TypeError('''dynamic_lucas_number accepts only integer arguments.''' )
    __UpperCamelCase						, __UpperCamelCase											=  2, 1
    for _ in range(lowercase_ ):
        __UpperCamelCase						, __UpperCamelCase											=  b, a + b
    return a


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

 testmod()
 a_										=       int(input("Enter the number of terms in lucas series:\n").strip())
 print("Using recursive function to calculate lucas series:")
 print(" ".join(str(recursive_lucas_number(i)) for i in range(n)))
 print("\nUsing dynamic function to calculate lucas series:")
 print(" ".join(str(dynamic_lucas_number(i)) for i in range(n)))






