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


UpperCamelCase__    							= logging.get_logger(__name__)

UpperCamelCase__    							= {
    '''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 					A							(    a__					):
   __UpperCAmelCase			:			Union[str, Any]              =      'rwkv'
   __UpperCAmelCase			:			List[str]              =      {'max_position_embeddings': 'context_length'}


   def __init__(self					:						Dict	,  __UpperCAmelCase					:						Union[str, Any]=5_0_2_7_7	,  __UpperCAmelCase					:						Optional[Any]=1_0_2_4	,  __UpperCAmelCase					:						int=4_0_9_6	,  __UpperCAmelCase					:						List[Any]=3_2	,  __UpperCAmelCase					:						Union[str, Any]=None	,  __UpperCAmelCase					:						Any=None	,  __UpperCAmelCase					:						List[Any]=1E-5	,  __UpperCAmelCase					:						int=0	,  __UpperCAmelCase					:						List[str]=0	,  __UpperCAmelCase					:						int=6	,  __UpperCAmelCase					:						Union[str, Any]=False	,  __UpperCAmelCase					:						Optional[Any]=True	,  **__UpperCAmelCase					:						int	,  )						->    Dict:
         """simple docstring"""



         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=_lowerCamelCase	,  bos_token_id=_lowerCamelCase	,  eos_token_id=_lowerCamelCase	,  **_lowerCamelCase		)




def        lowerCAmelCase_			(					__A							)					->    str:







      '''simple docstring'''


      return " ".join(input_str.split()[::-1]							)


if __name__ == "__main__":
      import doctest

      doctest.testmod()



