add vxpu
This commit is contained in:
@@ -28,6 +28,15 @@ def _custom_import(module_name, globals=None, locals=None, fromlist=(), level=0)
|
||||
module = importlib.import_module(target_module)
|
||||
sys.modules[module_name] = module
|
||||
sys.modules[target_module] = module
|
||||
|
||||
patch_modules = {
|
||||
"vllm.v1.engine.core": "vllm_kunlun.patch.platform.patch_core",
|
||||
"vllm.executor.executor_base": "vllm_kunlun.patch.platform.patch_executor",
|
||||
}
|
||||
|
||||
if module_name in patch_modules:
|
||||
importlib.import_module(patch_modules[module_name])
|
||||
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user