
'''simple docstring'''

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


lowerCAmelCase_			:			Optional[int]			   =     logging.get_logger(__name__)

lowerCAmelCase_			:			Tuple			   =     {
    '''uw-madison/yoso-4096''': '''https://huggingface.co/uw-madison/yoso-4096/resolve/main/config.json''',
    # See all YOSO models at https://huggingface.co/models?filter=yoso
}







class 	__lowerCAmelCase    (  __a				):
     snake_case   :    int							      =      """yoso"""



     def __init__(self						,	lowerCAmelCase__=5_0_2_6_5						,	lowerCAmelCase__=7_6_8						,	lowerCAmelCase__=1_2						,	lowerCAmelCase__=1_2						,	lowerCAmelCase__=3_0_7_2						,	lowerCAmelCase__="gelu"						,	lowerCAmelCase__=0.1						,	lowerCAmelCase__=0.1						,	lowerCAmelCase__=4_0_9_6						,	lowerCAmelCase__=1						,	lowerCAmelCase__=0.0_2						,	lowerCAmelCase__=1e-12						,	lowerCAmelCase__="absolute"						,	lowerCAmelCase__=True						,	lowerCAmelCase__=9						,	lowerCAmelCase__=6_4						,	lowerCAmelCase__=None						,	lowerCAmelCase__=True						,	lowerCAmelCase__=True						,	lowerCAmelCase__=1						,	lowerCAmelCase__=0						,	lowerCAmelCase__=2						,	**lowerCAmelCase__						,	):
          super().__init__(pad_token_id=lowerCAmelCase__						,	bos_token_id=lowerCAmelCase__						,	eos_token_id=lowerCAmelCase__						,	**lowerCAmelCase__	)

          _UpperCAmelCase					:  List[Any]         =    vocab_size
          _UpperCAmelCase					:  str         =    max_position_embeddings
          _UpperCAmelCase					:  Dict         =    hidden_size
          _UpperCAmelCase					:  Dict         =    num_hidden_layers
          _UpperCAmelCase					:  Optional[Any]         =    num_attention_heads
          _UpperCAmelCase					:  List[Any]         =    intermediate_size
          _UpperCAmelCase					:  str         =    hidden_act
          _UpperCAmelCase					:  Optional[Any]         =    hidden_dropout_prob
          _UpperCAmelCase					:  Tuple         =    attention_probs_dropout_prob
          _UpperCAmelCase					:  str         =    initializer_range
          _UpperCAmelCase					:  Tuple         =    type_vocab_size
          _UpperCAmelCase					:  Optional[int]         =    layer_norm_eps
          _UpperCAmelCase					:  Any         =    position_embedding_type
          _UpperCAmelCase					:  Tuple         =    use_expectation
          _UpperCAmelCase					:  Union[str, Any]         =    hash_code_len
          _UpperCAmelCase					:  int         =    num_hash
          _UpperCAmelCase					:  Optional[Any]         =    conv_window
          _UpperCAmelCase					:  List[str]         =    use_fast_hash
          _UpperCAmelCase					:  Optional[int]         =    lsh_backward







def        __a     (    lowerCAmelCase_   :					list				)      -> bool:






						'''simple docstring'''



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



def        __a     (    lowerCAmelCase_   :					list				)      -> float:






						'''simple docstring'''



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


if __name__ == "__main__":
	import doctest

	doctest.testmod()




