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


__lowerCamelCase					:	Optional[int]       =  logging.get_logger(__name__)

__lowerCamelCase					:	List[Any]       =  {
    '''google/realm-cc-news-pretrained-embedder''': (
        '''https://huggingface.co/google/realm-cc-news-pretrained-embedder/resolve/main/config.json'''
    ),
    '''google/realm-cc-news-pretrained-encoder''': (
        '''https://huggingface.co/google/realm-cc-news-pretrained-encoder/resolve/main/config.json'''
    ),
    '''google/realm-cc-news-pretrained-scorer''': (
        '''https://huggingface.co/google/realm-cc-news-pretrained-scorer/resolve/main/config.json'''
    ),
    '''google/realm-cc-news-pretrained-openqa''': (
        '''https://huggingface.co/google/realm-cc-news-pretrained-openqa/aresolve/main/config.json'''
    ),
    '''google/realm-orqa-nq-openqa''': '''https://huggingface.co/google/realm-orqa-nq-openqa/resolve/main/config.json''',
    '''google/realm-orqa-nq-reader''': '''https://huggingface.co/google/realm-orqa-nq-reader/resolve/main/config.json''',
    '''google/realm-orqa-wq-openqa''': '''https://huggingface.co/google/realm-orqa-wq-openqa/resolve/main/config.json''',
    '''google/realm-orqa-wq-reader''': '''https://huggingface.co/google/realm-orqa-wq-reader/resolve/main/config.json''',
    # See all REALM models at https://huggingface.co/models?filter=realm
}






class 		a__						(					A__					):
					A	       =							'realm'

					def __init__(    self      :       Optional[Any],_A      :       int=3_0522,_A      :       Union[str, Any]=768,_A      :       Dict=128,_A      :       Optional[int]=12,_A      :       List[str]=12,_A      :       Optional[int]=8,_A      :       Tuple=3072,_A      :       Optional[int]="gelu_new",_A      :       Tuple=0.1,_A      :       Optional[int]=0.1,_A      :       Optional[int]=512,_A      :       Optional[int]=2,_A      :       Any=0.02,_A      :       Tuple=1E-12,_A      :       Union[str, Any]=256,_A      :       int=10,_A      :       Tuple=1E-3,_A      :       Tuple=5,_A      :       List[str]=320,_A      :       List[Any]=1335_3718,_A      :       Optional[Any]=5000,_A      :       List[Any]=1,_A      :       int=0,_A      :       str=2,**_A      :       Optional[Any],):







							"""simple docstring"""






							super().__init__(pad_token_id=_A,bos_token_id=_A,eos_token_id=_A,**_A    )

							# Common config
							SCREAMING_SNAKE_CASE_  :		Any				      =    vocab_size
							SCREAMING_SNAKE_CASE_  :		List[Any]				      =    max_position_embeddings
							SCREAMING_SNAKE_CASE_  :		Any				      =    hidden_size
							SCREAMING_SNAKE_CASE_  :		Any				      =    retriever_proj_size
							SCREAMING_SNAKE_CASE_  :		Optional[Any]				      =    num_hidden_layers
							SCREAMING_SNAKE_CASE_  :		Tuple				      =    num_attention_heads
							SCREAMING_SNAKE_CASE_  :		str				      =    num_candidates
							SCREAMING_SNAKE_CASE_  :		Tuple				      =    intermediate_size
							SCREAMING_SNAKE_CASE_  :		Optional[int]				      =    hidden_act
							SCREAMING_SNAKE_CASE_  :		Optional[int]				      =    hidden_dropout_prob
							SCREAMING_SNAKE_CASE_  :		List[str]				      =    attention_probs_dropout_prob
							SCREAMING_SNAKE_CASE_  :		Dict				      =    initializer_range
							SCREAMING_SNAKE_CASE_  :		Dict				      =    type_vocab_size
							SCREAMING_SNAKE_CASE_  :		Union[str, Any]				      =    layer_norm_eps

							# Reader config
							SCREAMING_SNAKE_CASE_  :		Optional[Any]				      =    span_hidden_size
							SCREAMING_SNAKE_CASE_  :		Any				      =    max_span_width
							SCREAMING_SNAKE_CASE_  :		int				      =    reader_layer_norm_eps
							SCREAMING_SNAKE_CASE_  :		Dict				      =    reader_beam_size
							SCREAMING_SNAKE_CASE_  :		Any				      =    reader_seq_len

							# Retrieval config
							SCREAMING_SNAKE_CASE_  :		int				      =    num_block_records
							SCREAMING_SNAKE_CASE_  :		Tuple				      =    searcher_beam_size

def       _snake_case	(   lowerCAmelCase							:   int   , lowerCAmelCase							:   int	):
		"""simple docstring"""







		while b:
				SCREAMING_SNAKE_CASE_      ,    SCREAMING_SNAKE_CASE_  :		int				      =    b, a % b
		return a




def       _snake_case	(   lowerCAmelCase							:   int   , lowerCAmelCase							:   int	):
		"""simple docstring"""







		return a if b == 0 else euclidean_gcd_recursive(lowerCAmelCase   , a % b	)




def       _snake_case	(   ):
		"""simple docstring"""







		print(f'euclidean_gcd(3, 5) = {euclidean_gcd(3   , 5	)}'	)
		print(f'euclidean_gcd(5, 3) = {euclidean_gcd(5   , 3	)}'	)
		print(f'euclidean_gcd(1, 3) = {euclidean_gcd(1   , 3	)}'	)
		print(f'euclidean_gcd(3, 6) = {euclidean_gcd(3   , 6	)}'	)
		print(f'euclidean_gcd(6, 3) = {euclidean_gcd(6   , 3	)}'	)

		print(f'euclidean_gcd_recursive(3, 5) = {euclidean_gcd_recursive(3   , 5	)}'	)
		print(f'euclidean_gcd_recursive(5, 3) = {euclidean_gcd_recursive(5   , 3	)}'	)
		print(f'euclidean_gcd_recursive(1, 3) = {euclidean_gcd_recursive(1   , 3	)}'	)
		print(f'euclidean_gcd_recursive(3, 6) = {euclidean_gcd_recursive(3   , 6	)}'	)
		print(f'euclidean_gcd_recursive(6, 3) = {euclidean_gcd_recursive(6   , 3	)}'	)


if __name__ == "__main__":
		main()
