






'''simple docstring'''







from __future__ import annotations

from typing import Any

class _lowercase      :




							def __init__(				self:							Tuple     ,				UpperCamelCase__:							Any     ,				UpperCamelCase__:							Any	):  # noqa: A002
														lowerCamelCase__   :      List[str]			    =			item
														lowerCamelCase__   :      List[str]			    =			next



class _lowercase      :




							def __init__(				self:							int	):
														lowerCamelCase__   :      Node | None			    =			None
														lowerCamelCase__   :      int			    =			0




							def 						lowerCamelCase_							(				self:							Optional[Any]     ,				UpperCamelCase__:							Any	):
														lowerCamelCase__   :      Union[str, Any]			    =			Node(UpperCamelCase__     ,				self.head	)
														self.size += 1




							def 						lowerCamelCase_							(				self:							List[str]	):
														# Switched 'self.is_empty()' to 'self.head is None'
														# because mypy was considering the possibility that 'self.head'
														# can be None in below else part and giving error
														if self.head is None:
																					return None
														else:
																					lowerCamelCase__   :      List[str]			    =			self.head.item
																					lowerCamelCase__   :      int			    =			self.head.next
																					self.size -= 1
																					return item




							def 						lowerCamelCase_							(				self:							Dict	):
														return self.head is None




							def __str__(				self:							Tuple	):
														if self.is_empty():
																					return ""
														else:
																					lowerCamelCase__   :      str			    =			self.head
																					lowerCamelCase__   :      str			    =			""""""
																					lowerCamelCase__   :      list[str]			    =			[]
																					while iterate:
																												item_list.append(str(iterate.item	)	)
																												lowerCamelCase__   :      Union[str, Any]			    =			iterate.next

																					lowerCamelCase__   :      Any			    =			""" --> """.join(UpperCamelCase__	)

																					return item_str




							def __len__(				self:							Union[str, Any]	):
														return self.size









'''simple docstring'''







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


_A      :     Union[str, Any]       	=logging.get_logger(__name__)

_A      :     Tuple       	={
    '''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 _lowercase      (							_lowercase						):
							a							 =			"""splinter"""




							def __init__(				self:							List[str]     ,				UpperCamelCase__:							List[Any]=30_522     ,				UpperCamelCase__:							Union[str, Any]=768     ,				UpperCamelCase__:							str=12     ,				UpperCamelCase__:							Dict=12     ,				UpperCamelCase__:							Tuple=3_072     ,				UpperCamelCase__:							Optional[int]="gelu"     ,				UpperCamelCase__:							Optional[int]=0.1     ,				UpperCamelCase__:							str=0.1     ,				UpperCamelCase__:							List[Any]=512     ,				UpperCamelCase__:							List[str]=2     ,				UpperCamelCase__:							Any=0.02     ,				UpperCamelCase__:							Optional[Any]=1e-12     ,				UpperCamelCase__:							Dict=True     ,				UpperCamelCase__:							str=0     ,				UpperCamelCase__:							int=104     ,				**UpperCamelCase__:							Any     ,				):
														super().__init__(pad_token_id=UpperCamelCase__     ,				**UpperCamelCase__	)

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

