Skip to content

Memory usage of mbCG #1453

Answered by jacobrgardner
arthus701 asked this question in Q&A
Feb 2, 2021 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

It's O(n) because the output of CG (a single vector or small set of vectors) is that space requirement unlike Cholesky, and you don't really need to store the entire kernel matrix in memory at the same time to do so -- you can compute MVMs in a map reduce fashion.

The original GPyTorch paper exclusively dealt with the setting where we are storing the entire kernel matrix in memory to compute MVMs, but this paper directly centers around extending this to O(n) storage, and we have a few example notebooks that do this.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@arthus701
Comment options

@jacobrgardner
Comment options

Answer selected by jacobrgardner
Comment options

You must be logged in to vote
2 replies
@gpleiss
Comment options

@arthus701
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants