Skip to content

Fix the device error when using ray as vllm-acend backend #1234

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 17, 2025

Conversation

zhuo97
Copy link
Contributor

@zhuo97 zhuo97 commented Jun 16, 2025

  1. Remove RAY_EXPERIMENTAL_NOSET_ASCEND_RT_VISIBLE_DEVICES
  2. Add lazy init for vllm_ascend_C

@MengqingCao
Copy link
Collaborator

LGTM, JFYI, this is a backport of #884

…or vllm_ascend_C

Signed-off-by: zhuo97 <1103045176@qq.com>
else:
try:
# register custom ops into torch_library here
import vllm_ascend.vllm_ascend_C # type: ignore # noqa: F401
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The import of vllm_ascend_C seems more than this place, can you locate them and wrap them too?

@ganyi1996ppo ganyi1996ppo merged commit f6d033b into vllm-project:v0.9.1-dev Jun 17, 2025
23 checks passed
yiz-liu pushed a commit to yiz-liu/vllm-ascend that referenced this pull request Jun 17, 2025
…ct#1234)

1. Remove RAY_EXPERIMENTAL_NOSET_ASCEND_RT_VISIBLE_DEVICES
2. Add lazy init for vllm_ascend_C

Signed-off-by: zhuo97 <1103045176@qq.com>
Signed-off-by: Yizhou Liu <liu_yizhou@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants