


from ...configuration_utils import PretrainedConfig
from ...utils import logging


__UpperCamelCase     :    Dict 	=				logging.get_logger(__name__)

__UpperCamelCase     :    Any 	=				{
    'weiweishi/roc-bert-base-zh': 'https://huggingface.co/weiweishi/roc-bert-base-zh/resolve/main/config.json',
}



class 				_UpperCamelCase			(    A    ):

   '''simple docstring'''







   a_					:				Dict     =			"""roc_bert"""

   def __init__(	self	:			Optional[int]							,	_lowerCamelCase	:			Tuple=3_0_5_2_2							,	_lowerCamelCase	:			Optional[Any]=7_6_8							,	_lowerCamelCase	:			Dict=1_2							,	_lowerCamelCase	:			Union[str, Any]=1_2							,	_lowerCamelCase	:			Dict=3_0_7_2							,	_lowerCamelCase	:			Optional[int]="gelu"							,	_lowerCamelCase	:			Dict=0.1							,	_lowerCamelCase	:			List[Any]=0.1							,	_lowerCamelCase	:			List[str]=5_1_2							,	_lowerCamelCase	:			List[Any]=2							,	_lowerCamelCase	:			Union[str, Any]=0.02							,	_lowerCamelCase	:			List[Any]=1E-12							,	_lowerCamelCase	:			Optional[int]=True							,	_lowerCamelCase	:			Any=0							,	_lowerCamelCase	:			Dict="absolute"							,	_lowerCamelCase	:			str=None							,	_lowerCamelCase	:			Optional[Any]=True							,	_lowerCamelCase	:			Any=True							,	_lowerCamelCase	:			Union[str, Any]=7_6_8							,	_lowerCamelCase	:			int=9_1_0							,	_lowerCamelCase	:			Optional[Any]=5_1_2							,	_lowerCamelCase	:			Optional[int]=2_4_8_5_8							,	_lowerCamelCase	:			Union[str, Any]=True							,	**_lowerCamelCase	:			Any							,	):






         '''simple docstring'''



         __lowerCamelCase  :   Optional[Any]							    =    vocab_size
         __lowerCamelCase  :   str							    =    max_position_embeddings
         __lowerCamelCase  :   Dict							    =    hidden_size
         __lowerCamelCase  :   str							    =    num_hidden_layers
         __lowerCamelCase  :   Tuple							    =    num_attention_heads
         __lowerCamelCase  :   Tuple							    =    intermediate_size
         __lowerCamelCase  :   Optional[int]							    =    hidden_act
         __lowerCamelCase  :   Union[str, Any]							    =    hidden_dropout_prob
         __lowerCamelCase  :   Tuple							    =    attention_probs_dropout_prob
         __lowerCamelCase  :   Tuple							    =    initializer_range
         __lowerCamelCase  :   int							    =    type_vocab_size
         __lowerCamelCase  :   Dict							    =    layer_norm_eps
         __lowerCamelCase  :   int							    =    use_cache
         __lowerCamelCase  :   str							    =    enable_pronunciation
         __lowerCamelCase  :   Any							    =    enable_shape
         __lowerCamelCase  :   List[str]							    =    pronunciation_embed_dim
         __lowerCamelCase  :   Optional[int]							    =    pronunciation_vocab_size
         __lowerCamelCase  :   str							    =    shape_embed_dim
         __lowerCamelCase  :   int							    =    shape_vocab_size
         __lowerCamelCase  :   Dict							    =    concat_input
         __lowerCamelCase  :   Any							    =    position_embedding_type
         __lowerCamelCase  :   str							    =    classifier_dropout
         super().__init__(pad_token_id=_lowerCamelCase							,	**_lowerCamelCase				)







from typing import TYPE_CHECKING

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


SCREAMING_SNAKE_CASE__     					=			{
    "configuration_owlvit": [
        "OWLVIT_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "OwlViTConfig",
        "OwlViTOnnxConfig",
        "OwlViTTextConfig",
        "OwlViTVisionConfig",
    ],
    "processing_owlvit": ["OwlViTProcessor"],
}


try:
		if not is_vision_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		SCREAMING_SNAKE_CASE__     					=			["OwlViTFeatureExtractor"]
		SCREAMING_SNAKE_CASE__     					=			["OwlViTImageProcessor"]

try:
		if not is_torch_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		SCREAMING_SNAKE_CASE__     					=			[
		    "OWLVIT_PRETRAINED_MODEL_ARCHIVE_LIST",
		    "OwlViTModel",
		    "OwlViTPreTrainedModel",
		    "OwlViTTextModel",
		    "OwlViTVisionModel",
		    "OwlViTForObjectDetection",
		]

if TYPE_CHECKING:
		from .configuration_owlvit import (
		    OWLVIT_PRETRAINED_CONFIG_ARCHIVE_MAP,
		    OwlViTConfig,
		    OwlViTOnnxConfig,
		    OwlViTTextConfig,
		    OwlViTVisionConfig,
		)
		from .processing_owlvit import OwlViTProcessor

		try:
				if not is_vision_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .feature_extraction_owlvit import OwlViTFeatureExtractor
				from .image_processing_owlvit import OwlViTImageProcessor

		try:
				if not is_torch_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .modeling_owlvit import (
				    OWLVIT_PRETRAINED_MODEL_ARCHIVE_LIST,
				    OwlViTForObjectDetection,
				    OwlViTModel,
				    OwlViTPreTrainedModel,
				    OwlViTTextModel,
				    OwlViTVisionModel,
				)

else:
		import sys

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






