tfp-nightly
Probabilistic modeling and statistical inference in TensorFlow
What it is and what it does
TensorFlow Probability is a library for building and reasoning about probabilistic models within the TensorFlow ecosystem. It layers statistical building blocks—distributions, bijectors, and transformations—on top of TensorFlow's numerical operations, then adds higher-level tools for model construction (joint distributions, probabilistic layers) and inference (MCMC, variational inference, stochastic optimizers). The library also works as a JAX substrate, letting you use the same probabilistic API with JAX's functional paradigm instead of TensorFlow's graph execution.
Typical use involves defining a probabilistic model using distributions and layers, then performing inference via gradient-based optimization or sampling-based methods. It is designed for researchers and practitioners building Bayesian neural networks, hierarchical models, and other probabilistic systems that benefit from automatic differentiation and hardware acceleration. The package depends on absl-py, six, numpy, decorator, cloudpickle, gast, and dm-tree.
Use it for:
- Build Bayesian neural networks with weight uncertainty and quantify prediction confidence
- Perform hierarchical statistical modeling and inference on grouped or nested data
- Implement Markov chain Monte Carlo or variational inference for posterior approximation
- Define and sample from complex joint probability distributions with dependencies
- Combine probabilistic layers with standard deep learning models for uncertainty-aware inference
- Conduct dimensionality reduction or clustering using probabilistic generative models
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
TensorFlow Probability provides probabilistic modeling, statistical inference, and Bayesian machine learning tools integrated with TensorFlow and JAX, including distributions, bijectors, inference algorithms, and probabilistic neural network layers.
Yes, if you are building probabilistic or Bayesian machine learning models in TensorFlow or JAX. The library is actively maintained, has no known vulnerabilities, and integrates with TensorFlow's ecosystem. Install with caution only if your project requires stable APIs, as the package is marked Beta and interfaces may change; verify compatibility with your TensorFlow version for production use.
Install
tfp-nightly on PyPI
pip
pip install tfp-nightlyuv
uv add tfp-nightlypoetry
poetry add tfp-nightlyInstalling tfp-nightly
Before you install
Low install friction with a pure-Python wheel and common dependencies. The package is actively maintained with recent commits and no known vulnerabilities, though it is marked Beta and interfaces may change.
License in practice
Licensed under Apache 2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions beyond attribution and liability disclaimers.
Quickstart
pip install tfp-nightly
import tensorflow_probability as tfp
dist = tfp.distributions.Normal(loc=0., scale=1.)
samples = dist.sample()
Requires TensorFlow or JAX installed separately; TensorFlow Probability is a library layer, not a standalone numerical backend.
Verify before relying
- Whether JAX substrate support requires separate JAX installation or is bundled
- Performance characteristics and scalability limits for large-scale probabilistic models
- Compatibility with specific TensorFlow versions beyond Python 3.9, 3.10, 3.11, 3.12 support
Package facts
| License | Apache 2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 7 — absl-py, six, numpy, decorator, cloudpickle, gast, dm-tree |
| Maintenance | actively maintained — 0 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 274,867/month — #8,184 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: tfp_nightly-0.26.0.dev20260814-py2.py3-none-any.whl
Keywords: tensorflow, probability, statistics, bayesian, machine, learning
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
tensorflow-probabilityTensorFlow Probability provides probabilistic…
permissive · top 5,000 on PyPI
distraxDistrax provides JAX-native probability…
permissive · top 15,000 on PyPI
pyjptpyjpt learns and reasons about joint…
unclear · top 15,000 on PyPI
problogProbLog is a probabilistic logic programming…
permissive · top 15,000 on PyPI
tf-estimator-nightlyProvides high-level APIs for training,…
permissive · top 15,000 on PyPI
pytensor-distributionsPyTensor-distributions provides a collection of…
permissive · top 15,000 on PyPI
pyro-apiProvides a generic dispatch API for…
permissive · top 5,000 on PyPI
pyro-pplPyro is a deep probabilistic programming…
permissive · top 5,000 on PyPI
pyAgrum-nightlypyAgrum is a Python library for creating,…
unclear · top 15,000 on PyPI
tf-nightlytf-nightly provides nightly builds of…
permissive · top 15,000 on PyPI