bytedance / lightseq

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

运行example中的ls_bert.py,报lsi.Bert报错 #350

Open yechong316 opened 2 years ago

yechong316 commented 2 years ago

问题报错 initializing bert tokenizer... creating huggingface model... Some weights of the model checkpoint at bert-base-uncased were not used when initializing BertForSequenceClassification: ['cls.predictions.bias', 'cls.predictions.transform.LayerNorm.bias', 'cls.seq_relationship.bias', 'cls.predictions.transform.dense.bias', 'cls.seq_relationship.weight', 'cls.predictions.transform.LayerNorm.weight', 'cls.predictions.transform.dense.weight', 'cls.predictions.decoder.weight']

Process finished with exit code 1

问题复现: 直接运行example中的ls_bert.py报错 从 clone下来的文件夹和在另外独立的文件夹都有这个错误

zjersey commented 2 years ago

The inference module only works on Linux.

hurun commented 2 years ago

https://github.com/bytedance/lightseq/issues/148

使用pip install lightseq