
"""simple docstring"""





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


UpperCamelCase_       :    List[Any]						      =			logging.get_logger(__name__)

UpperCamelCase_       :    Union[str, Any]						      =			{
    '''facebook/dpr-ctx_encoder-single-nq-base''': (
        '''https://huggingface.co/facebook/dpr-ctx_encoder-single-nq-base/resolve/main/config.json'''
    ),
    '''facebook/dpr-question_encoder-single-nq-base''': (
        '''https://huggingface.co/facebook/dpr-question_encoder-single-nq-base/resolve/main/config.json'''
    ),
    '''facebook/dpr-reader-single-nq-base''': (
        '''https://huggingface.co/facebook/dpr-reader-single-nq-base/resolve/main/config.json'''
    ),
    '''facebook/dpr-ctx_encoder-multiset-base''': (
        '''https://huggingface.co/facebook/dpr-ctx_encoder-multiset-base/resolve/main/config.json'''
    ),
    '''facebook/dpr-question_encoder-multiset-base''': (
        '''https://huggingface.co/facebook/dpr-question_encoder-multiset-base/resolve/main/config.json'''
    ),
    '''facebook/dpr-reader-multiset-base''': (
        '''https://huggingface.co/facebook/dpr-reader-multiset-base/resolve/main/config.json'''
    ),
}



class __lowerCAmelCase					(       _lowercase   ):




			"""simple docstring"""







			snake_case						   =					"dpr"




			def __init__(					self    :       List[str]							, _snake_case    :       Any=30_522							, _snake_case    :       Union[str, Any]=768							, _snake_case    :       Optional[int]=12							, _snake_case    :       Optional[Any]=12							, _snake_case    :       int=3_072							, _snake_case    :       Any="gelu"							, _snake_case    :       str=0.1							, _snake_case    :       Tuple=0.1							, _snake_case    :       List[str]=512							, _snake_case    :       str=2							, _snake_case    :       Tuple=0.0_2							, _snake_case    :       Optional[Any]=1e-12							, _snake_case    :       Tuple=0							, _snake_case    :       Tuple="absolute"							, _snake_case    :       int = 0							, **_snake_case    :       Union[str, Any]							, )   ->			str:







								"""simple docstring"""
								super().__init__(pad_token_id=_snake_case							, **_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_								=    projection_dim
								A_								=    position_embedding_type






"""simple docstring"""





from typing import TYPE_CHECKING

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


UpperCamelCase_       :    Any						      =			{'''configuration_van''': ['''VAN_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''VanConfig''']}


try:
		if not is_torch_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		UpperCamelCase_       :    str						      =			[
		    '''VAN_PRETRAINED_MODEL_ARCHIVE_LIST''',
		    '''VanForImageClassification''',
		    '''VanModel''',
		    '''VanPreTrainedModel''',
		]

if TYPE_CHECKING:
		from .configuration_van import VAN_PRETRAINED_CONFIG_ARCHIVE_MAP, VanConfig

		try:
				if not is_torch_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .modeling_van import (
				    VAN_PRETRAINED_MODEL_ARCHIVE_LIST,
				    VanForImageClassification,
				    VanModel,
				    VanPreTrainedModel,
				)

else:
		import sys

		UpperCamelCase_       :    Optional[Any]						      =			_LazyModule(__name__, globals()['''__file__'''], _import_structure)




