Skip to main content
The local tabpfn package downloads model weights to your machine. TabPFN-3.5, including Fast, requires acceptance of the model license, as do TabPFN-3, 2.6, and 2.5.

Local package

Start with the latest package:

Sign in and accept the license

Run the local example in the quickstart. When weights need downloading, tabpfn checks your token and license acceptance. In an interactive terminal with a browser, it opens the Prior Labs login page so you can sign in and accept the license for your chosen model. If the browser cannot return the token, paste your API key at the terminal prompt. Over SSH without a local browser, the package prints a login URL and waits for you to paste the key. Successful authentication is cached locally for future downloads. When switching model families, accept the corresponding license if prompted.

Notebooks, servers, and CI

Set up authentication before running the model:
  1. Sign in to Prior Labs and accept your model’s license under Licenses.
  2. Create or copy an API key from the same account.
  3. Set TABPFN_TOKEN in the environment where Python runs:
TABPFN_NO_BROWSER=1 disables interactive login. Your account still needs to have accepted the license before weights can be downloaded.

Google Colab

Complete the license and API-key steps above. In Colab, add a secret named TABPFN_TOKEN and enable Notebook access. Then load it before running the model:

Offline use

On a machine with internet access, complete the setup above and run each model you plan to use. The tabpfn package downloads and caches the required weights automatically. Locate the model cache directory:
Copy that directory to the offline machine and install the same tabpfn version and dependencies. Set the cache location before importing tabpfn:
The directory must contain the required weights under their original filenames. A cache path alone does not prevent downloads: the package attempts to download missing weights. Continue with the quickstart to run predictions, or select a model version.