



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


a_    :  int						  =		logging.get_logger(__name__)

a_    :  Union[str, Any]						  =		{
    # See all MEGATRON_BERT models at https://huggingface.co/models?filter=bert
}





class  lowerCamelCase__	(    UpperCAmelCase_):
     """simple docstring"""



     _A      =      'megatron-bert'







     def __init__(self					,      __a=2_90_56					,      __a=10_24					,      __a=24					,      __a=16					,      __a=40_96					,      __a="gelu"					,      __a=0.1					,      __a=0.1					,      __a=5_12					,      __a=2					,      __a=0.02					,      __a=1E-12					,      __a=0					,      __a="absolute"					,      __a=True					,      **__a					,      ):






           '''simple docstring'''



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

           lowerCamelCase             =		vocab_size
           lowerCamelCase             =		hidden_size
           lowerCamelCase             =		num_hidden_layers
           lowerCamelCase             =		num_attention_heads
           lowerCamelCase             =		hidden_act
           lowerCamelCase             =		intermediate_size
           lowerCamelCase             =		hidden_dropout_prob
           lowerCamelCase             =		attention_probs_dropout_prob
           lowerCamelCase             =		max_position_embeddings
           lowerCamelCase             =		type_vocab_size
           lowerCamelCase             =		initializer_range
           lowerCamelCase             =		layer_norm_eps
           lowerCamelCase             =		position_embedding_type
           lowerCamelCase             =		use_cache




a_    :  Dict						  =		8.314462  # Unit - J mol-1 K-1

def      __lowercase(						UpperCAmelCase__ , UpperCAmelCase__ , UpperCAmelCase__			):


      """simple docstring"""



      if moles < 0 or kelvin < 0 or volume < 0:
            raise ValueError("Invalid inputs. Enter positive value."			)
      return moles * kelvin * UNIVERSAL_GAS_CONSTANT / volume

def      __lowercase(						UpperCAmelCase__ , UpperCAmelCase__ , UpperCAmelCase__			):


      """simple docstring"""



      if moles < 0 or kelvin < 0 or pressure < 0:
            raise ValueError("Invalid inputs. Enter positive value."			)
      return moles * kelvin * UNIVERSAL_GAS_CONSTANT / pressure


if __name__ == "__main__":
     from doctest import testmod

     testmod()