





"""simple docstring"""






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


A 			=  logging.get_logger(__name__)

A 			=  {
    '''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 				__lowercase			(			__snake_case							):







					'''simple docstring'''




					__lowerCAmelCase  =  '''realm'''







					def __init__(						self	,			_UpperCAmelCase=30522	,			_UpperCAmelCase=768	,			_UpperCAmelCase=128	,			_UpperCAmelCase=12	,			_UpperCAmelCase=12	,			_UpperCAmelCase=8	,			_UpperCAmelCase=3072	,			_UpperCAmelCase="gelu_new"	,			_UpperCAmelCase=0.1	,			_UpperCAmelCase=0.1	,			_UpperCAmelCase=512	,			_UpperCAmelCase=2	,			_UpperCAmelCase=0.0_2	,			_UpperCAmelCase=1e-1_2	,			_UpperCAmelCase=256	,			_UpperCAmelCase=10	,			_UpperCAmelCase=1e-3	,			_UpperCAmelCase=5	,			_UpperCAmelCase=320	,			_UpperCAmelCase=13353718	,			_UpperCAmelCase=5000	,			_UpperCAmelCase=1	,			_UpperCAmelCase=0	,			_UpperCAmelCase=2	,			**_UpperCAmelCase	,			):
									super().__init__(pad_token_id=_lowercase	,			bos_token_id=_lowercase	,			eos_token_id=_lowercase	,			**_lowercase     )

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

									# Reader config
									__a :						Any			       =  span_hidden_size
									__a :						List[Any]			       =  max_span_width
									__a :						Tuple			       =  reader_layer_norm_eps
									__a :						Dict			       =  reader_beam_size
									__a :						List[Any]			       =  reader_seq_len

									# Retrieval config
									__a :						str			       =  num_block_records
									__a :						int			       =  searcher_beam_size






"""simple docstring"""






def     __A      (			a_						:int   ,       a_						:float   ,       a_						:float)		->		float:
				return round(float(moles / volume) * nfactor)

def     __A      (			a_						:float   ,       a_						:float   ,       a_						:float)		->		float:
				return round(float((moles * 0.0_8_2_1 * temperature) / (volume)))

def     __A      (			a_						:float   ,       a_						:float   ,       a_						:float)		->		float:
				return round(float((moles * 0.0_8_2_1 * temperature) / (pressure)))

def     __A      (			a_						:float   ,       a_						:float   ,       a_						:float)		->		float:
				return round(float((pressure * volume) / (0.0_8_2_1 * moles)))


if __name__ == "__main__":
		import doctest

		doctest.testmod()