






"""simple docstring"""




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


lowerCamelCase     :							Optional[Any]    =logging.get_logger(__name__)

lowerCamelCase     :							int    ={
    '''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       __a  (   lowerCamelCase__	):
 _lowerCAmelCase	:	Union[str, Any]				=			"""dpr"""







 def __init__(		self :       Tuple							,       SCREAMING_SNAKE_CASE :       Optional[int]=3_05_22							,       SCREAMING_SNAKE_CASE :       List[str]=7_68							,       SCREAMING_SNAKE_CASE :       Dict=12							,       SCREAMING_SNAKE_CASE :       str=12							,       SCREAMING_SNAKE_CASE :       List[Any]=30_72							,       SCREAMING_SNAKE_CASE :       Union[str, Any]="gelu"							,       SCREAMING_SNAKE_CASE :       List[str]=0.1							,       SCREAMING_SNAKE_CASE :       int=0.1							,       SCREAMING_SNAKE_CASE :       List[str]=5_12							,       SCREAMING_SNAKE_CASE :       Dict=2							,       SCREAMING_SNAKE_CASE :       Any=0.0_2							,       SCREAMING_SNAKE_CASE :       List[str]=1e-1_2							,       SCREAMING_SNAKE_CASE :       List[str]=0							,       SCREAMING_SNAKE_CASE :       Any="absolute"							,       SCREAMING_SNAKE_CASE :       Optional[int] = 0							,       **SCREAMING_SNAKE_CASE :       Optional[Any]							,       ):


      '''simple docstring'''






      super().__init__(pad_token_id=snake_case__							,       **snake_case__						)

      UpperCamelCase__      :       int	    =  vocab_size
      UpperCamelCase__      :       Tuple	    =  hidden_size
      UpperCamelCase__      :       Union[str, Any]	    =  num_hidden_layers
      UpperCamelCase__      :       List[str]	    =  num_attention_heads
      UpperCamelCase__      :       Union[str, Any]	    =  hidden_act
      UpperCamelCase__      :       Optional[Any]	    =  intermediate_size
      UpperCamelCase__      :       str	    =  hidden_dropout_prob
      UpperCamelCase__      :       List[Any]	    =  attention_probs_dropout_prob
      UpperCamelCase__      :       Optional[Any]	    =  max_position_embeddings
      UpperCamelCase__      :       Tuple	    =  type_vocab_size
      UpperCamelCase__      :       Optional[int]	    =  initializer_range
      UpperCamelCase__      :       Dict	    =  layer_norm_eps
      UpperCamelCase__      :       List[Any]	    =  projection_dim
      UpperCamelCase__      :       Optional[int]	    =  position_embedding_type







from dataclasses import dataclass, field
from typing import ClassVar, Dict

from ..features import Features, Value
from .base import TaskTemplate





@dataclass(frozen=A__	)
class       __a  (   A__	):
 _lowerCAmelCase	:	str				=			field(default='''language-modeling'''	,       metadata={'''include_in_asdict_even_if_is_default''': True}	)

 _lowerCAmelCase	:	ClassVar[Features]				=			Features({'''text''': Value('''string'''	)}	)
 _lowerCAmelCase	:	ClassVar[Features]				=			Features({}	)
 _lowerCAmelCase	:	str				=			"text"







 @property
 def  __lowercase (		self :       str						):


      '''simple docstring'''






      return {self.text_column: "text"}