No slash command · from anofox-tabfm
Controls GPU acceleration for the anofox_tabfm DuckDB extension: CUDA, ROCm, and MLX backends, device discovery, per-model precision, and troubleshooting GPU fallback.
Ships in anofox-tabfm. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Extension: anofox_tabfm v2026.11.23 | DuckDB: v1.5.6 / v2.0 | Dual naming: tabfm_* and anofox_tabfm_* (identical)
A GPU is not a separate build. There is one build per platform; the CPU runs on the vendored ggml engine and
no build contains ONNX Runtime. Each accelerator is a plugin loaded at runtime: cuda (NVIDIA, Linux x64) and
rocm (AMD, Linux x64) are both the ggml GPU plugin (libanofox_tabfm_ggml-cuda_plugin.so,
libanofox_tabfm_ggml-rocm_plugin.so), the same engine as the CPU on the GPU; mlx (Apple Silicon, macOS
arm64) is the MLX plugin. The CUDA plugin links the CUDA runtime statically and needs only the NVIDIA driver;
the ROCm plugin uses the system's ROCm 6.4+ (HIP, hipBLAS, rocBLAS); MLX needs brew install mlx mlx-c.
SELECT model, task, device FROM tabfm_models() WHERE loaded; (cpu, cuda:0,
rocm:0, mlx:0).auto never promises an accelerator a model cannot use. anofox_tabfm_device = 'auto' (default)
picks, per model, the best device whose plugin is present and that has a graph for it, else the CPU.
tabfm_backends() gives the choice and the reason. One exception to "GPU is faster": repeated scoring
against the same context with tabicl-v2 is fastest on the CPU, whose context cache a GPU session does
not use; pin SET anofox_tabfm_device = 'cpu'; there.SET anofox_tabfm_device = 'cuda' (or 'rocm', 'mlx') errors
when the model cannot be served there instead of falling back; without the plugin the error names the file
and CALL tabfm_download_runtime('cuda').fp32 everywhere. bf16 / fp16 exist on MLX only; on CUDA and ROCm
they are refused with an error. tf32 (CUDA) is faster but rounds each matmul; validate before switching.CALL tabfm_unload(), SET anofox_tabfm_max_sessions = 1
and SET anofox_tabfm_device='cpu'. Sessions are cached per (model, device, precision) and add up.usable = false, and 'auto' passes over it. Every built-in model ships
an ext graph, so each runs on CUDA, ROCm and MLX as far as tabfm_backends() says.CALL tabfm_accelerate(); -- find the GPU, fetch its plugin, verify it loads
Returns step, status, detail rows, including what is still ahead (the ROCm runtime libraries, brew install mlx mlx-c on macOS). Re-running re-verifies without re-downloading. That is all: with device = 'auto' the
next predict uses the GPU for every model it can serve.
By hand:
CALL tabfm_download_runtime('cuda'); -- 'cuda', 'rocm' or 'mlx': rows file, bytes, status
SET anofox_tabfm_device = 'cuda';
Plugins land in the runtime subdirectory of anofox_tabfm_cache_dir, verified against a published sha256;
SET anofox_tabfm_ep_path = '<dir>' only to point somewhere else. A plugin is checked against the extension's
plugin ABI on load, so a plugin left over from an older release is refused (and auto uses the CPU);
CALL tabfm_accelerate() fetches the matching one.
SELECT * FROM tabfm_devices();
SELECT model, task, device, backend, supported, reason FROM tabfm_backends() WHERE NOT supported;
| function | columns | meaning |
|---|---|---|
tabfm_devices() | device_id, ep, name, arch, vram_total, vram_free, driver, usable | always cpu, plus every CUDA, ROCm or MLX device found; usable = false when present but unsupported. ep is the serving engine: ggml (cpu), ggml-cuda, ggml-rocm, mlx |
tabfm_backends() | model, task, device, backend, supported, reason | per model, task and device: can it be served, and why not. supported is NULL while the weights are not downloaded |
tabfm_models() | ..., device, ... | the device serving each loaded session right now |
Verify a query really ran on the GPU:
SELECT customer_id, yhat
FROM tabfm_classify('history', 'churned', test := 'prospects', keep := ['customer_id'], model := 'mitra');
SELECT model, task, device FROM tabfm_models() WHERE loaded;
The first call of a new shape builds its graph and is slower than later ones; to warm a model, run one small prediction.
anofox_tabfm_gpu_precision | backends | meaning |
|---|---|---|
fp32 (default) | all | strict: switching device does not change answers beyond float rounding (TF32 off on CUDA, small matmuls padded past ggml's TF32 kernel) |
tf32 | CUDA (accepted on ROCm, which has no TF32 switch; refused on MLX) | TF32 tensor-core matmuls, fp32 storage. Process-wide, latched at the first CUDA use |
bf16, fp16 | MLX | reduced precision; refused on CUDA and ROCm |
A mode the backend cannot honour is an error, never a silent fp32 run.
Deprecated names, accepted so old scripts keep working: 'coreml' (errors, points to mlx), 'migraphx' (an
alias for rocm), anofox_tabfm_mxr_source and anofox_tabfm_cpu_prepack (no effect), tabfm_gpu_precompile
(reports not needed); do not use them in new SQL.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub datazoode/anofox-tabfm --plugin anofox-tabfm5 skills in this plugin
/anofox-tabfm-evaluateEvaluating and comparing predictions with the anofox_tabfm DuckDB extension: classification metrics (accuracy, precision, recall, F1, ROC-AUC, log loss, ECE, confusion matrix), regression metrics (RMSE, MAE, R², MAPE, MedAE), proper scoring rules for predictive distributions (CRPS, log score, interval score), leakage-safe k-fold cross-validation, and the `_by` macros that feed anofox-visualization plots. Use when measuring how good a prediction is, comparing models with `tabfm_cross_validate` or `tabfm_fold_assign`, writing `tabfm_f1` / `tabfm_roc_auc` / `tabfm_rmse` aggregates, or plotting ROC, calibration, confusion-matrix or model-comparison charts with `tabfm_classification_metrics_by` and friends.
/anofox-tabfm-generateSynthetic tabular data and missing-value imputation with the anofox_tabfm DuckDB extension: `tabfm_generate` samples new rows that keep the relationships between columns, `tabfm_impute` fills NULL cells conditioned on the rest of each row, both zero-shot from a tabular foundation model. Use when creating synthetic or augmented rows, upsampling a rare segment, filling NULLs in a table, choosing generation options (seed, temperature, bins, column_order, rounds), or checking the fidelity and limits of generated data.
/anofox-tabfm-modelsChoosing, downloading and managing models for the anofox_tabfm DuckDB extension: the 24 built-in tabular foundation models (Mitra, TabPFN 2 / 2.5 / 2.6 / 3 / 3.5, TabICL v2, TabDPT, LimiX-2M, Kumo-Tabular, EXAONE, Nori, Orion, Causilo, Google TabFM), their licences and commercial use, the licence gate, Hugging Face tokens, and registering your own ONNX model. Use when picking a model, running `tabfm_download` / `tabfm_load` / `tabfm_unload` / `tabfm_remove`, reading `tabfm_list_models()` or `tabfm_models()`, setting `anofox_tabfm_default_model` or `anofox_tabfm_accept_hf_license`, calling `tabfm_register_model`, tuning the context cache, or checking whether a model may be used commercially.
/anofox-tabfm-predictZero-shot classification and regression in SQL with the anofox_tabfm DuckDB extension (tabular foundation models: TabPFN, Mitra, TabICL, TabDPT, LimiX and more). Use when predicting a label or a number for table rows from labelled example rows without training a model, writing `tabfm_classify` / `tabfm_regress` calls (train/test pair or one table with NULL targets), choosing features or `opts`, keeping a row key with `keep`, reading `yhat` / `yhat_score` / `proba`, scoring per segment, or bounding memory with `query_batch`.
Other plugins' skills for the same job