




'''simple docstring'''




from ... import PretrainedConfig


UpperCAmelCase_												=   {
    'sijunhe/nezha-cn-base': 'https://huggingface.co/sijunhe/nezha-cn-base/resolve/main/config.json',
}

class     lowerCAmelCase_ (			__A ):







  '''simple docstring'''







  lowerCAmelCase_					:       int					  =    NEZHA_PRETRAINED_CONFIG_ARCHIVE_MAP
  lowerCAmelCase_					:       Optional[int]					  =    'nezha'


  def __init__(    self     :						Any    ,		_UpperCAmelCase     :						Any=2_11_28    ,		_UpperCAmelCase     :						int=7_68    ,		_UpperCAmelCase     :						str=12    ,		_UpperCAmelCase     :						Any=12    ,		_UpperCAmelCase     :						Tuple=30_72    ,		_UpperCAmelCase     :						Optional[Any]="gelu"    ,		_UpperCAmelCase     :						str=0.1    ,		_UpperCAmelCase     :						Union[str, Any]=0.1    ,		_UpperCAmelCase     :						Optional[int]=5_12    ,		_UpperCAmelCase     :						Dict=64    ,		_UpperCAmelCase     :						List[str]=2    ,		_UpperCAmelCase     :						List[str]=0.02    ,		_UpperCAmelCase     :						Dict=1E-12    ,		_UpperCAmelCase     :						str=0.1    ,		_UpperCAmelCase     :						List[Any]=0    ,		_UpperCAmelCase     :						Optional[int]=2    ,		_UpperCAmelCase     :						Optional[Any]=3    ,		_UpperCAmelCase     :						List[Any]=True    ,		**_UpperCAmelCase     :						Optional[Any]    ,		):






   """simple docstring"""






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

   UpperCAmelCase__      				=     vocab_size
   UpperCAmelCase__      				=     hidden_size
   UpperCAmelCase__      				=     num_hidden_layers
   UpperCAmelCase__      				=     num_attention_heads
   UpperCAmelCase__      				=     hidden_act
   UpperCAmelCase__      				=     intermediate_size
   UpperCAmelCase__      				=     hidden_dropout_prob
   UpperCAmelCase__      				=     attention_probs_dropout_prob
   UpperCAmelCase__      				=     max_position_embeddings
   UpperCAmelCase__      				=     max_relative_position
   UpperCAmelCase__      				=     type_vocab_size
   UpperCAmelCase__      				=     initializer_range
   UpperCAmelCase__      				=     layer_norm_eps
   UpperCAmelCase__      				=     classifier_dropout
   UpperCAmelCase__      				=     use_cache

"""simple docstring"""



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


_UpperCamelCase								=		logging.get_logger(__name__)

_UpperCamelCase								=		{
    "vinvino02/glpn-kitti": "https://huggingface.co/vinvino02/glpn-kitti/resolve/main/config.json",
    # See all GLPN models at https://huggingface.co/models?filter=glpn
}
class 						__UpperCAmelCase    (__A     ):







			'''simple docstring'''
			_UpperCamelCase  :						Dict					     =				'glpn'





			def __init__(			self   ,      snake_case_=3   ,      snake_case_=4   ,      snake_case_=[2, 2, 2, 2]   ,      snake_case_=[8, 4, 2, 1]   ,      snake_case_=[32, 64, 160, 256]   ,      snake_case_=[7, 3, 3, 3]   ,      snake_case_=[4, 2, 2, 2]   ,      snake_case_=[1, 2, 5, 8]   ,      snake_case_=[4, 4, 4, 4]   ,      snake_case_="gelu"   ,      snake_case_=0.0   ,      snake_case_=0.0   ,      snake_case_=0.02   ,      snake_case_=0.1   ,      snake_case_=1E-6   ,      snake_case_=64   ,      snake_case_=10   ,      snake_case_=-1   ,      **snake_case_   ,      ):







										'''simple docstring'''


										super().__init__(**snake_case_							)

										A__       :     str								=			num_channels
										A__       :     List[Any]								=			num_encoder_blocks
										A__       :     List[str]								=			depths
										A__       :     int								=			sr_ratios
										A__       :     Optional[Any]								=			hidden_sizes
										A__       :     int								=			patch_sizes
										A__       :     str								=			strides
										A__       :     int								=			mlp_ratios
										A__       :     Optional[int]								=			num_attention_heads
										A__       :     Optional[Any]								=			hidden_act
										A__       :     Optional[Any]								=			hidden_dropout_prob
										A__       :     Optional[Any]								=			attention_probs_dropout_prob
										A__       :     List[str]								=			initializer_range
										A__       :     Dict								=			drop_path_rate
										A__       :     Any								=			layer_norm_eps
										A__       :     Any								=			decoder_hidden_size
										A__       :     Optional[Any]								=			max_depth
										A__       :     List[Any]								=			head_in_index





