Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module "lightseq" has no attribute "training" #324

Open
princelisjtu opened this issue Jun 16, 2022 · 9 comments
Open

module "lightseq" has no attribute "training" #324

princelisjtu opened this issue Jun 16, 2022 · 9 comments

Comments

@princelisjtu
Copy link

按照官方给定的方式安装后,在cd到相应的路径下,运行native_fs_transformer_export.py文件,会出现No module named 'export'的错误,通过ln -s软链接方式解决后,后续会报错module "lightseq" has no attribute "training" .

@MowanHu
Copy link

MowanHu commented Jun 17, 2022

我也有类似的问题,按照官方pip安装之后的版本是2.2.1,example里的hf_bart_export.py根本没办法运行,报错缺少各种依赖,对比了目前项目中master版本的代码,发现很多地方都不一致,请问您也是一样的吗

@princelisjtu
Copy link
Author

是的,也是同样的问题。

@MowanHu
Copy link

MowanHu commented Jun 17, 2022

我把master里的源码重新复制了一份到自己环境的安装目录下就可以正常执行了,应该是安装版本和example里的代码版本没同步,你可以试一下

@princelisjtu
Copy link
Author

princelisjtu commented Jun 20, 2022 via email

@Taka152
Copy link
Contributor

Taka152 commented Jun 20, 2022

You can checkout the release tag to run the examples. Master may be not compatible with pypi latest version.

@MowanHu
Copy link

MowanHu commented Jun 20, 2022

你好!感谢提供解决方案哈,但是,我这边试了一下,依然还是报原来的错误。我这边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 this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

我就是直接copy到自己环境的安装目录下就可以了,你可以再看下那个__init__.py那个文件里内容的和master里一致吗,我上周应该就只改了这两个地方,过了几天有点记不清楚了😥

@princelisjtu
Copy link
Author

好的,我看一下,谢谢!

@hanguangmic
Copy link

大佬 同样的问题有解决么

@princelisjtu
Copy link
Author

princelisjtu commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants