Skip to content

Commit 61a0019

Browse files
committed
Add comments and pass
Signed-off-by: gcanlin <[email protected]>
1 parent c556df3 commit 61a0019

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

vllm_ascend/platform.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,13 @@ def check_and_update_config(cls, vllm_config: VllmConfig) -> None:
418418

419419
@classmethod
420420
def import_kernels(cls) -> None:
421-
from vllm_ascend.utils import enable_custom_op
422-
enable_custom_op()
421+
# Directly importing vllm_ascend_C prevents ASCEND_RT_VISIBLE_DEVICES
422+
# from being applied during runtime initialization, which causes bugs
423+
# in the RL module. See https://github.com/vllm-project/vllm-ascend/pull/884.
424+
# TODO: when the above issue is fixed, we can uncomment the following lines.
425+
# from vllm_ascend.utils import enable_custom_op
426+
# enable_custom_op()
427+
pass
423428

424429
@classmethod
425430
def get_attn_backend_cls(

0 commit comments

Comments
 (0)