[Spec Decoding] Support MTP for dsv3.2 (#11652)
Co-authored-by: Paiiiiiiiiiiiiii <zengpai@baidu.com>
This commit is contained in:
co-authored by
Paiiiiiiiiiiiiii
parent
d658f0497e
commit
efa473348b
@@ -53,7 +53,11 @@ def is_deepseek_nsa(config: PretrainedConfig) -> bool:
|
||||
return (
|
||||
config.architectures is not None
|
||||
and config.architectures[0]
|
||||
in ["DeepseekV3ForCausalLM", "DeepseekV32ForCausalLM"]
|
||||
in [
|
||||
"DeepseekV3ForCausalLM",
|
||||
"DeepseekV32ForCausalLM",
|
||||
"DeepseekV3ForCausalLMNextN",
|
||||
]
|
||||
and getattr(config, "index_topk", None) is not None
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user