-
Notifications
You must be signed in to change notification settings - Fork 298
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
Non Cosine-Sim Similarity functions for Sentence Transformer models are broken in v2.0.0 #1731
Comments
Default similarity function is stored in |
Ah, awesome @Samoed! But this is probably a newer update for ST then. I don't see that in contriever-msmarco's files. So then I guess this issue is for older models where that isn't defined and is only defined in the model_meta. |
We need to add the model meta for this model with a wrapper that uses the dot function. From what I found when adding a similar function, all models used cosine similarity, but I might be wrong. |
The model meta says dot - I don't think I know the wrapper you are talking about though. It does seem to be the only dot model in the file though! |
I'll add wrapper for this |
I think this can be closed for now, because issue was fixed for now |
I tested using model
facebook/contriever-msmarco
(which should usedot
) and datasetInstructIR
(but TBH any dataset works).If you stick a breakpoint in the sim function after this line you can check, it is always cos_sim. This might be because the SentenceTransformer models are only defined via ModelMeta and the default sim function is not stored in ST (AFAIK).
The text was updated successfully, but these errors were encountered: