bert_nli icon indicating copy to clipboard operation
bert_nli copied to clipboard

correct model selection conditions

Open zpyuan6 opened this issue 1 year ago • 0 comments

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.

zpyuan6 avatar Feb 04 '24 19:02 zpyuan6