pypi tabicl 2.2.1

51 minutes ago

2.2.1

Bug fixes

  • Only fall back to CPU memory for offloading on discrete GPUs. On integrated GPUs, Apple Silicon
    MPS and devices that cannot be classified, CPU memory is or may be the same RAM as device
    memory, so outputs that do not fit go to disk when disk_offload_dir is set and stay on the
    device otherwise. CPU memory is still used there with an explicit offload_mode="cpu". (PR#193)

  • Keep inference on integrated GPUs (Intel XPU, CUDA) and Apple Silicon MPS from exhausting
    system memory. Batch sizes are limited by the available host RAM scaled by the new inference
    config option unified_memory_safety_factor (default 0.5), and on integrated XPU/CUDA GPUs the
    torch allocator is capped the same way, so an oversized batch is retried smaller instead of
    crashing the machine. (PR#179)

  • Fix numpy bool columns of a pandas DataFrame being silently dropped with pandas >= 3.1. They
    are now ordinal-encoded like the other categorical columns, and columns that are dropped because
    of their dtype now raise a warning listing their dtypes. (PR#190)

  • Fix storing a kv_cache="repr" cache on an accelerator when the row representations are
    offloaded to CPU memory or disk (ROW_CONFIG offload settings, or the fallback when they do not
    fit on the device), which failed with a device mismatch error. (PR#181)

  • Fix predictions changing when inference retries with smaller batches after running out of GPU
    memory: the label embeddings were added in place to the in-context learning inputs, so batches
    that had already run got them added a second time. (PR#185)

  • Fix TabICLRegressor.predict(output_type="variance") returning incorrectly scaled values.
    Variance now scales by the squared target scale without adding the target mean.
    (PR#189)

Performance

  • Speed up fit on tables with many features: the Latin-square feature shuffles are built without
    recursion. The ensembles and predictions are unchanged. (PR#196)

Maintenance

  • Add a CI job that runs the tests with the minimum dependency versions declared in
    pyproject.toml. It showed that finetuning was broken with torch 2.2 and scikit-learn 1.3
    and SHAP explanations with shapiq 1.0, which are now supported. (PR#182)

Don't miss a new tabicl release

NewReleases is sending notifications on new releases.