



"""simple docstring"""

# tests directory-specific settings - this file is run automatically
# by pytest before any tests are run

import sys
import warnings
from os.path import abspath, dirname, join


# allow having multiple repository checkouts and not needing to remember to rerun
# 'pip install -e .[dev]' when switching between checkouts and running tests.
a_			   =					abspath(join(dirname(dirname(dirname(__file__))), '''src'''))
sys.path.insert(1, git_repo_path)


# silence FutureWarning warnings in tests since often we can't act on them until
# they become normal warnings - i.e. the tests still need to test the current functionality
warnings.simplefilter(action='''ignore''', category=FutureWarning)







def 							SCREAMING_SNAKE_CASE__      (		SCREAMING_SNAKE_CASE__ :  List[Any]			):



					"""simple docstring"""





					from transformers.testing_utils import pytest_addoption_shared

					pytest_addoption_shared(SCREAMING_SNAKE_CASE__			)







def 							SCREAMING_SNAKE_CASE__      (		SCREAMING_SNAKE_CASE__ :  List[str]			):



					"""simple docstring"""





					from transformers.testing_utils import pytest_terminal_summary_main

					snake_case_					:		List[Any] 					=					terminalreporter.config.getoption("""--make-reports"""			)
					if make_reports:
										pytest_terminal_summary_main(SCREAMING_SNAKE_CASE__				,    id=SCREAMING_SNAKE_CASE__			)









"""simple docstring"""

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


a_			   =					logging.get_logger(__name__)

a_			   =					{
    '''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     (					_UpperCAmelCase):







						"""simple docstring"""







						_A		:							Optional[int]							       =		"""dpr"""







						def __init__(self   ,		lowercase__=3_05_22   ,		lowercase__=7_68   ,		lowercase__=12   ,		lowercase__=12   ,		lowercase__=30_72   ,		lowercase__="gelu"   ,		lowercase__=0.1   ,		lowercase__=0.1   ,		lowercase__=5_12   ,		lowercase__=2   ,		lowercase__=0.02   ,		lowercase__=1e-12   ,		lowercase__=0   ,		lowercase__="absolute"   ,		lowercase__ = 0   ,		**lowercase__   ,		):
											super().__init__(pad_token_id=lowercase__   ,		**lowercase__       )

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




