






"""simple docstring"""



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


_lowerCAmelCase	:	Any				=      logging.get_logger(__name__)

_lowerCAmelCase	:	Any				=      {
    """s-JoL/Open-Llama-V1""": """https://huggingface.co/s-JoL/Open-Llama-V1/blob/main/config.json""",
}




class 			lowerCAmelCase__			(    __magic_name__   ):
   SCREAMING_SNAKE_CASE_    ='''open-llama'''
   def __init__(		self      :	Optional[int]							,			snake_case__      :	Union[str, Any]=1_0_0_0_0_0							,			snake_case__      :	Optional[Any]=4_0_9_6							,			snake_case__      :	Tuple=1_1_0_0_8							,			snake_case__      :	List[str]=3_2							,			snake_case__      :	Optional[int]=3_2							,			snake_case__      :	Optional[Any]="silu"							,			snake_case__      :	int=2_0_4_8							,			snake_case__      :	Union[str, Any]=0.02							,			snake_case__      :	str=1e-6							,			snake_case__      :	List[Any]=True							,			snake_case__      :	str=0							,			snake_case__      :	Optional[int]=1							,			snake_case__      :	Any=2							,			snake_case__      :	List[str]=False							,			snake_case__      :	Dict=True							,			snake_case__      :	List[str]=0.1							,			snake_case__      :	List[Any]=0.1							,			snake_case__      :	List[str]=True							,			snake_case__      :	Dict=True							,			snake_case__      :	int=None							,			**snake_case__      :	int							,			):


        '''simple docstring'''
        UpperCAmelCase__						:    Any							=							vocab_size
        UpperCAmelCase__						:    List[str]							=							max_position_embeddings
        UpperCAmelCase__						:    Union[str, Any]							=							hidden_size
        UpperCAmelCase__						:    Union[str, Any]							=							intermediate_size
        UpperCAmelCase__						:    Optional[int]							=							num_hidden_layers
        UpperCAmelCase__						:    List[str]							=							num_attention_heads
        UpperCAmelCase__						:    Optional[Any]							=							hidden_act
        UpperCAmelCase__						:    Optional[int]							=							initializer_range
        UpperCAmelCase__						:    List[str]							=							rms_norm_eps
        UpperCAmelCase__						:    List[Any]							=							use_cache
        UpperCAmelCase__						:    List[str]							=							kwargs.pop(
            "use_memorry_efficient_attention"							,			snake_case__							)
        UpperCAmelCase__						:    int							=							hidden_dropout_prob
        UpperCAmelCase__						:    Tuple							=							attention_dropout_prob
        UpperCAmelCase__						:    Optional[int]							=							use_stable_embedding
        UpperCAmelCase__						:    Dict							=							shared_input_output_embedding
        UpperCAmelCase__						:    Tuple							=							rope_scaling
        self._rope_scaling_validation()

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




   def       __a							(		self      :	str							):


        '''simple docstring'''
        if self.rope_scaling is None:
             return

        if not isinstance(self.rope_scaling							,			snake_case__							) 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}'							)
        UpperCAmelCase__						:    int							=							self.rope_scaling.get("type"							,			snake_case__							)
        UpperCAmelCase__						:    int							=							self.rope_scaling.get("factor"							,			snake_case__							)
        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(snake_case__							,			snake_case__							) 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 	SCREAMING_SNAKE_CASE__       (  snake_case       : list				)->		list:






     '''simple docstring'''



     UpperCAmelCase__						:    List[str]							=							False
     while is_sorted is False:  # Until all the indices are traversed keep looping
          UpperCAmelCase__						:    List[Any]							=							True
          for i in range(0			,					len(snake_case				) - 1			,					2				):  # iterating over all even indices
               if input_list[i] > input_list[i + 1]:
                    UpperCAmelCase__							,				UpperCAmelCase__						:    Optional[int]							=							input_list[i + 1], input_list[i]
                    # swapping if elements not in order
                    UpperCAmelCase__						:    int							=							False

          for i in range(1			,					len(snake_case				) - 1			,					2				):  # iterating over all odd indices
               if input_list[i] > input_list[i + 1]:
                    UpperCAmelCase__							,				UpperCAmelCase__						:    Optional[int]							=							input_list[i + 1], input_list[i]
                    # swapping if elements not in order
                    UpperCAmelCase__						:    str							=							False
     return input_list


if __name__ == "__main__":
 print("""Enter list to be sorted""")
 _lowerCAmelCase	:	List[str]				=      [int(x) for x in input().split()]
 # inputing elements of the list in one line
 _lowerCAmelCase	:	Optional[int]				=      odd_even_sort(input_list)
 print("""The sorted list is""")
 print(sorted_list)


