






from string import ascii_uppercase

_a      	=  {str(ord(c) - 55): c for c in ascii_uppercase}


def __A    (      __lowerCAmelCase ,		__lowerCAmelCase	)->  str:





						"""simple docstring"""



						if isinstance(__lowerCAmelCase ,		__lowerCAmelCase	):
												raise TypeError('int() can\'t convert non-string with explicit base'	)
						if num < 0:
												raise ValueError('parameter must be positive int'	)
						if isinstance(__lowerCAmelCase ,		__lowerCAmelCase	):
												raise TypeError('\'str\' object cannot be interpreted as an integer'	)
						if isinstance(__lowerCAmelCase ,		__lowerCAmelCase	):
												raise TypeError('\'float\' object cannot be interpreted as an integer'	)
						if base in (0, 1):
												raise ValueError('base must be >= 2'	)
						if base > 36:
												raise ValueError('base must be <= 36'	)
						_UpperCAmelCase									=			''
						_UpperCAmelCase									=			0
						_UpperCAmelCase									=			0
						while div != 1:
												_UpperCAmelCase					, _UpperCAmelCase									=			divmod(__lowerCAmelCase ,		__lowerCAmelCase	)
												if base >= 11 and 9 < mod < 36:
																		_UpperCAmelCase									=			ALPHABET_VALUES[str(__lowerCAmelCase	)]
												else:
																		_UpperCAmelCase									=			str(__lowerCAmelCase	)
												new_value += actual_value
												_UpperCAmelCase									=			num // base
												_UpperCAmelCase									=			div
												if div == 0:
																		return str(new_value[::-1]	)
												elif div == 1:
																		new_value += str(__lowerCAmelCase	)
																		return str(new_value[::-1]	)

						return new_value[::-1]


if __name__ == "__main__":
		import doctest

		doctest.testmod()

		for base in range(2, 37):
				for num in range(1000):
						assert int(decimal_to_any(num, base), base) == num, (
						    num,
						    base,
						    decimal_to_any(num, base),
						    int(decimal_to_any(num, base), base),
						)








from collections import OrderedDict
from typing import Mapping

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


_a      	=  logging.get_logger(__name__)

_a      	=  {
    '''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 __lowerCamelCase (      snake_case__):





	"""simple docstring"""






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

	def __init__(							self       ,    UpperCAmelCase=3_0522       ,    UpperCAmelCase=512       ,    UpperCAmelCase=False       ,    UpperCAmelCase=6       ,    UpperCAmelCase=12       ,    UpperCAmelCase=768       ,    UpperCAmelCase=4 * 768       ,    UpperCAmelCase=0.1       ,    UpperCAmelCase=0.1       ,    UpperCAmelCase="gelu"       ,    UpperCAmelCase=0.02       ,    UpperCAmelCase=0.1       ,    UpperCAmelCase=0.2       ,    UpperCAmelCase=0       ,    **UpperCAmelCase       ,    ):
							"""simple docstring"""







							_UpperCAmelCase									=			vocab_size
							_UpperCAmelCase									=			max_position_embeddings
							_UpperCAmelCase									=			sinusoidal_pos_embds
							_UpperCAmelCase									=			n_layers
							_UpperCAmelCase									=			n_heads
							_UpperCAmelCase									=			dim
							_UpperCAmelCase									=			hidden_dim
							_UpperCAmelCase									=			dropout
							_UpperCAmelCase									=			attention_dropout
							_UpperCAmelCase									=			activation
							_UpperCAmelCase									=			initializer_range
							_UpperCAmelCase									=			qa_dropout
							_UpperCAmelCase									=			seq_classif_dropout
							super().__init__(**UpperCAmelCase       ,    pad_token_id=UpperCAmelCase    )





class __lowerCamelCase (      snake_case__):





	"""simple docstring"""






	@property
	def        UpperCamelCase    (							self    ):
							"""simple docstring"""







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