Skip to content

Commit fc3f3c3

Browse files
committed
Install jax from pip
1 parent c870b5c commit fc3f3c3

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

conda-envs/environment-alternative-backends.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ dependencies:
1313
- numba
1414
# nutpie is installed from git in the CI workflow (see tests.yml) so we can track
1515
# the arviz 1.0 -compatible branch until an upstream release ships.
16-
# Jaxlib version must not be greater than jax version!
17-
- jax>=0.4.28
18-
- jaxlib>=0.4.28
16+
# The JAX stack (jax, jaxlib, numpyro, blackjax) is installed from PyPI in the pip
17+
# section below rather than conda-forge -- see the note there.
1918
- libblas=*=*mkl
2019
- mkl-service
2120
- numpy>=1.25.0
22-
- numpyro>=0.8.0
2321
- pandas>=0.24.0
2422
- pip
2523
- pytensor>=3.1.2,<3.2
@@ -39,7 +37,15 @@ dependencies:
3937
- types-cachetools
4038
# blackjax now does not pull in fastprogress by default
4139
- fastprogress>=1.0.0
42-
- blackjax>=1.5
4340
- pip:
4441
- numdifftools>=0.9.40
4542
- mcbackend>=0.4.0
43+
# conda-forge builds jaxlib from source with its own XLA/LLVM toolchain, and its
44+
# 0.10.x CPU build segfaults in XLA codegen while compiling some graphs
45+
# (DirichletMultinomial, MvStudentT draws) on the CI runners. The official PyPI
46+
# wheels compile the same graphs fine, so install the whole JAX stack from PyPI.
47+
# Jaxlib version must not be greater than jax version!
48+
- jax>=0.4.28
49+
- jaxlib>=0.4.28
50+
- numpyro>=0.8.0
51+
- blackjax>=1.5

0 commit comments

Comments
 (0)