Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

pyro

> 编程语言
Open source

Deep universal probabilistic programming with Python and PyTorch

9.0K stars0 likes2 views
WebsiteGitHub

About

Deep universal probabilistic programming with Python and PyTorch


Getting Started | Documentation | Community | Contributing

Pyro is a flexible, scalable deep probabilistic programming library built on PyTorch. Notably, it was designed with these principles in mind:

  • Universal: Pyro is a universal PPL - it can represent any computable probability distribution.
  • Scalable: Pyro scales to large data sets with little overhead compared to hand-written code.
  • Minimal: Pyro is agile and maintainable. It is implemented with a small core of powerful, composable abstractions.
  • Flexible: Pyro aims for automation when you want it, control when you need it. This is accomplished through high-level abstractions to express generative and inference models, while allowing experts easy-access to customize inference.

Pyro was originally developed at Uber AI and is now actively maintained by community contributors, including a dedicated team at the Broad Institute. In 2019, Pyro became a project of the Linux Foundation, a neutral space for collaboration on open source software, open standards, open data, and open hardware.

For more information about the high level motivation for Pyro, check out our launch blog post. For additional blog posts, check out work on experimental design and time-to-event modeling in Pyro.

Installing

Installing a stable Pyro release

Install using pip:

bash
pip install pyro-ppl

Install from source:

bash
git clone [email protected]:pyro-ppl/pyro.git
cd pyro
git checkout master  # master is pinned to the latest release
pip install .

Install with extra packages:

To install the dependencies required to run the probabilistic models included in the examples/tutorials directories, please use the following command:

bash
pip install pyro-ppl[extras] 

Make sure that the models come from the same release version of the Pyro source code as you have installed.

Installing Pyro dev branch

For recent features you can install Pyro from source.

Install Pyro using pip:

bash
pip install git+https://github.com/pyro-ppl/pyro.git

or, with the extras dependency to run the probabilistic models included in the examples/tutorials directories:

bash
pip install git+https://github.com/pyro-ppl/pyro.git#egg=project[extras]

Install Pyro from source:

bash
git clone https://github.com/pyro-ppl/pyro
cd pyro
pip install .  # pip install .[extras] for running models in examples/tutorials

Running Pyro from a Docker Container

Refer to the instructions here.

Citation

If you use Pyro, please consider citing:

…

Issues· 294 open

View all issuesOpen on GitHub
  • #3468

    [bug] AutoGuide silently overrides a model's manual `pyro.plate(subsample=idx)`

    Updated Aug 12, 2026
  • #3368

    No posterior samples when using categorical distribution [bug]

    bugUpdated Jul 23, 2026
  • #3419

    [bug] Batched mixture of binomials fails validation

    bugUpdated Jul 23, 2026
  • #2201

    Enable warnings in tests/test_examples.py

    help wantedwarnings & errorsUpdated Jul 23, 2026
  • #3450

    [Bug] Invalid escape sequence

    Updated Jul 1, 2026
  • #3449

    [bug] TracerWarning from subsample_messenger when running NUTS with jit_compile=True

    Updated Jun 29, 2026
  • #3417

    Add order parameter to spline_coupling helper function

    help wantedusabilityUpdated Mar 31, 2026
  • #1461

    Call for User-Contributed Examples and Tutorials!

    help wanteddocumentationExamplesgood first issueUpdated Dec 29, 2025
  • #3448

    [feature request] New Distribution: Inverse Wishart

    Updated Dec 1, 2025
  • #3447

    [feature request] New Pyro version to update datasets URLs?

    Updated Nov 5, 2025

> Tags

Pythonbayesianbayesian-inferencedeep-learningmachine-learning

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言