[PCP][DCP] Support DCP target model with non-DCP Dspark (#56723)
Signed-off-by: Lucas Wilkinson <lwilkins@redhat.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
co-authored by
Claude Opus 5
Codex
parent
77871126f9
commit
927c87b347
@@ -145,7 +145,10 @@ class PCPManager:
|
||||
if speculative_config is not None:
|
||||
if speculative_config.use_dspark():
|
||||
dcp_size = parallel_config.decode_context_parallel_size
|
||||
if dcp_size not in (1, pcp_size):
|
||||
if (
|
||||
dcp_size not in (1, pcp_size)
|
||||
and speculative_config.draft_model_config.use_mla
|
||||
):
|
||||
raise NotImplementedError(
|
||||
"MRV2 PCP DSpark requires DCP=1 or DCP=PCP; got "
|
||||
f"DCP={dcp_size}, PCP={pcp_size}."
|
||||
|
||||
Reference in New Issue
Block a user