Anofox TabFM
Zero-shot machine learning for tabular data, inside DuckDB
This extension runs tabular foundation models, TabPFN-style in-context learners, so classification
and regression become a single SQL statement. No Python, no training loop, no MLOps: the model reads your
labelled rows as context and predicts the rest.
SELECT customer_id, yhat AS will_churn, yhat_score
FROM tabfm_classify('history', 'churned', test := 'prospects', keep := ['customer_id'], model := 'mitra');
Built for AI pair-programming. anofox-tabfm ships a Claude Code plugin: five
skills with the full, checked SQL surface, so Claude writes working tabfm_* queries from a plain-English
request. Install with /plugin marketplace add DataZooDE/anofox-tabfm →
/plugin install anofox-tabfm@anofox-tabfm.
Built with StableAI LimiX. The limix-2m model is StableAI's LimiX-2M, used under the Stable AI
Technology Co., Ltd. License v1.0 (licence).
Several models are non-commercial: check the commercial column in Models before you build
on one.
Key Features
Predict
- Classification and regression in one call:
tabfm_classify, tabfm_regress
- Two forms: an explicit train / test pair, or one table whose missing targets are the rows to score
- Probabilities, not just labels:
yhat_score and a proba map per row
24 models, plus your own
- Built in, selectable by name: Mitra and Mitra-v2, TabDPT v1.2 and v1.3, TabPFN v2 / 2.5 / 2.5-real / 2.6 /
3 / 3.5 / 3.5-Fast, TabICL v2, Causilo, LimiX-2M, Nori-30M, Nori 1.5, EXAONE Tabular, Kumo-Tabular (small, medium,
large), Orion-BiX, Orion-MSP and Google TabFM v1 / 1.1
- Your own model, registered entirely in SQL with
tabfm_register_model
- One SQL surface: swap
model := to compare models on your own data
Generate and impute
- Synthetic rows that keep the relationships between columns:
tabfm_generate
- Fill NULL cells, conditioned on the rest of each row:
tabfm_impute
Evaluate and plot
- Metrics as SQL aggregates: accuracy, F1, ROC-AUC, log loss, ECE, RMSE, MAE, R², and more
- Leakage-safe cross-validation:
tabfm_cross_validate
- Plots through anofox-visualization: model comparison,
confusion matrix, ROC and calibration curves
Run anywhere
- CPU on Linux, macOS (arm64) and Windows
- GPU with one call,
CALL tabfm_accelerate(): NVIDIA CUDA, AMD ROCm, Apple MLX
- No ONNX Runtime: the CPU, CUDA and ROCm all run the vendored ggml engine
Safe by default
- No weights shipped: you download each model's weights from Hugging Face yourself
- Licence gates: a model whose licence needs an acknowledgement will not download without one
- Errors that say what to run
Table of Contents
Installation
INSTALL anofox_tabfm FROM community;
LOAD anofox_tabfm;
Latest builds: the community build can trail a release by days. The DataZoo repository has it the
moment it is out, but its builds are unsigned: start DuckDB with duckdb -unsigned, and install httpfs
first (why):
INSTALL httpfs; LOAD httpfs;
SET custom_extension_repository = 'https://get.anofox.com';
INSTALL anofox_tabfm;
LOAD anofox_tabfm;
Check which build you got:
SELECT extension_version FROM duckdb_extensions() WHERE extension_name = 'anofox_tabfm';
Quick Start
-- 1. Weights are fetched over HTTPS, once: mitra is Apache-2.0, ungated, about 303 MB
INSTALL httpfs; LOAD httpfs;
CALL tabfm_download('classification', model := 'mitra');