Files
enginex-mlu590-vllm/vllm_mlu/__init__.py
2026-04-24 09:58:03 +08:00

15 lines
431 B
Python

# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-MLU project
def register_mlu_platform():
"""Register the MLU platform."""
return "vllm_mlu.platforms.mlu.MLUPlatform"
def register_mlu_hijack():
"""Register the MLU models and hijack."""
from vllm_mlu import mlu_hijack
from vllm_mlu.model_executor.models import register_model
register_model()
return