[Feature][MTP]Support multi-step MTP (#2952)

This commit is contained in:
GoldPancake
2025-07-22 16:26:29 +08:00
committed by GitHub
parent 920e6b3f60
commit dc67c10a7e
4 changed files with 33 additions and 8 deletions

View File

@@ -277,6 +277,8 @@ class SpeculativeConfig:
for key, value in args.items():
if key in name_map.keys() and hasattr(self, name_map[key]):
if key == "speculative_benchmark_mode":
value = True if value.lower() == "true" else False
setattr(self, name_map[key], value)