2025-02-05 10:53:12 +08:00
|
|
|
#
|
|
|
|
|
# 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.
|
2025-04-17 14:59:56 +08:00
|
|
|
# This file is a part of the vllm-ascend project.
|
2025-02-05 10:53:12 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def register():
|
|
|
|
|
"""Register the NPU platform."""
|
2025-04-16 09:28:58 +08:00
|
|
|
|
2025-02-05 10:53:12 +08:00
|
|
|
return "vllm_ascend.platform.NPUPlatform"
|
2025-03-07 15:41:47 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def register_model():
|
2025-09-30 03:25:58 +08:00
|
|
|
|
2025-03-07 15:41:47 +08:00
|
|
|
from .models import register_model
|
|
|
|
|
register_model()
|
2025-10-09 21:09:54 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def register_connector():
|
|
|
|
|
from vllm_ascend.distributed import register_connector
|
|
|
|
|
register_connector()
|