There was an error while loading. Please reload this page.
1 parent 79396bd commit 6ffa703Copy full SHA for 6ffa703
1 file changed
vllm_fl/__init__.py
@@ -94,10 +94,17 @@ def _patch_custom_ops():
94
register_op_schemas()
95
96
97
+def _init_vendor_device():
98
+ """Vendor-specific device initialization patches."""
99
+ from vllm_fl.utils import DeviceInfo
100
+ if DeviceInfo().vendor_name == "kunlunxin":
101
+ from vllm_fl.dispatch.backends.vendor.kunlunxin.patches.patch_fla_utils import _patch_xpu_get_device
102
+ _patch_xpu_get_device()
103
+
104
105
def register():
106
"""Register the FL platform."""
- from vllm_fl.dispatch.backends.vendor.kunlunxin.patches.patch_fla_utils import _patch_xpu_get_device
- _patch_xpu_get_device()
107
+ _init_vendor_device()
108
109
_patch_custom_ops()
110
_patch_flash_attn_import()
0 commit comments