


'''simple docstring'''







from collections import OrderedDict
from typing import Mapping

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


SCREAMING_SNAKE_CASE_      =			logging.get_logger(__name__)

SCREAMING_SNAKE_CASE_      =			{
    'kssteven/ibert-roberta-base': 'https://huggingface.co/kssteven/ibert-roberta-base/resolve/main/config.json',
    'kssteven/ibert-roberta-large': 'https://huggingface.co/kssteven/ibert-roberta-large/resolve/main/config.json',
    'kssteven/ibert-roberta-large-mnli': (
        'https://huggingface.co/kssteven/ibert-roberta-large-mnli/resolve/main/config.json'
    ),
}


class  lowerCAmelCase_						(       snake_case__      ):





  """simple docstring"""



  a_       :Any												="""ibert"""

  def __init__(					self     :							Optional[Any]				,							SCREAMING_SNAKE_CASE__     :							List[str]=3_0_5_2_2				,							SCREAMING_SNAKE_CASE__     :							Optional[int]=7_6_8				,							SCREAMING_SNAKE_CASE__     :							int=1_2				,							SCREAMING_SNAKE_CASE__     :							int=1_2				,							SCREAMING_SNAKE_CASE__     :							Tuple=3_0_7_2				,							SCREAMING_SNAKE_CASE__     :							int="gelu"				,							SCREAMING_SNAKE_CASE__     :							List[str]=0.1				,							SCREAMING_SNAKE_CASE__     :							Any=0.1				,							SCREAMING_SNAKE_CASE__     :							List[str]=5_1_2				,							SCREAMING_SNAKE_CASE__     :							Tuple=2				,							SCREAMING_SNAKE_CASE__     :							Dict=0.0_2				,							SCREAMING_SNAKE_CASE__     :							List[str]=1E-12				,							SCREAMING_SNAKE_CASE__     :							int=1				,							SCREAMING_SNAKE_CASE__     :							str=0				,							SCREAMING_SNAKE_CASE__     :							Optional[int]=2				,							SCREAMING_SNAKE_CASE__     :							Any="absolute"				,							SCREAMING_SNAKE_CASE__     :							Any=False				,							SCREAMING_SNAKE_CASE__     :							List[Any]="none"				,							**SCREAMING_SNAKE_CASE__     :							List[str]				,							):





       '''simple docstring'''

       super().__init__(pad_token_id=SCREAMING_SNAKE_CASE__				,							bos_token_id=SCREAMING_SNAKE_CASE__				,							eos_token_id=SCREAMING_SNAKE_CASE__				,							**SCREAMING_SNAKE_CASE__						)

       __a       =   vocab_size
       __a       =   hidden_size
       __a       =   num_hidden_layers
       __a       =   num_attention_heads
       __a       =   hidden_act
       __a       =   intermediate_size
       __a       =   hidden_dropout_prob
       __a       =   attention_probs_dropout_prob
       __a       =   max_position_embeddings
       __a       =   type_vocab_size
       __a       =   initializer_range
       __a       =   layer_norm_eps
       __a       =   position_embedding_type
       __a       =   quant_mode
       __a       =   force_dequant


class  lowerCAmelCase_						(       snake_case__      ):





  """simple docstring"""



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





       '''simple docstring'''

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










'''simple docstring'''







from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


SCREAMING_SNAKE_CASE_      =			{
    'configuration_bridgetower': [
        'BRIDGETOWER_PRETRAINED_CONFIG_ARCHIVE_MAP',
        'BridgeTowerConfig',
        'BridgeTowerTextConfig',
        'BridgeTowerVisionConfig',
    ],
    'processing_bridgetower': ['BridgeTowerProcessor'],
}

try:
 if not is_vision_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 SCREAMING_SNAKE_CASE_      =			['BridgeTowerImageProcessor']

try:
 if not is_torch_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 SCREAMING_SNAKE_CASE_      =			[
     'BRIDGETOWER_PRETRAINED_MODEL_ARCHIVE_LIST',
     'BridgeTowerForContrastiveLearning',
     'BridgeTowerForImageAndTextRetrieval',
     'BridgeTowerForMaskedLM',
     'BridgeTowerModel',
     'BridgeTowerPreTrainedModel',
 ]


if TYPE_CHECKING:
 from .configuration_bridgetower import (
     BRIDGETOWER_PRETRAINED_CONFIG_ARCHIVE_MAP,
     BridgeTowerConfig,
     BridgeTowerTextConfig,
     BridgeTowerVisionConfig,
 )
 from .processing_bridgetower import BridgeTowerProcessor

 try:
  if not is_vision_available():
   raise OptionalDependencyNotAvailable()
 except OptionalDependencyNotAvailable:
  pass
 else:
  from .image_processing_bridgetower import BridgeTowerImageProcessor

 try:
  if not is_torch_available():
   raise OptionalDependencyNotAvailable()
 except OptionalDependencyNotAvailable:
  pass
 else:
  from .modeling_bridgetower import (
      BRIDGETOWER_PRETRAINED_MODEL_ARCHIVE_LIST,
      BridgeTowerForContrastiveLearning,
      BridgeTowerForImageAndTextRetrieval,
      BridgeTowerForMaskedLM,
      BridgeTowerModel,
      BridgeTowerPreTrainedModel,
  )


else:
 import sys

 SCREAMING_SNAKE_CASE_      =			_LazyModule(__name__, globals()['__file__'], _import_structure)






