

"""simple docstring"""


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


__A		     =    logging.get_logger(__name__)

__A		     =    {
    "microsoft/mpnet-base": "https://huggingface.co/microsoft/mpnet-base/resolve/main/config.json",
}





class 					snake_case			(       __snake_case						):
				SCREAMING_SNAKE_CASE_     :   List[Any]        =						"""mpnet"""

				def __init__(			self							:       Optional[int]  ,						UpperCamelCase__							:       str=3_0_5_2_7  ,						UpperCamelCase__							:       Optional[int]=7_6_8  ,						UpperCamelCase__							:       Tuple=1_2  ,						UpperCamelCase__							:       Optional[Any]=1_2  ,						UpperCamelCase__							:       Any=3_0_7_2  ,						UpperCamelCase__							:       List[str]="gelu"  ,						UpperCamelCase__							:       int=0.1  ,						UpperCamelCase__							:       List[str]=0.1  ,						UpperCamelCase__							:       List[Any]=5_1_2  ,						UpperCamelCase__							:       Any=0.02  ,						UpperCamelCase__							:       str=1e-12  ,						UpperCamelCase__							:       Dict=3_2  ,						UpperCamelCase__							:       Union[str, Any]=1  ,						UpperCamelCase__							:       Tuple=0  ,						UpperCamelCase__							:       int=2  ,						**UpperCamelCase__							:       Any  ,						)->     List[str]:



						'''simple docstring'''


						super().__init__(pad_token_id=UpperCamelCase__  ,						bos_token_id=UpperCamelCase__  ,						eos_token_id=UpperCamelCase__  ,						**UpperCamelCase__)

						__lowerCAmelCase: Optional[int]					   =    vocab_size
						__lowerCAmelCase: Any					   =    hidden_size
						__lowerCAmelCase: Any					   =    num_hidden_layers
						__lowerCAmelCase: Tuple					   =    num_attention_heads
						__lowerCAmelCase: Optional[int]					   =    hidden_act
						__lowerCAmelCase: Dict					   =    intermediate_size
						__lowerCAmelCase: str					   =    hidden_dropout_prob
						__lowerCAmelCase: List[str]					   =    attention_probs_dropout_prob
						__lowerCAmelCase: str					   =    max_position_embeddings
						__lowerCAmelCase: Tuple					   =    initializer_range
						__lowerCAmelCase: List[str]					   =    layer_norm_eps
						__lowerCAmelCase: Union[str, Any]					   =    relative_attention_num_buckets





"""simple docstring"""


from __future__ import annotations






def 					a__					(					__SCREAMING_SNAKE_CASE      ,				__SCREAMING_SNAKE_CASE      ,				__SCREAMING_SNAKE_CASE				)			->			tuple[float, float]:
		assert (
		    c % greatest_common_divisor(__SCREAMING_SNAKE_CASE      ,				__SCREAMING_SNAKE_CASE				) == 0
		)  # greatest_common_divisor(a,b) function implemented below
		((__lowerCAmelCase)   ,				(__lowerCAmelCase)   ,				(__lowerCAmelCase)): Dict					   =    extended_gcd(__SCREAMING_SNAKE_CASE      ,				__SCREAMING_SNAKE_CASE				)  # extended_gcd(a,b) function implemented below
		__lowerCAmelCase: Optional[int]					   =    c / d
		return (r * x, r * y)






def 					a__					(					__SCREAMING_SNAKE_CASE      ,				__SCREAMING_SNAKE_CASE      ,				__SCREAMING_SNAKE_CASE      ,				__SCREAMING_SNAKE_CASE = 2				)			->			None:
		((__lowerCAmelCase)   ,				(__lowerCAmelCase)): Optional[Any]					   =    diophantine(__SCREAMING_SNAKE_CASE      ,				__SCREAMING_SNAKE_CASE      ,				__SCREAMING_SNAKE_CASE				)  # Initial value
		__lowerCAmelCase: Optional[Any]					   =    greatest_common_divisor(__SCREAMING_SNAKE_CASE      ,				__SCREAMING_SNAKE_CASE				)
		__lowerCAmelCase: Any					   =    a // d
		__lowerCAmelCase: str					   =    b // d

		for i in range(__SCREAMING_SNAKE_CASE				):
				__lowerCAmelCase: Dict					   =    xa + i * q
				__lowerCAmelCase: List[str]					   =    ya - i * p
				print(__SCREAMING_SNAKE_CASE      ,				__SCREAMING_SNAKE_CASE				)






def 					a__					(					__SCREAMING_SNAKE_CASE      ,				__SCREAMING_SNAKE_CASE				)			->			int:
		if a < b:
				__lowerCAmelCase   ,				__lowerCAmelCase: Any					   =    b, a

		while a % b != 0:
				__lowerCAmelCase   ,				__lowerCAmelCase: List[Any]					   =    b, a % b

		return b






def 					a__					(					__SCREAMING_SNAKE_CASE      ,				__SCREAMING_SNAKE_CASE				)			->			tuple[int, int, int]:
		assert a >= 0 and b >= 0

		if b == 0:
				__lowerCAmelCase   ,				__lowerCAmelCase   ,				__lowerCAmelCase: List[str]					   =    a, 1, 0
		else:
				((__lowerCAmelCase)   ,				(__lowerCAmelCase)   ,				(__lowerCAmelCase)): Dict					   =    extended_gcd(__SCREAMING_SNAKE_CASE      ,				a % b				)
				__lowerCAmelCase: Dict					   =    q
				__lowerCAmelCase: int					   =    p - q * (a // b)

		assert a % d == 0 and b % d == 0
		assert d == a * x + b * y

		return (d, x, y)


if __name__ == "__main__":
			from doctest import testmod

			testmod(name="diophantine", verbose=True)
			testmod(name="diophantine_all_soln", verbose=True)
			testmod(name="extended_gcd", verbose=True)
			testmod(name="greatest_common_divisor", verbose=True)


