add model card
#2
by kashif HF Staff - opened
1234567891011---license: otherlicense_name: tabfm-non-commercial-v1.0license_link: https://huggingface.co/google/tabfm-1.0.0-pytorch/blob/main/LICENSE---# TabFMTabFM is a tabular foundation model by Google.See [LICENSE](https://huggingface.co/google/tabfm-1.0.0-pytorch/blob/main/LICENSE) for usage terms.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168---license: otherlicense_name: tabfm-non-commercial-v1.0license_link: LICENSElibrary_name: tabfmpipeline_tag: tabular-classificationtags:- tabular- tabular-regression- zero-shot- in-context-learning- pytorch- foundation-model---# TabFM 1.0.0 (PyTorch)TabFM is a zero-shot tabular foundation model from Google Research. It supportsclassification and regression on structured/tabular data with mixed numerical andcategorical columns, requiring no fine-tuning or hyperparameter search - trainingexamples are passed as context and predictions are made in a single forward pass.This repository contains the **PyTorch** weights. For the JAX/Flax weights see[google/tabfm-1.0.0-jax](https://huggingface.co/google/tabfm-1.0.0-jax).## Getting Started```bashpip install tabfm[pytorch]```**Classification:**```pythonfrom tabfm import TabFMClassifier, tabfm_v1_0_0_pytorch as tabfm_v1_0_0model = tabfm_v1_0_0.load(model_type="classification")clf = TabFMClassifier(model=model)clf.fit(X_train, y_train)probs = clf.predict_proba(X_test)```**Regression:**```pythonfrom tabfm import TabFMRegressor, tabfm_v1_0_0_pytorch as tabfm_v1_0_0model = tabfm_v1_0_0.load(model_type="regression")reg = TabFMRegressor(model=model)reg.fit(X_train, y_train)preds = reg.predict(X_test)```You can also load directly using the HuggingFace Hub API:```pythonfrom tabfm.src.pytorch.model import TabFMclf_model = TabFM.from_pretrained("google/tabfm-1.0.0-pytorch", subfolder="classification")reg_model = TabFM.from_pretrained("google/tabfm-1.0.0-pytorch", subfolder="regression")```### Available Checkpoints| Subfolder | Task | `is_classifier` ||-----------|------|-----------------|| `classification/` | Classification (up to 10 classes) | `True` || `regression/` | Regression | `False` |## Developers and AffiliationsDeveloped by the [Google Research](https://research.google) team.## Intended Use- Tabular data with numerical and/or categorical columns- Binary and multiclass classification (up to 10 classes)- Regression on continuous targets- Zero-shot inference: no dataset-specific training or hyperparameter tuning- Works with DataFrames (pandas) or numpy arrays## Not Intended For- Images, audio, video, or raw text- More than 10 output classes (hard model limit)- Tasks requiring task-specific fine-tuning- Non-tabular structured data (graphs, sequences)- Commercial use (see License below)## Model ArchitectureTabFM uses alternating row and column attention to capture both feature interactionsand row-level patterns:1. **Column attention** (Set Transformer): embeds each cell using Fourier features anda per-group linear projection, then aggregates across rows via induced self-attention2. **Row compression**: CLS tokens summarise each row into a dense vector via row-levelattention with Rotary Position Embedding (RoPE)3. **ICL Transformer**: a 24-block causal transformer operates over the compressed rowvectors, treating training rows as context and outputting predictions for test rowsKey hyperparameters:| Parameter | Value ||-----------|-------|| Embedding dim | 256 || Column attention blocks | 3 (4 heads, 256 induced points) || Row attention blocks | 3 (8 heads, 8 CLS tokens) || ICL transformer blocks | 24 (8 heads) || Feed-forward factor | 4 || Max classes | 10 || Activation | SwiGLU || Fourier features | 32 frequencies |## Training Data and PriorsTabFM was trained on hundreds of millions of **synthetic** datasets generateddynamically using structural causal models (SCMs). Synthetic data was chosen due tothe scarcity of diverse, high-quality open-source tabular datasets and to avoidprivacy/licensing concerns with real-world industrial data. The SCM prior encodesinductive biases about causal structure and feature relationships typical in tabulartasks.## PerformanceTabFM was evaluated on [TabArena](https://tabarena.ai) across 51 datasets(38 classification, 13 regression). In zero-shot mode - a single forward pass with nohyperparameter search - TabFM outperforms heavily-tuned supervised baselines includinggradient-boosted trees. The `TabFMClassifier.ensemble()` preset (feature crosses,SVD features, NNLS blending) yields further improvements.See the [Google Research blog post](https://research.google/blog/introducing-tabfm-a-zero-shot-foundation-model-for-tabular-data/) for full benchmark details.## Ethical ConsiderationsTabFM was trained entirely on synthetic data. Performance on specific real-worlddomains, minority groups, or edge distributions is not fully characterised. Usersshould evaluate the model on held-out data representative of their use case beforedeploying in high-stakes settings.## Limitations- **Max 10 classes** for classification (hard architectural limit)- Memory usage scales with the number of training rows (all rows are passed as context)- Optimised for tables up to 500 features; behaviour on very wide tables may degrade- Performance is not guaranteed to match task-specific, fine-tuned models on all datasets- Not an officially supported Google product## LicenseThe model weights in this repository are released under the**TabFM Non-Commercial License v1.0** - see [LICENSE](LICENSE). The source code isApache 2.0 licensed via [google-research/tabfm](https://github.com/google-research/tabfm).## Version1.0.0## Citation```bibtex@article{tabfm2026,title = {TabFM: A Zero-Shot Foundation Model for Tabular Data},author = {Google Research},year = {2026},url = {https://research.google/blog/introducing-tabfm-a-zero-shot-foundation-model-for-tabular-data/}}```
README.md+161-4