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

Cache embeddings #175

Open
djaym7 opened this issue Dec 28, 2023 · 2 comments
Open

Cache embeddings #175

djaym7 opened this issue Dec 28, 2023 · 2 comments

Comments

@djaym7
Copy link

djaym7 commented Dec 28, 2023

I'm trying to use bertscore to retrive top N similar docs, is there a a way to cache the embeddings for N docs ?

@djaym7
Copy link
Author

djaym7 commented Dec 28, 2023

@Tiiiger

@djaym7
Copy link
Author

djaym7 commented Dec 29, 2023

I'm using this temp solution for now : https://github.com/djaym7/bert_score_with_cache/tree/master

avg times for 7 runs: 13s without cache and 7s with using cache

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

No branches or pull requests

1 participant