You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And it does work. But I haven't done any robust testing to see if its producing meaningful results... Before I go down this path, is this valid? Can I pull in any of these models on huggingface? I do get this warning when instantiating the model:
No sentence-transformers model found with name ~/.cache/torch/sentence_transformers/microsoft_biogpt. Creating a new one with MEAN pooling.
Some weights of the model checkpoint at ~/.cache/torch/sentence_transformers/microsoft_biogpt were not used when initializing BioGptModel: ['output_projection.weight']
- This IS expected if you are initializing BioGptModel from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model).
- This IS NOT expected if you are initializing BioGptModel from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model).
But it seems like I fall in the is expected camp since I am instantiating a SentenceTransformer from a BertForPreTraining (I think). Is this correct?
The text was updated successfully, but these errors were encountered:
Yes you can pull a HF model for sentence similarity task.
and also yes, it is expected, since you are not initialising a sentence-transformers model but rather a BioGptModel, which has no config for sbert, as for now, thus SentenceTransformer creates a Mean Pooling model on top of the transformer model.
Am I able to pull in Microsofts new BioGPT model from huggingface for sentence similarity tasks?
I've run the following:
And it does work. But I haven't done any robust testing to see if its producing meaningful results... Before I go down this path, is this valid? Can I pull in any of these models on huggingface? I do get this warning when instantiating the model:
But it seems like I fall in the is expected camp since I am instantiating a
SentenceTransformer
from aBertForPreTraining
(I think). Is this correct?The text was updated successfully, but these errors were encountered: