Skip to content

torch_npu2.7.1 和CANN 8.3.RC1不兼容 #99

@ljljkatakuli

Description

@ljljkatakuli

按照readme安装了2.7.1版本的torch_npu和CANN 8.3.RC1,在执行时报错
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.11/site-packages/torch_npu/op_plugin/atb/_atb_ops.py", line 66, in
torch.ops.load_library(atb_so_path)
File "/usr/local/python3/lib/python3.11/site-packages/torch/_ops.py", line 1392, in load_library
ctypes.CDLL(path)
File "/usr/local/python3/lib/python3.11/ctypes/init.py", line 376, in init
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: /home/mtp/Ascend/nnal/atb/latest/atb/cxx_abi_1/lib/libtbe_adapter.so: undefined symbol: _ZN3Mki2DlC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/local/python3/lib/python3.11/site-packages/vllm/v1/executor/multiproc_executor.py", line 571, in worker_main
worker = WorkerProc(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/python3/lib/python3.11/site-packages/vllm/v1/executor/multiproc_executor.py", line 405, in init
wrapper.init_worker(all_kwargs)
File "/usr/local/python3/lib/python3.11/site-packages/vllm/worker/worker_base.py", line 248, in init_worker
self.worker = worker_class(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/python3/lib/python3.11/site-packages/vllm_ascend/worker/worker_v1.py", line 88, in init
_register_atb_extensions()
File "/usr/local/python3/lib/python3.11/site-packages/torch_npu/op_plugin/atb/_atb_ops.py", line 86, in _register_atb_extensions
raise NNAL_EX from GLOBAL_E
File "/usr/local/python3/lib/python3.11/site-packages/torch_npu/op_plugin/atb/_atb_ops.py", line 66, in
torch.ops.load_library(atb_so_path)
File "/usr/local/python3/lib/python3.11/site-packages/torch/_ops.py", line 1392, in load_library
ctypes.CDLL(path)
File "/usr/local/python3/lib/python3.11/ctypes/init.py", line 376, in init
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno None] Please check the version of the NNAL package. An undefined symbol was found, which may be caused by a version mismatch between NNAL and torch_npu.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions