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

ImportError: cannot import name 'Tester' from 'fastNLP' #429

Open
Liumengqiu01 opened this issue Nov 17, 2022 · 1 comment
Open

ImportError: cannot import name 'Tester' from 'fastNLP' #429

Liumengqiu01 opened this issue Nov 17, 2022 · 1 comment

Comments

@Liumengqiu01
Copy link

使用pip install fastNLP>=1.0.0alpha安装之后提示找不到Tester类是什么原因呢?

@yhcc
Copy link
Member

yhcc commented Nov 17, 2022

fastNLP的1.0.0以上版本已经没有Tester了,1.0.0版本由于新增了对不同深度学习框架的支持以及一行代码切换单卡、DPP运行等,我们对fastNLP进行了重新设计,之前的一些类已经不再使用了。如果你仍然需要使用老版本fastNLP的代码,请安装pip install fastNLP==0.7.0版本。不过我们仍然强烈建议你切换到1.0.0以上版本使用,这样你可以无缝切换单卡、DDP运行、断点运行等,在未来我们还会提供更多方便使用的功能。

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

2 participants