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

Avoid unnecessary memory allocation for covariance downdate in SGPR prediction strategy #2559

Merged
merged 2 commits into from
Aug 7, 2024

Conversation

JonathanWenger
Copy link
Collaborator

Problem
Currently in the SGPR prediction strategy the downdate term in the predictive covariance (shape num_test x num_test) is constructed densely in memory causing unnecessary memory overhead.

Fix
Replaced the downdate term with a linear_operator.MatmulLinearOperator.

Copy link
Member

@jacobrgardner jacobrgardner left a comment

Choose a reason for hiding this comment

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

@gpleiss should we cut a release with this at some point before merging any 2.0 breaking changes on main?

@gpleiss gpleiss changed the base branch from develop to main August 7, 2024 20:46
@gpleiss
Copy link
Member

gpleiss commented Aug 7, 2024

@jacobrgardner yeah, we'll need at least one more pre-2.0 minor release to include new deprecation warnings. I'm changing this PR to be merged into main rather than develop.

@gpleiss gpleiss merged commit 607415e into main Aug 7, 2024
7 checks passed
@gpleiss gpleiss deleted the sgpr-memory-consumption branch August 7, 2024 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants