
"""simple docstring"""






import unittest

from transformers import DebertaVaTokenizer, DebertaVaTokenizerFast
from transformers.testing_utils import get_tests_dir, require_sentencepiece, require_tokenizers, slow

from ...test_tokenization_common import TokenizerTesterMixin


__UpperCAmelCase       =  get_tests_dir('fixtures/spiece.model')




@require_sentencepiece
@require_tokenizers
class 			_SCREAMING_SNAKE_CASE					(			A__	, unittest.TestCase							):
			UpperCAmelCase_  :Any				 =						DebertaVaTokenizer
			UpperCAmelCase_  :int				 =						DebertaVaTokenizerFast
			UpperCAmelCase_  :Optional[Any]				 =						True
			UpperCAmelCase_  :List[Any]				 =						True






			def  __lowerCAmelCase (					self       )			->     List[str]:
						super().setUp()

						# We have a SentencePiece fixture for testing
						lowerCAmelCase_    :List[Any]			     =  DebertaVaTokenizer(__A       ,   unk_token="""<unk>"""       )
						tokenizer.save_pretrained(self.tmpdirname       )






			def  __lowerCAmelCase (					self       ,   __A       )			->     int:
						lowerCAmelCase_    :List[str]			     =  """this is a test"""
						lowerCAmelCase_    :Union[str, Any]			     =  """this is a test"""
						return input_text, output_text






			def  __lowerCAmelCase (					self       )			->     Tuple:
						lowerCAmelCase_    :Dict			     =  """<pad>"""
						lowerCAmelCase_    :Dict			     =  0

						self.assertEqual(self.get_tokenizer()._convert_token_to_id(__A       )       ,   __A       )
						self.assertEqual(self.get_tokenizer()._convert_id_to_token(__A       )       ,   __A       )






			def  __lowerCAmelCase (					self       )			->     List[Any]:
						lowerCAmelCase_    :Any			     =  list(self.get_tokenizer().get_vocab().keys()       )
						self.assertEqual(vocab_keys[0]       ,   """<pad>"""       )
						self.assertEqual(vocab_keys[1]       ,   """<unk>"""       )
						self.assertEqual(vocab_keys[-1]       ,   """[PAD]"""       )
						self.assertEqual(len(__A       )       ,   3_0001       )






			def  __lowerCAmelCase (					self       )			->     str:
						self.assertEqual(self.get_tokenizer().vocab_size       ,   3_0000       )






			def  __lowerCAmelCase (					self       )			->     str:
						# fmt: off
						lowerCAmelCase_    :Union[str, Any]			     =  """ \tHeLLo!how  \n Are yoU?  """
						lowerCAmelCase_    :int			     =  ["""▁hello""", """!""", """how""", """▁are""", """▁you""", """?"""]
						# fmt: on

						lowerCAmelCase_    :List[str]			     =  DebertaVaTokenizer(__A       ,   do_lower_case=__A       )
						lowerCAmelCase_    :Any			     =  tokenizer.convert_ids_to_tokens(tokenizer.encode(__A       ,   add_special_tokens=__A       )       )

						self.assertListEqual(__A       ,   __A       )

						lowerCAmelCase_    :Union[str, Any]			     =  DebertaVaTokenizerFast(__A       ,   do_lower_case=__A       )
						lowerCAmelCase_    :List[str]			     =  rust_tokenizer.convert_ids_to_tokens(rust_tokenizer.encode(__A       ,   add_special_tokens=__A       )       )

						self.assertListEqual(__A       ,   __A       )






			@unittest.skip("""There is an inconsistency between slow and fast tokenizer due to a bug in the fast one."""       )
			def  __lowerCAmelCase (					self       )			->     Any:
						pass






			@unittest.skip("""There is an inconsistency between slow and fast tokenizer due to a bug in the fast one."""       )
			def  __lowerCAmelCase (					self       )			->     int:
						pass






			def  __lowerCAmelCase (					self       )			->     Dict:
						# fmt: off
						lowerCAmelCase_    :List[str]			     =  """I was born in 92000, and this is falsé."""
						lowerCAmelCase_    :int			     =  ["""▁""", """<unk>""", """▁was""", """▁born""", """▁in""", """▁9""", """2000""", """▁""", """,""", """▁and""", """▁this""", """▁is""", """▁fal""", """s""", """<unk>""", """▁""", """.""", ]
						# fmt: on

						lowerCAmelCase_    :str			     =  DebertaVaTokenizer(__A       ,   split_by_punct=__A       )
						lowerCAmelCase_    :str			     =  tokenizer.convert_ids_to_tokens(tokenizer.encode(__A       ,   add_special_tokens=__A       )       )

						self.assertListEqual(__A       ,   __A       )

						lowerCAmelCase_    :Any			     =  DebertaVaTokenizerFast(__A       ,   split_by_punct=__A       )
						lowerCAmelCase_    :int			     =  rust_tokenizer.convert_ids_to_tokens(rust_tokenizer.encode(__A       ,   add_special_tokens=__A       )       )

						self.assertListEqual(__A       ,   __A       )






			def  __lowerCAmelCase (					self       )			->     Any:
						# fmt: off
						lowerCAmelCase_    :Any			     =  """I was born in 92000, and this is falsé."""
						lowerCAmelCase_    :Tuple			     =  ["""▁i""", """▁was""", """▁born""", """▁in""", """▁9""", """2000""", """▁""", """,""", """▁and""", """▁this""", """▁is""", """▁fal""", """s""", """<unk>""", """▁""", """.""", ]
						# fmt: on

						lowerCAmelCase_    :int			     =  DebertaVaTokenizer(__A       ,   do_lower_case=__A       ,   split_by_punct=__A       )
						lowerCAmelCase_    :List[str]			     =  tokenizer.convert_ids_to_tokens(tokenizer.encode(__A       ,   add_special_tokens=__A       )       )
						self.assertListEqual(__A       ,   __A       )

						lowerCAmelCase_    :Union[str, Any]			     =  DebertaVaTokenizerFast(__A       ,   do_lower_case=__A       ,   split_by_punct=__A       )
						lowerCAmelCase_    :List[str]			     =  rust_tokenizer.convert_ids_to_tokens(rust_tokenizer.encode(__A       ,   add_special_tokens=__A       )       )
						self.assertListEqual(__A       ,   __A       )






			def  __lowerCAmelCase (					self       )			->     Union[str, Any]:
						# fmt: off
						lowerCAmelCase_    :int			     =  """I was born in 92000, and this is falsé."""
						lowerCAmelCase_    :List[Any]			     =  ["""▁i""", """▁was""", """▁born""", """▁in""", """▁9""", """2000""", """,""", """▁and""", """▁this""", """▁is""", """▁fal""", """s""", """<unk>""", """.""", ]
						# fmt: on

						lowerCAmelCase_    :Tuple			     =  DebertaVaTokenizer(__A       ,   do_lower_case=__A       ,   split_by_punct=__A       )
						lowerCAmelCase_    :List[str]			     =  tokenizer.convert_ids_to_tokens(tokenizer.encode(__A       ,   add_special_tokens=__A       )       )

						self.assertListEqual(__A       ,   __A       )

						lowerCAmelCase_    :Dict			     =  DebertaVaTokenizerFast(__A       ,   do_lower_case=__A       ,   split_by_punct=__A       )
						lowerCAmelCase_    :Optional[int]			     =  rust_tokenizer.convert_ids_to_tokens(rust_tokenizer.encode(__A       ,   add_special_tokens=__A       )       )

						self.assertListEqual(__A       ,   __A       )






			def  __lowerCAmelCase (					self       )			->     Any:
						# fmt: off
						lowerCAmelCase_    :Any			     =  """I was born in 92000, and this is falsé."""
						lowerCAmelCase_    :int			     =  ["""▁""", """<unk>""", """▁was""", """▁born""", """▁in""", """▁9""", """2000""", """▁""", """,""", """▁and""", """▁this""", """▁is""", """▁fal""", """s""", """<unk>""", """▁""", """.""", ]
						# fmt: on

						lowerCAmelCase_    :List[Any]			     =  DebertaVaTokenizer(__A       ,   do_lower_case=__A       ,   split_by_punct=__A       )
						lowerCAmelCase_    :Optional[Any]			     =  tokenizer.convert_ids_to_tokens(tokenizer.encode(__A       ,   add_special_tokens=__A       )       )

						self.assertListEqual(__A       ,   __A       )

						lowerCAmelCase_    :Optional[int]			     =  DebertaVaTokenizerFast(__A       ,   do_lower_case=__A       ,   split_by_punct=__A       )
						lowerCAmelCase_    :List[Any]			     =  rust_tokenizer.convert_ids_to_tokens(rust_tokenizer.encode(__A       ,   add_special_tokens=__A       )       )

						self.assertListEqual(__A       ,   __A       )






			def  __lowerCAmelCase (					self       )			->     str:
						# fmt: off
						lowerCAmelCase_    :Optional[int]			     =  """ \tHeLLo!how  \n Are yoU?  """
						lowerCAmelCase_    :List[Any]			     =  ["""▁""", """<unk>""", """e""", """<unk>""", """o""", """!""", """how""", """▁""", """<unk>""", """re""", """▁yo""", """<unk>""", """?"""]
						# fmt: on

						lowerCAmelCase_    :Union[str, Any]			     =  DebertaVaTokenizer(__A       ,   do_lower_case=__A       ,   split_by_punct=__A       )
						lowerCAmelCase_    :List[Any]			     =  tokenizer.convert_ids_to_tokens(tokenizer.encode(__A       ,   add_special_tokens=__A       )       )

						self.assertListEqual(__A       ,   __A       )

						lowerCAmelCase_    :str			     =  DebertaVaTokenizerFast(__A       ,   do_lower_case=__A       ,   split_by_punct=__A       )
						lowerCAmelCase_    :Optional[int]			     =  rust_tokenizer.convert_ids_to_tokens(rust_tokenizer.encode(__A       ,   add_special_tokens=__A       )       )

						self.assertListEqual(__A       ,   __A       )






			def  __lowerCAmelCase (					self       )			->     List[Any]:
						lowerCAmelCase_    :Tuple			     =  self.get_tokenizer()
						lowerCAmelCase_    :str			     =  self.get_rust_tokenizer()

						lowerCAmelCase_    :List[str]			     =  """I was born in 92000, and this is falsé."""

						lowerCAmelCase_    :Tuple			     =  tokenizer.convert_ids_to_tokens(tokenizer.encode(__A       ,   add_special_tokens=__A       )       )
						lowerCAmelCase_    :Tuple			     =  rust_tokenizer.convert_ids_to_tokens(rust_tokenizer.encode(__A       ,   add_special_tokens=__A       )       )
						self.assertListEqual(__A       ,   __A       )

						lowerCAmelCase_    :str			     =  tokenizer.encode(__A       ,   add_special_tokens=__A       )
						lowerCAmelCase_    :int			     =  rust_tokenizer.encode(__A       ,   add_special_tokens=__A       )
						self.assertListEqual(__A       ,   __A       )

						lowerCAmelCase_    :List[str]			     =  self.get_rust_tokenizer()
						lowerCAmelCase_    :Dict			     =  tokenizer.encode(__A       )
						lowerCAmelCase_    :Dict			     =  rust_tokenizer.encode(__A       )
						self.assertListEqual(__A       ,   __A       )






			def  __lowerCAmelCase (					self       )			->     List[Any]:
						lowerCAmelCase_    :str			     =  """This is a test"""
						lowerCAmelCase_    :int			     =  [13, 1, 4398, 25, 21, 1289]
						lowerCAmelCase_    :Optional[Any]			     =  ["""▁""", """T""", """his""", """▁is""", """▁a""", """▁test"""]
						lowerCAmelCase_    :str			     =  ["""▁""", """<unk>""", """his""", """▁is""", """▁a""", """▁test"""]

						lowerCAmelCase_    :Any			     =  DebertaVaTokenizer(__A       ,   keep_accents=__A       )
						lowerCAmelCase_    :Optional[int]			     =  DebertaVaTokenizerFast(__A       ,   keep_accents=__A       )

						lowerCAmelCase_    :Union[str, Any]			     =  tokenizer.encode(__A       ,   add_special_tokens=__A       )
						self.assertListEqual(__A       ,   __A       )
						lowerCAmelCase_    :List[Any]			     =  tokenizer.tokenize(__A       )
						self.assertListEqual(__A       ,   __A       )
						lowerCAmelCase_    :Tuple			     =  tokenizer.convert_ids_to_tokens(__A       )
						self.assertListEqual(__A       ,   __A       )

						lowerCAmelCase_    :int			     =  rust_tokenizer.encode(__A       ,   add_special_tokens=__A       )
						self.assertListEqual(__A       ,   __A       )
						lowerCAmelCase_    :Dict			     =  rust_tokenizer.tokenize(__A       )
						self.assertListEqual(__A       ,   __A       )
						lowerCAmelCase_    :List[str]			     =  rust_tokenizer.convert_ids_to_tokens(__A       )
						self.assertListEqual(__A       ,   __A       )

						# fmt: off
						lowerCAmelCase_    :Tuple			     =  """I was born in 92000, and this is falsé."""
						lowerCAmelCase_    :Optional[Any]			     =  [13, 1, 23, 386, 19, 561, 3050, 15, 17, 48, 25, 8256, 18, 1, 9]
						lowerCAmelCase_    :List[Any]			     =  ["""▁""", """I""", """▁was""", """▁born""", """▁in""", """▁9""", """2000""", """,""", """▁and""", """▁this""", """▁is""", """▁fal""", """s""", """é""", """.""", ]
						lowerCAmelCase_    :Optional[Any]			     =  ["""▁""", """<unk>""", """▁was""", """▁born""", """▁in""", """▁9""", """2000""", """,""", """▁and""", """▁this""", """▁is""", """▁fal""", """s""", """<unk>""", """.""", ]
						# fmt: on

						lowerCAmelCase_    :int			     =  tokenizer.encode(__A       ,   add_special_tokens=__A       )
						self.assertListEqual(__A       ,   __A       )
						lowerCAmelCase_    :Any			     =  tokenizer.tokenize(__A       )
						self.assertListEqual(__A       ,   __A       )
						lowerCAmelCase_    :List[Any]			     =  tokenizer.convert_ids_to_tokens(__A       )
						self.assertListEqual(__A       ,   __A       )

						lowerCAmelCase_    :str			     =  rust_tokenizer.encode(__A       ,   add_special_tokens=__A       )
						self.assertListEqual(__A       ,   __A       )
						lowerCAmelCase_    :Optional[Any]			     =  rust_tokenizer.tokenize(__A       )
						self.assertListEqual(__A       ,   __A       )
						lowerCAmelCase_    :str			     =  rust_tokenizer.convert_ids_to_tokens(__A       )
						self.assertListEqual(__A       ,   __A       )






			def  __lowerCAmelCase (					self       )			->     str:
						lowerCAmelCase_    :Optional[int]			     =  DebertaVaTokenizer(__A       )

						lowerCAmelCase_    :List[Any]			     =  tokenizer.encode("""sequence builders"""       )
						lowerCAmelCase_    :Dict			     =  tokenizer.encode("""multi-sequence build"""       )

						lowerCAmelCase_    :int			     =  tokenizer.build_inputs_with_special_tokens(__A       )
						lowerCAmelCase_    :Optional[Any]			     =  tokenizer.build_inputs_with_special_tokens(__A       ,   __A       )

						self.assertEqual([tokenizer.cls_token_id] + text + [tokenizer.sep_token_id]       ,   __A       )
						self.assertEqual(
						    [tokenizer.cls_token_id] + text + [tokenizer.sep_token_id] + text_a + [tokenizer.sep_token_id]       ,   __A       ,   )






			@slow
			def  __lowerCAmelCase (					self       )			->     Tuple:
						# fmt: off
						lowerCAmelCase_    :List[Any]			     =  {"""input_ids""": [[1, 3_9867, 36, 1_9390, 486, 27, 3_5052, 8_1436, 18, 6_0685, 1225, 7, 3_5052, 8_1436, 18, 9367, 1_6899, 18, 1_5937, 53, 594, 773, 18, 1_6287, 3_0465, 36, 1_5937, 6, 4_1139, 38, 3_6979, 6_0763, 191, 6, 3_4132, 99, 6, 5_0538, 390, 4_3230, 6, 3_4132, 2779, 2_0850, 14, 699, 1072, 1194, 36, 382, 1_0901, 53, 7, 699, 1072, 2084, 36, 2_0422, 630, 53, 19, 105, 3049, 1896, 1053, 1_6899, 1506, 11, 3_7978, 4243, 7, 1237, 3_1869, 200, 1_6566, 654, 6, 3_5052, 8_1436, 7, 5_5630, 1_3593, 4, 2], [1, 26, 1_5011, 13, 667, 8, 1053, 18, 2_3611, 1237, 7_2356, 1_2820, 34, 10_4134, 1209, 35, 1_3313, 6627, 21, 202, 347, 7, 164, 2399, 11, 46, 4485, 4, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 5, 1232, 2864, 1_5785, 1_4951, 105, 5, 8581, 1250, 4, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], """token_type_ids""": [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], """attention_mask""": [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]}  # noqa: E501
						# fmt: on

						self.tokenizer_integration_test_util(
						    expected_encoding=__A       ,   model_name="""microsoft/deberta-v2-xlarge"""       ,   revision="""ad6e42c1532ddf3a15c39246b63f5559d558b670"""       ,   )







'''simple docstring'''





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


SCREAMING_SNAKE_CASE_:     Dict  =logging.get_logger(__name__)

SCREAMING_SNAKE_CASE_:     Tuple  ={}




class        __A      ( UpperCamelCase__	):
    a__       :						int          =  """llama"""
    a__       :						Any          =  ["""past_key_values"""]



    def __init__(self    :    List[str]   ,			__a    :    List[str]=32000   ,			__a    :    Tuple=4096   ,			__a    :    List[Any]=11008   ,			__a    :    Dict=32   ,			__a    :    Tuple=32   ,			__a    :    Any=None   ,			__a    :    Any="silu"   ,			__a    :    List[Any]=2048   ,			__a    :    List[Any]=0.02   ,			__a    :    str=1E-6   ,			__a    :    Optional[Any]=True   ,			__a    :    Union[str, Any]=0   ,			__a    :    Any=1   ,			__a    :    Dict=2   ,			__a    :    Dict=1   ,			__a    :    str=False   ,			__a    :    str=None   ,			**__a    :    Optional[Any]   ,			):
         UpperCAmelCase_           =   vocab_size
         UpperCAmelCase_           =   max_position_embeddings
         UpperCAmelCase_           =   hidden_size
         UpperCAmelCase_           =   intermediate_size
         UpperCAmelCase_           =   num_hidden_layers
         UpperCAmelCase_           =   num_attention_heads

         # for backward compatibility
         if num_key_value_heads is None:
              UpperCAmelCase_           =   num_attention_heads

         UpperCAmelCase_           =   num_key_value_heads
         UpperCAmelCase_           =   hidden_act
         UpperCAmelCase_           =   initializer_range
         UpperCAmelCase_           =   rms_norm_eps
         UpperCAmelCase_           =   pretraining_tp
         UpperCAmelCase_           =   use_cache
         UpperCAmelCase_           =   rope_scaling
         self._rope_scaling_validation()

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






    def 					_lowercase						(self    :    List[str] ):
         if self.rope_scaling is None:
              return

         if not isinstance(self.rope_scaling   ,			__a ) 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_           =   self.rope_scaling.get("type"   ,			__a )
         UpperCAmelCase_           =   self.rope_scaling.get("factor"   ,			__a )
         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(__a   ,			__a ) or rope_scaling_factor <= 1.0:
              raise ValueError(f"""`rope_scaling`'s factor field must be an float > 1, got {rope_scaling_factor}""" )




