we fix the non existent access of decrypted_config_file (#5685)

This commit is contained in:
vzed
2025-04-26 21:32:37 -04:00
committed by GitHub
parent 133ded039a
commit df2cf583ce

View File

@@ -1362,10 +1362,7 @@ def auto_choose_speculative_params(self: ServerArgs):
You can tune them on your own models and prompts with scripts/playground/bench_speculative.py
"""
if self.decrypted_config_file:
config_path = self.decrypted_config_file
else:
config_path = os.path.join(self.model_path, "config.json")
config_path = os.path.join(self.model_path, "config.json")
if not os.path.exists(config_path):
raise ValueError(f"{config_path} is not found.")