bytedance / lightseq

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

ModuleNotFoundError: No module named 'export' #315

Open pkuwudi opened 2 years ago

pkuwudi commented 2 years ago

运行bart模型导出的例子:https://github.com/bytedance/lightseq/blob/master/lightseq/inference/README.md python export/huggingface/hf_bart_export.py 报错: Traceback (most recent call last): File "huggingface/hf_bart_export.py", line 12, in from export.proto.transformer_pb2 import Transformer ModuleNotFoundError: No module named 'export' 为什么export/proto/transformer_pb2.py 这个文件不能import? 请问该如何解决。

Taka152 commented 2 years ago

Did you run this command?

cd examples/inference/python
pkuwudi commented 2 years ago

@Taka152 yes

Taka152 commented 2 years ago

Not sure about this. I can share some of my env.

I'll consider adding a docker image for this example.

clearwho commented 2 years ago

请问楼主解决了吗?遇到了相同的问题