Skip to content

Commit 1f96a43

Browse files
Noah ShinNoah Shin
authored andcommitted
Merge remote-tracking branch 'upstream/main' into feature/zoib
2 parents f9c3b01 + 47bdf54 commit 1f96a43

96 files changed

Lines changed: 4849 additions & 1361 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/tests.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ jobs:
153153
env:
154154
TEST_SUBSET: ${{ matrix.test-subset }}
155155
PYTENSOR_FLAGS: linker=${{ matrix.linker }}
156+
# AVX-512 codegen crashes LLVM's loop vectorizer (llvm-project#210601,
157+
# fixed after the 20.1.8 llvmlite bundles). Not x86-64-v3: it fails
158+
# test_sampling_consistency.
159+
NUMBA_CPU_NAME: generic
160+
NUMBA_CPU_FEATURES: ""
156161
defaults:
157162
run:
158163
shell: bash -leo pipefail {0}
@@ -202,6 +207,9 @@ jobs:
202207
env:
203208
TEST_SUBSET: ${{ matrix.test-subset }}
204209
PYTENSOR_FLAGS: linker=${{ matrix.linker }}
210+
# See the ubuntu job for why the numba codegen target is pinned.
211+
NUMBA_CPU_NAME: generic
212+
NUMBA_CPU_FEATURES: ""
205213
defaults:
206214
run:
207215
shell: bash -leo pipefail {0}
@@ -311,6 +319,9 @@ jobs:
311319
env:
312320
TEST_SUBSET: ${{ matrix.test-subset }}
313321
PYTENSOR_FLAGS: linker=${{ matrix.linker }}
322+
# See the ubuntu job for why the numba codegen target is pinned.
323+
NUMBA_CPU_NAME: generic
324+
NUMBA_CPU_FEATURES: ""
314325
defaults:
315326
run:
316327
shell: bash -leo pipefail {0}
@@ -360,6 +371,9 @@ jobs:
360371
env:
361372
TEST_SUBSET: ${{ matrix.test-subset }}
362373
PYTENSOR_FLAGS: floatX=float32
374+
# See the ubuntu job for why the numba codegen target is pinned.
375+
NUMBA_CPU_NAME: generic
376+
NUMBA_CPU_FEATURES: ""
363377
defaults:
364378
run:
365379
shell: bash -leo pipefail {0}

conda-envs/environment-alternative-backends.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@ 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
25-
- pytensor>=3.0.7,<3.1
23+
- pytensor>=3.2.2,<3.3
2624
- python-graphviz
2725
- networkx
2826
- rich>=13.7.1
@@ -39,7 +37,18 @@ 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.6 removed `window_adaptation(progress_bar=...)` and replaced
52+
# `progress_bar.gen_scan_fn` with a context manager; pymc.sampling.jax still
53+
# uses the old API.
54+
- blackjax>=1.5,<1.6

conda-envs/environment-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
- numpy>=1.25.0
1313
- pandas>=0.24.0
1414
- pip
15-
- pytensor>=3.0.7,<3.1
15+
- pytensor>=3.2.2,<3.3
1616
- python-graphviz
1717
- networkx
1818
- scipy>=1.4.1

conda-envs/environment-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
- numpy>=1.25.0
1212
- pandas>=0.24.0
1313
- pip
14-
- pytensor>=3.0.7,<3.1
14+
- pytensor>=3.2.2,<3.3
1515
- python-graphviz
1616
- rich>=13.7.1
1717
- scipy>=1.4.1

conda-envs/environment-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
- pandas>=0.24.0
1616
- pip
1717
- polyagamma
18-
- pytensor>=3.0.7,<3.1
18+
- pytensor>=3.2.2,<3.3
1919
- python-graphviz
2020
- networkx
2121
- rich>=13.7.1

conda-envs/windows-environment-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
- numpy>=1.25.0
1313
- pandas>=0.24.0
1414
- pip
15-
- pytensor>=3.0.7,<3.1
15+
- pytensor>=3.2.2,<3.3
1616
- python-graphviz
1717
- networkx
1818
- rich>=13.7.1

conda-envs/windows-environment-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616
- pandas>=0.24.0
1717
- pip
1818
- polyagamma
19-
- pytensor>=3.0.7,<3.1
19+
- pytensor>=3.2.2,<3.3
2020
- python-graphviz
2121
- networkx
2222
- rich>=13.7.1

docs/source/api/dims/distributions.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ Scalar distributions
2626
Gamma
2727
InverseGamma
2828
Weibull
29+
Poisson
30+
NegativeBinomial
31+
DiracDelta
2932

3033

3134
Vector distributions

docs/source/api/model/core.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Model creation and inspection
55
.. autosummary::
66
:toctree: generated/
77

8+
BaseModel
9+
FrozenModel
810
Model
911
modelcontext
1012

docs/source/api/model/optimization.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ Model Optimization
55
:toctree: generated/
66

77
freeze_dims_and_data
8+
freeze_model

0 commit comments

Comments
 (0)