Skip to content
Projects

probcomp/Gen.jl has 1,855 GitHub stars and 164 forks. GitHot measured 0 stars in 24 hours and +1 in 7 days. Last checked 2026-11-08 10:49 UTC. Last push 2026-10-31.

How these counts are measured

A general-purpose probabilistic programming system with programmable inference

What you can do

  • Multi-paradigm Bayesian inference via Sequential Monte Carlo, variational inference, MCMC, and more.
  • Gradient-based training of generative models via parameter optimization, wake-sleep learning, etc.
  • An expressive and intuitive modeling language for writing and composing probabilistic programs.
  • Inference algorithms are programmable: Write custom proposals, variational families, MCMC kernels or SMC updates without worrying about the math.

Measured star growth

in 24h
0
in 7 days
+1
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Gen.jl

Build Status Documentation (Stable) Documentation (Dev) GitHub Release

A general-purpose probabilistic programming system with programmable inference, embedded in Julia.

See https://gen.dev for introduction, documentation, and tutorials.

Features

Installation

The Gen package can be installed with the Julia package manager. From the Julia REPL, type ] to enter the Pkg REPL mode and then run:

add Gen

To install the latest development version, you may instead run:

add https://github.com/probcomp/Gen.jl.git

Gen can now be used in the Julia REPL, or at the top of a script:

using Gen

To test the installation locally, you can run the tests with:

using Pkg; Pkg.test("Gen")

Questions and Contributions

If you have questions about using Gen.jl, feel free to open a discussion on GitHub. If you encounter a bug, please open an issue. We also welcome bug fixes and feature additions as pull requests. Please refer to our contribution guidelines for more details.

Supporting and Citing

Gen.jl is part of ongoing research at the MIT Probabilistic Computing Project. To get in contact, please email [email protected].

If you use Gen in your research, please cite our 2019 PLDI paper:

Gen: A General-Purpose Probabilistic Programming System with Programmable Inference. Cusumano-Towner, M. F.; Saad, F. A.; Lew, A.; and Mansinghka, V. K. In Proceedings of the 40th ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI ‘19). (pdf) (bibtex)

Explore related projects