





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


lowerCAmelCase_        =			logging.get_logger(__name__)

lowerCAmelCase_        =			{
    """tau/splinter-base""": """https://huggingface.co/tau/splinter-base/resolve/main/config.json""",
    """tau/splinter-base-qass""": """https://huggingface.co/tau/splinter-base-qass/resolve/main/config.json""",
    """tau/splinter-large""": """https://huggingface.co/tau/splinter-large/resolve/main/config.json""",
    """tau/splinter-large-qass""": """https://huggingface.co/tau/splinter-large-qass/resolve/main/config.json""",
    # See all Splinter models at https://huggingface.co/models?filter=splinter
}



class 				_lowerCAmelCase			(	UpperCAmelCase_							):


  '''simple docstring'''
  a_							:				Union[str, Any]					    ="""splinter"""







  def __init__(					self					:    str					, UpperCamelCase					:    str=3_05_22					, UpperCamelCase					:    int=7_68					, UpperCamelCase					:    Union[str, Any]=12					, UpperCamelCase					:    List[Any]=12					, UpperCamelCase					:    Tuple=30_72					, UpperCamelCase					:    Optional[int]="gelu"					, UpperCamelCase					:    Tuple=0.1					, UpperCamelCase					:    Tuple=0.1					, UpperCamelCase					:    int=5_12					, UpperCamelCase					:    Union[str, Any]=2					, UpperCamelCase					:    Union[str, Any]=0.02					, UpperCamelCase					:    Optional[Any]=1e-1_2					, UpperCamelCase					:    int=True					, UpperCamelCase					:    str=0					, UpperCamelCase					:    List[Any]=1_04					, **UpperCamelCase					:    Optional[Any]					, ):


    '''simple docstring'''





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

    _snake_case      : List[str]														=		vocab_size
    _snake_case      : int														=		max_position_embeddings
    _snake_case      : Optional[Any]														=		hidden_size
    _snake_case      : List[Any]														=		num_hidden_layers
    _snake_case      : int														=		num_attention_heads
    _snake_case      : Optional[Any]														=		intermediate_size
    _snake_case      : Any														=		hidden_act
    _snake_case      : Optional[Any]														=		hidden_dropout_prob
    _snake_case      : Dict														=		attention_probs_dropout_prob
    _snake_case      : Union[str, Any]														=		initializer_range
    _snake_case      : Optional[Any]														=		type_vocab_size
    _snake_case      : Any														=		layer_norm_eps
    _snake_case      : str														=		use_cache
    _snake_case      : Optional[Any]														=		question_token_id












import re


def      lowerCamelCase__	(   lowercase ):

  """simple docstring"""






  def docstring_decorator(lowercase ):
    SCREAMING_SNAKE_CASE				:					List[Any]		  =			fn.__doc__
    SCREAMING_SNAKE_CASE				:					Tuple		  =			func_doc.split("\n" )
    SCREAMING_SNAKE_CASE				:					Tuple		  =			0
    while i < len(lowercase ) and re.search(R"^\s*Examples?:\s*$"  ,   lines[i] ) is None:
      i += 1
    if i < len(lowercase ):
      SCREAMING_SNAKE_CASE				:					int		  =			example_docstring
      SCREAMING_SNAKE_CASE				:					Tuple		  =			"\n".join(lowercase )
    else:
      raise ValueError(
          F'''The function {fn} should have an empty \'Examples:\' in its docstring as placeholder, '''
          F'''current docstring is:\n{func_doc}''' )
    SCREAMING_SNAKE_CASE				:					int		  =			func_doc
    return fn

  return docstring_decorator






