




'''simple docstring'''


from __future__ import annotations

from typing import Dict

from ...configuration_utils import PretrainedConfig


UpperCAmelCase_					=   {
    "susnato/ernie-m-base_pytorch": "https://huggingface.co/susnato/ernie-m-base_pytorch/blob/main/config.json",
    "susnato/ernie-m-large_pytorch": "https://huggingface.co/susnato/ernie-m-large_pytorch/blob/main/config.json",
}





class  __lowercase    (	__magic_name__			):
   _a    						=   """ernie_m"""
   _a    						=   {"dropout": "classifier_dropout", "num_classes": "num_labels"}







   def __init__(						self   ,				UpperCamelCase = 25_0002   ,				UpperCamelCase = 768   ,				UpperCamelCase = 12   ,				UpperCamelCase = 12   ,				UpperCamelCase = 3072   ,				UpperCamelCase = "gelu"   ,				UpperCamelCase = 0.1   ,				UpperCamelCase = 0.1   ,				UpperCamelCase = 514   ,				UpperCamelCase = 0.02   ,				UpperCamelCase = 1   ,				UpperCamelCase = 1e-05   ,				UpperCamelCase=None   ,				UpperCamelCase=False   ,				UpperCamelCase=0.0   ,				**UpperCamelCase   ,				)					->     Tuple:
     super().__init__(pad_token_id=UpperCamelCase   ,				**UpperCamelCase   )
     __a								=       vocab_size
     __a								=       hidden_size
     __a								=       num_hidden_layers
     __a								=       num_attention_heads
     __a								=       intermediate_size
     __a								=       hidden_act
     __a								=       hidden_dropout_prob
     __a								=       attention_probs_dropout_prob
     __a								=       max_position_embeddings
     __a								=       initializer_range
     __a								=       layer_norm_eps
     __a								=       classifier_dropout
     __a								=       is_decoder
     __a								=       act_dropout









'''simple docstring'''


from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_tf_available,
    is_tokenizers_available,
    is_torch_available,
)


UpperCAmelCase_					=   {
    "configuration_deberta": ["DEBERTA_PRETRAINED_CONFIG_ARCHIVE_MAP", "DebertaConfig", "DebertaOnnxConfig"],
    "tokenization_deberta": ["DebertaTokenizer"],
}

try:
  if not is_tokenizers_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  UpperCAmelCase_					=   ["DebertaTokenizerFast"]

try:
  if not is_torch_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  UpperCAmelCase_					=   [
      "DEBERTA_PRETRAINED_MODEL_ARCHIVE_LIST",
      "DebertaForMaskedLM",
      "DebertaForQuestionAnswering",
      "DebertaForSequenceClassification",
      "DebertaForTokenClassification",
      "DebertaModel",
      "DebertaPreTrainedModel",
  ]

try:
  if not is_tf_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  UpperCAmelCase_					=   [
      "TF_DEBERTA_PRETRAINED_MODEL_ARCHIVE_LIST",
      "TFDebertaForMaskedLM",
      "TFDebertaForQuestionAnswering",
      "TFDebertaForSequenceClassification",
      "TFDebertaForTokenClassification",
      "TFDebertaModel",
      "TFDebertaPreTrainedModel",
  ]


if TYPE_CHECKING:
  from .configuration_deberta import DEBERTA_PRETRAINED_CONFIG_ARCHIVE_MAP, DebertaConfig, DebertaOnnxConfig
  from .tokenization_deberta import DebertaTokenizer

  try:
    if not is_tokenizers_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .tokenization_deberta_fast import DebertaTokenizerFast

  try:
    if not is_torch_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .modeling_deberta import (
        DEBERTA_PRETRAINED_MODEL_ARCHIVE_LIST,
        DebertaForMaskedLM,
        DebertaForQuestionAnswering,
        DebertaForSequenceClassification,
        DebertaForTokenClassification,
        DebertaModel,
        DebertaPreTrainedModel,
    )

  try:
    if not is_tf_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .modeling_tf_deberta import (
        TF_DEBERTA_PRETRAINED_MODEL_ARCHIVE_LIST,
        TFDebertaForMaskedLM,
        TFDebertaForQuestionAnswering,
        TFDebertaForSequenceClassification,
        TFDebertaForTokenClassification,
        TFDebertaModel,
        TFDebertaPreTrainedModel,
    )


else:
  import sys

  UpperCAmelCase_					=   _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)



