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

Support multiple MASK tokens in LM inspector #63

Open
jowagner opened this issue Mar 31, 2021 · 0 comments
Open

Support multiple MASK tokens in LM inspector #63

jowagner opened this issue Mar 31, 2021 · 0 comments
Labels
enhancement New feature or request project Suitable for a student or intern project

Comments

@jowagner
Copy link
Collaborator

jowagner commented Mar 31, 2021

inspect_lm_huggingface.py now has an option to repeat [MASK] tokens but this doesn't work due to huggingface/transformers#3609

We could implement our own solution using AutoModelWithLMHead, following suggestions in my comment in the above transformer issue, or implement a solution inside the transformer library and make a PR.

Also look at FitBERT, SpanBERT and other tools that may already have implemented this.

Meng et al. 2022 Rewire-then-Probe: A Contrastive Recipe for Probing Biomedical Knowledge of Pre-trained Language Models propose a workaround for obtaining multi-token answers from BERT.

Edit:

@jowagner jowagner added the enhancement New feature or request label Mar 31, 2021
@jowagner jowagner added the project Suitable for a student or intern project label May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request project Suitable for a student or intern project
Projects
None yet
Development

No branches or pull requests

1 participant