talira

Compare

PyStanCmdStanPyStanCmdStan
What it isPython interface to Stan for Bayesian inferenceLightweight Python interface to CmdStanProbabilistic programming language for Bayesian statistical modellingCommand-line interface to Stan for compiling and running Bayesian models
KindOpen sourceOpen sourceOpen sourceOpen source
Trust0.370.530.660.57
Stars3651982789241
Last commit2026-08-052026-11-242026-11-202026-11-21
LicenceISCBSD-3-ClauseBSD-3-ClauseBSD-3-Clause
PricingFree and open sourceFree and open sourceFree and open sourceFree and open source
Free tierYesYesYesYes
Self-hostable————
Ways to run it————
SOC 2————
HIPAA————
SSO————
API————
Plugins————
MCP server————
CompanyStan Development TeamStan Development TeamStan Development TeamStan Development Team
Features
  • compile and sample Stan models from Python
  • automatic caching of compiled models and samples
  • RStan-like interface
  • compile Stan models and run every CmdStan inference method
  • pure Python, depends only on numpy and pandas
  • development-friendly defaults with full control for production
  • installs CmdStan for you
  • Stan modelling language
  • NUTS Hamiltonian Monte Carlo sampling
  • ADVI variational inference and L-BFGS optimisation
  • Stan Math automatic differentiation library
  • interfaces for the command line, Python, R, Julia, MATLAB, Mathematica and Stata
  • MCMC sampling with NUTS (Hamiltonian Monte Carlo)
  • optimization with BFGS, L-BFGS and Newton
  • Pathfinder and ADVI variational inference
  • Laplace sampling
  • stansummary and diagnose for MCMC output
  • stanc3 compiler from Stan to C++
Limitations
  • Stan's install page says PyStan is no longer actively supported as of 3.10.0.
  • Linux and macOS only.
    • Needs a C++17 compiler and GNU Make to compile models.