> ## Documentation Index
> Fetch the complete documentation index at: https://docs.priorlabs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> TabPFN-3 and later versions support up to 1,000,000 rows, subject to feature count and checkpoint/API limits.
> For large datasets, use per-estimator subsampling, e.g. inference_config={"SUBSAMPLE_SAMPLES": 100_000}, in TabPFNClassifier or TabPFNRegressor from tabpfn or tabpfn_client.
> Pass raw pandas DataFrames to fit and predict. Categorical strings/categories, raw text, and missing feature values are handled automatically; no manual integer/one-hot encoding, imputation, scaling, or outlier removal is needed.

# Experiment logging

> Protocol for finetuning experiment loggers.

> [!NOTE]
>
> Looking for usage documentation? Check out [Fine tuning](https://docs.priorlabs.ai/capabilities/fine-tuning.md).

## `FinetuningLogger`

[ View source ](https://github.com/PriorLabs/TabPFN/blob/f02b3b5941717472eafd078c15ae2043676b3fcf/src/tabpfn/finetuning/logging.py#L10)

Protocol for finetuning experiment loggers.

***

## `FinetuningLogger.setup`

[ View source ](https://github.com/PriorLabs/TabPFN/blob/f02b3b5941717472eafd078c15ae2043676b3fcf/src/tabpfn/finetuning/logging.py#L13)

Initialize the logger with run configuration.

```python theme={null}
FinetuningLogger.setup(
    config: dict[str, Any],
) -> None
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `config` | `dict[str, Any]` | Required | — |

**Returns**

| Type | Description |
| - | - |
| `None` | — |

***

## `FinetuningLogger.log_step`

[ View source ](https://github.com/PriorLabs/TabPFN/blob/f02b3b5941717472eafd078c15ae2043676b3fcf/src/tabpfn/finetuning/logging.py#L17)

Log per-step metrics (e.g., batch loss, learning rate).

```python theme={null}
FinetuningLogger.log_step(
    metrics: dict[str, float],
    step: int,
) -> None
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `metrics` | `dict[str, float]` | Required | — |
| `step` | `int` | Required | — |

**Returns**

| Type | Description |
| - | - |
| `None` | — |

***

## `FinetuningLogger.log_epoch`

[ View source ](https://github.com/PriorLabs/TabPFN/blob/f02b3b5941717472eafd078c15ae2043676b3fcf/src/tabpfn/finetuning/logging.py#L21)

Log per-epoch metrics (e.g., val metrics, mean loss).

```python theme={null}
FinetuningLogger.log_epoch(
    metrics: dict[str, float],
    step: int,
) -> None
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `metrics` | `dict[str, float]` | Required | — |
| `step` | `int` | Required | — |

**Returns**

| Type | Description |
| - | - |
| `None` | — |

***

## `FinetuningLogger.finish`

[ View source ](https://github.com/PriorLabs/TabPFN/blob/f02b3b5941717472eafd078c15ae2043676b3fcf/src/tabpfn/finetuning/logging.py#L25)

Finalize the logger (e.g., close wandb run).

```python theme={null}
FinetuningLogger.finish() -> None
```

**Returns**

| Type | Description |
| - | - |
| `None` | — |

***

## `NullLogger`

[ View source ](https://github.com/PriorLabs/TabPFN/blob/f02b3b5941717472eafd078c15ae2043676b3fcf/src/tabpfn/finetuning/logging.py#L30)

No-op logger used when no experiment tracking is configured.

***

## `NullLogger.setup`

[ View source ](https://github.com/PriorLabs/TabPFN/blob/f02b3b5941717472eafd078c15ae2043676b3fcf/src/tabpfn/finetuning/logging.py#L33)

No-op.

```python theme={null}
NullLogger.setup(
    config: dict[str, Any],
) -> None
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `config` | `dict[str, Any]` | Required | — |

**Returns**

| Type | Description |
| - | - |
| `None` | — |

***

## `NullLogger.log_step`

[ View source ](https://github.com/PriorLabs/TabPFN/blob/f02b3b5941717472eafd078c15ae2043676b3fcf/src/tabpfn/finetuning/logging.py#L36)

No-op.

```python theme={null}
NullLogger.log_step(
    metrics: dict[str, float],
    step: int,
) -> None
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `metrics` | `dict[str, float]` | Required | — |
| `step` | `int` | Required | — |

**Returns**

| Type | Description |
| - | - |
| `None` | — |

***

## `NullLogger.log_epoch`

[ View source ](https://github.com/PriorLabs/TabPFN/blob/f02b3b5941717472eafd078c15ae2043676b3fcf/src/tabpfn/finetuning/logging.py#L39)

No-op.

```python theme={null}
NullLogger.log_epoch(
    metrics: dict[str, float],
    step: int,
) -> None
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `metrics` | `dict[str, float]` | Required | — |
| `step` | `int` | Required | — |

**Returns**

| Type | Description |
| - | - |
| `None` | — |

***

## `NullLogger.finish`

[ View source ](https://github.com/PriorLabs/TabPFN/blob/f02b3b5941717472eafd078c15ae2043676b3fcf/src/tabpfn/finetuning/logging.py#L42)

No-op.

```python theme={null}
NullLogger.finish() -> None
```

**Returns**

| Type | Description |
| - | - |
| `None` | — |

***

## `WandbLogger`

[ View source ](https://github.com/PriorLabs/TabPFN/blob/f02b3b5941717472eafd078c15ae2043676b3fcf/src/tabpfn/finetuning/logging.py#L46)

WandB experiment logger.

```python theme={null}
WandbLogger(
    project: str | None = None,
    run_name: str | None = None,
    entity: str | None = None,
    **wandb_kwargs: Any,
)
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `project` | `str \| None` | `None` | — |
| `run_name` | `str \| None` | `None` | — |
| `entity` | `str \| None` | `None` | — |
| `**wandb_kwargs` | `Any` | — | — |

***

## `WandbLogger.setup`

[ View source ](https://github.com/PriorLabs/TabPFN/blob/f02b3b5941717472eafd078c15ae2043676b3fcf/src/tabpfn/finetuning/logging.py#L62)

Initialize a new WandB run with the given config.

```python theme={null}
WandbLogger.setup(
    config: dict[str, Any],
) -> None
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `config` | `dict[str, Any]` | Required | — |

**Returns**

| Type | Description |
| - | - |
| `None` | — |

***

## `WandbLogger.log_step`

[ View source ](https://github.com/PriorLabs/TabPFN/blob/f02b3b5941717472eafd078c15ae2043676b3fcf/src/tabpfn/finetuning/logging.py#L83)

Log metrics for a single training step.

```python theme={null}
WandbLogger.log_step(
    metrics: dict[str, float],
    step: int,
) -> None
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `metrics` | `dict[str, float]` | Required | — |
| `step` | `int` | Required | — |

**Returns**

| Type | Description |
| - | - |
| `None` | — |

***

## `WandbLogger.log_epoch`

[ View source ](https://github.com/PriorLabs/TabPFN/blob/f02b3b5941717472eafd078c15ae2043676b3fcf/src/tabpfn/finetuning/logging.py#L88)

Log metrics for a completed epoch.

```python theme={null}
WandbLogger.log_epoch(
    metrics: dict[str, float],
    step: int,
) -> None
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `metrics` | `dict[str, float]` | Required | — |
| `step` | `int` | Required | — |

**Returns**

| Type | Description |
| - | - |
| `None` | — |

***

## `WandbLogger.finish`

[ View source ](https://github.com/PriorLabs/TabPFN/blob/f02b3b5941717472eafd078c15ae2043676b3fcf/src/tabpfn/finetuning/logging.py#L93)

Finish the WandB run.

```python theme={null}
WandbLogger.finish() -> None
```

**Returns**

| Type | Description |
| - | - |
| `None` | — |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.