





'''simple docstring'''


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


lowerCAmelCase :					str 							=logging.get_logger(__name__)

lowerCAmelCase :					Any 							={}
class 				a_       (    _lowerCAmelCase							):
					__A								=      """llama"""
					__A								=      ["""past_key_values"""]





					def __init__(			self		: List[str]     ,				lowercase		: Optional[int]=32_000     ,				lowercase		: int=4_096     ,				lowercase		: Dict=11_008     ,				lowercase		: Any=32     ,				lowercase		: Union[str, Any]=32     ,				lowercase		: Union[str, Any]=None     ,				lowercase		: Dict="silu"     ,				lowercase		: Dict=2_048     ,				lowercase		: List[Any]=0.02     ,				lowercase		: List[Any]=1e-6     ,				lowercase		: Optional[int]=True     ,				lowercase		: int=0     ,				lowercase		: int=1     ,				lowercase		: Optional[int]=2     ,				lowercase		: Tuple=1     ,				lowercase		: Optional[int]=False     ,				lowercase		: Optional[int]=None     ,				**lowercase		: Optional[int]     ,				):





								"""simple docstring"""




								lowercase_      :str         =			vocab_size
								lowercase_      :Optional[Any]         =			max_position_embeddings
								lowercase_      :Optional[int]         =			hidden_size
								lowercase_      :Optional[int]         =			intermediate_size
								lowercase_      :int         =			num_hidden_layers
								lowercase_      :Optional[int]         =			num_attention_heads

								# for backward compatibility
								if num_key_value_heads is None:
											lowercase_      :str         =			num_attention_heads

								lowercase_      :str         =			num_key_value_heads
								lowercase_      :Optional[Any]         =			hidden_act
								lowercase_      :Optional[Any]         =			initializer_range
								lowercase_      :Any         =			rms_norm_eps
								lowercase_      :Optional[int]         =			pretraining_tp
								lowercase_      :List[str]         =			use_cache
								lowercase_      :Union[str, Any]         =			rope_scaling
								self._rope_scaling_validation()

								super().__init__(
								    pad_token_id=_lowercase     ,				bos_token_id=_lowercase     ,				eos_token_id=_lowercase     ,				tie_word_embeddings=_lowercase     ,				**_lowercase     ,				)







					def 							lowercase__				(			self		: List[Any]						):





								"""simple docstring"""




								if self.rope_scaling is None:
											return

								if not isinstance(self.rope_scaling     ,				_lowercase						) or len(self.rope_scaling						) != 2:
											raise ValueError(
											    "`rope_scaling` must be a dictionary with with two fields, `name` and `factor`, "
											    F'got {self.rope_scaling}'						)
								lowercase_      :Dict         =			self.rope_scaling.get("type"     ,				_lowercase						)
								lowercase_      :Any         =			self.rope_scaling.get("factor"     ,				_lowercase						)
								if rope_scaling_type is None or rope_scaling_type not in ["linear", "dynamic"]:
											raise ValueError(
											    F'`rope_scaling`\'s name field must be one of [\'linear\', \'dynamic\'], got {rope_scaling_type}'						)
								if rope_scaling_factor is None or not isinstance(_lowercase     ,				_lowercase						) or rope_scaling_factor <= 1.0:
											raise ValueError(F'`rope_scaling`\'s factor field must be an float > 1, got {rope_scaling_factor}'						)









'''simple docstring'''


def 							UpperCAmelCase_  (						__lowerCamelCase : list			):
   if len(__lowerCamelCase			) <= 1:
      return lst

   lowercase_      :Optional[Any]         =			1

   while i < len(__lowerCamelCase			):
      if lst[i - 1] <= lst[i]:
         i += 1
      else:
         lowercase_      ,							lowercase_      :int         =			lst[i], lst[i - 1]
         i -= 1
         if i == 0:
            lowercase_      :Dict         =			1

   return lst


if __name__ == "__main__":
 lowerCAmelCase :					Any 							=input('''Enter numbers separated by a comma:\n''').strip()
 lowerCAmelCase :					List[str] 							=[int(item) for item in user_input.split(''',''')]
 print(gnome_sort(unsorted))


