pyro-ppl
A Python library for probabilistic modeling and inference
Decision gist · record as of 2026-08-14
Yes. Pyro is actively maintained, has no known vulnerabilities, installs with low friction, and is licensed permissively. It is the right choice if you need to build or fit probabilistic models in Python and want a mature, well-documented framework that abstracts away inference complexity while remaining flexible for expert customization.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires torch as a runtime dependency; ensure torch is available in your environment.
- Installation is straightforward with low friction—the package is a pure Python wheel with five runtime dependencies (numpy, opt-einsum, pyro-api, torch, tqdm).
- Maintenance is active; the repository shows recent commits and the project is backed by community contributors including a team at the Broad Institute.
License · maintenance · safety
Apache 2.0 (permissive) — Licensed under Apache 2.0 (permissive), so you can use Pyro in commercial and proprietary projects without restriction, though you must include a copy of the license.
last release 2024-06-02 (803 days) · last repo commit 2026-08-04 · 9,038 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,232,081 downloads/mo, #4,186 on PyPI
Alternatives
Verify before relying
pip install pyro-ppl
import pyro
import pyro.distributions as dist
def model():
x = pyro.sample('x', dist.Normal(0, 1))
return x- Whether the package's inference algorithms scale efficiently to the specific data sizes and model complexity you plan to use.
- Performance characteristics and memory overhead compared to hand-written code for your particular use case.
What it is and what it does
Pyro is a probabilistic programming library that lets you express Bayesian models and perform inference on them using PyTorch as its computational backbone. It abstracts away the complexity of building custom inference algorithms by providing high-level primitives for sampling, conditioning, and inference, while still allowing expert users to customize inference strategies when needed.
The library is designed around the principle that you write generative models as ordinary Python functions, then use Pyro's inference engines to fit those models to data. It handles both discrete and continuous random variables, supports automatic differentiation for gradient-based inference, and scales to large datasets. The five core runtime dependencies (numpy, opt-einsum, pyro-api, torch, tqdm) keep the footprint minimal while providing the numerical and progress-tracking infrastructure needed for practical probabilistic modeling.
Use it for
- Build Bayesian regression or classification models where you need posterior distributions over parameters, not just point estimates.
- Perform approximate inference on complex generative models using variational inference or other automated inference strategies.
- Design and run experimental designs or sensitivity analyses by sampling from posterior predictive distributions.
- Model time-to-event data or other censored observations in survival analysis or reliability engineering.
- Prototype custom probabilistic models for scientific research without writing low-level inference code from scratch.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Pyro is actively maintained, has no known vulnerabilities, installs with low friction, and is licensed permissively. It is the right choice if you need to build or fit probabilistic models in Python and want a mature, well-documented framework that abstracts away inference complexity while remaining flexible for expert customization.
Install
pyro-ppl on PyPI
Before you install
Installation is straightforward with low friction—the package is a pure Python wheel with five runtime dependencies (numpy, opt-einsum, pyro-api, torch, tqdm). Maintenance is active; the repository shows recent commits and the project is backed by community contributors including a team at the Broad Institute.
Requires torch as a runtime dependency; ensure torch is available in your environment.
License in practice
Licensed under Apache 2.0 (permissive), so you can use Pyro in commercial and proprietary projects without restriction, though you must include a copy of the license.
Quickstart
pip install pyro-ppl
import pyro
import pyro.distributions as dist
def model():
x = pyro.sample('x', dist.Normal(0, 1))
return x
Verify before relying
- Whether the package's inference algorithms scale efficiently to the specific data sizes and model complexity you plan to use.
- Performance characteristics and memory overhead compared to hand-written code for your particular use case.
Package facts
| License | Apache 2.0 permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesnumpyopt-einsumpyro-apitorchtqdm |
| Maintenance | Actively maintained 803 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,232,081 / month, #4,186 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOS :: MacOS XOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: pyro_ppl-1.9.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “bayesian inference pytorch”
- pyro-pplPyro is a deep probabilistic programming library built on PyTorch…
- numpyroNumPyro is a probabilistic programming library that uses JAX for…
- botorchBoTorch provides a modular, PyTorch-based framework for building…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also amalgam-lang · pyro-api · zuko · numpyro · botorch · tensorflow-probability · problog · tfp-nightly · pyjpt · gluonts