mowanhu
mowanhu
我也有类似的问题,按照官方pip安装之后的版本是2.2.1,example里的hf_bart_export.py根本没办法运行,报错缺少各种依赖,对比了目前项目中master版本的代码,发现很多地方都不一致,请问您也是一样的吗
我把master里的源码重新复制了一份到自己环境的安装目录下就可以正常执行了,应该是安装版本和example里的代码版本没同步,你可以试一下
> 你好!感谢提供解决方案哈,但是,我这边试了一下,依然还是报原来的错误。我这边git clone了最新的lightseq代码,然后把相应的lightseq文件夹复制到了自己环境的安装目录下,代替了原来的lightseq文件夹,运行代码时依然出现了原来的错误,不知道是否在哪个地方出现了错误,望不吝赐教,谢谢! 祝: 一切顺利! > […](#) > ------------------ 原始邮件 ------------------ 发件人: "bytedance/lightseq" ***@***.***>; 发送时间: 2022年6月17日(星期五) 下午3:05 ***@***.***>; ***@***.******@***.***>; 主题: Re: [bytedance/lightseq] module "lightseq" has no attribute "training" (Issue #324) 我把master里的源码重新复制了一份到自己环境的安装目录下就可以正常执行了,应该是安装版本和example里的代码版本没同步,你可以试一下 — Reply to...
> The results of LightSeq Transformer model should include all the beam results. In the following line, you can print ls_res_ids directly to see the complete results. https://github.com/bytedance/lightseq/blob/master/examples/inference/python/test/ls_bart.py#L31 感谢韦神的回复!目前还是有点问题 我使用的环境版本:...
> thx, it works ! and where can I view the usage description of the `infer` function? ------------------------------------------- print(predict_output[1]) array([[-0.614843 , -0.7758462, -0.9982237, -1.038495 , -1.0539751,-1.3415337, -1.3432366, -1.4289901]], dtype=float32)) Is...