diff --git a/vllm_mindspore/__init__.py b/vllm_mindspore/__init__.py index 5e0ae33eb6f9ab14f37896376c678ee35c76d051..4570579f803e41c2947504214f525169ea4b2b33 100644 --- a/vllm_mindspore/__init__.py +++ b/vllm_mindspore/__init__.py @@ -160,7 +160,7 @@ vllm.model_executor.model_loader.loader.safetensors_weights_iterator = ( safetensors_weights_iterator) from vllm_mindspore.worker.worker import _warm_up_model -from vllm_mindspore.worker.profile import ( +from vllm_mindspore.worker.profile_controller import ( wrapper_worker_init, wrapper_worker_init_device, ) @@ -405,6 +405,13 @@ from vllm.v1.executor.multiproc_executor import MultiprocExecutor MultiprocExecutor._ensure_worker_termination = \ executor_ensure_worker_termination +MultiprocExecutor._ensure_worker_termination = \ + executor_ensure_worker_termination +# init vllm-mindspore profile controller +from vllm_mindspore.worker.profile_controller \ + import init_vllm_mindspore_profile_controller + +init_vllm_mindspore_profile_controller() from .utils import check_ready diff --git a/vllm_mindspore/dashboard_utils.py b/vllm_mindspore/dashboard_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..cee2c097db0c70a204c3328d87836d9e6ea857e8 --- /dev/null +++ b/vllm_mindspore/dashboard_utils.py @@ -0,0 +1,344 @@ +#!/usr/bin/env python3 +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2025 Huawei Technologies Co., Ltd +# Copyright 2024 The vLLM team. +# +# 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. +# ============================================================================ + +dashboad_html_code = ''' + + +
+ + +No. | +File | +Description | +
---|