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

Question: Does AutoModelForSequenceClassification work directly for SimCSE model #1781

Open
vitthal-bhandari opened this issue Dec 4, 2022 · 0 comments

Comments

@vitthal-bhandari
Copy link

I have trained a model using @nreimers unsupervised implementation of SimCSE and saved it to the hub.

Now I wish to fine-tune the model on a particular dataset and get predictions.

I follow the implementation specified by Lewis Tunstall in his book -

  1. Use AutoTokenizer to get the tokenizer
  2. Use AutoModelForSequenceClassification to get the model from the hub
  3. Fine-tune it using a Trainer object instance

Question: In the model card for your implementation, you use pooling after getting embeddings using AutoModel.

However, if I have to use the model as a black box using AutoModelForSequenceClassification, can I use it directly, or do I have to manually pool the outputs somewhere as with using AutoModel?

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