

'''simple docstring'''


from collections import OrderedDict
from typing import Mapping

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


lowerCAmelCase__						:       Tuple										=						logging.get_logger(__name__)

lowerCAmelCase__						:       List[Any]										=						{
    """distilbert-base-uncased""": """https://huggingface.co/distilbert-base-uncased/resolve/main/config.json""",
    """distilbert-base-uncased-distilled-squad""": (
        """https://huggingface.co/distilbert-base-uncased-distilled-squad/resolve/main/config.json"""
    ),
    """distilbert-base-cased""": """https://huggingface.co/distilbert-base-cased/resolve/main/config.json""",
    """distilbert-base-cased-distilled-squad""": (
        """https://huggingface.co/distilbert-base-cased-distilled-squad/resolve/main/config.json"""
    ),
    """distilbert-base-german-cased""": """https://huggingface.co/distilbert-base-german-cased/resolve/main/config.json""",
    """distilbert-base-multilingual-cased""": (
        """https://huggingface.co/distilbert-base-multilingual-cased/resolve/main/config.json"""
    ),
    """distilbert-base-uncased-finetuned-sst-2-english""": (
        """https://huggingface.co/distilbert-base-uncased-finetuned-sst-2-english/resolve/main/config.json"""
    ),
}
class     a			(				SCREAMING_SNAKE_CASE       ):






						"""simple docstring"""




						__UpperCAmelCase			     =    """distilbert"""
						__UpperCAmelCase			     =    {
						    """hidden_size""": """dim""",
						    """num_attention_heads""": """n_heads""",
						    """num_hidden_layers""": """n_layers""",
						}







						def __init__(							self					:      List[Any]			,			snake_case_					:      List[str]=3_0_5_2_2			,			snake_case_					:      List[Any]=5_1_2			,			snake_case_					:      Optional[int]=False			,			snake_case_					:      Tuple=6			,			snake_case_					:      Optional[int]=1_2			,			snake_case_					:      List[Any]=7_6_8			,			snake_case_					:      Optional[Any]=4 * 7_6_8			,			snake_case_					:      str=0.1			,			snake_case_					:      Any=0.1			,			snake_case_					:      str="gelu"			,			snake_case_					:      Optional[Any]=0.0_2			,			snake_case_					:      Union[str, Any]=0.1			,			snake_case_					:      Tuple=0.2			,			snake_case_					:      Any=0			,			**snake_case_					:      List[Any]			,			):



								'''simple docstring'''



								snake_case__						:       Union[str, Any]       						=  vocab_size
								snake_case__						:       List[Any]       						=  max_position_embeddings
								snake_case__						:       Tuple       						=  sinusoidal_pos_embds
								snake_case__						:       List[Any]       						=  n_layers
								snake_case__						:       Dict       						=  n_heads
								snake_case__						:       Tuple       						=  dim
								snake_case__						:       Any       						=  hidden_dim
								snake_case__						:       Dict       						=  dropout
								snake_case__						:       str       						=  attention_dropout
								snake_case__						:       Any       						=  activation
								snake_case__						:       Union[str, Any]       						=  initializer_range
								snake_case__						:       Optional[Any]       						=  qa_dropout
								snake_case__						:       Tuple       						=  seq_classif_dropout
								super().__init__(**snake_case_			,			pad_token_id=snake_case_  )





class     a			(				SCREAMING_SNAKE_CASE       ):






						"""simple docstring"""




						@property
						def       __magic_name__							(							self					:      Optional[int]  ):



								'''simple docstring'''



								if self.task == "multiple-choice":
										snake_case__						:       List[Any]       						=  {0: '''batch''', 1: '''choice''', 2: '''sequence'''}
								else:
										snake_case__						:       Union[str, Any]       						=  {0: '''batch''', 1: '''sequence'''}
								return OrderedDict(
								    [
								        ('''input_ids''', dynamic_axis),
								        ('''attention_mask''', dynamic_axis),
								    ]  )






'''simple docstring'''


def 	_a       (				__lowerCAmelCase		:      int     ):

		"""simple docstring"""

		if p < 2:
				raise ValueError('''p should not be less than 2!'''     )
		elif p == 2:
				return True

		snake_case__						:       Any       						=  4
		snake_case__						:       int       						=  (1 << p) - 1
		for _ in range(p - 2     ):
				snake_case__						:       Tuple       						=  ((s * s) - 2) % m
		return s == 0


if __name__ == "__main__":
					print(lucas_lehmer_test(7))
					print(lucas_lehmer_test(11))



