[Model] Support MiMo-7B inference with MTP (#17433)

Signed-off-by: wp-alpha <wangpeng66@xiaomi.com>
Co-authored-by: wangpeng66 <wangpeng66@xiaomi.com>
This commit is contained in:
bwshen-mi
2025-05-12 23:25:33 +00:00
committed by GitHub
co-authored by wangpeng66
parent f065de4e88
commit acee8f48aa
7 changed files with 507 additions and 4 deletions
+5 -1
View File
@@ -71,7 +71,11 @@ class Worker(LocalOrDistributedWorkerBase):
or (speculative_config.draft_model_config.hf_config.model_type ==
model_config.hf_config.model_type) \
or (speculative_config.draft_model_config.hf_config.model_type
not in ("medusa", "mlp_speculator", "eagle", "deepseek_mtp")) \
not in ("medusa",
"mlp_speculator",
"eagle",
"deepseek_mtp",
"mimo_mtp")) \
else {"return_hidden_states": True}
ModelRunnerClass: Type[GPUModelRunnerBase] = ModelRunner