An intuitive, hands-on tutorial and PyTorch implementation of Prior-data Fitted Networks (PFNs) — the breakthrough meta-learning framework powering foundational tabular models like TabPFN.
Ensure you have uv installed.
git clone https://github.com/barhanc/pfn-tutorial.git
cd pfn-tutorial
# Synchronize the virtual environment with uv.lock in seconds
uv syncRun JupyterLab or Jupyter Notebook directly via uv:
uv run jupyter lab
# or
uv run jupyter notebookAlternatively, open the notebook in one click using Google Colab.
- Prior-data Fitted Networks: Müller et al., "Transformers Can Do Bayesian Inference", ICLR 2022. [arXiv:2112.10510]
- TabPFN: Hollmann et al., "TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Second", Nature 2025 / ICLR 2023. [arXiv:2207.01848]