[Bugfix][Spec Decode] Add missing draft_id_to_target_id to DSparkDeepseekV4ForCausalLM (#47429)

Signed-off-by: Laurent-Zhang <zhangdongsheng80@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
Laurent-Zhang
2026-07-06 10:55:47 -04:00
committed by GitHub
co-authored by Claude mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent b1c6dba558
commit 8d8ec38361
+2
View File
@@ -269,6 +269,8 @@ class DSparkDeepseekV4ForCausalLM(nn.Module):
# load_dspark_model always aliases the target's.
has_own_embed_tokens = False
has_own_lm_head = False
# Full-vocab draft: draft ids are target ids, no remapping needed.
draft_id_to_target_id = None
def __init__(self, *, vllm_config: VllmConfig, prefix: str = "") -> None:
super().__init__()