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

forward() got an unexpected keyword argument 'masked_lm_labels' #11

Open
ysnt123 opened this issue Feb 3, 2021 · 2 comments
Open

forward() got an unexpected keyword argument 'masked_lm_labels' #11

ysnt123 opened this issue Feb 3, 2021 · 2 comments

Comments

@ysnt123
Copy link

ysnt123 commented Feb 3, 2021

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

@yupeijei1997
Copy link

yupeijei1997 commented Apr 8, 2021

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

@wangcongcong123
Copy link

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

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

3 participants