




from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_tf_available,
    is_tokenizers_available,
    is_torch_available,
)


_lowerCamelCase      :  Dict      						=						{
    "configuration_funnel": ["FUNNEL_PRETRAINED_CONFIG_ARCHIVE_MAP", "FunnelConfig"],
    "convert_funnel_original_tf_checkpoint_to_pytorch": [],
    "tokenization_funnel": ["FunnelTokenizer"],
}

try:
	if not is_tokenizers_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	_lowerCamelCase      :  str      						=						["FunnelTokenizerFast"]

try:
	if not is_torch_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	_lowerCamelCase      :  List[str]      						=						[
	    "FUNNEL_PRETRAINED_MODEL_ARCHIVE_LIST",
	    "FunnelBaseModel",
	    "FunnelForMaskedLM",
	    "FunnelForMultipleChoice",
	    "FunnelForPreTraining",
	    "FunnelForQuestionAnswering",
	    "FunnelForSequenceClassification",
	    "FunnelForTokenClassification",
	    "FunnelModel",
	    "FunnelPreTrainedModel",
	    "load_tf_weights_in_funnel",
	]

try:
	if not is_tf_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	_lowerCamelCase      :  int      						=						[
	    "TF_FUNNEL_PRETRAINED_MODEL_ARCHIVE_LIST",
	    "TFFunnelBaseModel",
	    "TFFunnelForMaskedLM",
	    "TFFunnelForMultipleChoice",
	    "TFFunnelForPreTraining",
	    "TFFunnelForQuestionAnswering",
	    "TFFunnelForSequenceClassification",
	    "TFFunnelForTokenClassification",
	    "TFFunnelModel",
	    "TFFunnelPreTrainedModel",
	]


if TYPE_CHECKING:
	from .configuration_funnel import FUNNEL_PRETRAINED_CONFIG_ARCHIVE_MAP, FunnelConfig
	from .tokenization_funnel import FunnelTokenizer

	try:
		if not is_tokenizers_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .tokenization_funnel_fast import FunnelTokenizerFast

	try:
		if not is_torch_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .modeling_funnel import (
		    FUNNEL_PRETRAINED_MODEL_ARCHIVE_LIST,
		    FunnelBaseModel,
		    FunnelForMaskedLM,
		    FunnelForMultipleChoice,
		    FunnelForPreTraining,
		    FunnelForQuestionAnswering,
		    FunnelForSequenceClassification,
		    FunnelForTokenClassification,
		    FunnelModel,
		    FunnelPreTrainedModel,
		    load_tf_weights_in_funnel,
		)

	try:
		if not is_tf_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .modeling_tf_funnel import (
		    TF_FUNNEL_PRETRAINED_MODEL_ARCHIVE_LIST,
		    TFFunnelBaseModel,
		    TFFunnelForMaskedLM,
		    TFFunnelForMultipleChoice,
		    TFFunnelForPreTraining,
		    TFFunnelForQuestionAnswering,
		    TFFunnelForSequenceClassification,
		    TFFunnelForTokenClassification,
		    TFFunnelModel,
		    TFFunnelPreTrainedModel,
		)

else:
	import sys

	_lowerCamelCase      :  Optional[int]      						=						_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)







import logging

from transformers.configuration_utils import PretrainedConfig


_lowerCamelCase      :  Union[str, Any]      						=						logging.getLogger(__name__)
class        __snake_case  (_a		):
				lowerCAmelCase__				=     "masked_bert"



				def __init__(      self      :		Union[str, Any]		,	_UpperCAmelCase      :		Union[str, Any]=3_0522		,	_UpperCAmelCase      :		Optional[Any]=768		,	_UpperCAmelCase      :		List[Any]=12		,	_UpperCAmelCase      :		Dict=12		,	_UpperCAmelCase      :		List[str]=3072		,	_UpperCAmelCase      :		List[Any]="gelu"		,	_UpperCAmelCase      :		Optional[Any]=0.1		,	_UpperCAmelCase      :		Optional[Any]=0.1		,	_UpperCAmelCase      :		List[Any]=512		,	_UpperCAmelCase      :		int=2		,	_UpperCAmelCase      :		Optional[int]=0.02		,	_UpperCAmelCase      :		str=1E-12		,	_UpperCAmelCase      :		Tuple=0		,	_UpperCAmelCase      :		Dict="topK"		,	_UpperCAmelCase      :		List[str]="constant"		,	_UpperCAmelCase      :		Optional[Any]=0.0		,	**_UpperCAmelCase      :		str		,	)  ->    Tuple:





								'''simple docstring'''




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

								_lowerCAmelCase    :    str										=      vocab_size
								_lowerCAmelCase    :    List[str]										=      hidden_size
								_lowerCAmelCase    :    Any										=      num_hidden_layers
								_lowerCAmelCase    :    Optional[Any]										=      num_attention_heads
								_lowerCAmelCase    :    Optional[Any]										=      hidden_act
								_lowerCAmelCase    :    Union[str, Any]										=      intermediate_size
								_lowerCAmelCase    :    Tuple										=      hidden_dropout_prob
								_lowerCAmelCase    :    Optional[int]										=      attention_probs_dropout_prob
								_lowerCAmelCase    :    str										=      max_position_embeddings
								_lowerCAmelCase    :    int										=      type_vocab_size
								_lowerCAmelCase    :    List[str]										=      initializer_range
								_lowerCAmelCase    :    Optional[Any]										=      layer_norm_eps
								_lowerCAmelCase    :    Tuple										=      pruning_method
								_lowerCAmelCase    :    str										=      mask_init
								_lowerCAmelCase    :    List[str]										=      mask_scale

