"""simple docstring"""


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


a							=logging.get_logger(__name__)

a							={
    '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        __UpperCAmelCase						(     lowerCamelCase_     ):
	A__				:       List[str]  							=	"""cpmant"""

	def __init__(				self     ,			_lowerCamelCase = 30720     ,			_lowerCamelCase = 4096     ,			_lowerCamelCase = 32     ,			_lowerCamelCase = 128     ,			_lowerCamelCase = 10240     ,			_lowerCamelCase = 48     ,			_lowerCamelCase = 0.0     ,			_lowerCamelCase = 512     ,			_lowerCamelCase = 2048     ,			_lowerCamelCase = 1E-6     ,			_lowerCamelCase = 1.0     ,			_lowerCamelCase = 32     ,			_lowerCamelCase = 32     ,			_lowerCamelCase = 32     ,			_lowerCamelCase = True     ,			**_lowerCamelCase     ,			):
							super().__init__(**_lowerCamelCase				)
							lowerCamelCase__ =prompt_types
							lowerCamelCase__ =prompt_length
							lowerCamelCase__ =segment_types
							lowerCamelCase__ =hidden_size
							lowerCamelCase__ =num_attention_heads
							lowerCamelCase__ =dim_head
							lowerCamelCase__ =dim_ff
							lowerCamelCase__ =num_hidden_layers
							lowerCamelCase__ =position_bias_num_buckets
							lowerCamelCase__ =position_bias_max_distance
							lowerCamelCase__ =dropout_p
							lowerCamelCase__ =eps
							lowerCamelCase__ =use_cache
							lowerCamelCase__ =vocab_size
							lowerCamelCase__ =init_std



"""simple docstring"""


from __future__ import annotations

from enum import Enum






class        __UpperCAmelCase						(     __lowerCAmelCase     ):
				A__				:       List[Any]  							=	2_4
				A__				:       List[str]  							=	2_1
				A__				:       List[Any]  							=	1_8
				A__				:       Optional[Any]  							=	1_5
				A__				:       List[Any]  							=	1_2
				A__				:       Optional[int]  							=	9
				A__				:       List[Any]  							=	6
				A__				:       int  							=	3
				A__				:       Optional[int]  							=	2
				A__				:       int  							=	1
				A__				:       Optional[int]  							=	-1
				A__				:       Dict  							=	-2
				A__				:       Optional[Any]  							=	-3
				A__				:       str  							=	-6
				A__				:       Union[str, Any]  							=	-9
				A__				:       Optional[Any]  							=	-1_2
				A__				:       int  							=	-1_5
				A__				:       Union[str, Any]  							=	-1_8
				A__				:       Any  							=	-2_1
				A__				:       Union[str, Any]  							=	-2_4






class        __UpperCAmelCase						(     __lowerCAmelCase     ):
				A__				:       Optional[int]  							=	8
				A__				:       Any  							=	7
				A__				:       Any  							=	6
				A__				:       Tuple  							=	5
				A__				:       Optional[Any]  							=	4
				A__				:       str  							=	3
				A__				:       Dict  							=	2
				A__				:       Tuple  							=	1





def       lowerCamelCase_			( __lowerCAmelCase       ,   __lowerCAmelCase       ,   __lowerCAmelCase       ,   )							-> float:




						'''simple docstring'''



						if isinstance(__lowerCAmelCase       ,   __lowerCAmelCase    ):
												lowerCamelCase__ =SIUnit[known_prefix.lower()]
						if isinstance(__lowerCAmelCase       ,   __lowerCAmelCase    ):
												lowerCamelCase__ =SIUnit[unknown_prefix.lower()]
						lowerCamelCase__ =known_amount * (
						    10 ** (known_prefix.value - unknown_prefix.value)
						)
						return unknown_amount





def       lowerCamelCase_			( __lowerCAmelCase       ,   __lowerCAmelCase       ,   __lowerCAmelCase       ,   )							-> float:




						'''simple docstring'''



						if isinstance(__lowerCAmelCase       ,   __lowerCAmelCase    ):
												lowerCamelCase__ =BinaryUnit[known_prefix.lower()]
						if isinstance(__lowerCAmelCase       ,   __lowerCAmelCase    ):
												lowerCamelCase__ =BinaryUnit[unknown_prefix.lower()]
						lowerCamelCase__ =known_amount * (
						    2 ** ((known_prefix.value - unknown_prefix.value) * 10)
						)
						return unknown_amount


if __name__ == "__main__":
	import doctest

	doctest.testmod()


