



'''simple docstring'''





import math




def lowerCAmelCase						(__A):



     """simple docstring"""



     assert isinstance(__A						,			__A) and (
         number >= 0
     ), "'number' must been an int and positive"

     if 1 < number < 4:
          # 2 and 3 are primes
          return True
     elif number < 2 or not number % 2:
          # Negatives, 0, 1 and all even numbers are not primes
          return False

     _a											=						range(3						,			int(math.sqrt(__A) + 1)						,			2)
     return not any(not number % i for i in odd_numbers)




def lowerCAmelCase						(__A						,			__A=1						,			**__A):



     """simple docstring"""



     _a											=						factor * value
     _a											=						value

     while not is_prime(__A):
          value += 1 if not ("desc" in kwargs and kwargs["desc"] is True) else -1

     if value == first_value_val:
          return next_prime(value + 1						,			**__A)
     return value








'''simple docstring'''





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


lowercase_	 =						logging.get_logger(__name__)

# TODO: upload to AWS
lowercase_	 =						{
    "yjernite/retribert-base-uncased": (
        "https://huggingface.co/yjernite/retribert-base-uncased/resolve/main/config.json"
    ),
}






class __A    (						A		):



 '''simple docstring'''







 __lowerCamelCase					: Optional[Any]    = 'retribert'



 def __init__(self				,     A=30_522				,     A=768				,     A=8				,     A=12				,     A=3_072				,     A="gelu"				,     A=0.1				,     A=0.1				,     A=512				,     A=2				,     A=0.02				,     A=1E-12				,     A=True				,     A=128				,     A=0				,     **A				,     )					->  Any:


      """simple docstring"""



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

      _a											=						vocab_size
      _a											=						hidden_size
      _a											=						num_hidden_layers
      _a											=						num_attention_heads
      _a											=						hidden_act
      _a											=						intermediate_size
      _a											=						hidden_dropout_prob
      _a											=						attention_probs_dropout_prob
      _a											=						max_position_embeddings
      _a											=						type_vocab_size
      _a											=						initializer_range
      _a											=						layer_norm_eps
      _a											=						share_encoders
      _a											=						projection_dim



