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

Fix error at UPR and Colbert Reranker on GPU #424

Merged
merged 4 commits into from
May 11, 2024
Merged

Fix error at UPR and Colbert Reranker on GPU #424

merged 4 commits into from
May 11, 2024

Conversation

vkehfdl1
Copy link
Contributor

close #407

the with torch.no_grad(): was missing.
I added it.

Plus, calculate cosine similarity after colbert embedding is pretty slow.
So, change code to use numpy for calculating cosine similarity.

I tested UPR & Colbert at H100 instance.
Plus, the colbert score did not change at all. Worked perfectly.

@vkehfdl1 vkehfdl1 requested a review from bwook00 May 10, 2024 09:12
Copy link
Contributor

@bwook00 bwook00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vkehfdl1 vkehfdl1 merged commit 3cd9efd into main May 11, 2024
4 checks passed
@vkehfdl1 vkehfdl1 deleted the Feature/#407 branch May 11, 2024 02:22
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.

Colbert Reranker too many VRAM on H100 instance
2 participants