+12








7c6729b769
Signed-off-by: zjy0516 <riverclouds.zhu@qq.com> Signed-off-by: Isotr0py <Isotr0py@outlook.com> Signed-off-by: Bugen Zhao <i@bugenzhao.com> Signed-off-by: Yongye Zhu <zyy1102000@gmail.com> Co-authored-by: Isotr0py <Isotr0py@outlook.com> Co-authored-by: Thien Tran <gau.nernst@yahoo.com.sg> Co-authored-by: Bugen Zhao <i@bugenzhao.com> Co-authored-by: Yongye Zhu <zyy1102000@gmail.com> Co-authored-by: Ziming Huang <zelda.huanghuang@gmail.com> Co-authored-by: Roger Wang <hey@rogerw.io> Co-authored-by: Isotr0py <mozf@inferact.ai> Co-authored-by: aoshen02 <aoshen02@users.noreply.github.com> Co-authored-by: Woosuk Kwon <woosuk@inferact.ai> Co-authored-by: Jee Jee Li <jeejeelee@inferact.ai> Co-authored-by: aoshen02 <aoshen@inferact.ai> Co-authored-by: Summer Yang <girasoleyang@gmail.com> Co-authored-by: Kevin H. Luu <khluu000@gmail.com> Co-authored-by: Bowen Wang <abmfy@icloud.com> Co-authored-by: gnovack <novackgm@gmail.com> Co-authored-by: Nick Hill <nickhill123@gmail.com> Co-authored-by: Yifan Qiao <yifanqiao@inferact.ai> Co-authored-by: xiaozhoupy <peiyuanzhou1994@gmail.com> Co-authored-by: Roy Wang <yasong.wang@inferact.ai> Co-authored-by: Jeff (Junze) Ma <93145857+majunze2001@users.noreply.github.com> Co-authored-by: Codex <codex@openai.com>
29 lines
1.1 KiB
Python
29 lines
1.1 KiB
Python
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
"""Kimi K3 model — hardware-isolated entry point.
|
|
|
|
The implementation lives under ``nvidia/`` and ``amd/``; this module picks the
|
|
right one for the current platform and re-exports the public classes used by
|
|
the model registry. (Mirrors ``vllm.models.minimax_m3``.)
|
|
"""
|
|
|
|
from typing import TYPE_CHECKING
|
|
|
|
from vllm.platforms import current_platform
|
|
|
|
# The NVIDIA branch is the static default that type-checkers see; the ROCm
|
|
# branch overrides it at runtime (kept type-compatible via type: ignore).
|
|
if TYPE_CHECKING or not current_platform.is_rocm():
|
|
from .nvidia.model import KimiK3ForConditionalGeneration, KimiLinearForCausalLM
|
|
from .nvidia.mtp import KimiK3MTP
|
|
else:
|
|
from .amd.linear import KimiLinearForCausalLM # type: ignore[assignment]
|
|
from .amd.model import KimiK3ForConditionalGeneration # type: ignore[assignment]
|
|
from .amd.mtp import KimiK3MTP # type: ignore[assignment]
|
|
|
|
__all__ = [
|
|
"KimiK3ForConditionalGeneration",
|
|
"KimiK3MTP",
|
|
"KimiLinearForCausalLM",
|
|
]
|