

"""simple docstring"""






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


snake_case_   :   List[str]        =       logging.get_logger(__name__)

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







class       snake_case__  ( lowerCAmelCase_     ):
			SCREAMING_SNAKE_CASE__     				=						'''open-llama'''







			def __init__(			self			: Tuple			,  lowercase			: List[str]=10_00_00			,  lowercase			: Optional[Any]=40_96			,  lowercase			: List[Any]=1_10_08			,  lowercase			: Optional[Any]=32			,  lowercase			: int=32			,  lowercase			: Optional[Any]="silu"			,  lowercase			: Optional[Any]=20_48			,  lowercase			: List[Any]=0.0_2			,  lowercase			: List[str]=1E-6			,  lowercase			: Optional[Any]=True			,  lowercase			: List[Any]=0			,  lowercase			: Dict=1			,  lowercase			: List[Any]=2			,  lowercase			: Union[str, Any]=False			,  lowercase			: List[Any]=True			,  lowercase			: Dict=0.1			,  lowercase			: Dict=0.1			,  lowercase			: str=True			,  lowercase			: Tuple=True			,  lowercase			: int=None			,  **lowercase			: List[Any]			,  ):





								'''simple docstring'''



								UpperCAmelCase			:   Optional[int]      =				vocab_size
								UpperCAmelCase			:   List[Any]      =				max_position_embeddings
								UpperCAmelCase			:   Tuple      =				hidden_size
								UpperCAmelCase			:   Tuple      =				intermediate_size
								UpperCAmelCase			:   Dict      =				num_hidden_layers
								UpperCAmelCase			:   str      =				num_attention_heads
								UpperCAmelCase			:   Dict      =				hidden_act
								UpperCAmelCase			:   Dict      =				initializer_range
								UpperCAmelCase			:   Any      =				rms_norm_eps
								UpperCAmelCase			:   Optional[int]      =				use_cache
								UpperCAmelCase			:   Tuple      =				kwargs.pop(
								    "use_memorry_efficient_attention"			,  lowercase  )
								UpperCAmelCase			:   int      =				hidden_dropout_prob
								UpperCAmelCase			:   Union[str, Any]      =				attention_dropout_prob
								UpperCAmelCase			:   int      =				use_stable_embedding
								UpperCAmelCase			:   Optional[Any]      =				shared_input_output_embedding
								UpperCAmelCase			:   int      =				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 			__lowerCAmelCase				(			self			: 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}"""  )
								UpperCAmelCase			:   Any      =				self.rope_scaling.get("type"			,  lowercase  )
								UpperCAmelCase			:   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   lowercase_	(    _lowercase       :		str	):




					'''simple docstring'''






					if not all(x.isalpha() for x in string	):
										raise ValueError("String must only contain alphabetic characters."	)

					UpperCAmelCase			:   Optional[int]      =				sorted(string.lower()	)
					return len(_lowercase	) == len(set(_lowercase	)	)


if __name__ == "__main__":
	snake_case_   :   Tuple        =       input("""Enter a string """).strip()

	snake_case_   :   str        =       is_isogram(input_str)
	print(f'''{input_str} is {"an" if isogram else "not an"} isogram.''')


