

"""simple docstring"""


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


UpperCAmelCase													=logging.get_logger(__name__)

UpperCAmelCase													={
    "bigcode/gpt_bigcode-santacoder": "https://huggingface.co/bigcode/gpt_bigcode-santacoder/resolve/main/config.json",
}





class lowerCamelCase__   (				SCREAMING_SNAKE_CASE    ):



    '''simple docstring'''




    _lowerCamelCase					=   '''gpt_bigcode'''
    _lowerCamelCase					=   ['''past_key_values''']
    _lowerCamelCase					=   {
        '''hidden_size''': '''n_embd''',
        '''max_position_embeddings''': '''n_positions''',
        '''num_attention_heads''': '''n_head''',
        '''num_hidden_layers''': '''n_layer''',
    }




    def __init__( self ,lowerCamelCase_=5_0_2_5_7 ,lowerCamelCase_=1_0_2_4 ,lowerCamelCase_=7_6_8 ,lowerCamelCase_=1_2 ,lowerCamelCase_=1_2 ,lowerCamelCase_=None ,lowerCamelCase_="gelu_pytorch_tanh" ,lowerCamelCase_=0.1 ,lowerCamelCase_=0.1 ,lowerCamelCase_=0.1 ,lowerCamelCase_=1E-5 ,lowerCamelCase_=0.02 ,lowerCamelCase_=True ,lowerCamelCase_=True ,lowerCamelCase_=5_0_2_5_6 ,lowerCamelCase_=5_0_2_5_6 ,lowerCamelCase_=True ,lowerCamelCase_=True ,lowerCamelCase_=True ,**lowerCamelCase_ ,)    ->      Union[str, Any]:
          A				  =		vocab_size
          A				  =		n_positions
          A				  =		n_embd
          A				  =		n_layer
          A				  =		n_head
          A				  =		n_inner
          A				  =		activation_function
          A				  =		resid_pdrop
          A				  =		embd_pdrop
          A				  =		attn_pdrop
          A				  =		layer_norm_epsilon
          A				  =		initializer_range
          A				  =		scale_attn_weights
          A				  =		use_cache
          A				  =		attention_softmax_in_fpaa
          A				  =		scale_attention_softmax_in_fpaa
          A				  =		multi_query

          A				  =		bos_token_id
          A				  =		eos_token_id

          super().__init__(bos_token_id=lowerCamelCase_ ,eos_token_id=lowerCamelCase_ ,**lowerCamelCase_    )







"""simple docstring"""


from math import pow, sqrt



def   _A					(	*_a	:						float				):



      """simple docstring"""






      A				  =		len(_a				) > 0 and all(value > 0.0 for value in values				)
      return result



def   _A					(	_a	:						float     ,   _a	:						float				):



      """simple docstring"""






      return (
          round(sqrt(molar_mass_a / molar_mass_a				)     ,   6				)
          if validate(_a     ,   _a				)
          else ValueError("""Input Error: Molar mass values must greater than 0."""				)
      )



def   _A					(	_a	:						float     ,   _a	:						float     ,   _a	:						float				):



      """simple docstring"""






      return (
          round(effusion_rate * sqrt(molar_mass_a / molar_mass_a				)     ,   6				)
          if validate(_a     ,   _a     ,   _a				)
          else ValueError(
              """Input Error: Molar mass and effusion rate values must greater than 0."""				)
      )



def   _A					(	_a	:						float     ,   _a	:						float     ,   _a	:						float				):



      """simple docstring"""






      return (
          round(effusion_rate / sqrt(molar_mass_a / molar_mass_a				)     ,   6				)
          if validate(_a     ,   _a     ,   _a				)
          else ValueError(
              """Input Error: Molar mass and effusion rate values must greater than 0."""				)
      )



def   _A					(	_a	:						float     ,   _a	:						float     ,   _a	:						float				):



      """simple docstring"""






      return (
          round(molar_mass / pow(effusion_rate_a / effusion_rate_a     ,   2				)     ,   6				)
          if validate(_a     ,   _a     ,   _a				)
          else ValueError(
              """Input Error: Molar mass and effusion rate values must greater than 0."""				)
      )





def   _A					(	_a	:						float     ,   _a	:						float     ,   _a	:						float				):



      """simple docstring"""






      return (
          round(pow(effusion_rate_a / effusion_rate_a     ,   2				) / molar_mass     ,   6				)
          if validate(_a     ,   _a     ,   _a				)
          else ValueError(
              """Input Error: Molar mass and effusion rate values must greater than 0."""				)
      )




