mirror of
https://github.com/handsomezhuzhu/vllm-npu-plugin.git
synced 2026-02-20 19:50:15 +00:00
feat: Implement the NPU platform plugin for vLLM, including platform registration, device management, custom operations, and configuration adaptation.
This commit is contained in:
@@ -180,6 +180,10 @@ class NPUPlatform(Platform):
|
||||
"""Adapt vLLM configuration for NPU hardware."""
|
||||
from vllm.config import CompilationLevel
|
||||
|
||||
# Register NPU custom ops (must happen after platform is detected)
|
||||
from vllm_npu import register_npu_ops
|
||||
register_npu_ops()
|
||||
|
||||
parallel_config = vllm_config.parallel_config
|
||||
cache_config = vllm_config.cache_config
|
||||
compilation_config = vllm_config.compilation_config
|
||||
|
||||
Reference in New Issue
Block a user