lightseq icon indicating copy to clipboard operation
lightseq copied to clipboard

编译过程碰到的问题

Open lileilai opened this issue 2 years ago • 14 comments

按照编译的文档:https://github.com/bytedance/lightseq/blob/master/docs/inference/build.md 碰到了下面的问题,请问可以怎么解决? image

lileilai avatar Sep 27 '22 02:09 lileilai

There are no libcudadevrt.so and libcudart_static.so in your lib64 dir.

godweiyang avatar Sep 27 '22 02:09 godweiyang

There are no libcudadevrt.so and libcudart_static.so in your lib64 dir.

I am confused with the cuda version, according to the build.md,cuda version should be <11 and >=10.1。but,at the CmakeList.txt,it's required cuda11 image

lileilai avatar Sep 27 '22 02:09 lileilai

This document is out of date

There are no libcudadevrt.so and libcudart_static.so in your lib64 dir.

I am confused with the cuda version, according to the build.md,cuda version should be <11 and >=10.1。but,at the CmakeList.txt,it's required cuda11 image

hexisyztem avatar Sep 27 '22 08:09 hexisyztem

document

Thanks for your reply, i have build success and got a whl package as follows:

image

but, where i try to import T5/Bert/Bart in python, indicating there are no such modules:

image

lileilai avatar Sep 27 '22 08:09 lileilai

document

Thanks for your reply, i have build success and got a whl package as follows:

image

but, where i try to import T5/Bert/Bart in python, indicating there are no such modules:

image

How did you compile the whl package? I recommend you to use this command: " ENABLE_FP32=0 ENABLE_DEBUG=0 ENABLE_NEW_ARCH=0 python3 setup.py install"

hexisyztem avatar Sep 27 '22 08:09 hexisyztem

In addition, you can get the Bert model through lsi.Bert(...)

hexisyztem avatar Sep 27 '22 08:09 hexisyztem

You can find interface code in this file: https://github.com/bytedance/lightseq/blob/master/lightseq/inference/pywrapper/wrapper.cc#L919

hexisyztem avatar Sep 27 '22 08:09 hexisyztem

for example: import lightseq.inference as lsi model = lsi.Bert(model_file, max_batch_size)

In addition, you can get the Bert model through lsi.Bert(...)

hexisyztem avatar Sep 27 '22 08:09 hexisyztem

document

Thanks for your reply, i have build success and got a whl package as follows: image but, where i try to import T5/Bert/Bart in python, indicating there are no such modules: image

How did you compile the whl package? I recommend you to use this command: " ENABLE_FP32=0 ENABLE_DEBUG=0 ENABLE_NEW_ARCH=0 python3 setup.py install"

i got the wheel file by following:

image

and pip install **

lileilai avatar Sep 27 '22 08:09 lileilai

It looks like you did compile correctly, it's just the wrong way to call it

document

Thanks for your reply, i have build success and got a whl package as follows: image but, where i try to import T5/Bert/Bart in python, indicating there are no such modules: image

How did you compile the whl package? I recommend you to use this command: " ENABLE_FP32=0 ENABLE_DEBUG=0 ENABLE_NEW_ARCH=0 python3 setup.py install"

i got the wheel file by following:

image

and pip install **

hexisyztem avatar Sep 27 '22 08:09 hexisyztem

for example: import lightseq.inference as lsi model = lsi.Bert(model_file, max_batch_size)

In addition, you can get the Bert model through lsi.Bert(...)

i have try this way, but it said "module not found"

image

lileilai avatar Sep 27 '22 08:09 lileilai

i try to check the compile process, my cuda version is 11.6, and i can not build lightseq program with the script "sh build.sh", and the error as follows:

image

Then , i switch the cuda version to cuda-10.2, and error as following:

image

lileilai avatar Sep 27 '22 11:09 lileilai

You could check if you install cudatoolkit-dev correctly with nvcc, cublas, etc.

Taka152 avatar Sep 29 '22 08:09 Taka152

I meet the same problem. And I wonder have you solve it now?

Fizzmy avatar Oct 18 '22 14:10 Fizzmy