Skip to main content

Ironicl

Ironicl runs TabICLv2 inference without PyTorch. The model runs in a native engine written in Rust, on the compute built into your machine. It is built for a training table that does not change: Ironicl computes the training context once in fit, keeps it, and then predicts new rows against it.

ironicl.TabICLClassifier and ironicl.TabICLRegressor are drop-in replacements for TabICL's estimators.

Warning Ironicl is experimental. Formats and APIs can change without notice.

Installation

pip install ironicl

Ironicl needs Python 3.12 or newer, NumPy, scikit-learn, and SciPy. It does not depend on TabICL or PyTorch. For a progress bar, install the progress extra: pip install "ironicl[progress]".

Prebuilt wheels are currently published for macOS on Apple Silicon only. There, dense layers and attention use Apple Accelerate, and Metal runs context building and prediction on the GPU.

Quickstart

Change only the import:

from ironicl import TabICLClassifier, TabICLRegressor  # was: from tabicl import ...

clf = TabICLClassifier(n_estimators=8, random_state=42).fit(X_train, y_train)
proba = clf.predict_proba(X_test)
labels = clf.predict(X_test)

reg = TabICLRegressor(n_estimators=8, random_state=42).fit(X_train, y_train)
mean = reg.predict(X_test)
q = reg.predict(X_test, output_type="quantiles", alphas=[0.05, 0.95])

On first use, fit downloads the released TabICLv2 checkpoint from Hugging Face to ~/.cache/ironicl/checkpoints (or $XDG_CACHE_HOME/ironicl/checkpoints). Ironicl verifies its SHA-256 and imports it safely, without executing pickle code. Pass model_path= to use a local checkpoint instead.

The constructors, fit, predict, and predict_proba keep TabICL 2.1.1's parameter names and defaults. fit runs the training rows through the model once and keeps their attention keys and values, like TabICL's kv_cache=True; prediction then runs only the query rows. The context takes about 49 KB per training row and estimator.

Optimization levels

optimize, a parameter TabICL does not have, sets how far Ironicl may trade exactness for speed on the Apple Silicon GPU:

optimize Precision Accuracy against "safe"
"safe" FP32 throughout matches TabICL within 1e-4
"auto" context and ICL attention in FP16 max probability error below 1e-3
"fast" currently the same as "auto" probabilities within about 1e-2

The default, None, reads the IRONICL_OPTIMIZE environment variable and falls back to "safe". On an M1 Max, "auto" made fitting a 7071x22 table 16% faster, batch prediction 14% faster, and single-row prediction 25% faster.

Context cache

With cache_dir, fit writes the training context to disk and reuses it when the same data, model, and optimize level are fit again:

cache_dir Behavior
False (default) no caching
None $IRONICL_CACHE_DIR, else ~/.cache/ironicl/contexts
str or Path that directory

Nothing is evicted automatically. ironicl.cache_info() lists the entries and ironicl.clear_cache() removes them, all by default, or by age (older_than=timedelta(days=7)) or total size (max_size="10G").

Saving and pickling

As in TabICL, save and load write and read a fitted estimator, and pickle, joblib, and copy.deepcopy work too:

clf.save("model.pkl", save_model_weights=False, save_training_data=True, save_kv_cache=True)
clf = TabICLClassifier.load("model.pkl")

Without save_kv_cache, the file is small and load rebuilds the context from the training data. Load only files you trust: like any pickle, loading can run code.

Progress, interrupts, and configuration

  • verbose=True shows build and prediction progress, as a tqdm bar when tqdm is installed and as plain lines on stderr otherwise.
  • Ctrl-C stops a build or prediction early with KeyboardInterrupt.
  • n_jobs sets the thread count (-1 uses all logical cores).
  • ironicl.show_config() prints the version, GPU, threads, memory, cached checkpoints and contexts, and the IRONICL_* variables that are set. Include it in bug reports.

Supported inputs

  • Finite, dense, numeric features, as NumPy arrays or numeric DataFrames.
  • Classification with 2 to 10 classes, and regression.
  • Not yet: categorical features, missing values, sparse matrices, more than 10 classes.

License

Ironicl is licensed under the BSD 3-Clause License. Its Python preprocessing adapts code from TabICL, under TabICL's own BSD 3-Clause notice; both license files ship with the package. The TabICLv2 checkpoints are published separately by their authors under BSD-3-Clause.

Citation

If you use Ironicl, please cite the TabICL papers:

  • Jingang Qu, David Holzmüller, Gaël Varoquaux, Marine Le Morvan. TabICLv2: A better, faster, scalable, and open tabular foundation model. 2026. arXiv:2602.11139
  • Jingang Qu, David Holzmüller, Gaël Varoquaux, Marine Le Morvan. TabICL: A Tabular Foundation Model for In-Context Learning on Large Data. ICML 2025. arXiv:2502.05564

Ironicl is developed by Probabl.

Metadata

Release files for ironicl 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for ironicl 0.1.0
File Interpreter ABI Platform Actions
ironicl-0.1.0-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for ironicl-0.1.0-cp312-abi3-macosx_11_0_arm64.whl

Release files / ironicl-0.1.0-cp312-abi3-macosx_11_0_arm64.whl

Download URL ironicl-0.1.0-cp312-abi3-macosx_11_0_arm64.whl
Size 887.7 kB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7d950f6ce4ecd4d626b8058eadbd785c90d5f426b6404ef916f7023290863261
BLAKE2b-256 checksum
How to use checksums
869584dc0ba56e0cded80acca2f05c415b469fa5e29b16de590bd5a091ec2c15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for ironicl 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page