关于AttributeError: module 'transformers' has no attribute 'WarmupLinearSchedule' 错误问题
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200328112236182.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80MjI5NjcwNQ==,size_16,color_FFFFFF,t_70)
1.刚开始查资料,以为是版本不够新,比较老的缘故:结果一查版本,是最新版本2.6.0
2.于是我想着降降版本,结果试了几次都不行(没试对版本,o(╥﹏╥)o)
3.百度不行,百度出的结果没啥好的办法,于是就谷歌吧。于是看到了问题的解决方法:
原文链接: AttributeError: module ‘transformers’ has no attribute ‘WarmupLinearSchedule’.
解决方法为把transformers版本降为2.1.1,问题解决