



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


a_								=    logging.get_logger(__name__)

a_								=    {
    'facebook/vit-mae-base': 'https://huggingface.co/facebook/vit-mae-base/resolve/main/config.json',
    # See all ViT MAE models at https://huggingface.co/models?filter=vit-mae
}



class        __lowerCAmelCase   (		lowercase_      ):
 lowerCAmelCase__				    =     """vit_mae"""




 def __init__(  self		, __UpperCAmelCase=768		, __UpperCAmelCase=12		, __UpperCAmelCase=12		, __UpperCAmelCase=3072		, __UpperCAmelCase="gelu"		, __UpperCAmelCase=0.0		, __UpperCAmelCase=0.0		, __UpperCAmelCase=0.02		, __UpperCAmelCase=1E-1_2		, __UpperCAmelCase=224		, __UpperCAmelCase=16		, __UpperCAmelCase=3		, __UpperCAmelCase=True		, __UpperCAmelCase=16		, __UpperCAmelCase=512		, __UpperCAmelCase=8		, __UpperCAmelCase=2048		, __UpperCAmelCase=0.75		, __UpperCAmelCase=False		, **__UpperCAmelCase		, ):



    '''simple docstring'''
    super().__init__(**__UpperCAmelCase )

    __lowerCamelCase  							=			hidden_size
    __lowerCamelCase  							=			num_hidden_layers
    __lowerCamelCase  							=			num_attention_heads
    __lowerCamelCase  							=			intermediate_size
    __lowerCamelCase  							=			hidden_act
    __lowerCamelCase  							=			hidden_dropout_prob
    __lowerCamelCase  							=			attention_probs_dropout_prob
    __lowerCamelCase  							=			initializer_range
    __lowerCamelCase  							=			layer_norm_eps
    __lowerCamelCase  							=			image_size
    __lowerCamelCase  							=			patch_size
    __lowerCamelCase  							=			num_channels
    __lowerCamelCase  							=			qkv_bias
    __lowerCamelCase  							=			decoder_num_attention_heads
    __lowerCamelCase  							=			decoder_hidden_size
    __lowerCamelCase  							=			decoder_num_hidden_layers
    __lowerCamelCase  							=			decoder_intermediate_size
    __lowerCamelCase  							=			mask_ratio
    __lowerCamelCase  							=			norm_pix_loss










'''simple docstring'''

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


lowerCamelCase							:   int  						=	logging.get_logger(__name__)

lowerCamelCase							:   List[Any]  						=	{
    'google/realm-cc-news-pretrained-embedder': (
        'https://huggingface.co/google/realm-cc-news-pretrained-embedder/resolve/main/config.json'
    ),
    'google/realm-cc-news-pretrained-encoder': (
        'https://huggingface.co/google/realm-cc-news-pretrained-encoder/resolve/main/config.json'
    ),
    'google/realm-cc-news-pretrained-scorer': (
        'https://huggingface.co/google/realm-cc-news-pretrained-scorer/resolve/main/config.json'
    ),
    'google/realm-cc-news-pretrained-openqa': (
        'https://huggingface.co/google/realm-cc-news-pretrained-openqa/aresolve/main/config.json'
    ),
    'google/realm-orqa-nq-openqa': 'https://huggingface.co/google/realm-orqa-nq-openqa/resolve/main/config.json',
    'google/realm-orqa-nq-reader': 'https://huggingface.co/google/realm-orqa-nq-reader/resolve/main/config.json',
    'google/realm-orqa-wq-openqa': 'https://huggingface.co/google/realm-orqa-wq-openqa/resolve/main/config.json',
    'google/realm-orqa-wq-reader': 'https://huggingface.co/google/realm-orqa-wq-reader/resolve/main/config.json',
    # See all REALM models at https://huggingface.co/models?filter=realm
}
class   __lowerCAmelCase						(lowercase_     ):





      '''simple docstring'''






      lowerCAmelCase__					:     Optional[int]  					=							"""realm"""



      def __init__(self    :    str   ,						UpperCamelCase    :    List[Any]=30522   ,						UpperCamelCase    :    List[Any]=768   ,						UpperCamelCase    :    int=128   ,						UpperCamelCase    :    Any=12   ,						UpperCamelCase    :    Tuple=12   ,						UpperCamelCase    :    List[Any]=8   ,						UpperCamelCase    :    Union[str, Any]=3072   ,						UpperCamelCase    :    List[str]="gelu_new"   ,						UpperCamelCase    :    Any=0.1   ,						UpperCamelCase    :    List[str]=0.1   ,						UpperCamelCase    :    Dict=512   ,						UpperCamelCase    :    Dict=2   ,						UpperCamelCase    :    List[Any]=0.02   ,						UpperCamelCase    :    List[Any]=1E-12   ,						UpperCamelCase    :    Dict=256   ,						UpperCamelCase    :    Union[str, Any]=10   ,						UpperCamelCase    :    Optional[int]=1E-3   ,						UpperCamelCase    :    Tuple=5   ,						UpperCamelCase    :    Optional[int]=320   ,						UpperCamelCase    :    List[str]=13353718   ,						UpperCamelCase    :    Optional[Any]=5000   ,						UpperCamelCase    :    str=1   ,						UpperCamelCase    :    Union[str, Any]=0   ,						UpperCamelCase    :    List[Any]=2   ,						**UpperCamelCase    :    int   ,						):

             '''simple docstring'''







             super().__init__(pad_token_id=UpperCamelCase   ,						bos_token_id=UpperCamelCase   ,						eos_token_id=UpperCamelCase   ,						**UpperCamelCase )

             # Common config
             lowercase__      			= vocab_size
             lowercase__      			= max_position_embeddings
             lowercase__      			= hidden_size
             lowercase__      			= retriever_proj_size
             lowercase__      			= num_hidden_layers
             lowercase__      			= num_attention_heads
             lowercase__      			= num_candidates
             lowercase__      			= intermediate_size
             lowercase__      			= hidden_act
             lowercase__      			= hidden_dropout_prob
             lowercase__      			= attention_probs_dropout_prob
             lowercase__      			= initializer_range
             lowercase__      			= type_vocab_size
             lowercase__      			= layer_norm_eps

             # Reader config
             lowercase__      			= span_hidden_size
             lowercase__      			= max_span_width
             lowercase__      			= reader_layer_norm_eps
             lowercase__      			= reader_beam_size
             lowercase__      			= reader_seq_len

             # Retrieval config
             lowercase__      			= num_block_records
             lowercase__      			= searcher_beam_size




