

'''simple docstring'''





from transformers import HfArgumentParser, TensorFlowBenchmark, TensorFlowBenchmarkArguments







def   _UpperCamelCase	(		)       ->			List[Any]:
					lowerCamelCase_  				=      HfArgumentParser(__UpperCamelCase	)
					lowerCamelCase_  				=      parser.parse_args_into_dataclasses()[0]
					lowerCamelCase_  				=      TensorFlowBenchmark(args=__UpperCamelCase	)
					try:
										lowerCamelCase_  				=      parser.parse_args_into_dataclasses()[0]
					except ValueError as e:
										lowerCamelCase_  				=      'Arg --no_{0} is no longer used, please use --no-{0} instead.'
										lowerCamelCase_  				=      ' '.join(str(__UpperCamelCase	).split(' '	)[:-1]	)
										lowerCamelCase_  				=      ''
										lowerCamelCase_  				=      eval(str(__UpperCamelCase	).split(' '	)[-1]	)
										lowerCamelCase_  				=      []
										for arg in depreciated_args:
															# arg[2:] removes '--'
															if arg[2:] in TensorFlowBenchmark.deprecated_args:
																				# arg[5:] removes '--no_'
																				full_error_msg += arg_error_msg.format(arg[5:]	)
															else:
																				wrong_args.append(__UpperCamelCase	)
										if len(__UpperCamelCase	) > 0:
															lowerCamelCase_  				=      full_error_msg + begin_error_msg + str(__UpperCamelCase	)
										raise ValueError(__UpperCamelCase	)
					benchmark.run()


if __name__ == "__main__":
				main()





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


lowerCamelCase_    :			Any    =	logging.get_logger(__name__)

lowerCamelCase_    :			Dict    =	{
    """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 							_UpperCamelCase					(       _A	):






			'''simple docstring'''

			__UpperCamelCase   :    Any          =			"""dpr"""

			def __init__(							self			:							str    ,						snake_case_			:							Any=3_0522    ,						snake_case_			:							List[str]=768    ,						snake_case_			:							List[str]=12    ,						snake_case_			:							Union[str, Any]=12    ,						snake_case_			:							Tuple=3072    ,						snake_case_			:							Any="gelu"    ,						snake_case_			:							Optional[Any]=0.1    ,						snake_case_			:							str=0.1    ,						snake_case_			:							Dict=512    ,						snake_case_			:							int=2    ,						snake_case_			:							Union[str, Any]=0.02    ,						snake_case_			:							str=1e-12    ,						snake_case_			:							List[str]=0    ,						snake_case_			:							Any="absolute"    ,						snake_case_			:							int = 0    ,						**snake_case_			:							int    ,						):
							super().__init__(pad_token_id=snake_case_    ,						**snake_case_   )

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






