


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


_UpperCAmelCase     :					str       =logging.get_logger(__name__)

_UpperCAmelCase     :					Tuple       ={
    """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 			snake_case__(							UpperCAmelCase__							):







						'''simple docstring'''




						SCREAMING_SNAKE_CASE__ :					str   =							"""cpmant"""




						def __init__(			self				,  __lowercase = 3_0_7_2_0				,  __lowercase = 4_0_9_6				,  __lowercase = 3_2				,  __lowercase = 1_2_8				,  __lowercase = 1_0_2_4_0				,  __lowercase = 4_8				,  __lowercase = 0.0				,  __lowercase = 5_1_2				,  __lowercase = 2_0_4_8				,  __lowercase = 1e-6				,  __lowercase = 1.0				,  __lowercase = 3_2				,  __lowercase = 3_2				,  __lowercase = 3_2				,  __lowercase = True				,  **__lowercase				,  )   ->      Union[str, Any]:
										super().__init__(**__lowercase							)
										lowerCAmelCase_	: Dict      			=			prompt_types
										lowerCAmelCase_	: Union[str, Any]      			=			prompt_length
										lowerCAmelCase_	: int      			=			segment_types
										lowerCAmelCase_	: Any      			=			hidden_size
										lowerCAmelCase_	: int      			=			num_attention_heads
										lowerCAmelCase_	: Tuple      			=			dim_head
										lowerCAmelCase_	: Dict      			=			dim_ff
										lowerCAmelCase_	: Optional[Any]      			=			num_hidden_layers
										lowerCAmelCase_	: Any      			=			position_bias_num_buckets
										lowerCAmelCase_	: Optional[int]      			=			position_bias_max_distance
										lowerCAmelCase_	: str      			=			dropout_p
										lowerCAmelCase_	: List[Any]      			=			eps
										lowerCAmelCase_	: List[Any]      			=			use_cache
										lowerCAmelCase_	: List[str]      			=			vocab_size
										lowerCAmelCase_	: List[Any]      			=			init_std



import math







class 			snake_case__:







						'''simple docstring'''




						def __init__(			self				,  __lowercase				,  __lowercase				,  __lowercase							)   ->      Tuple:
										lowerCAmelCase_	: List[str]      			=			x
										lowerCAmelCase_	: Dict      			=			y
										lowerCAmelCase_	: List[Any]      			=			z




						def __repr__(			self							)   ->      str:
										return f"""Point({self.x}, {self.y}, {self.z})"""






def      lowerCAmelCase	(						lowerCAmelCase_	,				lowerCAmelCase_	)->	float:
				return math.sqrt(abs((b.x - a.x) ** 2 + (b.y - a.y) ** 2 + (b.z - a.z) ** 2	)	)


if __name__ == "__main__":
						import doctest

						doctest.testmod()