Skip to content

30系列显卡,CUDA11环境,PaddleNLP加载模型报错 #373

Answered by BlueP0int
BlueP0int asked this question in Q&A
Discussion options

You must be logged in to vote

重新尝试了以下两种配置,终于可以用了!个人猜测问题核心在于安装paddlepaddle-gpu==2.0.2.post110,版本号post110不能少,之前用的清华源,找不到该版本,于是就改为paddlepaddle-gpu==2.0.2,结果运行不起来。现有配置可能存在多显卡并行不支持的问题(使用 python 或 python3 进入python解释器,输入import paddle ,再输入 paddle.utils.run_check() ,如果出现PaddlePaddle is installed successfully!,说明您已成功安装。),但单块卡总算是能跑通了,感谢各位的耐心支持!
以下方案二选一即可,其他安装请参考https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/install/conda/linux-conda.html
方案一:

conda create -n pd python=3.7 -y
conda activate pd
conda install cudatoolkit=11.0 -y
python -m pip install paddlepaddle-gpu==2.0.2.post110 -f https://paddlepaddle.org.cn/whl/mkl/stable.html
pip install --upgrade paddlenlp -i https://pypi.org/simple

方案二:
将以下代码保存为e…

Replies: 10 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ZeyuChen
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #348 on May 12, 2021 11:06.