"""simple docstring"""






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


_A   					=    logging.get_logger(__name__)

_A   					=    {
    '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		(_SCREAMING_SNAKE_CASE      ):






					'''simple docstring'''


					a   	=		"canine"



					def __init__(						self			:				Optional[Any]   , _snake_case			:				Optional[int]=768   , _snake_case			:				Any=12   , _snake_case			:				int=12   , _snake_case			:				List[Any]=3072   , _snake_case			:				str="gelu"   , _snake_case			:				Optional[int]=0.1   , _snake_case			:				List[Any]=0.1   , _snake_case			:				Optional[int]=16384   , _snake_case			:				int=16   , _snake_case			:				Dict=0.02   , _snake_case			:				str=1e-12   , _snake_case			:				Dict=0   , _snake_case			:				Tuple=0xE0_00   , _snake_case			:				List[str]=0xE0_01   , _snake_case			:				Optional[int]=4   , _snake_case			:				List[str]=4   , _snake_case			:				Any=8   , _snake_case			:				List[Any]=16384   , _snake_case			:				Optional[Any]=128   , **_snake_case			:				Union[str, Any]   , )							->       List[Any]:
									super().__init__(pad_token_id=_snake_case   , bos_token_id=_snake_case   , eos_token_id=_snake_case   , **_snake_case		)

									SCREAMING_SNAKE_CASE__		  =				max_position_embeddings
									SCREAMING_SNAKE_CASE__		  =				hidden_size
									SCREAMING_SNAKE_CASE__		  =				num_hidden_layers
									SCREAMING_SNAKE_CASE__		  =				num_attention_heads
									SCREAMING_SNAKE_CASE__		  =				intermediate_size
									SCREAMING_SNAKE_CASE__		  =				hidden_act
									SCREAMING_SNAKE_CASE__		  =				hidden_dropout_prob
									SCREAMING_SNAKE_CASE__		  =				attention_probs_dropout_prob
									SCREAMING_SNAKE_CASE__		  =				initializer_range
									SCREAMING_SNAKE_CASE__		  =				type_vocab_size
									SCREAMING_SNAKE_CASE__		  =				layer_norm_eps

									# Character config:
									SCREAMING_SNAKE_CASE__		  =				downsampling_rate
									SCREAMING_SNAKE_CASE__		  =				upsampling_kernel_size
									SCREAMING_SNAKE_CASE__		  =				num_hash_functions
									SCREAMING_SNAKE_CASE__		  =				num_hash_buckets
									SCREAMING_SNAKE_CASE__		  =				local_transformer_stride





"""simple docstring"""






from typing import TYPE_CHECKING

from ....utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


_A   					=    {'configuration_van': ['VAN_PRETRAINED_CONFIG_ARCHIVE_MAP', 'VanConfig']}


try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						_A   					=    [
						    'VAN_PRETRAINED_MODEL_ARCHIVE_LIST',
						    'VanForImageClassification',
						    'VanModel',
						    'VanPreTrainedModel',
						]

if TYPE_CHECKING:
						from .configuration_van import VAN_PRETRAINED_CONFIG_ARCHIVE_MAP, VanConfig

						try:
												if not is_torch_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_van import (
												    VAN_PRETRAINED_MODEL_ARCHIVE_LIST,
												    VanForImageClassification,
												    VanModel,
												    VanPreTrainedModel,
												)

else:
						import sys

						_A   					=    _LazyModule(__name__, globals()['__file__'], _import_structure)




