Unverified Commit 2cbd4d29 authored by Bryan Lu's avatar Bryan Lu Committed by GitHub
Browse files

[V1][Spec Dec Bug Fix] Respect Spec Dec Method Specification (#16636)


Signed-off-by: default avatarBryan Lu <yuzhelu@amazon.com>
parent 3092375e
......@@ -2341,7 +2341,9 @@ class SpeculativeConfig:
)
# Automatically detect the method
if "eagle-" in self.draft_model_config.model.lower():
if self.method == 'eagle':
pass
elif "eagle-" in self.draft_model_config.model.lower():
self.method = "eagle"
elif self.draft_model_config.hf_config.model_type == "medusa":
self.method = "medusa"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment