19 lines
763 B
Python
19 lines
763 B
Python
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
"""CPU DeepSeek-V4 DSpark (speculative decoding) — deferred, not implemented.
|
|
|
|
``DSparkDeepseekV4ForCausalLM`` is only instantiated when the speculative-
|
|
decoding registry resolves it by name for a DSpark speculative config; a
|
|
plain (non-spec) DeepSeek-V4 CPU model never constructs this class. This
|
|
stub exists solely so ``vllm.models.deepseek_v4.cpu`` is import-clean.
|
|
"""
|
|
|
|
from vllm.config import VllmConfig
|
|
|
|
|
|
class DSparkDeepseekV4ForCausalLM:
|
|
def __init__(self, *, vllm_config: VllmConfig, prefix: str = "") -> None:
|
|
raise NotImplementedError(
|
|
"DeepSeek-V4 speculative decoding (DSpark) is not implemented on CPU."
|
|
)
|