




'''simple docstring'''







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


A					       =logging.get_logger(__name__)

A					       ={
    'tau/splinter-base': 'https://huggingface.co/tau/splinter-base/resolve/main/config.json',
    'tau/splinter-base-qass': 'https://huggingface.co/tau/splinter-base-qass/resolve/main/config.json',
    'tau/splinter-large': 'https://huggingface.co/tau/splinter-large/resolve/main/config.json',
    'tau/splinter-large-qass': 'https://huggingface.co/tau/splinter-large-qass/resolve/main/config.json',
    # See all Splinter models at https://huggingface.co/models?filter=splinter
}


class      _a    (      __a					):
       __a							:	List[str]  							=   """splinter"""
       def __init__(      self		:      Optional[Any]  ,							lowercase		:      Dict=30_522  ,							lowercase		:      str=768  ,							lowercase		:      List[str]=12  ,							lowercase		:      List[Any]=12  ,							lowercase		:      str=3_072  ,							lowercase		:      Optional[Any]="gelu"  ,							lowercase		:      Tuple=0.1  ,							lowercase		:      Dict=0.1  ,							lowercase		:      Optional[Any]=512  ,							lowercase		:      int=2  ,							lowercase		:      Tuple=0.02  ,							lowercase		:      Any=1E-12  ,							lowercase		:      Tuple=True  ,							lowercase		:      Union[str, Any]=0  ,							lowercase		:      Optional[Any]=104  ,							**lowercase		:      Any  ,							):



           '''simple docstring'''

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

           UpperCAmelCase     			=						vocab_size
           UpperCAmelCase     			=						max_position_embeddings
           UpperCAmelCase     			=						hidden_size
           UpperCAmelCase     			=						num_hidden_layers
           UpperCAmelCase     			=						num_attention_heads
           UpperCAmelCase     			=						intermediate_size
           UpperCAmelCase     			=						hidden_act
           UpperCAmelCase     			=						hidden_dropout_prob
           UpperCAmelCase     			=						attention_probs_dropout_prob
           UpperCAmelCase     			=						initializer_range
           UpperCAmelCase     			=						type_vocab_size
           UpperCAmelCase     			=						layer_norm_eps
           UpperCAmelCase     			=						use_cache
           UpperCAmelCase     			=						question_token_id










'''simple docstring'''







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


A					       =logging.get_logger(__name__)

A					       ={
    'facebook/regnet-y-040': 'https://huggingface.co/facebook/regnet-y-040/blob/main/config.json',
}


class      _a    (      __a					):
       __a							:	Optional[int]  							=   """regnet"""
       __a							:	Optional[Any]  							=   ["""x""", """y"""]
       def __init__(      self		:      int  ,							lowercase		:      List[Any]=3  ,							lowercase		:      Union[str, Any]=32  ,							lowercase		:      Tuple=[128, 192, 512, 1_088]  ,							lowercase		:      List[Any]=[2, 6, 12, 2]  ,							lowercase		:      Optional[Any]=64  ,							lowercase		:      Optional[int]="y"  ,							lowercase		:      int="relu"  ,							**lowercase		:      int  ,							):



           '''simple docstring'''

           super().__init__(**lowercase							)
           if layer_type not in self.layer_types:
               raise ValueError(f"layer_type={layer_type} is not one of {','.join(self.layer_types							)}"							)
           UpperCAmelCase     			=						num_channels
           UpperCAmelCase     			=						embedding_size
           UpperCAmelCase     			=						hidden_sizes
           UpperCAmelCase     			=						depths
           UpperCAmelCase     			=						groups_width
           UpperCAmelCase     			=						layer_type
           UpperCAmelCase     			=						hidden_act
           # always downsample in the first stage
           UpperCAmelCase     			=						True




