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

Pooler type of pretrained models? #3

Open
juliusc opened this issue Sep 19, 2023 · 0 comments
Open

Pooler type of pretrained models? #3

juliusc opened this issue Sep 19, 2023 · 0 comments

Comments

@juliusc
Copy link

juliusc commented Sep 19, 2023

I'm trying to use the pretrained mSimCSE models, and I see that in the evaluate_*.py files, the default pooler is cls_before_pooler. I also see that when loading xlm-roberta-large-cross_all with AutoModel, the weights in the model's pooler are uninitialized (they are randomized every time I load). All of this suggests that pooler layer is unused.

However, in the train_*.sh files, pooler_type is set to cls, suggesting that these models were trained with a pooling layer. Can you clear up whether the downloadable pretrained models were trained with a pooling layer and confirm whether the provided evaluation scripts are correct?

Thanks!

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

1 participant