ERNIE icon indicating copy to clipboard operation
ERNIE copied to clipboard

ERNIE用CPU提取句向量速度较慢

Open zhangzhen8230 opened this issue 7 years ago • 3 comments

用ERNIE提取句向量的时候,一句话大概是0.7s的编码时间,没有用GPU,8核的mac跑的,请问下这个速度正常么? 我同样的配置,用bert-as-service 大概不到0.1s一句话

zhangzhen8230 avatar Jul 01 '19 07:07 zhangzhen8230

用ParallelExecutor替换Executor会快很多。

bipedalBit avatar Jul 03 '19 06:07 bipedalBit

我这边测的速度是短文本0.13s一句,但是这速度也满足不了需求,看cpu的利用率很低,我用的16核128G机器,Executor没有并行?看日志有检测到核数

Device count: 16
Total num examples: 6030686

treper avatar Aug 01 '19 06:08 treper

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Feel free to reopen it. Thank you for your contributions.

stale[bot] avatar May 21 '20 11:05 stale[bot]