[V1][Spec Dec Bug Fix] Respect Spec Dec Method Specification (#16636)
Signed-off-by: Bryan Lu <yuzhelu@amazon.com>
This commit is contained in:
parent
3092375e27
commit
2cbd4d2999
@ -2341,7 +2341,9 @@ class SpeculativeConfig:
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Automatically detect the method
|
# 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"
|
self.method = "eagle"
|
||||||
elif self.draft_model_config.hf_config.model_type == "medusa":
|
elif self.draft_model_config.hf_config.model_type == "medusa":
|
||||||
self.method = "medusa"
|
self.method = "medusa"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user