
'''simple docstring'''

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


UpperCamelCase_     			=       logging.get_logger(__name__)

UpperCamelCase_     			=       {
    """bert-base-uncased""": """https://huggingface.co/bert-base-uncased/resolve/main/config.json""",
    # QDQBERT models can be loaded from any BERT checkpoint, available at https://huggingface.co/models?filter=bert
}


class   a_  (_a    ):
       __lowerCAmelCase    :				Optional[Any]    =      """qdqbert"""




       def __init__(     self   ,   snake_case_=3_0_5_2_2   ,   snake_case_=7_6_8   ,   snake_case_=1_2   ,   snake_case_=1_2   ,   snake_case_=3_0_7_2   ,   snake_case_="gelu"   ,   snake_case_=0.1   ,   snake_case_=0.1   ,   snake_case_=5_1_2   ,   snake_case_=2   ,   snake_case_=0.02   ,   snake_case_=1E-12   ,   snake_case_=True   ,   snake_case_=1   ,   snake_case_=0   ,   snake_case_=2   ,   **snake_case_   ,   ):
         super().__init__(pad_token_id=snake_case_   ,   bos_token_id=snake_case_   ,   eos_token_id=snake_case_   ,   **snake_case_  )

         _lowerCAmelCase       :  Optional[int]   				=					vocab_size
         _lowerCAmelCase       :  str   				=					max_position_embeddings
         _lowerCAmelCase       :  Dict   				=					hidden_size
         _lowerCAmelCase       :  str   				=					num_hidden_layers
         _lowerCAmelCase       :  Tuple   				=					num_attention_heads
         _lowerCAmelCase       :  Any   				=					intermediate_size
         _lowerCAmelCase       :  str   				=					hidden_act
         _lowerCAmelCase       :  Dict   				=					hidden_dropout_prob
         _lowerCAmelCase       :  int   				=					attention_probs_dropout_prob
         _lowerCAmelCase       :  Any   				=					initializer_range
         _lowerCAmelCase       :  Dict   				=					type_vocab_size
         _lowerCAmelCase       :  int   				=					layer_norm_eps
         _lowerCAmelCase       :  Dict   				=					use_cache




'''simple docstring'''

def 	_UpperCAmelCase				(  _lowerCamelCase						:       int  ,      _lowerCamelCase						:       int  ,      _lowerCamelCase						:       int		)    ->						float:
  if common_ratio == 1:
    # Formula for sum if common ratio is 1
    return num_of_terms * first_term

  # Formula for finding sum of n terms of a GeometricProgression
  return (first_term / (1 - common_ratio)) * (1 - common_ratio**num_of_terms)


