Skip to content

Non Cosine-Sim Similarity functions for Sentence Transformer models are broken in v2.0.0 #1731

@orionw

Description

@orionw

I tested using model facebook/contriever-msmarco (which should use dot) and dataset InstructIR (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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions