





"""simple docstring"""


def 				a__      (	_UpperCAmelCase						)     ->	bool:

 '''simple docstring'''






 if not isinstance(_UpperCAmelCase						,  _UpperCAmelCase						):
  raise ValueError("Input series is not valid, valid series - [1, 2/3, 2]"						)
 if len(_UpperCAmelCase						) == 0:
  raise ValueError("Input list must be a non empty list"						)
 if len(_UpperCAmelCase						) == 1 and series[0] != 0:
  return True
 snake_case__     				=					[]
 snake_case__     				=					len(_UpperCAmelCase						)
 for i in range(0						,  _UpperCAmelCase						):
  if series[i] == 0:
   raise ValueError("Input series cannot have 0 as an element"						)
  rec_series.append(1 / series[i]						)
 snake_case__     				=					rec_series[1] - rec_series[0]
 for index in range(2						,  _UpperCAmelCase						):
  if rec_series[index] - rec_series[index - 1] != common_diff:
   return False
 return True





def 				a__      (	_UpperCAmelCase						)     ->	float:

 '''simple docstring'''






 if not isinstance(_UpperCAmelCase						,  _UpperCAmelCase						):
  raise ValueError("Input series is not valid, valid series - [2, 4, 6]"						)
 if len(_UpperCAmelCase						) == 0:
  raise ValueError("Input list must be a non empty list"						)
 snake_case__     				=					0
 for val in series:
  answer += 1 / val
 return len(_UpperCAmelCase						) / answer


if __name__ == "__main__":
   import doctest

   doctest.testmod()








"""simple docstring"""


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


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

a__       :  int       		=					{
    """microsoft/mpnet-base""": """https://huggingface.co/microsoft/mpnet-base/resolve/main/config.json""",
}



class   lowercase_					(  __lowerCAmelCase				):
       snake_case__					:				int									=  """mpnet"""

       def __init__(      self ,       __SCREAMING_SNAKE_CASE=3_0527 ,       __SCREAMING_SNAKE_CASE=768 ,       __SCREAMING_SNAKE_CASE=12 ,       __SCREAMING_SNAKE_CASE=12 ,       __SCREAMING_SNAKE_CASE=3072 ,       __SCREAMING_SNAKE_CASE="gelu" ,       __SCREAMING_SNAKE_CASE=0.1 ,       __SCREAMING_SNAKE_CASE=0.1 ,       __SCREAMING_SNAKE_CASE=512 ,       __SCREAMING_SNAKE_CASE=0.02 ,       __SCREAMING_SNAKE_CASE=1e-12 ,       __SCREAMING_SNAKE_CASE=32 ,       __SCREAMING_SNAKE_CASE=1 ,       __SCREAMING_SNAKE_CASE=0 ,       __SCREAMING_SNAKE_CASE=2 ,       **__SCREAMING_SNAKE_CASE ,       ):






        '''simple docstring'''

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

        snake_case__     				=					vocab_size
        snake_case__     				=					hidden_size
        snake_case__     				=					num_hidden_layers
        snake_case__     				=					num_attention_heads
        snake_case__     				=					hidden_act
        snake_case__     				=					intermediate_size
        snake_case__     				=					hidden_dropout_prob
        snake_case__     				=					attention_probs_dropout_prob
        snake_case__     				=					max_position_embeddings
        snake_case__     				=					initializer_range
        snake_case__     				=					layer_norm_eps
        snake_case__     				=					relative_attention_num_buckets

