






"""simple docstring"""



_lowerCAmelCase	:	dict[str, float]				=      {
    "km/h": 1.0,
    "m/s": 3.6,
    "mph": 1.60_93_44,
    "knot": 1.8_52,
}

_lowerCAmelCase	:	dict[str, float]				=      {
    "km/h": 1.0,
    "m/s": 0.2_77_77_77_78,
    "mph": 0.6_21_37_11_92,
    "knot": 0.5_39_95_68_03,
}


def 	SCREAMING_SNAKE_CASE__       (  snake_case       : Dict			,					snake_case       : Optional[Any]			,					snake_case       : List[str]				)->		Tuple:






     '''simple docstring'''



     if unit_to not in speed_chart or unit_from not in speed_chart_inverse:
          UpperCAmelCase__						:    List[Any]							=							(
              f'Incorrect \'from_type\' or \'to_type\' value: {unit_from!r}, {unit_to!r}\n'
              f'Valid values are: {", ".join(snake_case__				)}'
          )
          raise ValueError(snake_case__				)
     return round(speed * speed_chart[unit_from] * speed_chart_inverse[unit_to]			,					3				)


if __name__ == "__main__":
 import doctest

 doctest.testmod()





"""simple docstring"""




from __future__ import annotations

from typing import Dict

from ...configuration_utils import PretrainedConfig


A_				:      Union[str, Any]           =			{
    "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    (A__      ):
			lowerCamelCase__ :		int       		=				'ernie_m'
			lowerCamelCase__ :		Dict[str, str]       		=				{"dropout": "classifier_dropout", "num_classes": "num_labels"}

			def __init__(       self					:    List[str]     ,					__UpperCAmelCase					:    int = 2_5_0_0_0_2     ,					__UpperCAmelCase					:    int = 7_6_8     ,					__UpperCAmelCase					:    int = 1_2     ,					__UpperCAmelCase					:    int = 1_2     ,					__UpperCAmelCase					:    int = 3_0_7_2     ,					__UpperCAmelCase					:    str = "gelu"     ,					__UpperCAmelCase					:    float = 0.1     ,					__UpperCAmelCase					:    float = 0.1     ,					__UpperCAmelCase					:    int = 5_1_4     ,					__UpperCAmelCase					:    float = 0.02     ,					__UpperCAmelCase					:    int = 1     ,					__UpperCAmelCase					:    float = 1e-05     ,					__UpperCAmelCase					:    Union[str, Any]=None     ,					__UpperCAmelCase					:    List[Any]=False     ,					__UpperCAmelCase					:    Union[str, Any]=0.0     ,					**__UpperCAmelCase					:    Any     ,					) ->     Optional[Any]:
						super().__init__(pad_token_id=__UpperCAmelCase     ,					**__UpperCAmelCase							)
						SCREAMING_SNAKE_CASE__										=   vocab_size
						SCREAMING_SNAKE_CASE__										=   hidden_size
						SCREAMING_SNAKE_CASE__										=   num_hidden_layers
						SCREAMING_SNAKE_CASE__										=   num_attention_heads
						SCREAMING_SNAKE_CASE__										=   intermediate_size
						SCREAMING_SNAKE_CASE__										=   hidden_act
						SCREAMING_SNAKE_CASE__										=   hidden_dropout_prob
						SCREAMING_SNAKE_CASE__										=   attention_probs_dropout_prob
						SCREAMING_SNAKE_CASE__										=   max_position_embeddings
						SCREAMING_SNAKE_CASE__										=   initializer_range
						SCREAMING_SNAKE_CASE__										=   layer_norm_eps
						SCREAMING_SNAKE_CASE__										=   classifier_dropout
						SCREAMING_SNAKE_CASE__										=   is_decoder
						SCREAMING_SNAKE_CASE__										=   act_dropout


