Skip to main content

PyAutoFit: Scientific Inference with Natural Language

PyAutoFit is a Python package for scientific model fitting and Bayesian inference. Bring your models, data and likelihood code, then fit models and explore results through natural language with an AI assistant or by writing Python yourself.

Build automated inference workflows by composing models, chaining searches and organising results. With JAX-compatible likelihoods, use autodifferentiable models for gradient-based optimisation or sampling, alongside GPU acceleration for supported calculations. The PyAutoFit Assistant supports increasingly autonomous workflows, helping you connect your science code to inference and inspect the results while you guide the scientific choices.

Getting Started

Explore with AI

The PyAutoFit AI Assistant helps you compose models, choose priors, run inference and interpret results through conversation. To get started, paste this prompt into your AI coding agent:

I want to perform scientific inference with PyAutoFit
(https://github.com/PyAutoLabs/PyAutoFit) and the
autofit_assistant (https://github.com/PyAutoLabs/autofit_assistant).

First clone the assistant repository, cd into it and follow its AGENTS.md.
Begin the "start here" guide for a new user.

See AI Options for tools and setup guidance.

Explore It Yourself

Bring Your Own Likelihood

Already have a likelihood function for your science problem? The assistant can help connect your existing code to PyAutoFit:

Set up PyAutoFit with my existing science project:
[GitHub link or local directory].

Explain my likelihood function, propose a model and priors,
and recommend a search method.

Do not begin inference until we have discussed the setup
and I give you the go-ahead.

Then show me how to inspect and interpret the results.

The Bring Your Own Likelihood guide explains the workflow.

Learn Bayesian Inference

HowToFit teaches Bayesian inference and model fitting through worked notebooks, starting from undergraduate level. You can also read the Markdown lectures directly on GitHub.

The PyAutoFit documentation covers the software’s features, from model composition and sampling to model comparison and hierarchical inference.

Community and Contributing

Ask questions, suggest improvements and share your work in PyAutoLabs Discussions, or chat with us on Slack.

To contribute or explore community projects, visit the PyAutoFit community page.

Citations

If you use PyAutoFit in your research, see the citation guide.

License

See the license.

i’ve been lost for a while

Metadata

Release files for autofit 2026.11.28.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autofit 2026.11.28.1
File Size Uploaded Provenance Actions
autofit-2026.11.28.1.tar.gz 8.7 MB Without provenance Details for autofit-2026.11.28.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for autofit 2026.11.28.1
File Interpreter ABI Platform Actions
autofit-2026.11.28.1-py3-none-any.whl Python 3 none any Details for autofit-2026.11.28.1-py3-none-any.whl

Total release size: 9.8 MB

Release files / autofit-2026.11.28.1.tar.gz

Download URL autofit-2026.11.28.1.tar.gz
Size 8.7 MB
Tags Source
SHA-256 checksum
How to use checksums
4154fb15874c875409e9b9478bf5a922c099e64d22c679d7bbb481e4a5eaee65
BLAKE2b-256 checksum
How to use checksums
492a68ee10bb9079c84dd34ade160da43ff273da00811f8d666e090c74fc3f2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.16

Release files / autofit-2026.11.28.1-py3-none-any.whl

Download URL autofit-2026.11.28.1-py3-none-any.whl
Size 1.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c6de6f9e0a44826b9457574545a11e6dba61260bd44f2754c66331a378524ca9
BLAKE2b-256 checksum
How to use checksums
c4d0cf39e5080cebd8289094b1ca9e4106b480233e0872915bebaa5773d0865c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.16

Security for autofit 2026.11.28.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2026.11.28.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page