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

Deduplication integrated in CachedGISTEmbedLoss #3063

Open
yjoonjang opened this issue Nov 17, 2024 · 2 comments · May be fixed by #3074
Open

Deduplication integrated in CachedGISTEmbedLoss #3063

yjoonjang opened this issue Nov 17, 2024 · 2 comments · May be fixed by #3074

Comments

@yjoonjang
Copy link

Hello @tomaarsen , I'm a student who loves using sentence-transformers library.

While looking at the codes, I thought that deduplication could be integrated in CachedGISTEmbedLoss (or just GISTEmbedLoss) by revising the code from

ap_sim[guided_ap_sim > guided_sim] = -torch.inf
aa_sim[guided_aa_sim > guided_sim] = -torch.inf
pp_sim[guided_pp_sim > guided_sim] = -torch.inf

to

ap_sim[guided_ap_sim >= guided_sim] = -torch.inf
aa_sim[guided_aa_sim >= guided_sim] = -torch.inf
pp_sim[guided_pp_sim >= guided_sim] = -torch.inf

Just adding the equal sign. How do you think about this?

@tomaarsen
Copy link
Collaborator

cc @JINO-ROHIT

@JINO-ROHIT
Copy link
Contributor

Hi @yjoonjang @tomaarsen we are experimenting with the same in the issue #2756 , do have a look at my comments

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

Successfully merging a pull request may close this issue.

3 participants