Bert-Chinese-Text-Classification-Pytorch
Bert-Chinese-Text-Classification-Pytorch copied to clipboard
Remove the old version of *transformers* and use the new version
Use the newest transformers package to replace the old one included in the repository.
仓库里面那个老版的transformers可以删掉了,修改成了直接依赖最新版的。:) 这样也方便后续进行修改,那个老版本内部还有很多error没有处理,是个非常原始的版本,很不适合扩展。
给老哥赞一个!我也在自己改这个
但看AdamW那里得改一下吧 adamW里没有warmup和后面那个param
但看AdamW那里得改一下吧 adamW里没有warmup和后面那个param
这个后面按需要自己改就好啦,主要是他原先用的内置的包版本太老,改动太不方便了。 Optimizer想用哪个弄一个进去就完事了