



'''simple docstring'''





from __future__ import annotations

from typing import Dict

from ...configuration_utils import PretrainedConfig


_lowerCAmelCase 		=      {
    '''susnato/ernie-m-base_pytorch''': '''https://huggingface.co/susnato/ernie-m-base_pytorch/blob/main/config.json''',
    '''susnato/ernie-m-large_pytorch''': '''https://huggingface.co/susnato/ernie-m-large_pytorch/blob/main/config.json''',
}






class 			lowerCAmelCase_(							SCREAMING_SNAKE_CASE_	):
  '''simple docstring'''




  __lowercase				: Any           = '''ernie_m'''
  __lowercase				: Tuple           = {'''dropout''': '''classifier_dropout''', '''num_classes''': '''num_labels'''}




  def __init__(       self    ,__UpperCAmelCase = 25_0002    ,__UpperCAmelCase = 768    ,__UpperCAmelCase = 12    ,__UpperCAmelCase = 12    ,__UpperCAmelCase = 3072    ,__UpperCAmelCase = "gelu"    ,__UpperCAmelCase = 0.1    ,__UpperCAmelCase = 0.1    ,__UpperCAmelCase = 514    ,__UpperCAmelCase = 0.0_2    ,__UpperCAmelCase = 1    ,__UpperCAmelCase = 1E-05    ,__UpperCAmelCase=None    ,__UpperCAmelCase=False    ,__UpperCAmelCase=0.0    ,**__UpperCAmelCase    ,)       ->						Optional[int]:
      super().__init__(pad_token_id=_lowerCAmelCase    ,**_lowerCAmelCase )
      lowerCAmelCase__					:    Dict				 =   vocab_size
      lowerCAmelCase__					:    Optional[Any]				 =   hidden_size
      lowerCAmelCase__					:    Optional[Any]				 =   num_hidden_layers
      lowerCAmelCase__					:    Any				 =   num_attention_heads
      lowerCAmelCase__					:    Union[str, Any]				 =   intermediate_size
      lowerCAmelCase__					:    Optional[Any]				 =   hidden_act
      lowerCAmelCase__					:    List[Any]				 =   hidden_dropout_prob
      lowerCAmelCase__					:    Any				 =   attention_probs_dropout_prob
      lowerCAmelCase__					:    List[str]				 =   max_position_embeddings
      lowerCAmelCase__					:    Union[str, Any]				 =   initializer_range
      lowerCAmelCase__					:    Tuple				 =   layer_norm_eps
      lowerCAmelCase__					:    List[str]				 =   classifier_dropout
      lowerCAmelCase__					:    List[Any]				 =   is_decoder
      lowerCAmelCase__					:    int				 =   act_dropout






from __future__ import annotations



def       _lowerCAmelCase    (				lowerCAmelCase_				:int		,    lowerCAmelCase_				:int				)->list[str]:
   '''simple docstring'''






   if partitions <= 0:
      raise ValueError("partitions must be a positive number!"				)
   if partitions > number_of_bytes:
      raise ValueError("partitions can not > number_of_bytes!"				)
   snake_case_            =       number_of_bytes // partitions
   snake_case_            =       []
   for i in range(lowerCAmelCase_				):
      snake_case_            =       i * bytes_per_partition + 1
      snake_case_            =       (
          number_of_bytes if i == partitions - 1 else (i + 1) * bytes_per_partition
      )
      allocation_list.append(F'''{start_bytes}-{end_bytes}'''				)
   return allocation_list


if __name__ == "__main__":
   import doctest

   doctest.testmod()




