Hacker News new | ask | show | jobs
by laichzeit0 7 days ago
You can fit Bayesian models using GPUs. If you use PyMC for example you can use a JAX-based NUTS sampler like numpyro or blackjax which run NUTS sampling via JAX and support GPU execution. Like you could run each chain on a GPU so it's quite efficient.
2 comments

My understanding is that bc MCMC is sequential, the GPU path isn’t any faster and is actually slower to do less code optimization (and that cpus are much faster at sequential operations).

Am I missing something?

Depends on the size of the dataset. Here’s some benchmarks: https://www.pymc-labs.com/blog-posts/pymc-stan-benchmark
Thanks!