


'''simple docstring'''


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


lowerCamelCase__    	=     logging.get_logger(__name__)

# TODO: upload to AWS
lowerCamelCase__    	=     {
    'yjernite/retribert-base-uncased': (
        'https://huggingface.co/yjernite/retribert-base-uncased/resolve/main/config.json'
    ),
}






class 	lowerCAmelCase__			(			UpperCamelCase_	):
			lowerCAmelCase :	Optional[int]          =     "retribert"




			def __init__(		self  :     Optional[Any]	,  lowerCamelCase__  :     List[str]=3_05_22	,  lowerCamelCase__  :     int=7_68	,  lowerCamelCase__  :     Dict=8	,  lowerCamelCase__  :     List[Any]=12	,  lowerCamelCase__  :     Optional[Any]=30_72	,  lowerCamelCase__  :     List[Any]="gelu"	,  lowerCamelCase__  :     int=0.1	,  lowerCamelCase__  :     List[Any]=0.1	,  lowerCamelCase__  :     str=5_12	,  lowerCamelCase__  :     Optional[Any]=2	,  lowerCamelCase__  :     List[Any]=0.0_2	,  lowerCamelCase__  :     Tuple=1E-12	,  lowerCamelCase__  :     Union[str, Any]=True	,  lowerCamelCase__  :     Tuple=1_28	,  lowerCamelCase__  :     str=0	,  **lowerCamelCase__  :     Tuple	,  )   ->Optional[int]:



					'''simple docstring'''







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

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









'''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.
lowerCamelCase__    	=     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  __lowerCAmelCase (__lowerCAmelCase   ):
		from transformers.testing_utils import pytest_addoption_shared

		pytest_addoption_shared(__lowerCAmelCase   )






def  __lowerCAmelCase (__lowerCAmelCase   ):
		from transformers.testing_utils import pytest_terminal_summary_main

		_UpperCAmelCase		:       Optional[int]								=      terminalreporter.config.getoption("--make-reports"   )
		if make_reports:
				pytest_terminal_summary_main(__lowerCAmelCase      , id=__lowerCAmelCase   )



