

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


a_    :						Dict    		=      logging.get_logger(__name__)

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




class      UpperCamelCase (     SCREAMING_SNAKE_CASE   ):
    __UpperCamelCase         ="open-llama"

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

     """simple docstring"""






     SCREAMING_SNAKE_CASE								=			vocab_size
     SCREAMING_SNAKE_CASE								=			max_position_embeddings
     SCREAMING_SNAKE_CASE								=			hidden_size
     SCREAMING_SNAKE_CASE								=			intermediate_size
     SCREAMING_SNAKE_CASE								=			num_hidden_layers
     SCREAMING_SNAKE_CASE								=			num_attention_heads
     SCREAMING_SNAKE_CASE								=			hidden_act
     SCREAMING_SNAKE_CASE								=			initializer_range
     SCREAMING_SNAKE_CASE								=			rms_norm_eps
     SCREAMING_SNAKE_CASE								=			use_cache
     SCREAMING_SNAKE_CASE								=			kwargs.pop(
         'use_memorry_efficient_attention'							,    snake_case__    )
     SCREAMING_SNAKE_CASE								=			hidden_dropout_prob
     SCREAMING_SNAKE_CASE								=			attention_dropout_prob
     SCREAMING_SNAKE_CASE								=			use_stable_embedding
     SCREAMING_SNAKE_CASE								=			shared_input_output_embedding
     SCREAMING_SNAKE_CASE								=			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 UpperCamelCase			(			self :      List[Any]    ):

     """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}"""    )
     SCREAMING_SNAKE_CASE								=			self.rope_scaling.get('type'							,    snake_case__    )
     SCREAMING_SNAKE_CASE								=			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}"""    )







def        __lowerCAmelCase    (       _UpperCamelCase		:  int = 10_00	)		->							int:
 '''simple docstring'''


 SCREAMING_SNAKE_CASE								=			2**power
 SCREAMING_SNAKE_CASE								=			str(_UpperCamelCase	)
 SCREAMING_SNAKE_CASE								=			list(_UpperCamelCase	)
 SCREAMING_SNAKE_CASE								=			0

 for i in list_num:
  sum_of_num += int(_UpperCamelCase	)

 return sum_of_num


if __name__ == "__main__":
      a_    :						List[str]    		=      int(input("Enter the power of 2: ").strip())
      print("2 ^ ", power, " = ", 2**power)
      a_    :						int    		=      solution(power)
      print("Sum of the digits is: ", result)

