




"""simple docstring"""


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


A_ :    Union[str, Any]      =    logging.get_logger(__name__)

A_ :    List[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  lowercase(					__a			):







 '''simple docstring'''





 lowercase__			 = "dpr"


 def __init__(    self:		Dict,				a_:		Union[str, Any]=30_522,				a_:		List[str]=768,				a_:		Optional[int]=12,				a_:		int=12,				a_:		List[str]=3_072,				a_:		Optional[int]="gelu",				a_:		Dict=0.1,				a_:		List[Any]=0.1,				a_:		str=512,				a_:		Dict=2,				a_:		Dict=0.02,				a_:		Union[str, Any]=1E-12,				a_:		int=0,				a_:		str="absolute",				a_:		int = 0,				**a_:		Any,				):




   '''simple docstring'''



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

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








"""simple docstring"""


def  UpperCAmelCase__	(snake_case__							: int   ):
  """simple docstring"""

  _snake_case							:		Optional[Any]								=  (1 + 24 * n) ** 0.5
  return ((1 + root) / 6) % 1 == 0


def  UpperCAmelCase__	(snake_case__							: int = 50_00   ):
  """simple docstring"""

  _snake_case							:		List[str]								=  [(i * (3 * i - 1)) // 2 for i in range(1		,       snake_case__   )]
  for i, pentagonal_i in enumerate(snake_case__   ):
    for j in range(snake_case__		,       len(snake_case__   )   ):
      _snake_case							:		Dict								=  pentagonal_nums[j]
      _snake_case							:		Optional[Any]								=  pentagonal_i + pentagonal_j
      _snake_case							:		List[str]								=  pentagonal_j - pentagonal_i
      if is_pentagonal(snake_case__   ) and is_pentagonal(snake_case__   ):
        return b

  return -1


if __name__ == "__main__":
     print(F'''{solution() = }''')


