



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 					__lowerCAmelCase (     lowerCamelCase__       ):
				__lowerCamelCase =				'''dpr'''




				def __init__(							self						,				_snake_case=30522						,				_snake_case=768						,				_snake_case=12						,				_snake_case=12						,				_snake_case=3072						,				_snake_case="gelu"						,				_snake_case=0.1						,				_snake_case=0.1						,				_snake_case=512						,				_snake_case=2						,				_snake_case=0.02						,				_snake_case=1e-12						,				_snake_case=0						,				_snake_case="absolute"						,				_snake_case = 0						,				**_snake_case						,				):



									"""simple docstring"""





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

									_lowerCAmelCase						=    vocab_size
									_lowerCAmelCase						=    hidden_size
									_lowerCAmelCase						=    num_hidden_layers
									_lowerCAmelCase						=    num_attention_heads
									_lowerCAmelCase						=    hidden_act
									_lowerCAmelCase						=    intermediate_size
									_lowerCAmelCase						=    hidden_dropout_prob
									_lowerCAmelCase						=    attention_probs_dropout_prob
									_lowerCAmelCase						=    max_position_embeddings
									_lowerCAmelCase						=    type_vocab_size
									_lowerCAmelCase						=    initializer_range
									_lowerCAmelCase						=    layer_norm_eps
									_lowerCAmelCase						=    projection_dim
									_lowerCAmelCase						=    position_embedding_type






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


_lowerCAmelCase					:			Tuple  				=			logging.get_logger(__name__)

_lowerCAmelCase					:			Union[str, Any]  				=			{"ctrl": "https://huggingface.co/ctrl/resolve/main/config.json"}






class 	__magic_name__    (			lowerCAmelCase_      ):
			SCREAMING_SNAKE_CASE							   =						'ctrl'
			SCREAMING_SNAKE_CASE							   =						['past_key_values']
			SCREAMING_SNAKE_CASE							   =						{
			    'max_position_embeddings': 'n_positions',
			    'hidden_size': 'n_embd',
			    'num_attention_heads': 'n_head',
			    'num_hidden_layers': 'n_layer',
			}





			def __init__(		self					,  __snake_case=24_6534					,  __snake_case=256					,  __snake_case=1280					,  __snake_case=8192					,  __snake_case=48					,  __snake_case=16					,  __snake_case=0.1					,  __snake_case=0.1					,  __snake_case=1e-6					,  __snake_case=0.02					,  __snake_case=True					,  **__snake_case					,  )   -> Union[str, Any]:




						'''simple docstring'''
						__a        =vocab_size
						__a        =n_positions
						__a        =n_embd
						__a        =n_layer
						__a        =n_head
						__a        =dff
						__a        =resid_pdrop
						__a        =embd_pdrop
						__a        =layer_norm_epsilon
						__a        =initializer_range

						__a        =use_cache

						super().__init__(**__snake_case					)






