lightseq icon indicating copy to clipboard operation
lightseq copied to clipboard

FP32模式下通过源码编译安装问题

Open zejunwang1 opened this issue 3 years ago • 2 comments

根据 https://github.com/bytedance/lightseq/blob/master/docs/inference/build.md 中的步骤在 FP32 模式下成功编译, 安装 python 版 lightseq 时报错:

import lightseq.inference Traceback (most recent call last): File "", line 1, in ImportError: /home/wangzejun/nlp-tools/transformer_tools/lightseq-master/lightseq/inference.cpython-37m-x86_64-linux-gnu.so: undefined symbol: fatbinData

请问一下有解决办法吗?

zejunwang1 avatar Mar 01 '22 05:03 zejunwang1

Thanks for your feedback, you could try building from tag v2.2.0. The latest build of master may be unstable.

Taka152 avatar Mar 01 '22 10:03 Taka152

Thanks for your feedback, you could try building from tag v2.2.0. The latest build of master may be unstable.

Thanks. I have solved this problem by building with different versions of the source. In FP32 mode, bert inference time usage as follows:


totally processing 1000 sentences lightseq inference time per sentence: 0.0032167024612426757s


about 3ms per sentence.

zejunwang1 avatar Mar 02 '22 00:03 zejunwang1