





from collections import OrderedDict
from typing import Mapping

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


_snake_case  :    int						    =  logging.get_logger(__name__)

_snake_case  :    Tuple						    =  {
    'camembert-base': 'https://huggingface.co/camembert-base/resolve/main/config.json',
    'umberto-commoncrawl-cased-v1': (
        'https://huggingface.co/Musixmatch/umberto-commoncrawl-cased-v1/resolve/main/config.json'
    ),
    'umberto-wikipedia-uncased-v1': (
        'https://huggingface.co/Musixmatch/umberto-wikipedia-uncased-v1/resolve/main/config.json'
    ),
}



class 				_UpperCAmelCase    (    _UpperCamelCase    ):

  """simple docstring"""


  a_        = """camembert"""






  def __init__(				self :		Any					,  lowerCAmelCase_ :		List[str]=3_0_5_2_2					,  lowerCAmelCase_ :		str=7_6_8					,  lowerCAmelCase_ :		Union[str, Any]=1_2					,  lowerCAmelCase_ :		List[Any]=1_2					,  lowerCAmelCase_ :		str=3_0_7_2					,  lowerCAmelCase_ :		Optional[Any]="gelu"					,  lowerCAmelCase_ :		Union[str, Any]=0.1					,  lowerCAmelCase_ :		List[str]=0.1					,  lowerCAmelCase_ :		List[str]=5_1_2					,  lowerCAmelCase_ :		List[Any]=2					,  lowerCAmelCase_ :		Dict=0.02					,  lowerCAmelCase_ :		Any=1e-12					,  lowerCAmelCase_ :		int=1					,  lowerCAmelCase_ :		Optional[Any]=0					,  lowerCAmelCase_ :		Optional[Any]=2					,  lowerCAmelCase_ :		str="absolute"					,  lowerCAmelCase_ :		Optional[int]=True					,  lowerCAmelCase_ :		List[Any]=None					,  **lowerCAmelCase_ :		Dict					,  )							->						Union[str, Any]:
     super().__init__(pad_token_id=lowerCAmelCase_					,  bos_token_id=lowerCAmelCase_					,  eos_token_id=lowerCAmelCase_					,  **lowerCAmelCase_     )

     __lowerCAmelCase								=	vocab_size
     __lowerCAmelCase								=	hidden_size
     __lowerCAmelCase								=	num_hidden_layers
     __lowerCAmelCase								=	num_attention_heads
     __lowerCAmelCase								=	hidden_act
     __lowerCAmelCase								=	intermediate_size
     __lowerCAmelCase								=	hidden_dropout_prob
     __lowerCAmelCase								=	attention_probs_dropout_prob
     __lowerCAmelCase								=	max_position_embeddings
     __lowerCAmelCase								=	type_vocab_size
     __lowerCAmelCase								=	initializer_range
     __lowerCAmelCase								=	layer_norm_eps
     __lowerCAmelCase								=	position_embedding_type
     __lowerCAmelCase								=	use_cache
     __lowerCAmelCase								=	classifier_dropout





class 				_UpperCAmelCase    (    _UpperCamelCase    ):

  """simple docstring"""


  @property
  def 				lowercase		(				self :		Dict     )							->						Mapping[str, Mapping[int, str]]:
     if self.task == "multiple-choice":
        __lowerCAmelCase								=	{0: 'batch', 1: 'choice', 2: 'sequence'}
     else:
        __lowerCAmelCase								=	{0: 'batch', 1: 'sequence'}
     return OrderedDict(
         [
             ('input_ids', dynamic_axis),
             ('attention_mask', dynamic_axis),
         ]     )








def   a_    ( lowerCAmelCase_      :			int	):
   if number < 0:
      raise ValueError('number must not be negative'	)
   return number & (number - 1) == 0


if __name__ == "__main__":
     import doctest

     doctest.testmod()

