


from collections import OrderedDict
from typing import Mapping

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


_SCREAMING_SNAKE_CASE     :			Optional[int]        =							logging.get_logger(__name__)

_SCREAMING_SNAKE_CASE     :			Optional[Any]        =							{
    """bert-base-uncased""": """https://huggingface.co/bert-base-uncased/resolve/main/config.json""",
    """bert-large-uncased""": """https://huggingface.co/bert-large-uncased/resolve/main/config.json""",
    """bert-base-cased""": """https://huggingface.co/bert-base-cased/resolve/main/config.json""",
    """bert-large-cased""": """https://huggingface.co/bert-large-cased/resolve/main/config.json""",
    """bert-base-multilingual-uncased""": """https://huggingface.co/bert-base-multilingual-uncased/resolve/main/config.json""",
    """bert-base-multilingual-cased""": """https://huggingface.co/bert-base-multilingual-cased/resolve/main/config.json""",
    """bert-base-chinese""": """https://huggingface.co/bert-base-chinese/resolve/main/config.json""",
    """bert-base-german-cased""": """https://huggingface.co/bert-base-german-cased/resolve/main/config.json""",
    """bert-large-uncased-whole-word-masking""": (
        """https://huggingface.co/bert-large-uncased-whole-word-masking/resolve/main/config.json"""
    ),
    """bert-large-cased-whole-word-masking""": (
        """https://huggingface.co/bert-large-cased-whole-word-masking/resolve/main/config.json"""
    ),
    """bert-large-uncased-whole-word-masking-finetuned-squad""": (
        """https://huggingface.co/bert-large-uncased-whole-word-masking-finetuned-squad/resolve/main/config.json"""
    ),
    """bert-large-cased-whole-word-masking-finetuned-squad""": (
        """https://huggingface.co/bert-large-cased-whole-word-masking-finetuned-squad/resolve/main/config.json"""
    ),
    """bert-base-cased-finetuned-mrpc""": """https://huggingface.co/bert-base-cased-finetuned-mrpc/resolve/main/config.json""",
    """bert-base-german-dbmdz-cased""": """https://huggingface.co/bert-base-german-dbmdz-cased/resolve/main/config.json""",
    """bert-base-german-dbmdz-uncased""": """https://huggingface.co/bert-base-german-dbmdz-uncased/resolve/main/config.json""",
    """cl-tohoku/bert-base-japanese""": """https://huggingface.co/cl-tohoku/bert-base-japanese/resolve/main/config.json""",
    """cl-tohoku/bert-base-japanese-whole-word-masking""": (
        """https://huggingface.co/cl-tohoku/bert-base-japanese-whole-word-masking/resolve/main/config.json"""
    ),
    """cl-tohoku/bert-base-japanese-char""": (
        """https://huggingface.co/cl-tohoku/bert-base-japanese-char/resolve/main/config.json"""
    ),
    """cl-tohoku/bert-base-japanese-char-whole-word-masking""": (
        """https://huggingface.co/cl-tohoku/bert-base-japanese-char-whole-word-masking/resolve/main/config.json"""
    ),
    """TurkuNLP/bert-base-finnish-cased-v1""": (
        """https://huggingface.co/TurkuNLP/bert-base-finnish-cased-v1/resolve/main/config.json"""
    ),
    """TurkuNLP/bert-base-finnish-uncased-v1""": (
        """https://huggingface.co/TurkuNLP/bert-base-finnish-uncased-v1/resolve/main/config.json"""
    ),
    """wietsedv/bert-base-dutch-cased""": """https://huggingface.co/wietsedv/bert-base-dutch-cased/resolve/main/config.json""",
    # See all BERT models at https://huggingface.co/models?filter=bert
}



class        A     (		snake_case_	):







     '''simple docstring'''







     lowerCamelCase :						str            =   """bert"""

     def __init__(				self    :							Any			,				_UpperCamelCase    :							Optional[Any]=30_522			,				_UpperCamelCase    :							int=768			,				_UpperCamelCase    :							Union[str, Any]=12			,				_UpperCamelCase    :							Union[str, Any]=12			,				_UpperCamelCase    :							List[str]=3_072			,				_UpperCamelCase    :							Union[str, Any]="gelu"			,				_UpperCamelCase    :							str=0.1			,				_UpperCamelCase    :							str=0.1			,				_UpperCamelCase    :							Optional[int]=512			,				_UpperCamelCase    :							Union[str, Any]=2			,				_UpperCamelCase    :							str=0.0_2			,				_UpperCamelCase    :							int=1e-12			,				_UpperCamelCase    :							Union[str, Any]=0			,				_UpperCamelCase    :							Optional[Any]="absolute"			,				_UpperCamelCase    :							Any=True			,				_UpperCamelCase    :							List[str]=None			,				**_UpperCamelCase    :							Dict			,				):
      super().__init__(pad_token_id=_UpperCamelCase			,				**_UpperCamelCase)

      _lowercase:       Optional[int]						=				vocab_size
      _lowercase:       str						=				hidden_size
      _lowercase:       List[str]						=				num_hidden_layers
      _lowercase:       Optional[int]						=				num_attention_heads
      _lowercase:       Optional[Any]						=				hidden_act
      _lowercase:       Tuple						=				intermediate_size
      _lowercase:       List[str]						=				hidden_dropout_prob
      _lowercase:       Optional[int]						=				attention_probs_dropout_prob
      _lowercase:       Any						=				max_position_embeddings
      _lowercase:       Optional[Any]						=				type_vocab_size
      _lowercase:       str						=				initializer_range
      _lowercase:       Optional[int]						=				layer_norm_eps
      _lowercase:       List[str]						=				position_embedding_type
      _lowercase:       int						=				use_cache
      _lowercase:       Optional[Any]						=				classifier_dropout






class        A     (		snake_case_	):







     '''simple docstring'''







     @property
     def 					UpperCAmelCase__       (				self    :							Tuple):
      if self.task == "multiple-choice":
       _lowercase:       List[Any]						=				{0: "batch", 1: "choice", 2: "sequence"}
      else:
       _lowercase:       Tuple						=				{0: "batch", 1: "sequence"}
      return OrderedDict(
          [
              ("input_ids", dynamic_axis),
              ("attention_mask", dynamic_axis),
              ("token_type_ids", dynamic_axis),
          ])


"""simple docstring"""



import warnings

from ...utils import logging
from .image_processing_deformable_detr import DeformableDetrImageProcessor


SCREAMING_SNAKE_CASE__:int									=			logging.get_logger(__name__)






class  snake_case__      (       snake_case_       ):


 def __init__( self    ,		*lowerCamelCase    ,		**lowerCamelCase						):
        warnings.warn(
            "The class DeformableDetrFeatureExtractor is deprecated and will be removed in version 5 of Transformers."
            " Please use DeformableDetrImageProcessor instead."    ,		lowerCamelCase    ,		)
        super().__init__(*lowerCamelCase    ,		**lowerCamelCase						)
