

"""simple docstring"""






from ..utils import DummyObject, requires_backends







class       snake_case__  ( metaclass=lowerCAmelCase_     ):
			SCREAMING_SNAKE_CASE__     				=						['''flax''', '''transformers''']







			def __init__(			self			: int			,  *lowercase			: int			,  **lowercase			: List[Any]  ):





								'''simple docstring'''



								requires_backends(self			,  ["flax", "transformers"]  )







			@classmethod
			def 			__lowerCAmelCase				(			cls			: Optional[int]			,  *lowercase			: Any			,  **lowercase			: Optional[Any]  ):





								'''simple docstring'''



								requires_backends(cls			,  ["flax", "transformers"]  )







			@classmethod
			def 			__lowerCAmelCase				(			cls			: Any			,  *lowercase			: Optional[int]			,  **lowercase			: List[Any]  ):





								'''simple docstring'''



								requires_backends(cls			,  ["flax", "transformers"]  )







class       snake_case__  ( metaclass=lowerCAmelCase_     ):
			SCREAMING_SNAKE_CASE__     				=						['''flax''', '''transformers''']







			def __init__(			self			: Tuple			,  *lowercase			: Dict			,  **lowercase			: List[str]  ):





								'''simple docstring'''



								requires_backends(self			,  ["flax", "transformers"]  )







			@classmethod
			def 			__lowerCAmelCase				(			cls			: Any			,  *lowercase			: Tuple			,  **lowercase			: Optional[Any]  ):





								'''simple docstring'''



								requires_backends(cls			,  ["flax", "transformers"]  )







			@classmethod
			def 			__lowerCAmelCase				(			cls			: Dict			,  *lowercase			: Any			,  **lowercase			: List[Any]  ):





								'''simple docstring'''



								requires_backends(cls			,  ["flax", "transformers"]  )







class       snake_case__  ( metaclass=lowerCAmelCase_     ):
			SCREAMING_SNAKE_CASE__     				=						['''flax''', '''transformers''']







			def __init__(			self			: Dict			,  *lowercase			: List[Any]			,  **lowercase			: Optional[Any]  ):





								'''simple docstring'''



								requires_backends(self			,  ["flax", "transformers"]  )







			@classmethod
			def 			__lowerCAmelCase				(			cls			: Optional[Any]			,  *lowercase			: Union[str, Any]			,  **lowercase			: Any  ):





								'''simple docstring'''



								requires_backends(cls			,  ["flax", "transformers"]  )







			@classmethod
			def 			__lowerCAmelCase				(			cls			: Tuple			,  *lowercase			: Optional[int]			,  **lowercase			: Union[str, Any]  ):





								'''simple docstring'''



								requires_backends(cls			,  ["flax", "transformers"]  )







class       snake_case__  ( metaclass=lowerCAmelCase_     ):
			SCREAMING_SNAKE_CASE__     				=						['''flax''', '''transformers''']







			def __init__(			self			: Dict			,  *lowercase			: Optional[Any]			,  **lowercase			: str  ):





								'''simple docstring'''



								requires_backends(self			,  ["flax", "transformers"]  )







			@classmethod
			def 			__lowerCAmelCase				(			cls			: List[str]			,  *lowercase			: int			,  **lowercase			: Optional[int]  ):





								'''simple docstring'''



								requires_backends(cls			,  ["flax", "transformers"]  )







			@classmethod
			def 			__lowerCAmelCase				(			cls			: List[Any]			,  *lowercase			: int			,  **lowercase			: int  ):





								'''simple docstring'''



								requires_backends(cls			,  ["flax", "transformers"]  )





"""simple docstring"""






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


snake_case_   :   List[Any]        =       logging.get_logger(__name__)

snake_case_   :   List[Any]        =       {
    """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       snake_case__  ( lowerCAmelCase_     ):
			SCREAMING_SNAKE_CASE__     				=						'''rwkv'''
			SCREAMING_SNAKE_CASE__     				=						{'''max_position_embeddings''': '''context_length'''}







			def __init__(			self			: int			,  lowercase			: Optional[Any]=5_02_77			,  lowercase			: Union[str, Any]=10_24			,  lowercase			: Union[str, Any]=40_96			,  lowercase			: List[str]=32			,  lowercase			: str=None			,  lowercase			: Tuple=None			,  lowercase			: Dict=1E-5			,  lowercase			: Any=0			,  lowercase			: List[Any]=0			,  lowercase			: int=6			,  lowercase			: Dict=False			,  lowercase			: Dict=True			,  **lowercase			: Optional[Any]			,  ):





								'''simple docstring'''



								UpperCAmelCase			:   Optional[int]      =				vocab_size
								UpperCAmelCase			:   List[str]      =				context_length
								UpperCAmelCase			:   Optional[Any]      =				hidden_size
								UpperCAmelCase			:   List[Any]      =				num_hidden_layers
								UpperCAmelCase			:   Union[str, Any]      =				attention_hidden_size if attention_hidden_size is not None else hidden_size
								UpperCAmelCase			:   List[Any]      =				intermediate_size if intermediate_size is not None else 4 * hidden_size
								UpperCAmelCase			:   Tuple      =				layer_norm_epsilon
								UpperCAmelCase			:   Optional[int]      =				rescale_every
								UpperCAmelCase			:   Tuple      =				use_cache

								UpperCAmelCase			:   Union[str, Any]      =				bos_token_id
								UpperCAmelCase			:   Optional[int]      =				eos_token_id

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


