[MISC] Add patch module (#526)
This PR added patch module for vllm 1. platform patch: the patch will be registered when load the platform 2. worker patch: the patch will be registered when worker is started. The detail is: 1. patch_common: patch for main and 0.8.4 version 4. patch_main: patch for main verison 5. patch_0_8_4: patch for 0.8.4 version
This commit is contained in:
@@ -18,6 +18,10 @@
|
||||
|
||||
def register():
|
||||
"""Register the NPU platform."""
|
||||
# Adapt the global patch here.
|
||||
from vllm_ascend.utils import adapt_patch
|
||||
adapt_patch(is_global_patch=True)
|
||||
|
||||
return "vllm_ascend.platform.NPUPlatform"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user