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

correct model selection conditions #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zpyuan6
Copy link

@zpyuan6 zpyuan6 commented Feb 4, 2024

Hi, here is minor correction for the model selection between BERT and ALBERT in the model class.

In the previous code, when the model type was entered as "albert-base-v2" or "albert-large-v2", the method would load the corresponding BERT model instead of ALBERT since "bert-base" exists in the "albert-base-v2".

This may explain why the reported ALBERT performance is so close to BERT.

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

Successfully merging this pull request may close these issues.

1 participant