Skip to content

fix: cache HF embedding model at class level to prevent repeated GPU loads per paper#7

Merged
aritraroy24 merged 1 commit into
slimeslab:mainfrom
aritraroy24:main
Jun 24, 2026
Merged

fix: cache HF embedding model at class level to prevent repeated GPU loads per paper#7
aritraroy24 merged 1 commit into
slimeslab:mainfrom
aritraroy24:main

Conversation

@aritraroy24

@aritraroy24 aritraroy24 commented Jun 24, 2026

Copy link
Copy Markdown
Member

Fixes #6. It also fixes #1, which most likely resulted from the OOM issue.

@aritraroy24 aritraroy24 merged commit 20e3513 into slimeslab:main Jun 24, 2026
3 checks passed
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 77.41935% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/comproscanner/utils/database_manager.py 50.00% 6 Missing ⚠️
src/comproscanner/utils/embeddings.py 94.73% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants