Remove from_dict from SpeculativeConfig (#22451)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Harry Mellor
2025-08-07 10:13:04 -07:00
committed by GitHub
parent 139d155781
commit 7e3a8dc906
3 changed files with 9 additions and 28 deletions
-5
View File
@@ -2895,11 +2895,6 @@ class SpeculativeConfig:
usedforsecurity=False).hexdigest()
return hash_str
@classmethod
def from_dict(cls, dict_value: dict) -> "SpeculativeConfig":
"""Parse the CLI value for the speculative config."""
return cls(**dict_value)
@staticmethod
def hf_config_override(hf_config: PretrainedConfig) -> PretrainedConfig:
if hf_config.model_type == "deepseek_v3":