
'''simple docstring'''



def 				lowerCAmelCase_		(			SCREAMING_SNAKE_CASE_  )       ->       int:




   """simple docstring"""
   if not isinstance(SCREAMING_SNAKE_CASE_      , SCREAMING_SNAKE_CASE_  ):
      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 				lowerCAmelCase_		(			SCREAMING_SNAKE_CASE_  )       ->       int:




   """simple docstring"""
   if not isinstance(SCREAMING_SNAKE_CASE_      , SCREAMING_SNAKE_CASE_  ):
      raise TypeError("""dynamic_lucas_number accepts only integer arguments."""  )
   _SCREAMING_SNAKE_CASE	,							_SCREAMING_SNAKE_CASE       	=			2, 1
   for _ in range(SCREAMING_SNAKE_CASE_  ):
      _SCREAMING_SNAKE_CASE	,							_SCREAMING_SNAKE_CASE       	=			b, a + b
   return a


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

     testmod()
     UpperCamelCase__ :						Optional[Any]    							=					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)))








'''simple docstring'''



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


UpperCamelCase__ :						int    							=					logging.get_logger(__name__)

UpperCamelCase__ :						Any    							=					{
    "openbmb/cpm-ant-10b": "https://huggingface.co/openbmb/cpm-ant-10b/blob/main/config.json"
    # See all CPMAnt models at https://huggingface.co/models?filter=cpmant
}

class 				_a			(_lowerCamelCase):





       """simple docstring"""




       SCREAMING_SNAKE_CASE =					'cpmant'






       def __init__(							self    ,							A__ = 3_07_20    ,							A__ = 40_96    ,							A__ = 32    ,							A__ = 1_28    ,							A__ = 1_02_40    ,							A__ = 48    ,							A__ = 0.0    ,							A__ = 5_12    ,							A__ = 20_48    ,							A__ = 1E-6    ,							A__ = 1.0    ,							A__ = 32    ,							A__ = 32    ,							A__ = 32    ,							A__ = True    ,							**A__    ,							)      ->     List[Any]:
          super().__init__(**A__ )
          _SCREAMING_SNAKE_CASE       	=			prompt_types
          _SCREAMING_SNAKE_CASE       	=			prompt_length
          _SCREAMING_SNAKE_CASE       	=			segment_types
          _SCREAMING_SNAKE_CASE       	=			hidden_size
          _SCREAMING_SNAKE_CASE       	=			num_attention_heads
          _SCREAMING_SNAKE_CASE       	=			dim_head
          _SCREAMING_SNAKE_CASE       	=			dim_ff
          _SCREAMING_SNAKE_CASE       	=			num_hidden_layers
          _SCREAMING_SNAKE_CASE       	=			position_bias_num_buckets
          _SCREAMING_SNAKE_CASE       	=			position_bias_max_distance
          _SCREAMING_SNAKE_CASE       	=			dropout_p
          _SCREAMING_SNAKE_CASE       	=			eps
          _SCREAMING_SNAKE_CASE       	=			use_cache
          _SCREAMING_SNAKE_CASE       	=			vocab_size
          _SCREAMING_SNAKE_CASE       	=			init_std






