paddleNLP 2.3.1 paddlepaddle2.2.2 RuntimeError: (PreconditionNotMet) The third-party dynamic library (libcublas.so) that Paddle depends on is not configured correctly. (error code is libcublas.so: cannot open shared object file: No such file or directory)
paddleNLP 2.3.1 paddlepaddle2.2.2 cuda11.0 RuntimeError: (PreconditionNotMet) The third-party dynamic library (libcublas.so) that Paddle depends on is not configured correctly. (error code is libcublas.so: cannot open shared object file: No such file or directory) Suggestions:
- Check if the third-party dynamic library (e.g. CUDA, CUDNN) is installed correctly and its version is matched with paddlepaddle you installed.
- Configure third-party dynamic library environment variables as follows:
- Linux: set LD_LIBRARY_PATH by
export LD_LIBRARY_PATH=... - Windows: set PATH by `set PATH=XXX; (at /paddle/paddle/fluid/platform/dynload/dynamic_loader.cc:285)
- 请 check 下安装的 paddle 对应的 cuda 版本是否为 cuda11.0 ?
- 可以参考这里配置动态库路径。
建议在一个新的conda环境里面,使用conda来安装paddle https://www.paddlepaddle.org.cn/

我用pytorch的时候不会出现问题,用的也是cuda11.0的环境 然后用locate查找后找不到cuda下的libcublas,只有一个man/man7/路径下的。 请问有没有什么解决办法
---Original--- From: @.> Date: Mon, Aug 8, 2022 10:26 AM To: @.>; Cc: @.@.>; Subject: Re: [PaddlePaddle/PaddleNLP] paddleNLP 2.3.1 paddlepaddle2.2.2RuntimeError: (PreconditionNotMet) The third-party dynamic library(libcublas.so) that Paddle depends on is not configured correctly. (error codeis libcublas.so: cannot open shared object file: No such file or directory)(Issue #2978)
请 check 下安装的 paddle 对应的 cuda 版本是否为 cuda11.0 ?
可以参考这里配置动态库路径。
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
我用pytorch的时候不会出现问题,用的也是cuda11.0的环境 然后用locate查找后找不到cuda下的libcublas,只有一个man/man7/路径下的。 请问有没有什么解决办法 … ---Original--- From: @.> Date: Mon, Aug 8, 2022 10:26 AM To: @.>; Cc: @.@.>; Subject: Re: [PaddlePaddle/PaddleNLP] paddleNLP 2.3.1 paddlepaddle2.2.2RuntimeError: (PreconditionNotMet) The third-party dynamic library(libcublas.so) that Paddle depends on is not configured correctly. (error codeis libcublas.so: cannot open shared object file: No such file or directory)(Issue #2978) 请 check 下安装的 paddle 对应的 cuda 版本是否为 cuda11.0 ? 可以参考这里配置动态库路径。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
建议conda安装一下环境
我尝试过用conda装2.0.2的,还是出现了一样的错误
---Original--- From: @.> Date: Mon, Aug 8, 2022 10:32 AM To: @.>; Cc: @.@.>; Subject: Re: [PaddlePaddle/PaddleNLP] paddleNLP 2.3.1 paddlepaddle2.2.2RuntimeError: (PreconditionNotMet) The third-party dynamic library(libcublas.so) that Paddle depends on is not configured correctly. (error codeis libcublas.so: cannot open shared object file: No such file or directory)(Issue #2978)
建议在一个新的conda环境里面,使用conda来安装paddle https://www.paddlepaddle.org.cn/
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
我尝试过用conda装2.0.2的,还是出现了一样的错误 … ---Original--- From: @.> Date: Mon, Aug 8, 2022 10:32 AM To: @.>; Cc: @.@.>; Subject: Re: [PaddlePaddle/PaddleNLP] paddleNLP 2.3.1 paddlepaddle2.2.2RuntimeError: (PreconditionNotMet) The third-party dynamic library(libcublas.so) that Paddle depends on is not configured correctly. (error codeis libcublas.so: cannot open shared object file: No such file or directory)(Issue #2978) 建议在一个新的conda环境里面,使用conda来安装paddle https://www.paddlepaddle.org.cn/ — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
是说paddle的版本是2.0.2?
是的,用conda装的2.0.2,因为2.3.1好像没有11.0的conda安装方法
---Original--- From: @.> Date: Mon, Aug 8, 2022 11:22 AM To: @.>; Cc: @.@.>; Subject: Re: [PaddlePaddle/PaddleNLP] paddleNLP 2.3.1 paddlepaddle2.2.2RuntimeError: (PreconditionNotMet) The third-party dynamic library(libcublas.so) that Paddle depends on is not configured correctly. (error codeis libcublas.so: cannot open shared object file: No such file or directory)(Issue #2978)
我尝试过用conda装2.0.2的,还是出现了一样的错误 … ---Original--- From: @.> Date: Mon, Aug 8, 2022 10:32 AM To: @.>; Cc: @.@.>; Subject: Re: [PaddlePaddle/PaddleNLP] paddleNLP 2.3.1 paddlepaddle2.2.2RuntimeError: (PreconditionNotMet) The third-party dynamic library(libcublas.so) that Paddle depends on is not configured correctly. (error codeis libcublas.so: cannot open shared object file: No such file or directory)(Issue #2978) 建议在一个新的conda环境里面,使用conda来安装paddle https://www.paddlepaddle.org.cn/ — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
是说paddle的版本是2.0.2?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
是的,用conda装的2.0.2,因为2.3.1好像没有11.0的conda安装方法 … ---Original--- From: @.> Date: Mon, Aug 8, 2022 11:22 AM To: @.>; Cc: @.@.>; Subject: Re: [PaddlePaddle/PaddleNLP] paddleNLP 2.3.1 paddlepaddle2.2.2RuntimeError: (PreconditionNotMet) The third-party dynamic library(libcublas.so) that Paddle depends on is not configured correctly. (error codeis libcublas.so: cannot open shared object file: No such file or directory)(Issue #2978) 我尝试过用conda装2.0.2的,还是出现了一样的错误 … ---Original--- From: @.> Date: Mon, Aug 8, 2022 10:32 AM To: @.>; Cc: @.@.>; Subject: Re: [PaddlePaddle/PaddleNLP] paddleNLP 2.3.1 paddlepaddle2.2.2RuntimeError: (PreconditionNotMet) The third-party dynamic library(libcublas.so) that Paddle depends on is not configured correctly. (error codeis libcublas.so: cannot open shared object file: No such file or directory)(Issue #2978) 建议在一个新的conda环境里面,使用conda来安装paddle https://www.paddlepaddle.org.cn/ — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.> 是说paddle的版本是2.0.2? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>
有新建一个conda环境吗? 同时2.3.1是可以conda安装的了

你好,我用2.3.1的conda安装会出现图片的错误,但是用对应pip安装方式可以正常安装 然后此时我的环境是cuda10.2,paddle2.3.1,用pip方式安装,还是出现了一样的问题
---Original--- From: @.> Date: Mon, Aug 8, 2022 11:26 AM To: @.>; Cc: @.@.>; Subject: Re: [PaddlePaddle/PaddleNLP] paddleNLP 2.3.1 paddlepaddle2.2.2RuntimeError: (PreconditionNotMet) The third-party dynamic library(libcublas.so) that Paddle depends on is not configured correctly. (error codeis libcublas.so: cannot open shared object file: No such file or directory)(Issue #2978)
是的,用conda装的2.0.2,因为2.3.1好像没有11.0的conda安装方法 … ---Original--- From: @.> Date: Mon, Aug 8, 2022 11:22 AM To: @.>; Cc: @.@.>; Subject: Re: [PaddlePaddle/PaddleNLP] paddleNLP 2.3.1 paddlepaddle2.2.2RuntimeError: (PreconditionNotMet) The third-party dynamic library(libcublas.so) that Paddle depends on is not configured correctly. (error codeis libcublas.so: cannot open shared object file: No such file or directory)(Issue #2978) 我尝试过用conda装2.0.2的,还是出现了一样的错误 … ---Original--- From: @.> Date: Mon, Aug 8, 2022 10:32 AM To: @.>; Cc: @.@.>; Subject: Re: [PaddlePaddle/PaddleNLP] paddleNLP 2.3.1 paddlepaddle2.2.2RuntimeError: (PreconditionNotMet) The third-party dynamic library(libcublas.so) that Paddle depends on is not configured correctly. (error codeis libcublas.so: cannot open shared object file: No such file or directory)(Issue #2978) 建议在一个新的conda环境里面,使用conda来安装paddle https://www.paddlepaddle.org.cn/ — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.> 是说paddle的版本是2.0.2? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>
有新建一个conda环境吗? 同时2.3.1是可以conda安装的了
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
cudnn装了吗?这是我的配置脚本
dpkg -i /cudnn-local-repo-ubuntu1804-8.4.1.50_1.0-1_amd64.deb
cd /var/cudnn-local-repo-ubuntu1804-8.4.1.50 && \
dpkg -i libcudnn8_8.4.1.50-1+cuda11.6_amd64.deb && \
dpkg -i libcudnn8-dev_8.4.1.50-1+cuda11.6_amd64.deb
cp /usr/include/cudnn.h /usr/local/cuda/include/
ln -s /usr/local/cuda/lib64/libcublas.so.11 /usr/local/cuda/lib64/libcublas.so
ln -s /usr/local/cuda/lib64/libcusolver.so.11 /usr/local/cuda/lib64/libcusolver.so
ln -s /usr/local/cuda/lib64/libcusparse.so.11 /usr/local/cuda/lib64/libcusparse.so
cudnn装了吗?这是我的配置脚本
dpkg -i /cudnn-local-repo-ubuntu1804-8.4.1.50_1.0-1_amd64.deb cd /var/cudnn-local-repo-ubuntu1804-8.4.1.50 && \ dpkg -i libcudnn8_8.4.1.50-1+cuda11.6_amd64.deb && \ dpkg -i libcudnn8-dev_8.4.1.50-1+cuda11.6_amd64.deb cp /usr/include/cudnn.h /usr/local/cuda/include/ ln -s /usr/local/cuda/lib64/libcublas.so.11 /usr/local/cuda/lib64/libcublas.so ln -s /usr/local/cuda/lib64/libcusolver.so.11 /usr/local/cuda/lib64/libcusolver.so ln -s /usr/local/cuda/lib64/libcusparse.so.11 /usr/local/cuda/lib64/libcusparse.so
如果实在安装GPU有问题的话,可以尝试使用docker来安装paddle的镜像,https://hub.docker.com/r/paddlepaddle/paddle/tags
你好,我使用paddlenlp的taskflow的信息抽取uie,使用自己训练的模型,放到类里面就会失效,会输出很多奇怪的答案,直接运行还是正常输出, 使用环境是paddlepaddle2.3.1 cpu和paddlenlp2.3.4 两张图分别是在类里面调用时的输出和在类外直接调用时的正常输出
---Original--- From: @.> Date: Wed, Aug 10, 2022 14:37 PM To: @.>; Cc: @.@.>; Subject: Re: [PaddlePaddle/PaddleNLP] paddleNLP 2.3.1 paddlepaddle2.2.2RuntimeError: (PreconditionNotMet) The third-party dynamic library(libcublas.so) that Paddle depends on is not configured correctly. (error codeis libcublas.so: cannot open shared object file: No such file or directory)(Issue #2978)
cudnn装了吗?这是我的配置脚本 dpkg -i /cudnn-local-repo-ubuntu1804-8.4.1.50_1.0-1_amd64.deb cd /var/cudnn-local-repo-ubuntu1804-8.4.1.50 && \ dpkg -i libcudnn8_8.4.1.50-1+cuda11.6_amd64.deb && \ dpkg -i libcudnn8-dev_8.4.1.50-1+cuda11.6_amd64.deb cp /usr/include/cudnn.h /usr/local/cuda/include/ ln -s /usr/local/cuda/lib64/libcublas.so.11 /usr/local/cuda/lib64/libcublas.so ln -s /usr/local/cuda/lib64/libcusolver.so.11 /usr/local/cuda/lib64/libcusolver.so ln -s /usr/local/cuda/lib64/libcusparse.so.11 /usr/local/cuda/lib64/libcusparse.so
如果实在安装GPU有问题的话,可以尝试使用docker来安装paddle的镜像,https://hub.docker.com/r/paddlepaddle/paddle/tags
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
你好,我使用paddlenlp的taskflow的信息抽取uie,使用自己训练的模型,放到类里面就会失效,会输出很多奇怪的答案,直接运行还是正常输出, 使用环境是paddlepaddle2.3.1 cpu和paddlenlp2.3.4 两张图分别是在类里面调用时的输出和在类外直接调用时的正常输出 … ---Original--- From: @.> Date: Wed, Aug 10, 2022 14:37 PM To: @.>; Cc: @.@.>; Subject: Re: [PaddlePaddle/PaddleNLP] paddleNLP 2.3.1 paddlepaddle2.2.2RuntimeError: (PreconditionNotMet) The third-party dynamic library(libcublas.so) that Paddle depends on is not configured correctly. (error codeis libcublas.so: cannot open shared object file: No such file or directory)(Issue #2978) cudnn装了吗?这是我的配置脚本 dpkg -i /cudnn-local-repo-ubuntu1804-8.4.1.50_1.0-1_amd64.deb cd /var/cudnn-local-repo-ubuntu1804-8.4.1.50 && \ dpkg -i libcudnn8_8.4.1.50-1+cuda11.6_amd64.deb && \ dpkg -i libcudnn8-dev_8.4.1.50-1+cuda11.6_amd64.deb cp /usr/include/cudnn.h /usr/local/cuda/include/ ln -s /usr/local/cuda/lib64/libcublas.so.11 /usr/local/cuda/lib64/libcublas.so ln -s /usr/local/cuda/lib64/libcusolver.so.11 /usr/local/cuda/lib64/libcusolver.so ln -s /usr/local/cuda/lib64/libcusparse.so.11 /usr/local/cuda/lib64/libcusparse.so 如果实在安装GPU有问题的话,可以尝试使用docker来安装paddle的镜像,https://hub.docker.com/r/paddlepaddle/paddle/tags — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
issue上没有您说的两张图片,可以贴一下图片和代码吗?
这里的conda安装可以安装cuda11.0的版本的paddle么
---Original--- From: @.> Date: Mon, Aug 8, 2022 11:26 AM To: @.>; Cc: @.@.>; Subject: Re: [PaddlePaddle/PaddleNLP] paddleNLP 2.3.1 paddlepaddle2.2.2RuntimeError: (PreconditionNotMet) The third-party dynamic library(libcublas.so) that Paddle depends on is not configured correctly. (error codeis libcublas.so: cannot open shared object file: No such file or directory)(Issue #2978)
是的,用conda装的2.0.2,因为2.3.1好像没有11.0的conda安装方法 … ---Original--- From: @.> Date: Mon, Aug 8, 2022 11:22 AM To: @.>; Cc: @.@.>; Subject: Re: [PaddlePaddle/PaddleNLP] paddleNLP 2.3.1 paddlepaddle2.2.2RuntimeError: (PreconditionNotMet) The third-party dynamic library(libcublas.so) that Paddle depends on is not configured correctly. (error codeis libcublas.so: cannot open shared object file: No such file or directory)(Issue #2978) 我尝试过用conda装2.0.2的,还是出现了一样的错误 … ---Original--- From: @.> Date: Mon, Aug 8, 2022 10:32 AM To: @.>; Cc: @.@.>; Subject: Re: [PaddlePaddle/PaddleNLP] paddleNLP 2.3.1 paddlepaddle2.2.2RuntimeError: (PreconditionNotMet) The third-party dynamic library(libcublas.so) that Paddle depends on is not configured correctly. (error codeis libcublas.so: cannot open shared object file: No such file or directory)(Issue #2978) 建议在一个新的conda环境里面,使用conda来安装paddle https://www.paddlepaddle.org.cn/ — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.> 是说paddle的版本是2.0.2? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>
有新建一个conda环境吗? 同时2.3.1是可以conda安装的了
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
This issue is stale because it has been open for 60 days with no activity. 当前issue 60天内无活动,被标记为stale。
This issue is stale because it has been open for 60 days with no activity. 当前issue 60天内无活动,被标记为stale。
This issue was closed because it has been inactive for 14 days since being marked as stale. 当前issue 被标记为stale已有14天,即将关闭。