


'''simple docstring'''




from hashlib import mda, shaaaa

_lowerCAmelCase	:		List[str]		  =						(shaaaa, mda)



class 			lowerCAmelCase					:



	def __init__(       self			,       snake_case__ = 8     ):
		lowerCAmelCase       :     str   				=			0B0
		lowerCAmelCase       :     Tuple   				=			size



	def 					lowercase  (       self			,       snake_case__     ):
		lowerCAmelCase       :     int   				=			self.hash_(__UpperCAmelCase     )
		self.bitarray |= h



	def 					lowercase  (       self			,       snake_case__     ):
		lowerCAmelCase       :     Dict   				=			self.hash_(__UpperCAmelCase     )
		return (h & self.bitarray) == h



	def __contains__(       self			,       snake_case__     ):
		return self.exists(__UpperCAmelCase     )



	def 					lowercase  (       self			,       snake_case__     ):
		lowerCAmelCase       :     str   				=			bin(__UpperCAmelCase     )[2:]
		return res.zfill(self.size     )



	@property
	def 					lowercase  (       self     ):
		return self.format_bin(self.bitarray     )



	def 					lowercase  (       self			,       snake_case__     ):
		lowerCAmelCase       :     Union[str, Any]   				=			0B0
		for func in HASH_FUNCTIONS:
			lowerCAmelCase       :     Any   				=			(
			    int.from_bytes(func(value.encode()     ).digest()			,       'little'     ) % self.size
			)
			res |= 2**position
		return res



	def 					lowercase  (       self			,       snake_case__     ):
		return self.format_bin(self.hash_(__UpperCAmelCase     )     )



	@property
	def 					lowercase  (       self     ):
		lowerCAmelCase       :     str   				=			bin(self.bitarray     ).count('1'     )
		return (n_ones / self.size) ** len(__UpperCAmelCase     )




"""simple docstring"""







from collections import OrderedDict
from typing import Mapping

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


__lowercase          = logging.get_logger(__name__)

__lowercase          = {
    """squeezebert/squeezebert-uncased""": (
        """https://huggingface.co/squeezebert/squeezebert-uncased/resolve/main/config.json"""
    ),
    """squeezebert/squeezebert-mnli""": """https://huggingface.co/squeezebert/squeezebert-mnli/resolve/main/config.json""",
    """squeezebert/squeezebert-mnli-headless""": (
        """https://huggingface.co/squeezebert/squeezebert-mnli-headless/resolve/main/config.json"""
    ),
}






class 		_A    (    _a    ):







    """simple docstring"""




    UpperCAmelCase			:				Tuple      =			SQUEEZEBERT_PRETRAINED_CONFIG_ARCHIVE_MAP
    UpperCAmelCase			:				Any      =			"""squeezebert"""






    def __init__(   self							:       List[str]							,					__UpperCAmelCase							:       Tuple=30522							,					__UpperCAmelCase							:       Tuple=768							,					__UpperCAmelCase							:       int=12							,					__UpperCAmelCase							:       str=12							,					__UpperCAmelCase							:       List[Any]=3072							,					__UpperCAmelCase							:       Dict="gelu"							,					__UpperCAmelCase							:       List[Any]=0.1							,					__UpperCAmelCase							:       Optional[int]=0.1							,					__UpperCAmelCase							:       Optional[Any]=512							,					__UpperCAmelCase							:       int=2							,					__UpperCAmelCase							:       Dict=0.02							,					__UpperCAmelCase							:       Optional[int]=1e-12							,					__UpperCAmelCase							:       Optional[Any]=0							,					__UpperCAmelCase							:       Optional[Any]=768							,					__UpperCAmelCase							:       Tuple=4							,					__UpperCAmelCase							:       Dict=4							,					__UpperCAmelCase							:       str=4							,					__UpperCAmelCase							:       List[Any]=1							,					__UpperCAmelCase							:       Optional[int]=4							,					__UpperCAmelCase							:       Optional[int]=4							,					**__UpperCAmelCase							:       Tuple							,					):
      super().__init__(pad_token_id=__UpperCAmelCase							,					**__UpperCAmelCase)

      a		:						List[Any] 				=     vocab_size
      a		:						List[Any] 				=     hidden_size
      a		:						Dict 				=     num_hidden_layers
      a		:						int 				=     num_attention_heads
      a		:						Dict 				=     hidden_act
      a		:						Tuple 				=     intermediate_size
      a		:						int 				=     hidden_dropout_prob
      a		:						List[Any] 				=     attention_probs_dropout_prob
      a		:						Union[str, Any] 				=     max_position_embeddings
      a		:						Union[str, Any] 				=     type_vocab_size
      a		:						Optional[Any] 				=     initializer_range
      a		:						Any 				=     layer_norm_eps
      a		:						Any 				=     embedding_size
      a		:						Tuple 				=     q_groups
      a		:						List[str] 				=     k_groups
      a		:						str 				=     v_groups
      a		:						Optional[Any] 				=     post_attention_groups
      a		:						List[str] 				=     intermediate_groups
      a		:						Optional[int] 				=     output_groups






class 		_A    (    _a    ):







    """simple docstring"""




    @property
    def       __snake_case				(   self							:       Optional[Any]):
      if self.task == "multiple-choice":
        a		:						Optional[int] 				=     {0: "batch", 1: "choice", 2: "sequence"}
      else:
        a		:						Tuple 				=     {0: "batch", 1: "sequence"}
      return OrderedDict(
          [
              ("input_ids", dynamic_axis),
              ("attention_mask", dynamic_axis),
              ("token_type_ids", dynamic_axis),
          ])






