> This page is for Structured Data Models.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/sdgm/llms.txt.

# Run Kumo Tabular

> Load Kumo Tabular with the SDM library, set its parameters, and fine-tune it.

Use `sdm.models.KumoTabular` to predict a target column for query rows from labeled context rows of the same table.
For what the model is and how it works, see [Kumo Tabular](/sdgm/structured-data-models/models/kumo-tabular).

| Property     | Value                    |
| ------------ | ------------------------ |
| Class        | `sdm.models.KumoTabular` |
| Available in | SDM 0.2.1 and later      |
| Default size | `large`                  |

## Make a Prediction

The [Quickstart](/sdgm/structured-data-models/quickstart) runs Kumo Tabular end to end on CPU, including regression and context reuse.
The core call is:

```python
model = sdm.models.KumoTabular(task="classification", device=device)
probs = model(x_context=x_context, y_context=y_context, x_query=x_query, num_estimators=8)
```

`x_context`, `y_context`, and `x_query` are `TableTensor` objects. `probs` holds one probability column per class.

## Key Parameters

| Parameter              | Where        | Meaning                                                                               |
| ---------------------- | ------------ | ------------------------------------------------------------------------------------- |
| `task`                 | Constructor  | `"classification"`, `"regression"`, or both (default). Loads only the heads you need. |
| `size`                 | Constructor  | `"small"`, `"medium"`, or `"large"`                                                   |
| `num_estimators`       | Forward, fit | Number of ensemble members over randomized views                                      |
| `estimator_batch_size` | Forward, fit | Members per model call. Lower it to reduce device memory.                             |
| `recipe`               | Forward, fit | Replace the default preprocessing and postprocessing                                  |
| `generator`            | Forward, fit | Seeded `torch.Generator` for reproducible results                                     |

## Inputs and Limits

* One forward pass covers up to 10 classes; SDM extends this to any number of classes with error-correcting output codes.
* The default recipe keeps at most 500 feature columns per estimator, after shuffling columns.
* Text, datetime, and other column types need recipe processors that turn them into numerical features.

[Best Practices for Kumo Tabular](/sdgm/structured-data-models/best-practices/kumo-tabular) covers context selection, column types, and settings that raise accuracy.

## Fine-Tuning

Kumo Tabular supports full fine-tuning through a differentiable forward pass.
See the [fine-tuning guide](https://nvidia.github.io/structured-data-models/finetuning.html) and [examples/tabular/finetune.py](https://github.com/NVIDIA/structured-data-models/blob/main/examples/tabular/finetune.py).

## Learn More

* [KumoTabular API reference](https://nvidia.github.io/structured-data-models/api/generated/sdm.models.KumoTabular.html)
* [GPU Sizing Guide](/sdgm/structured-data-models/gpu-sizing)
* [Kumo Tabular Infrastructure Benchmarks](/sdgm/structured-data-models/kumo-tabular-benchmarks)