Timestral-209M: Zero-Shot Time Series Forecasts in a Few Lines
Mistral's Timestral-209M forecasts a time series with quantile outputs and no training. Install, run it, read the quantiles, and know its limits.
The code in this post comes from the model's docs and hasn't been run in our CI yet. If something breaks, let us know.
Timestral-209M is a 209M-parameter time series foundation model from Mistral. You give it the history of a series and it forecasts the next values with no training on your data (zero-shot). It is the largest of a family with 5M, 28M, 123M and 209M versions. The card reports the best scores in its comparison tables on three public forecasting benchmarks.
Key specs
| Item | Value (from the card) |
|---|---|
| Parameters | 209M |
| Architecture | Patch-based transformer with time attention and variate attention, 24 layers, embedding dimension 768 |
| Patch size | 32 time steps |
| Context | Up to 32,768 historical time steps |
| Horizon | Up to 1,024 steps in a single forward pass |
| Outputs | 21 quantiles (0.01, 0.05, 0.1, 0.15, … 0.85, 0.9, 0.95, 0.99) |
| Inputs | Univariate or multivariate targets, past-only and known-future covariates (numeric or categorical), NaN for missing values |
| Inference | PyTorch on CPU or GPU |
Longer horizons than 1,024 steps are forecast block by block, with each block’s median forecast appended to the context.
Benchmarks (as reported by the card)
Lower is better for MASE and CRPS. Higher is better for skill scores.
| Benchmark | Metric | Timestral-209M | t0-gamma | TimesFM-3 | Toto-2.0-2.5B | Chronos-2 |
|---|---|---|---|---|---|---|
| GIFT-Eval | MASE | 0.658 | 0.661 | 0.667 | 0.696 | 0.698 |
| GIFT-Eval | CRPS | 0.446 | 0.452 | 0.456 | 0.476 | 0.485 |
| TIME | MASE | 0.626 | 0.637 | 0.640 | 0.642 | 0.662 |
| fev-bench | SQL skill score | 50.39 | 49.42 | 48.99 | 44.42 | 47.28 |
Across the family, the card shows scores improving with size. On GIFT-Eval MASE it goes 0.705 (5M), 0.678 (28M), 0.659 (123M), 0.658 (209M). The 123M model is close to the 209M one on every benchmark in the table, so smaller checkpoints may be enough for you. The card links each of them.
Install
The card requires Python 3.10 or newer and torch 2.4 or newer.
pip install git+https://github.com/mistralai/timestral.gitOr, from a clone, using the versions pinned in uv.lock:
git clone https://github.com/mistralai/timestral.git && cd timestraluv sync --frozensource .venv/bin/activateRun it
This is the card’s example, using synthetic data: one series with 1,000 historical observations and a 96-step forecast.
import numpy as npimport torchfrom timestral import TimestralForecaster
model = TimestralForecaster.from_pretrained( "mistralai/Timestral-209M", device="cuda" if torch.cuda.is_available() else "cpu")
# Synthetic example: one series with 1,000 historical observations.context = np.random.default_rng(42).standard_normal(1000).cumsum()forecast = model.forecast(context, prediction_length=96)
median = forecast.medianlower, upper = forecast.quantile(0.1), forecast.quantile(0.9)forecast.median is the central forecast. forecast.quantile(0.1) and forecast.quantile(0.9) give the lower and upper edges of an 80% band, which you can use to show uncertainty rather than a single line.
Use your own data
The card’s only worked example passes a NumPy array of past values as context. To forecast your own series, replace the synthetic array with your values in time order and set prediction_length to how many steps ahead you need.
import numpy as npimport torchfrom timestral import TimestralForecaster
model = TimestralForecaster.from_pretrained( "mistralai/Timestral-209M", device="cuda" if torch.cuda.is_available() else "cpu")
# Replace with your own values, oldest first. Missing values are NaN.context = np.array(my_values, dtype=float)
forecast = model.forecast(context, prediction_length=32)print(forecast.median)print(forecast.quantile(0.1), forecast.quantile(0.9))my_values stands for your own list of past values. The card says missing values are marked as NaN. It does not say how short a context can be, so use a real history. Covariates, multivariate input and other options are described in the GitHub repository, not on the card, so check there before relying on them.
Gotchas
- License is “Modified MIT”. The card’s license field is
otherand points to a LICENSE file. It adds a condition that you must not use the model in a way that infringes third-party rights, including intellectual property. Read it before commercial use. - Long horizons use the median. Beyond 1,024 steps, each block’s median forecast is appended to the context, so later blocks are built on earlier point forecasts rather than the full distribution.
- Categorical covariates are target-encoded, per the card.
- Benchmarks are the card’s own reporting. They are public leaderboards, but a good score there does not guarantee a good result on your series. Compare against a simple baseline on your own data.
- No hardware numbers. The card gives no memory or latency figures, so measure on your machine.
- The tech report is “coming soon”, per the card.
When to pick it
Pick Timestral if you want a forecast with uncertainty bands and no training step, you have a series with a reasonable amount of history, and a PyTorch dependency is fine. The smaller family members are worth trying first if size matters.
Skip it, or at least validate it carefully, if you need a license without the extra condition, if your data is very short, or if you need documented behavior for options (such as covariates) that the card only mentions. In those cases read the GitHub repository first.
Related
Turn One Photo into a 3D Gaussian Splat with Idol
Idol from Sperid Labs turns a single image of an object into a 3D Gaussian splat .ply. Install, CLI flags, Python call, and what the card says about speed and memory.
speridlabs/idol
Run Breeze TTS 2 for Voice Cloning, Design and Streaming
Breeze TTS 2 is an open-weight English and Chinese TTS model with voice cloning, text-described voices and a streaming API. Weights are non-commercial.
BreezeBlue/Breeze-TTS-2
Run Kokoro-82M: Apache-Licensed Text-to-Speech in a Few Lines
Kokoro-82M is an 82M-parameter open-weight TTS model. How to install it, generate speech, and use it for narration, pronunciation fixes, and captions.
hexgrad/Kokoro-82M