



from collections import OrderedDict
from typing import Mapping

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


UpperCAmelCase :				int							=logging.get_logger(__name__)

UpperCAmelCase :				Union[str, Any]							={
    """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    _lowercase (a_   ):
				'''simple docstring'''







				lowercase__     =    SQUEEZEBERT_PRETRAINED_CONFIG_ARCHIVE_MAP
				lowercase__     =    """squeezebert"""

				def __init__(			self  ,			snake_case__=3_0522  ,			snake_case__=768  ,			snake_case__=12  ,			snake_case__=12  ,			snake_case__=3072  ,			snake_case__="gelu"  ,			snake_case__=0.1  ,			snake_case__=0.1  ,			snake_case__=512  ,			snake_case__=2  ,			snake_case__=0.02  ,			snake_case__=1e-12  ,			snake_case__=0  ,			snake_case__=768  ,			snake_case__=4  ,			snake_case__=4  ,			snake_case__=4  ,			snake_case__=1  ,			snake_case__=4  ,			snake_case__=4  ,			**snake_case__  ,			):

									'''simple docstring'''


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

									UpperCamelCase_			= vocab_size
									UpperCamelCase_			= hidden_size
									UpperCamelCase_			= num_hidden_layers
									UpperCamelCase_			= num_attention_heads
									UpperCamelCase_			= hidden_act
									UpperCamelCase_			= intermediate_size
									UpperCamelCase_			= hidden_dropout_prob
									UpperCamelCase_			= attention_probs_dropout_prob
									UpperCamelCase_			= max_position_embeddings
									UpperCamelCase_			= type_vocab_size
									UpperCamelCase_			= initializer_range
									UpperCamelCase_			= layer_norm_eps
									UpperCamelCase_			= embedding_size
									UpperCamelCase_			= q_groups
									UpperCamelCase_			= k_groups
									UpperCamelCase_			= v_groups
									UpperCamelCase_			= post_attention_groups
									UpperCamelCase_			= intermediate_groups
									UpperCamelCase_			= output_groups




class    _lowercase (a_   ):
				'''simple docstring'''







				@property
				def    _lowerCamelCase       (			self     ):

									'''simple docstring'''


									if self.task == "multiple-choice":
														UpperCamelCase_			= {0: "batch", 1: "choice", 2: "sequence"}
									else:
														UpperCamelCase_			= {0: "batch", 1: "sequence"}
									return OrderedDict(
									    [
									        ("input_ids", dynamic_axis),
									        ("attention_mask", dynamic_axis),
									        ("token_type_ids", dynamic_axis),
									    ]     )

"""simple docstring"""
def 		__a  (      _SCREAMING_SNAKE_CASE = 100						,	_SCREAMING_SNAKE_CASE = 100  )      ->int:
  return max(
      sum(int(_SCREAMING_SNAKE_CASE  ) for x in str(base**power  )  )
      for base in range(_SCREAMING_SNAKE_CASE  )
      for power in range(_SCREAMING_SNAKE_CASE  )  )


# Tests
if __name__ == "__main__":
 import doctest

 doctest.testmod()


