Vibeleaderboard
Index / tool

T0: 256M Open-Weights Time-Series Forecasting Model

github.com/theforecastingcompany/tfc-t0
Category
Developer Tools
Rank
No. 1402Tools index

Previous survey · No. 1374 ·

Type
TOOL
Use case
Models: Train & Run
GitHub
81 stars
Latest release
v0.6.1
Date

About

t0-gamma is a 256M parameter open-weights foundation model for time series that forecasts zero-shot, without training on the user's data. It runs on CPU, GPU, or Apple chips and can use future-known inputs such as holidays, promotions, and weather forecasts. The authors report it ranks first among time-series foundation models on GIFT-Eval, fev-bench, and TIME, and cuts error by a third on European day-ahead electricity prices versus a repeat-yesterday baseline.

At a glance

t0 is an open-weight forecasting model that predicts a range of future values from historical series and optional inputs known in advance. It is worth evaluating when calendar or planned events could improve on a simple seasonal forecast.

Good fit

Teams that can backtest on held-out time periods and have reliable inputs available at prediction time.

Consider something else when

Skip it if you cannot separate future-known inputs from data that arrives after the forecast date.

Start here

Hold out the last few periods of a sample series. Compare t0 with a seasonal baseline, then add one known calendar feature and check accuracy and interval coverage.

Cost and requirements

The project documents Python 3.10 or later and several inference runtimes, including MLX for Apple silicon. Local inference requires model weights and compute. Hosted notebook use has its own data boundary.

Limits to know

Published benchmarks do not establish accuracy for your data. Keep the prediction horizon fixed and avoid giving the model information that was unavailable at forecast time.

Suggest an improvement
Read the source review

What it does

T0 is a pretrained model for predicting numeric sequences such as national electricity demand or monthly drug reimbursements. You pass in past observations and get back a range of likely future values as quantiles, for example the 10th, 50th and 90th percentile, instead of a single number. Inputs known ahead of time, like calendar features, can steer the prediction without being predicted themselves. One Python package carries two local runtimes, PyTorch and Apple's MLX, and both load the same published checkpoints from Hugging Face.

Why it's ranked here

Apache 2.0 code, public weights that download without authentication, and a PyPI package declared Beta with classifiers for Python 3.11 through 3.14. The engineering around the model is documented in reproducible detail. The MLX runtime is checked element by element against PyTorch with stated tolerances, and a published benchmark on an M1 Pro measured compiled MLX at 3.37 to 3.59 times faster than PyTorch on the Apple GPU. The code also credits its lineage openly, naming Datadog's Toto and Amazon's Chronos-2 as sources.

What's good

Four optional output adjustments use only each series' own history: trimming the missing stretch before the first observation, averaging with a forecast of the negated series, clipping at zero when the history is non-negative, and rounding when it is integer-valued. The docs recommend enabling all four. Missing data is explicit: NaN means an absent observation, and a separate mask marks padding when series of different lengths share a batch. Several variates of one series can be predicted jointly. One pass covers up to 1,024 steps, with autoregressive rollout beyond that, and quantile levels between the trained ones are interpolated.

Tradeoffs

The base install ships no runtime: you must choose the torch or mlx extra, and the README asks you to pin version 0.6.0 or later because older releases cannot read the newest checkpoint's settings. The ONNX exports for CPU, browser and edge use are built only from the older alpha checkpoint. The four output adjustments are off by default. A future input that never varies across the history is ignored unless you opt out, which can catch anyone encoding an event that only appears in the horizon. On an M5, MLX parity needed reduced-precision matrix multiplication turned off to pass three strict tests.

How to use it well

Suited to teams that want probabilistic predictions across many series from a pretrained model, especially when calendar or planned-event inputs are known ahead. Turn the recommended adjustments on, request the quantiles your decision actually needs, and check that future-only inputs vary over the history or disable constant-input dropping. On Apple silicon the MLX extra avoids installing PyTorch. Fine-tuning goes through a single differentiable forward pass, so it fits people comfortable writing their own training loop. For inference at scale the authors point to their hosted Retrocast service rather than this package.

Technical notes+

t0/forecaster.py holds ForecasterBase, the runtime-independent half of each T0Forecaster: a window is scaled by CausalScaler, patched, encoded, passed through the transformer and decoder, then rescaled to data space. DEFAULT_MAX_HORIZON is 1024 steps per pass, with rollout beyond it. predict refuses group_ids combined with future_covariates and widens ids to int64 to avoid overflow. t0/config.py defines T0Config.medium() (102M parameters, t0-alpha, five quantile levels) and T0Config.large() (256M, t0-beta, 21 levels from 0.01 to 0.99, std_clamp scaler); a checkpoint is valid only under the eps mode it trained with. pyproject.toml sets uv exclude-newer to P7D, quarantining new dependency versions for seven days.

Observed

License
Apache-2.0 (LICENSE)
Language
Python, requires 3.11 or newer (pyproject.toml)
Packaging
PyPI package tfc-t0 with torch, mlx, evaluation and plot extras; base install has no runtime
Interface
Python library (T0Forecaster.predict and from_pretrained)
Platform support
Linux and macOS classifiers; MLX runtime requires Apple silicon and macOS 14 or newer
Declared maturity
Development Status 4 - Beta classifier
Attribution
NOTICE credits code from Datadog Toto and derivation from Amazon Chronos-2
Other runtimes
ONNX FP16 and INT8 exports exist for t0-alpha only (README.md)

Read from README.md, pyproject.toml, t0/forecaster.py, t0/forecast.py, t0/config.py, BENCHMARKS.md, PARITY.md, LICENSE, NOTICE.

Similar tools

Browse all tools →

Tags

time-seriesforecastingfoundation-modelopen-weightstransformerzero-shot

Tech Stack

Python

Editorially curated, with community endorsements as a secondary signal. Corrections welcome.