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

在310使用paddle推理时报错 #70878

Open
1257597709 opened this issue Jan 17, 2025 · 1 comment
Open

在310使用paddle推理时报错 #70878

1257597709 opened this issue Jan 17, 2025 · 1 comment
Assignees
Labels
heco Hardware Ecosystem status/new-issue 新建 type/bug-report 报bug

Comments

@1257597709
Copy link

bug描述 Describe the Bug

代码 import paddle时报错
报错信息如下:

I0117 15:13:29.754439 2468216 init.cc:237] ENV [CUSTOM_DEVICE_ROOT]=/home/maoxy/anaconda3/envs/paddle/lib/python3.10/site-packages/paddle_custom_device
I0117 15:13:29.754491 2468216 init.cc:146] Try loading custom device libs from: [/home/maoxy/anaconda3/envs/paddle/lib/python3.10/site-packages/paddle_custom_device]
Traceback (most recent call last):
  File "/home/maoxy/code/test_uie/evaluate.py", line 18, in <module>
    import paddle
  File "/home/maoxy/anaconda3/envs/paddle/lib/python3.10/site-packages/paddle/__init__.py", line 38, in <module>
    from .base import core  # noqa: F401
  File "/home/maoxy/anaconda3/envs/paddle/lib/python3.10/site-packages/paddle/base/__init__.py", line 204, in <module>
    __bootstrap__()
  File "/home/maoxy/anaconda3/envs/paddle/lib/python3.10/site-packages/paddle/base/__init__.py", line 196, in __bootstrap__
    core.init_devices()
ValueError: (InvalidArgument) Fail to open library: /home/maoxy/anaconda3/envs/paddle/lib/python3.10/site-packages/paddle_custom_device/libpaddle-custom-npu.so with error: libatb.so: cannot open shared object file: No such file or directory
  [Hint: dso_handle should not be null.] (at /paddle/paddle/fluid/platform/init.cc:153)

环境信息:

Image
python版本 3.10
paddle安装命令:

python -m pip install paddlepaddle -i https://www.paddlepaddle.org.cn/packages/nightly/cpu/
python -m pip install paddle-custom-npu -i https://www.paddlepaddle.org.cn/packages/nightly/npu/

其他补充信息 Additional Supplementary Information

参考历史issue[https://github.com//issues/65797],这个问题可通过source set_env.sh解决,请find当前环境atb/set_env.sh的路径,参考命令:source xxx/Ascend/mindie/latest/mindie-rt/mindie-atb/atb/set_env.sh。但我没有找到有set_env.sh这个文件,Ascend目录下仅有latest文件夹

@onecatcn onecatcn added the heco Hardware Ecosystem label Jan 20, 2025
@onecatcn
Copy link
Contributor

当前我们在NPU上的例行发版是基于910B,其他型号没有覆盖。
如果开发者希望探索在310上编译飞桨,欢迎在issue分享经验

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
heco Hardware Ecosystem status/new-issue 新建 type/bug-report 报bug
Projects
None yet
Development

No branches or pull requests

3 participants