﻿# TabICL offloading: GPU memory savings move intermediate state to RAM or disk

Plan TabICL inference using stage batching and GPU, CPU or memory-mapped output storage, measuring transfer and host-resource costs alongside VRAM.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-tabicl-gpu-cpu-disk-offload-stage-memory-budget/
Language: en

## Identify the intermediate state being moved

TabICL can handle large tabular inference using batching and offloading. The [project guide](https://raw.githubusercontent.com/soda-inria/tabicl/main/README.md) describes CPU and disk paths as scaling options, with task-quality limits kept separate. A resource plan should identify the tensors moved off the accelerator rather than assume the entire computation becomes host-only. Saving GPU memory at one stage can increase host allocation, transfer work and storage activity elsewhere in the same prediction workflow.

## Follow stage-level inference management

The [inference manager](https://raw.githubusercontent.com/soda-inria/tabicl/main/src/tabicl/_model/inference.py) estimates execution batches, splits large inputs and merges outputs. Its available storage backends include accelerator memory, host memory and memory-mapped disk files. The [model architecture](https://raw.githubusercontent.com/soda-inria/tabicl/main/src/tabicl/_model/tabicl.py) separates stages that can create different intermediate shapes. Preserve the table dimensions and stage configuration when comparing memory, because changing feature width and changing context rows can stress different parts of the computation.

## Budget host memory and storage explicitly

Host offload still needs usable RAM, and disk-backed output still needs finite free storage and suitable I/O performance. The manager exposes safety margins and storage-related settings; they are implementation policies rather than a guarantee that every arbitrarily large table fits. Record the offload directory, available capacity and concurrent workload assumptions. A successful allocation on an otherwise idle workstation does not establish the same operating margin on a shared inference machine.

## Separate recovery behavior from a stable operating point

The manager can reduce batch size after an out-of-memory event, but retries contribute to observed latency. Report cold preparation, successful steady execution and recovery separately when they matter. The [TabPFN cache guide](/journal/fg2-tabpfn-fit-cache-repeated-prediction-memory-context/) provides a related state-versus-work trade-off. Do not present only the smallest observed VRAM figure while omitting transferred bytes, host peak memory or disk traffic required to obtain it.

## Validate a complete workload budget

Run representative table shapes and concurrency levels with the intended storage policy, comparing reference outputs and resource measurements. The [TabICL architecture guide](/journal/fg2-tabicl-column-row-dataset-attention-stages/) identifies stage boundaries. Accept an offload policy when it fits the whole machine budget and its latency is suitable, rather than treating accelerator-memory reduction as equivalent to lower total cost, unlimited capacity or verified statistical generalization beyond the checkpoint's evaluated data range.
