Skip to content

Recommend GPyTorch for small data/CPU environment #1664

Answered by jacobrgardner
krisreyes asked this question in Q&A
Discussion options

You must be logged in to vote

There's certainly no real overhead in using PyTorch on the CPU! PyTorch handles math the same way NumPy does, by dispatching to linear algebra routines implemented in highly optimized BLAS and LAPACK libraries. This is actually true whether you're on the CPU or on the GPU -- it's only a difference of the hardware that the underlying BLAS/LAPACK libraries are implemented on.

In general, I think that in the small data CPU only regime, the differences between the most popular GP packages will really come down to your own preferences about whether you prefer PyTorch / Numpy / Tensorflow and how you feel code is written in the various packages. In the n<1000 regime, the most fundamental operat…

Replies: 1 comment 2 replies

Comment options

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

@krisreyes
Comment options

Answer selected by gpleiss
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