TabPFN is optional in STREAMLINE. Install it separately when you want to run TabPFN models:
pip install tabpfnTabPFN requires a one-time Prior Labs license acceptance before it can download
model weights for local inference. STREAMLINE can import and configure TabPFN
without this token, but Phase 6 skips requested TabPFN models until
TABPFN_TOKEN is available in the environment.
If `TABPFN_TOKEN` is not set, Phase 6 warns and skips requested TabPFN models
instead of failing the full run. Other requested models, including HEROS, still
run normally. A passing run with skipped TabPFN means TabPFN was not fit.
- Open
https://ux.priorlabs.aiin a browser. - Log in or create an account.
- Accept the TabPFN license on the Licenses tab.
- Copy the API key from
https://ux.priorlabs.ai/account.
Do not commit this token to git, notebooks, config files, shared shell history, or issue trackers.
Activate your STREAMLINE environment and export the token before running TabPFN models:
conda activate streamline
export TABPFN_TOKEN="paste-your-api-key-here"Confirm Python can see it:
python -c "import os; print('TABPFN_TOKEN set:', bool(os.environ.get('TABPFN_TOKEN')))"Create conda activation scripts so the token is set whenever the environment is activated and removed when it is deactivated:
conda activate streamline
mkdir -p "$CONDA_PREFIX/etc/conda/activate.d" "$CONDA_PREFIX/etc/conda/deactivate.d"
printf 'export TABPFN_TOKEN="paste-your-api-key-here"\n' > "$CONDA_PREFIX/etc/conda/activate.d/tabpfn_token.sh"
printf 'unset TABPFN_TOKEN\n' > "$CONDA_PREFIX/etc/conda/deactivate.d/tabpfn_token.sh"
chmod 600 "$CONDA_PREFIX/etc/conda/activate.d/tabpfn_token.sh"Restart the terminal or run:
conda deactivate
conda activate streamlineThe TabPFN pytest is intentionally explicit-only so the main test suite does not run a heavyweight model download or fit by accident. Run it directly:
pytest streamline/tests/subtests/tabpfn_smoke.py -q -rsWithout TABPFN_TOKEN, the no-token skip behavior is tested and the actual
TabPFN fit test is skipped with a visible reason. With TABPFN_TOKEN set, the
same command also runs the TabPFN binary wrapper fit smoke test.
For local notebooks, set the token before launching Jupyter from the same shell:
conda activate streamline
export TABPFN_TOKEN="paste-your-api-key-here"
jupyter notebookFor Colab, store the token in Colab secrets or set it in a private cell before running TabPFN models:
import os
os.environ["TABPFN_TOKEN"] = "paste-your-api-key-here"Avoid saving notebooks with a real token embedded in a code cell.