### What this PR does / why we need it? Re-patch TritonPlaceholder on main to make CI happy - Add triton patch back until https://github.com/vllm-project/vllm/pull/17446 resolved - Move patch_main before patch_common to resolve minicpm triton import issue - Add `0.8.5` and `0.8.5.post1` to make patch work on 0.8.5 all versions Related: - https://github.com/vllm-project/vllm-ascend/pull/704 - https://github.com/vllm-project/vllm-ascend/pull/690 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? All CI passed include main Signed-off-by: Yikun Jiang <yikunkero@gmail.com>
32 lines
1.1 KiB
Python
32 lines
1.1 KiB
Python
#
|
|
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
# This file is a part of the vllm-ascend project.
|
|
#
|
|
|
|
|
|
def register():
|
|
"""Register the NPU platform."""
|
|
|
|
return "vllm_ascend.platform.NPUPlatform"
|
|
|
|
|
|
def register_model():
|
|
# TODO: fixme when TritonPlaceholder fixed
|
|
from vllm_ascend.utils import vllm_version_is
|
|
if not (vllm_version_is("0.8.5") or vllm_version_is("0.8.5.post1")):
|
|
import vllm_ascend.patch.worker.patch_main.patch_tritonplaceholder # noqa
|
|
from .models import register_model
|
|
register_model()
|