bytedance / lightseq

LightSeq: A High Performance Library for Sequence Processing and Generation
Other
3.17k stars 328 forks source link

找不到 gpt.pb.h 文件 #229

Open zcuuu opened 2 years ago

zcuuu commented 2 years ago

运行 local_demo_gptlm demo 报错找不到 gpt.pb.h 文件

谢谢

Taka152 commented 2 years ago

It is generated by protobuf-compiler.

lilyzlt commented 2 years ago

can you introduct how to generated them? like gpt.pb.h ,bert.pb.h

lilyzlt commented 2 years ago

base on https://github.com/bytedance/lightseq/tree/master/lightseq/inference/triton_backend, I built dynamic link library ,after cmake,when I do make install, then cannot find bert.pb.h (env-3.8.8) [root@bedd035bb520 /data_dev/lightseq/lightseq/inference/triton_backend/build]# make install -j 10 Consolidate compiler generated dependencies of target triton-core-serverstub Consolidate compiler generated dependencies of target triton-common-table-printer Consolidate compiler generated dependencies of target triton-common-async-work-queue Consolidate compiler generated dependencies of target triton-common-error [ 10%] Built target kernel-library-new [ 20%] Built target triton-core-serverstub [ 30%] Built target triton-common-error [ 40%] Built target triton-common-table-printer [ 55%] Built target triton-common-async-work-queue Consolidate compiler generated dependencies of target triton-backend-utils [ 90%] Built target triton-backend-utils [ 95%] Building CXX object CMakeFiles/triton-minimal-backend.dir/src/lightseq_backend.cc.o In file included from /data_dev/lightseq/lightseq/inference/pywrapper/../model/bert_encoder.h:15:0, from /data_dev/lightseq/lightseq/inference/pywrapper/bert.h:3, from /data_dev/lightseq/lightseq/inference/triton_backend/src/triton_model.h:8, from /data_dev/lightseq/lightseq/inference/triton_backend/src/lightseq_backend.cc:9: /data_dev/lightseq/lightseq/inference/pywrapper/../model/../proto/bert_weight.h:16:10: fatal error: bert.pb.h: 没有那个文件或目录

include "bert.pb.h"

      ^~~~~~~~~~~

compilation terminated. make[2]: [CMakeFiles/triton-minimal-backend.dir/src/lightseq_backend.cc.o] 错误 1 make[1]: [CMakeFiles/triton-minimal-backend.dir/all] 错误 2 make: *** [all] 错误 2

lileilai commented 1 year ago

运行 local_demo_gptlm demo 报错找不到 gpt.pb.h 文件

谢谢

请问您解决这个问题了吗? 我是在编译的时候报错说找不到这个头文件

image