cbert_aug icon indicating copy to clipboard operation
cbert_aug copied to clipboard

forward() got an unexpected keyword argument 'masked_lm_labels'

Open ysnt123 opened this issue 4 years ago • 2 comments

forward() got an unexpected keyword argument 'masked_lm_labels',do you know why's that?

ysnt123 avatar Feb 03 '21 08:02 ysnt123

属于transformers版本问题,安装一个较低版本的即可解决,如下 pip install transformers==2.1.1

yupeijei1997 avatar Apr 08 '21 07:04 yupeijei1997

simply change "masked_lm_labels" to "labels" in the latest version

wangcongcong123 avatar Dec 08 '21 18:12 wangcongcong123