Skip to content

Commit e398f19

Browse files
authored
Checklist for 0.7 release (#1082)
* bump versions to 0.7.0 * Bump dependency * bump funsor version * an attempt to fix rtd rendering * update Docker file * update prodlda version * fix update_version use wrong version in tutorials * revise docs * add kernerls to sidebar * revert the change at getting started * move prodlda to intro * pin funsor and jaxns versions
1 parent 003424b commit e398f19

39 files changed

+231
-246
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -237,22 +237,22 @@ conda install -c conda-forge numpyro
237237
- Provide the `rng_key` argument to `numpyro.sample`. e.g. `numpyro.sample('x', dist.Normal(0, 1), rng_key=PRNGKey(0))`.
238238
- Wrap the code in a `seed` handler, used either as a context manager or as a function that wraps over the original callable. e.g.
239239

240-
```python
241-
with handlers.seed(rng_seed=0): # random.PRNGKey(0) is used
242-
x = numpyro.sample('x', dist.Beta(1, 1)) # uses a PRNGKey split from random.PRNGKey(0)
243-
y = numpyro.sample('y', dist.Bernoulli(x)) # uses different PRNGKey split from the last one
244-
```
240+
```python
241+
with handlers.seed(rng_seed=0): # random.PRNGKey(0) is used
242+
x = numpyro.sample('x', dist.Beta(1, 1)) # uses a PRNGKey split from random.PRNGKey(0)
243+
y = numpyro.sample('y', dist.Bernoulli(x)) # uses different PRNGKey split from the last one
244+
```
245245

246246
, or as a higher order function:
247247

248-
```python
249-
def fn():
250-
x = numpyro.sample('x', dist.Beta(1, 1))
251-
y = numpyro.sample('y', dist.Bernoulli(x))
252-
return y
248+
```python
249+
def fn():
250+
x = numpyro.sample('x', dist.Beta(1, 1))
251+
y = numpyro.sample('y', dist.Bernoulli(x))
252+
return y
253253

254-
print(handlers.seed(fn, rng_seed=0)())
255-
```
254+
print(handlers.seed(fn, rng_seed=0)())
255+
```
256256

257257
2. Can I use the same Pyro model for doing inference in NumPyro?
258258

docker/dev/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ FROM nvidia/cuda:11.2.2-cudnn8-devel-ubuntu20.04
1010
# note that this image uses Python 3.8
1111
ENV IMG_NAME=11.2.2-cudnn8-devel-ubuntu20.04 \
1212
# declare the cuda version for pulling appropriate jaxlib wheel
13-
JAXLIB_CUDA=112
13+
JAXLIB_CUDA=111
1414

1515
# install python3 and pip on top of the base Ubuntu image
1616
# unlike for release, we need to install git and setuptools too

docker/release/Dockerfile

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,7 @@ FROM nvidia/cuda:11.2.2-cudnn8-devel-ubuntu20.04
88
# declare the image name
99
# note that this image uses Python 3.8
1010
ENV IMG_NAME=11.2.2-cudnn8-devel-ubuntu20.04 \
11-
# declare what jaxlib, jax, and numpyro versions to use
12-
# right now this is a manual process - in the future it should be automated
13-
# if a CI/CD system is expected to pass in these arguments
14-
# the dockerfile should be modified accordingly
15-
JAXLIB_CUDA=112 \
16-
JAXLIB_VERSION=0.1.62 \
17-
JAX_VERSION=0.2.10 \
18-
NUMPYRO_VERSION=0.6.0
11+
JAXLIB_CUDA=111
1912

2013
# install python3 and pip on top of the base Ubuntu image
2114
RUN apt update && \
@@ -26,8 +19,6 @@ ENV PATH=/root/.local/bin:$PATH
2619

2720
# install python packages via pip
2821
RUN pip3 install --user \
29-
numpyro==${NUMPYRO_VERSION} \
30-
jax==${JAX_VERSION} \
3122
# we pull wheels from google's api as per https://github.com/google/jax#installation
3223
# the pre-compiled wheels that google provides work for now. This may change in the future (and necessitate building from source)
33-
jaxlib==${JAXLIB_VERSION}+cuda${JAXLIB_CUDA} -f https://storage.googleapis.com/jax-releases/jax_releases.html
24+
numpyro[cuda${JAXLIB_CUDA}] -f https://storage.googleapis.com/jax-releases/jax_releases.html

docs/requirements.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
dm-haiku
22
flax
3-
funsor
4-
jax>=0.1.65
5-
jaxlib>=0.1.45
6-
jaxns==0.0.7
7-
optax==0.0.6
3+
funsor>=0.4.1
4+
jax>=0.2.11
5+
jaxlib>=0.1.62
6+
jaxns>=0.0.7
7+
optax>=0.0.6
88
nbsphinx>=0.8.5
99
sphinx-gallery
10-
tfp-nightly<=0.14.0.dev20210608 # TODO: change this to tensorflow-probability when it is stable
10+
tensorflow_probability>=0.13
1111
tqdm

docs/source/api.rst

Lines changed: 0 additions & 48 deletions
This file was deleted.

docs/source/contrib.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Contributed Code
2+
================
3+
14
Nested Sampling
25
~~~~~~~~~~~~~~~
36

0 commit comments

Comments
 (0)