Skip to content
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

[Usage]: #262

Open
h7878778h opened this issue Mar 7, 2025 · 2 comments
Open

[Usage]: #262

h7878778h opened this issue Mar 7, 2025 · 2 comments

Comments

@h7878778h
Copy link

Your current environment

The output of above commands

How would you like to use vllm on ascend

I refer to this guide: https://vllm-ascend.readthedocs.io/en/latest/quick_start.html

I have pulled Image: quay.io/ascend/vllm-ascend:v0.7.1rc1
run this image on Ascend environment:

Image

run command: vllm serve {model_path}
got an error:

   ...
   raise RuntimeError("Failed to infer device type")
   RuntimeError: Failed to infer device type

I look at vllm source code, it seems that NPU is not supported?

Image

How can I fix this problem?

@wangxiyuan
Copy link
Collaborator

can you try the command in python to see if there is any error?

import torch
import torch_npu

@h7878778h
Copy link
Author

got another error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/python3.10/lib/python3.10/site-packages/torch_npu/__init__.py", line 19, in <module>
    from torch_npu.utils._error_code import ErrCode, pta_error
  File "/usr/local/python3.10/lib/python3.10/site-packages/torch_npu/utils/__init__.py", line 1, in <module>
    from torch_npu import _C
ImportError: libhccl.so: cannot open shared object file: No such file or directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants