
"""simple docstring"""




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


_A     :			List[Any]  						=			logging.get_logger(__name__)

_A     :			Any  						=			{
    'alibaba-damo/mgp-str-base': 'https://huggingface.co/alibaba-damo/mgp-str-base/resolve/main/config.json',
}

class 						a__		( a_		):
   __lowerCAmelCase				=							"""mgp-str"""
   def __init__(     self      ,       _a=[32, 128]      ,       _a=4      ,       _a=3      ,       _a=27      ,       _a=38      ,       _a=50_257      ,       _a=30_522      ,       _a=768      ,       _a=12      ,       _a=12      ,       _a=4.0      ,       _a=True      ,       _a=False      ,       _a=1E-5      ,       _a=0.0      ,       _a=0.0      ,       _a=0.0      ,       _a=False      ,       _a=0.0_2      ,       **_a      ,       ):
          super().__init__(**A_							)

          lowercase       :							str									=				image_size
          lowercase       :							Optional[Any]									=				patch_size
          lowercase       :							str									=				num_channels
          lowercase       :							Optional[int]									=				max_token_length
          lowercase       :							Optional[Any]									=				num_character_labels
          lowercase       :							str									=				num_bpe_labels
          lowercase       :							str									=				num_wordpiece_labels
          lowercase       :							str									=				hidden_size
          lowercase       :							List[str]									=				num_hidden_layers
          lowercase       :							Optional[Any]									=				num_attention_heads
          lowercase       :							Tuple									=				mlp_ratio
          lowercase       :							Optional[int]									=				distilled
          lowercase       :							Union[str, Any]									=				layer_norm_eps
          lowercase       :							Any									=				drop_rate
          lowercase       :							List[str]									=				qkv_bias
          lowercase       :							Any									=				attn_drop_rate
          lowercase       :							str									=				drop_path_rate
          lowercase       :							int									=				output_aa_attentions
          lowercase       :							Any									=				initializer_range






"""simple docstring"""




from __future__ import annotations





def       a_ (	lowercase__ :list[float]     ):
			if len(lowercase__     ) < 2:
						raise ValueError("""Monogons and Digons are not polygons in the Euclidean space"""     )
			if any(i <= 0 for i in nums     ):
						raise ValueError("""All values must be greater than 0"""     )
			__lowerCamelCase          =      nums.copy()
			copy_nums.sort()
			return copy_nums[-1] < sum(copy_nums[:-1]     )


if __name__ == "__main__":
					import doctest

					doctest.testmod()




