




def 					__SCREAMING_SNAKE_CASE   (  lowercase_					,     lowercase_      )       ->	int:

    """simple docstring"""


    return abs(__snake_case      ) if a == 0 else greatest_common_divisor(b % a					,     __snake_case      )




def 					__SCREAMING_SNAKE_CASE   (  lowercase_					,     lowercase_      )       ->	List[str]:

    """simple docstring"""


    while y:  # --> when y=0 then loop will terminate and return x as final GCD.
        __UpperCamelCase		,      __UpperCamelCase  		=						y, x % y
    return abs(__snake_case      )




def 					__SCREAMING_SNAKE_CASE   (  )       ->	Dict:

    """simple docstring"""


    try:
        __UpperCamelCase  		=						input('''Enter two integers separated by comma (,): '''      ).split(''','''      )
        __UpperCamelCase  		=						int(nums[0]      )
        __UpperCamelCase  		=						int(nums[1]      )
        print(
            F"greatest_common_divisor({num_a}, {num_a}) = "
            F"{greatest_common_divisor(__snake_case					,     __snake_case      )}"      )
        print(F"By iterative gcd({num_a}, {num_a}) = {gcd_by_iterative(__snake_case					,     __snake_case      )}"      )
    except (IndexError, UnboundLocalError, ValueError):
        print('''Wrong input'''      )


if __name__ == "__main__":
    main()












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


a_   		=     logging.get_logger(__name__)

a_   		=     {
    "RWKV/rwkv-4-169m-pile": "https://huggingface.co/RWKV/rwkv-4-169m-pile/resolve/main/config.json",
    "RWKV/rwkv-4-430m-pile": "https://huggingface.co/RWKV/rwkv-4-430m-pile/resolve/main/config.json",
    "RWKV/rwkv-4-1b5-pile": "https://huggingface.co/RWKV/rwkv-4-1b5-pile/resolve/main/config.json",
    "RWKV/rwkv-4-3b-pile": "https://huggingface.co/RWKV/rwkv-4-3b-pile/resolve/main/config.json",
    "RWKV/rwkv-4-7b-pile": "https://huggingface.co/RWKV/rwkv-4-7b-pile/resolve/main/config.json",
    "RWKV/rwkv-4-14b-pile": "https://huggingface.co/RWKV/rwkv-4-14b-pile/resolve/main/config.json",
    "RWKV/rwkv-raven-1b5": "https://huggingface.co/RWKV/rwkv-raven-1b5/resolve/main/config.json",
    "RWKV/rwkv-raven-3b": "https://huggingface.co/RWKV/rwkv-raven-3b/resolve/main/config.json",
    "RWKV/rwkv-raven-7b": "https://huggingface.co/RWKV/rwkv-raven-7b/resolve/main/config.json",
    "RWKV/rwkv-raven-14b": "https://huggingface.co/RWKV/rwkv-raven-14b/resolve/main/config.json",
}

class  _lowerCamelCase						(			_SCREAMING_SNAKE_CASE   ):

      """simple docstring"""

      lowerCAmelCase__			: Union[str, Any]    =					"rwkv"
      lowerCAmelCase__			: Union[str, Any]    =					{"max_position_embeddings": "context_length"}







      def __init__(     self					: Optional[int] ,       snake_case					: Optional[Any]=50277 ,       snake_case					: str=1024 ,       snake_case					: str=4096 ,       snake_case					: Optional[Any]=32 ,       snake_case					: Union[str, Any]=None ,       snake_case					: Optional[Any]=None ,       snake_case					: Optional[Any]=1E-5 ,       snake_case					: List[str]=0 ,       snake_case					: Optional[Any]=0 ,       snake_case					: Union[str, Any]=6 ,       snake_case					: Tuple=False ,       snake_case					: Any=True ,       **snake_case					: List[str] ,       ):
          __UpperCamelCase  		=						vocab_size
          __UpperCamelCase  		=						context_length
          __UpperCamelCase  		=						hidden_size
          __UpperCamelCase  		=						num_hidden_layers
          __UpperCamelCase  		=						attention_hidden_size if attention_hidden_size is not None else hidden_size
          __UpperCamelCase  		=						intermediate_size if intermediate_size is not None else 4 * hidden_size
          __UpperCamelCase  		=						layer_norm_epsilon
          __UpperCamelCase  		=						rescale_every
          __UpperCamelCase  		=						use_cache

          __UpperCamelCase  		=						bos_token_id
          __UpperCamelCase  		=						eos_token_id

          super().__init__(
              tie_word_embeddings=snake_case ,       bos_token_id=snake_case ,       eos_token_id=snake_case ,       **snake_case				)






