TimesFM3#

class sdm.models.TimesFM3(pretrained: bool = True, accept_license: bool = False, device: device | str | None = None)#

Bases: ICLModel

The multivariate forecasting foundation model from “TimesFM-3: A Zero-shot Foundation Model for Multivariate Forecasting”.

../../_images/timesfm3_light.png
../../_images/timesfm3_dark.png

TimesFM3 is a zero-shot time-series foundation model for multivariate forecasting. It extends earlier univariate TimesFM models with native support for jointly forecasting multiple coevolving target series, incorporating historical covariates, and using dynamic covariates that are known across both the past and future forecast horizon.

Architecturally, it combines patch-based time-series tokenization with alternating causal temporal attention and full variate attention, allowing forecasts to use both within-series history and cross-series dependencies. It decodes the full forecast horizon in a single forward pass and returns nine quantile forecasts, from the 10th to the 90th percentile, for each target series and query time step.

Within the ICLModel protocol, TimesFM3 treats rows as ordered time steps. In a default forward pass, x_context contains historical covariates, y_context contains one or more past target series, and x_query contains future-known covariates (which must also be present in x_context).

Note

TimesFM model weights are distributed under the TimesFM Non-Commercial License v1.0. Before downloading pretrained weights, users must accept the license either interactively when prompted or explicitly via accept_license=True.

Parameters:

Capabilities#

Supported Input Semantic Types

numerical

Supported Target Semantic Types

numerical

Supported Prediction Tasks

regression

Multi-Target Support

✅

Context-only Column Support

✅

Related Table Support

❌

Default Recipe#

Recipe(
  features=Identity(),
  target=Identity(),
  output=Sequential(
    SortQuantiles(num_quantiles=9),
    AverageEstimators(),
  ),
)