PaddleNLP icon indicating copy to clipboard operation
PaddleNLP copied to clipboard

model_zoo/uie定制训练出现错误AttributeError: 'DataLoader' object has no attribute 'prefetch_factor'

Open 1689665417 opened this issue 3 years ago • 7 comments
trafficstars

环境如下:Ubuntu 180.4 python3.6.10 image image image 错误提示如下: image

请帮忙看看,谢谢。

1689665417 avatar Jul 09 '22 08:07 1689665417

pip install paddlenlp --upgrade 需要安装最新的 paddlenlp 版本

ZHUI avatar Jul 10 '22 07:07 ZHUI

你好,问题可以解决了吗?

ZHUI avatar Jul 11 '22 02:07 ZHUI

昨天试着paddlepaddle-gpu和paddlenlp版本退回到2.3.0,同时取消onnx相关三个依赖的安装,得到解决。你说的方式暂时没有尝试。

1689665417 avatar Jul 11 '22 02:07 1689665417

不清楚在保持paddlepaddle-gpu和paddlenlp版本是2.3.1的情况下,取消onnx三个依赖,能否成功。 可能是onnx加速依赖的问题上,pip 一直无法正常安装onnx,随后使用 conda install -c conda-forge numpy protobuf==3.16.0 libprotobuf=3.16.0 conda install -c conda-forge onnx 完成安装,但是运行时得到上述错误。

由于不太清楚哪里出现问题,暂用2.3.0 版本,取消onnx相关三个依赖,解决此问题。

1689665417 avatar Jul 11 '22 02:07 1689665417

这个错误是已知的,跟 onnx 关系不大。 升级 paddlenlp 或者 降级 paddle版本,都可以解决 DataLoader 报错。

onnx 安装还有问题吗?

ZHUI avatar Jul 11 '22 03:07 ZHUI

使用conda 可以安装成功。

1689665417 avatar Jul 11 '22 04:07 1689665417

升级paddle解决了这个问题 pip install paddlenlp --upgrade

GYuanchengxu avatar Aug 10 '22 07:08 GYuanchengxu

This issue is stale because it has been open for 60 days with no activity. 当前issue 60天内无活动,被标记为stale。

github-actions[bot] avatar Dec 08 '22 13:12 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale. 当前issue 被标记为stale已有14天,即将关闭。

github-actions[bot] avatar Dec 22 '22 16:12 github-actions[bot]