skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
docs.priorlabs.ai47 installs

priorlabs

Use when building tabular machine learning models, making predictions on structured data, or integrating ML into applications. Reach for TabPFN when you need fast, accurate predictions without extensive preprocessing or hyperparameter tuning, especially for classification, regression, forecasting, or anomaly detection tasks.

How do I install this agent skill?

npx skills add https://docs.priorlabs.ai --skill priorlabs
view source ↗

Is this agent skill safe to install?

No partner audit is available yet. Read the source before installing.

What does this agent skill do?

TabPFN Skill

Product summary

TabPFN is a pre-trained transformer foundation model for tabular data that delivers high-quality predictions in seconds without dataset-specific training. It learns from billions of synthetic datasets and applies in-context learning to your data via a single forward pass. Use it via the Python client (tabpfn-client for API, tabpfn for local), REST API, or Model Context Protocol (MCP) for AI assistants.

Key entry points:

  • Python API client: tabpfn-client (managed compute, no GPU needed) or tabpfn (local inference, GPU recommended)
  • REST API: /tabpfn/* JSON endpoints at https://api.priorlabs.ai
  • MCP server: https://api.priorlabs.ai/mcp/server for Claude, ChatGPT, Cursor, n8n
  • Primary docs: https://docs.priorlabs.ai

Current model families: TabPFN-3.5 (base, Plus, Thinking, Fast), TabPFN-3 (base, Plus, Thinking), TabPFN-2.6, TabPFN-2.5, TabPFNv2.


When to use

Reach for TabPFN when:

  • Building classification or regression models on tabular data without extensive preprocessing or tuning
  • Making predictions quickly on structured data (CSV, Parquet) with mixed numerical, categorical, and text features
  • Handling messy data with missing values, outliers, or high-cardinality features natively
  • Integrating ML into workflows via Python, REST API, or AI assistants (Claude, ChatGPT, n8n)
  • Optimizing for accuracy on grouped or temporal data using Thinking mode
  • Avoiding repeated training loops by reusing fitted models for zero-shot inference
  • Estimating token costs before running predictions on the API

Do not use TabPFN for:

  • Image or audio data (use domain-specific models)
  • Datasets requiring custom loss functions or complex constraints
  • Scenarios where model interpretability is the primary goal (though SHAP integration is available)

Quick reference

Installation and authentication

TaskCommand
Install API clientpip install --upgrade tabpfn-client
Install local packagepip install --upgrade tabpfn
Set API key (client)export TABPFN_TOKEN="<your-key>" or set_access_token(api_key)
Get API keyVisit platform.priorlabs.ai/account/api-keys

Python client quickstart

from tabpfn_client import TabPFNClassifier
from sklearn.datasets import load_breast_cancer
from sklearn.model_selection import train_test_split

X, y = load_breast_cancer(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)

model = TabPFNClassifier()
model.fit(X_train, y_train)
predictions = model.predict(X_test)
probabilities = model.predict_proba(X_test)

Model selection

ModelBest forMax rowsMax columnsAvailability
TabPFN-3.5General tabular tasks, text-rich data1M20KLocal, API, client
TabPFN-3.5-PlusText-heavy datasets, enhanced text processing1M20KAPI, client, MCP
TabPFN-3.5-ThinkingMaximum accuracy on grouped/temporal data200K2KAPI, client
TabPFN-3.5-FastSpeed-critical inference (6× faster)1M20KLocal, API, client
TabPFN-3Numerical and categorical data1M2KLocal, API, client

API metering and limits

MetricDefaultNotes
Daily token budget5,000,000Resets midnight UTC
Monthly token budget20,000,000Resets 1st of month UTC
Predict requests/min60Per-user limit
Predict requests/hour1,500Per-user limit
Thinking fit requests/min10Stricter than standard fits
Minimum token charge10,000 (v3.x)Per prediction or Thinking fit

Estimate token cost before running:

from tabpfn_client import estimate_cost
estimate = estimate_cost(X_train, X_test, model_version="v3.5", n_estimators=8)
print(estimate.estimated_cost)

Common parameters

ParameterTypeDefaultUse case
thinking_modeboolFalseEnable fit-time optimization for better accuracy
thinking_effort"medium" | "high"NoneBalance fit time vs. accuracy
thinking_metricstrNoneMetric to optimize (e.g., "accuracy", "log_loss", "rmse")
n_estimatorsint"auto"Number of ensemble members (1–32); "auto" adapts to data
categorical_features_indiceslist[int]NoneIndices of categorical columns (improves performance)
output_typestr"probas" (clf), "mean" (reg)"preds", "probas", "full", "quantiles"
group_colstr | list[str]NoneColumn(s) identifying groups (Thinking mode only)
time_colstrNoneTemporal column (Thinking mode only)

Decision guidance

When to use API client vs. local package

ScenarioUse tabpfn-clientUse tabpfn
No GPU available✓✗
Datasets > 1,000 rows✓ (recommended)✓ (with GPU)
Thinking mode needed✓✗
Text-rich data✓ (Plus variant)✓ (3.5 base)
Offline inference required✗✓
Cost-sensitive (small datasets)✗✓

When to use Thinking mode

ConditionUse ThinkingUse standard
Grouped or temporal data✓✗
Finance or healthcare (high accuracy needed)✓✗
Speed critical✗✓
Budget constrained✗✓
Repeated predictions on same training set✓ (fit once)✓ (fit once)

When to tune model parameters

IssueSolutionParameter
Predictions too slowReduce estimators or use Fast variantn_estimators or model_path="v3.5-fast_default"
Poor accuracy on wide tablesIncrease estimatorsn_estimators (auto-scales up to 32)
Imbalanced classesEnable probability balancingbalance_probabilities=True
Optimize for specific metricSet thinking metricthinking_metric="f1" or "roc_auc"
Categorical columns misidentifiedDeclare them explicitlycategorical_features_indices=[0, 2, 5]

Workflow

Standard prediction workflow (Python client)

  1. Install and authenticate

    • Run pip install --upgrade tabpfn-client
    • Set TABPFN_TOKEN environment variable or call set_access_token(api_key)
  2. Prepare data

    • Load training and test data as pandas DataFrames or numpy arrays
    • Keep data raw: do not scale, one-hot encode, or impute missing values
    • Declare categorical columns via categorical_features_indices or pandas category dtype
  3. Choose model and parameters

    • Select model version (default: TabPFN-3.5-Plus via API)
    • Decide on Thinking mode if accuracy > speed
    • Set thinking_metric to match your evaluation metric
  4. Fit and predict

    from tabpfn_client import TabPFNClassifier
    model = TabPFNClassifier(thinking_mode=True, thinking_effort="high")
    model.fit(X_train, y_train)
    predictions = model.predict(X_test)
    
  5. Check usage and costs

    • Monitor token usage at platform.priorlabs.ai/account/usage
    • Estimate future costs with estimate_cost() before large runs
  6. Reuse fitted models

    • Save with model.save_model("model.json") (Thinking mode only)
    • Load with TabPFNClassifier.load_model("model.json")
    • Reuse for repeated predictions to avoid refitting

REST API workflow

  1. Get API key from platform.priorlabs.ai/account/api-keys

  2. Check model limits with GET /tabpfn/get_model_limits

  3. Upload training set

    • Call POST /tabpfn/prepare_train_set_upload to get signed URLs
    • PUT CSV or Parquet files to the signed URLs
  4. Fit model with POST /tabpfn/fit, specifying task, model_path, and optional Thinking parameters

  5. Upload test set with POST /tabpfn/prepare_test_set_upload

  6. Predict with POST /tabpfn/predict, referencing the fitted model ID

  7. Handle errors — all responses follow a consistent error envelope with code, detail, and trace_id

MCP integration (Claude, ChatGPT, n8n)

  1. Install MCP server

    • Claude Desktop: Download .mcpb bundle or edit config file with server URL
    • ChatGPT: Create custom connector with OAuth
    • n8n: Add TabPFN node to workflow
  2. Authenticate with Prior Labs API key

  3. Use in agent workflows

    • Claude: Ask agent to upload CSV and run predictions
    • n8n: Chain CSV parsing → TabPFN prediction → downstream actions

Common gotchas

  • Do not preprocess data. TabPFN handles missing values, outliers, categorical features, and text natively. Scaling, imputation, one-hot encoding, or manual text vectorization often hurts performance.

  • Declare categorical columns explicitly. Integer-coded categorical features are often misidentified as numerical. Use categorical_features_indices or pandas category dtype.

  • Thinking mode has stricter limits. Max 200K rows and 2K columns; 10 requests/min (vs. 60 for standard fits). Higher effort increases token usage.

  • Token budgets are shared. Predictions and Thinking fits draw from the same daily (5M) and monthly (20M) token pools. Estimate costs before large runs.

  • Rate limits are separate from token budgets. HTTP 429 can mean either rate limit exceeded (per-minute/hour) or insufficient tokens (daily/monthly). Check the response message.

  • Reuse fitted models. Refitting on the same training data wastes tokens. Save and load models or reuse fitted_train_set_id across predictions.

  • KV cache is not compatible with Thinking mode. Choose one: fit-time optimization (Thinking) or fast repeated predictions (KV cache).

  • Grouped/temporal data requires Thinking mode. Standard models treat rows as independent. Use group_col or time_col only with Thinking mode.

  • Text preprocessing limits on Plus. TabPFN-3.5-Plus has a 50M token limit per dataset and 2,500 characters per text value.

  • Minimum token charge applies. Even small predictions cost at least 10,000 tokens (v3.x) or 5,000 (v2.x).

  • Deprecated /v1/fit and /v1/predict endpoints. Use /tabpfn/* JSON routes instead.


Verification checklist

Before submitting work with TabPFN:

  • Data is raw. No scaling, imputation, one-hot encoding, or manual text vectorization applied.
  • Categorical columns declared. Use categorical_features_indices or pandas category dtype for integer-coded features.
  • Model version selected. Confirm model_path or ModelVersion matches your use case (e.g., "v3.5_default" for Plus, "v3.5-fast_default" for Fast).
  • Thinking parameters correct. If using Thinking mode, thinking_metric matches your evaluation metric.
  • Token cost estimated. Run estimate_cost() before large predictions; confirm remaining budget is sufficient.
  • Rate limits respected. Batch requests to stay below per-minute and per-hour limits; implement exponential backoff for 429 errors.
  • Fitted models reused. For repeated predictions, save/load models or reuse fitted_train_set_id instead of refitting.
  • Error handling in place. Catch HTTP 429 (rate limit or budget), 422 (validation), 401 (auth), and 404 (model not found).
  • API key secured. Never commit TABPFN_TOKEN to source control; use environment variables or secret managers.
  • Usage monitored. Check platform.priorlabs.ai/account/usage or call get_api_usage() periodically.

Resources

Comprehensive navigation: https://docs.priorlabs.ai/llms.txt

Critical documentation pages:


For additional documentation and navigation, see: https://docs.priorlabs.ai/llms.txt

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/docs.priorlabs.ai/priorlabs">View priorlabs on skillZs</a>