



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


lowerCAmelCase__		:					List[Any]							=logging.get_logger(__name__)

lowerCAmelCase__		:					Optional[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        UpperCAmelCase_  (       UpperCamelCase_	):

						'''simple docstring'''




						UpperCamelCase__      :			List[str]      =  '''realm'''






						def __init__(   self				,							_A=30_522				,							_A=768				,							_A=128				,							_A=12				,							_A=12				,							_A=8				,							_A=3_072				,							_A="gelu_new"				,							_A=0.1				,							_A=0.1				,							_A=512				,							_A=2				,							_A=0.0_2				,							_A=1e-12				,							_A=256				,							_A=10				,							_A=1e-3				,							_A=5				,							_A=320				,							_A=13_353_718				,							_A=5_000				,							_A=1				,							_A=0				,							_A=2				,							**_A				,							):







													'''simple docstring'''

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

													# Common config
													__SCREAMING_SNAKE_CASE									= vocab_size
													__SCREAMING_SNAKE_CASE									= max_position_embeddings
													__SCREAMING_SNAKE_CASE									= hidden_size
													__SCREAMING_SNAKE_CASE									= retriever_proj_size
													__SCREAMING_SNAKE_CASE									= num_hidden_layers
													__SCREAMING_SNAKE_CASE									= num_attention_heads
													__SCREAMING_SNAKE_CASE									= num_candidates
													__SCREAMING_SNAKE_CASE									= intermediate_size
													__SCREAMING_SNAKE_CASE									= hidden_act
													__SCREAMING_SNAKE_CASE									= hidden_dropout_prob
													__SCREAMING_SNAKE_CASE									= attention_probs_dropout_prob
													__SCREAMING_SNAKE_CASE									= initializer_range
													__SCREAMING_SNAKE_CASE									= type_vocab_size
													__SCREAMING_SNAKE_CASE									= layer_norm_eps

													# Reader config
													__SCREAMING_SNAKE_CASE									= span_hidden_size
													__SCREAMING_SNAKE_CASE									= max_span_width
													__SCREAMING_SNAKE_CASE									= reader_layer_norm_eps
													__SCREAMING_SNAKE_CASE									= reader_beam_size
													__SCREAMING_SNAKE_CASE									= reader_seq_len

													# Retrieval config
													__SCREAMING_SNAKE_CASE									= num_block_records
													__SCREAMING_SNAKE_CASE									= searcher_beam_size











lowerCAmelCase__		:					Optional[int]							=9.80_665






def      __lowercase       (			a__							,       a__							,       a__ = g       )    ->			float:

							if fluid_density <= 0:
														raise ValueError('Impossible fluid density'       )
							if volume < 0:
														raise ValueError('Impossible Object volume'       )
							if gravity <= 0:
														raise ValueError('Impossible Gravity'       )

							return fluid_density * gravity * volume


if __name__ == "__main__":
			import doctest

			# run doctest
			doctest.testmod()






