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


__lowerCAmelCase					:			List[str]			      =		logging.get_logger(__name__)

__lowerCAmelCase					:			str			      =		{
    "google/canine-s": "https://huggingface.co/google/canine-s/resolve/main/config.json",
    # See all CANINE models at https://huggingface.co/models?filter=canine
}


class 						__lowerCAmelCase	(	lowerCAmelCase_      ):



      """simple docstring"""







      A__	:			Optional[Any]        =    '''canine'''




      def __init__(      self		:       str				,       _snake_case		:       Dict=768				,       _snake_case		:       int=12				,       _snake_case		:       Optional[Any]=12				,       _snake_case		:       List[str]=3072				,       _snake_case		:       Any="gelu"				,       _snake_case		:       List[Any]=0.1				,       _snake_case		:       List[Any]=0.1				,       _snake_case		:       Any=1_6384				,       _snake_case		:       Union[str, Any]=16				,       _snake_case		:       str=0.02				,       _snake_case		:       Any=1E-1_2				,       _snake_case		:       Tuple=0				,       _snake_case		:       Dict=0XE_0_0_0				,       _snake_case		:       int=0XE_0_0_1				,       _snake_case		:       List[str]=4				,       _snake_case		:       Optional[Any]=4				,       _snake_case		:       Union[str, Any]=8				,       _snake_case		:       Optional[int]=1_6384				,       _snake_case		:       Tuple=128				,       **_snake_case		:       Optional[Any]				,       ):
          super().__init__(pad_token_id=_snake_case				,       bos_token_id=_snake_case				,       eos_token_id=_snake_case				,       **_snake_case				)

          __lowercase		:			int	    =       max_position_embeddings
          __lowercase		:			List[Any]	    =       hidden_size
          __lowercase		:			str	    =       num_hidden_layers
          __lowercase		:			List[Any]	    =       num_attention_heads
          __lowercase		:			Union[str, Any]	    =       intermediate_size
          __lowercase		:			Union[str, Any]	    =       hidden_act
          __lowercase		:			List[str]	    =       hidden_dropout_prob
          __lowercase		:			List[str]	    =       attention_probs_dropout_prob
          __lowercase		:			Optional[int]	    =       initializer_range
          __lowercase		:			List[Any]	    =       type_vocab_size
          __lowercase		:			List[str]	    =       layer_norm_eps

          # Character config:
          __lowercase		:			Union[str, Any]	    =       downsampling_rate
          __lowercase		:			Union[str, Any]	    =       upsampling_kernel_size
          __lowercase		:			Optional[int]	    =       num_hash_functions
          __lowercase		:			List[Any]	    =       num_hash_buckets
          __lowercase		:			int	    =       local_transformer_stride




from __future__ import annotations


def     UpperCAmelCase_  (						__lowerCAmelCase	) ->						int:
    if not nums:
        return 0
    __lowercase		:			List[Any]	    =       nums[0]
    __lowercase		:			Union[str, Any]	    =       0
    for num in nums[1:]:
        __lowercase    ,      __lowercase		:			Dict	    =       (
            max_excluding + num,
            max(__lowerCAmelCase	,					__lowerCAmelCase	),
        )
    return max(__lowerCAmelCase	,					__lowerCAmelCase	)


if __name__ == "__main__":
 import doctest

 doctest.testmod()


