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

ValueError: Model 'BertForMaskedLMOptimized' is not supported by the scorer 'RegressionFinetuner'. #13

Open
pkuwudi opened this issue Jul 14, 2021 · 1 comment

Comments

@pkuwudi
Copy link

pkuwudi commented Jul 14, 2021

Hi there,
I'm using community model 'bert-base-chinese' from HuggingFace to finetune masked LMs and I get the following error:
ValueError:
Model 'BertForMaskedLMOptimized' is not supported by the scorer 'RegressionFinetuner'.

  • MLMScorer supports MXNet GluonNLP MLMs: ['bert-base-en-uncased', 'bert-base-en-cased', 'roberta-base-en-cased', 'bert-large-en-uncased', 'bert-large-en-cased', 'roberta-large-en-cased', 'bert-base-en-uncased-owt', 'bert-base-multi-uncased', 'bert-base-multi-cased']
  • LMScorer supports MXNet GluonNLP LMs: ['gpt2-117m-en-cased', 'gpt2-345m-en-cased']
  • MLMScorerPT supports PyTorch Transformers MLMs:
    • 'albert-*' (wrapped by AlbertForMaskedLMOptimized)
    • 'bert-*' (wrapped by BertForMaskedLMOptimized)
    • 'distilbert-*' (wrapped by DistilBertForMaskedLMOptimized)
    • 'xlm-*' (some variants require 'lang' parameter; XLM-R not supported)

What can I do to solve this issue?
Thanks!

@Helaly96
Copy link

Helaly96 commented Feb 9, 2022

did you ever figure it out ?

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

2 participants