fastnlp / fastNLP

fastNLP: A Modularized and Extensible NLP Framework. Currently still in incubation.
https://gitee.com/fastnlp/fastNLP
Apache License 2.0
3.05k stars 451 forks source link

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

Open Liumengqiu01 opened 1 year ago

Liumengqiu01 commented 1 year ago

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

yhcc commented 1 year ago

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