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

Add negatives in CachedGISTEmbedLoss #2946

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

daegonYu
Copy link

Many papers train with multiple negatives. Also, MultipleNegativesRankingLoss allows multiple negatives. However, GISTEmbedLoss can currently only train with one negative. Therefore, to overcome this limitation, we modified it to train with multiple negatives. The currently modified code changes CachedGISTEmbedLoss.py to train with multiple negatives.

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 this pull request may close these issues.

1 participant