首页 PaddleNLP 帖子详情
Ernie-large模型MKLDNN库报错
收藏
快速回复
PaddleNLP 问答NLP 1179 5
Ernie-large模型MKLDNN库报错
收藏
快速回复
PaddleNLP 问答NLP 1179 5
  • PaddlePaddle版本:develop
    commit id:
    屏幕快照 2019-10-28 16 10 23

  • CPU型号: Intel(R) Xeon(R) Gold 6148 CPU

  • 使用Docker镜像:hub.baidubce.com/paddlepaddle/paddle:latest-dev

  • 模型信息
    模型:Ernie-large

  • 错误信息:
    打开MKLDNN库,报错。
    关掉MKLDNN库,错误消失。

  • 错误详细信息:

70ecb5ee1c2a3b8ce1edb3798508143e

复现步骤:

/benchmark/Inference/c++/ernie/路径下:
mkdir build
cd build
cmake -DUSE_GPU=OFF -DPADDLE_ROOT=XXX ..
make

0
收藏
回复
全部评论(5)
时间顺序
AIStudio785465
#2 回复于2019-10
  1. 1.6版本MKLDNN还会出同样问题么?
  2. MKL版本会报错么?
0
回复
AIStudio786089
#3 回复于2019-10
  1. 已用最新develop分支,commit ID已更新
  2. MKL版本不会报错。
0
回复
AIStudio786090
#4 回复于2019-11
@GaoWei8

Hi! I confirmed that it is because elementwise_mul_op.cc did not support 3 -dimension format ncw.
I add this 3-dimension support and drop to naive version. After that, the performance with bs_test_10 can run successfully but slow. Do you have any reference performance?
As it is slow, we are considering not dropping to naive version but:

  1. use MKL-DNN binary primitive
  2. if that does not work, properly will be jit.

Please if possible provide reference latency ( or performance). Thank you!

I confirmed that it is because elementwise_mul_op.cc did not support 3 -dimension format ncw.

Is elementwise_mul_op.cc or elementwise_mul_mkldnn_op.cc?

As it is slow, we are considering not dropping to naive version but:

Maybe you could add this 3-dimension support for mkldnn at first.

Sorry elementwise_mul_mkldnn_op.cc did not support 3-dimension format. In the #20965 I drop to naive version. We are also working on mkldnn support now.

0
回复
AIStudio786089
#5 回复于2019-11
@lidanqing-intel


Hi, In general, we don’t want performance degradation.
We only have the performance with closing mkldnn.
What is the setting getting performance (1000 ms/sample)? Is mkldnn open and what is the thread number?

0
回复
AIStudio785465
#6 回复于2019-11

I confirmed that it is because elementwise_mul_op.cc did not support 3 -dimension format ncw.

Is elementwise_mul_op.cc or elementwise_mul_mkldnn_op.cc?

As it is slow, we are considering not dropping to naive version but:

Maybe you could add this 3-dimension support for mkldnn at first.

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户