Skip to content

Parallel prediction for individual GP models #2257

Answered by Balandat
egilbugge asked this question in Q&A
Discussion options

You must be logged in to vote

Are you training the models online or are you ok with just using a fixed model? If you're ok with a fixed model you may want to look into compiling the model, similar as you'd do with a NN network for deployment. That may already provide some nice speedups. There is an example using torch.jit here: https://github.com/cornellius-gp/gpytorch/blob/master/examples/08_Advanced_Usage/TorchScript_Exact_Models.ipynb. It would also be interesting to try out the new torch.compile functionality available in the nightlies for pytorch 2.0: https://pytorch.org/get-started/pytorch-2.0/

Also, are all the models of the same size (i.e. does the training data have the same dimension and number of observatio…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@egilbugge
Comment options

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