Signed-off-by: Andreas Karatzas <Andreas.Karatzas@amd.com> Signed-off-by: Andreas Karatzas <akaratza@amd.com> Co-authored-by: OpenAI Codex <codex@openai.com>
15 lines
537 B
Python
15 lines
537 B
Python
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
"""Stub for platforms where the DeepSeek-V4 vision variant is unsupported."""
|
|
|
|
from torch import nn
|
|
|
|
|
|
class DeepseekV4ForConditionalGeneration(nn.Module):
|
|
def __init__(self, *, vllm_config, prefix: str = ""):
|
|
super().__init__()
|
|
raise NotImplementedError(
|
|
"DeepSeek-V4 vision (DeepseekV4ForConditionalGeneration) is not "
|
|
"supported on the current platform; use CUDA or ROCm."
|
|
)
|