@@ -168,12 +168,6 @@ class ModelConfig:
168168 """The specific revision to use for the model code on the Hugging Face Hub.
169169 It can be a branch name, a tag name, or a commit id. If unspecified, will
170170 use the default version."""
171- rope_scaling : dict [str , Any ] = field (default_factory = dict )
172- """RoPE scaling configuration. For example,
173- `{"rope_type":"dynamic","factor":2.0}`."""
174- rope_theta : float | None = None
175- """RoPE theta. Use with `rope_scaling`. In some cases, changing the RoPE
176- theta improves the performance of the scaled model."""
177171 tokenizer_revision : str | None = None
178172 """The specific revision to use for the tokenizer on the Hugging Face Hub.
179173 It can be a branch name, a tag name, or a commit id. If unspecified, will
@@ -338,8 +332,6 @@ def compute_hash(self) -> str:
338332 factors .append (self .generation_config )
339333 factors .append (self .model_impl )
340334 factors .append (self .override_generation_config )
341- factors .append (self .rope_scaling )
342- factors .append (self .rope_theta )
343335 factors .append (self .video_pruning_rate )
344336 factors .append (self .enable_prompt_embeds )
345337
@@ -481,25 +473,6 @@ def __post_init__(
481473 hf_overrides_kw [key ] = value
482474 hf_overrides_fn = None
483475
484- if self .rope_scaling :
485- hf_override : dict [str , Any ] = {"rope_scaling" : self .rope_scaling }
486- hf_overrides_kw .update (hf_override )
487- hf_overrides_str = json .dumps (hf_overrides_kw )
488- msg = (
489- "`--rope-scaling` will be removed in a future release. "
490- f"'Please instead use `--hf-overrides '{ hf_overrides_str } '`"
491- )
492- warnings .warn (DeprecationWarning (msg ), stacklevel = 2 )
493- if self .rope_theta is not None :
494- hf_override = {"rope_theta" : self .rope_theta }
495- hf_overrides_kw .update (hf_override )
496- hf_overrides_str = json .dumps (hf_overrides_kw )
497- msg = (
498- "`--rope-theta` will be removed in a future release. "
499- f"'Please instead use `--hf-overrides '{ hf_overrides_str } '`"
500- )
501- warnings .warn (DeprecationWarning (msg ), stacklevel = 2 )
502-
503476 self .maybe_pull_model_tokenizer_for_runai (self .model , self .tokenizer )
504477
505478 if (
0 commit comments