Comments (1)
If you have Jax with CUDA installed, things should run on the GPU automatically. You can check the backend Jax is using with
from jax.lib import xla_bridge
print(xla_bridge.get_backend().platform)
You can install Jax with CUDA via pip
; here are the instructions for version 0.4.2, which BayesNewton currently uses (see e.g. the Jax v0.4.2 README, as it differs a bit from the current version):
pip install -U "jax[cuda]==0.4.2" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html jaxlib==0.4.2
You can double check that a jax.numpy
array is on the correct device by calling arr.device()
.
from bayesnewton.
Related Issues (20)
- Addition of a Squared Exponential Kernel? HOT 7
- Cannot run demo, possible incompatibility with latest Jax HOT 4
- Double Precision Issues HOT 1
- Missing data for air_quality demo HOT 1
- kernels.py line 406
- Periodic Kernel outputs wrong period HOT 5
- Input-dependent noise model HOT 1
- energy function can output NaN if compiled HOT 1
- Latest versions of JAX and objax cause compile slow down
- SparseMarkovVariationalGP vs S2CVI HOT 1
- Missing data for experiments, (electricity ...) HOT 1
- NaN predictions when the inference is outside of the training data. HOT 3
- air_quality.py demo failing HOT 5
- issue with SparseVariationalGP method HOT 1
- How to set initial `Pinf` variable in kernel? HOT 2
- error in heteroscedastic.py with MarkovPosteriorLinearisationQuasiNewtonGP method HOT 2
- jitted predict HOT 2
- How to understand the function `cavity_distribution_tied` in file `basemodels.py` ? HOT 1
- question about the equation (64) in `Bayes-Newton` paper HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bayesnewton.