


'''simple docstring'''



import warnings

from ..trainer import Trainer
from ..utils import logging


_lowercase    :    int			     =  logging.get_logger(__name__)






class  UpperCamelCase__(     lowerCAmelCase ):




				def __init__(	self    :				Any   ,					lowerCAmelCase    :				str=None   ,					**lowerCAmelCase    :				Tuple   )->  Any:

										"""simple docstring"""




										warnings.warn(
										    '''`SageMakerTrainer` is deprecated and will be removed in v5 of Transformers. You can use `Trainer` '''
										    '''instead.'''   ,					lowerCAmelCase   ,					)
										super().__init__(args=lowerCAmelCase   ,					**lowerCAmelCase   )









'''simple docstring'''



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


_lowercase    :    Any			     =  logging.get_logger(__name__)

_lowercase    :    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__(     lowerCAmelCase ):
				__magic_name__       :   Optional[int]							= "dpr"




				def __init__(	self    :				Dict   ,					lowerCAmelCase    :				Any=30522   ,					lowerCAmelCase    :				List[str]=768   ,					lowerCAmelCase    :				Union[str, Any]=12   ,					lowerCAmelCase    :				Tuple=12   ,					lowerCAmelCase    :				Optional[int]=3072   ,					lowerCAmelCase    :				Optional[int]="gelu"   ,					lowerCAmelCase    :				Optional[Any]=0.1   ,					lowerCAmelCase    :				Any=0.1   ,					lowerCAmelCase    :				Optional[Any]=512   ,					lowerCAmelCase    :				List[Any]=2   ,					lowerCAmelCase    :				Tuple=0.02   ,					lowerCAmelCase    :				str=1E-12   ,					lowerCAmelCase    :				Optional[Any]=0   ,					lowerCAmelCase    :				Tuple="absolute"   ,					lowerCAmelCase    :				int = 0   ,					**lowerCAmelCase    :				Union[str, Any]   ,					)->  Optional[int]:

										"""simple docstring"""




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

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





