time-series-forecasting · 1st time-series foundation model · 5M patch transformer · fp32 · WASM · ~21.2 MB

Timestral-5M

Mistral AI's Timestral-5M (mistralai/Timestral-5M) is a compact 8-block patch-32 time-series foundation model that turns up to 512 historical points into a full 32-step × 21-quantile probabilistic forecast (p01 through p99) in ~23 ms on universal CPU WebAssembly — zero training, zero server calls, native missing-data handling.

Runs in browser · WASM time-series-forecasting 21.21 MB fp32 ONNX Mistral Modified MIT ($20M/mo cap) 21 quantiles · 32-step horizon

1 · On-device model (~21.2 MB fp32 WASM)

2 · Live 21-Quantile Fan Forecast Studio

Pick a deterministic signal below to run real symmetric sign-flip ([+x, −x]) inference in your browser. Move your pointer across the forecast fan — or scrub the step inspector — to read all 21 quantile knots.

Realistic time-series presets (with 32-step held-out ground truth)

Download or initialise Timestral-5M above to compute a live 21-quantile probabilistic forecast.

Observed context Median (p50) 50% / 80% / 95% fan Held-out truth Missing-data gap (NaN)

ORT infer / total—
Holdout MAE—
Skill vs naive—
80% coverage—
Output tensor[2, 32, 21]
NaNs / Backend0 · WASM fp32

3 · See inside — Causal Patch-32 Welford & [2, 32, 21] Quantiles

Timestral-5M keeps causal float64 Welford scaling and asinh/sinh transforms outside the ONNX graph so WebAssembly and WebGPU match upstream PyTorch to 1.9e-6. Inspect the 16 causal patches and the exact quantile vector at any horizon step below.

Final patch loc/scale: awaiting run

Causal patch-32 Welford scale (P0..P15)

Inactive left-padding patches stay muted; amber bars contain native missing=1 gaps.

Live quantile slice at step +16

Knot Value Band role
Run inference above to populate live quantiles.

At a glance — architecture, license & API contract

Upstream model mistralai/Timestral-5M (revision bdd20cf · ~5M parameters)
License Mistral Modified MIT License — Attribution: 2026 - Mistral AI; $20 million/month global consolidated company revenue cap for exercising license rights (NOT plain MIT). Upstream code: Apache-2.0.
Browser ONNX repo onnx-community/Timestral-5M-ONNX (onnx/model.onnx, 21.21 MB decimal, fp32)
Task & architecture time-series-forecasting · 8-block patch-32 time/variate attention transformer (d_model=192, 3 heads, mlp_hidden_dim=512, gated SDPA, partial RoPE)
Browser runtime onnxruntime-web@1.21.0 CPU WASM only (ort.wasm.min.mjs, ~23 ms/forecast; ORT 1.21 WebGPU aborts on mixed-EP shape ops with pointer error 57234728)
Exact tensor contract Inputs (R=2 symmetric batch [+x, −x]): scaled [2, 512] (f32), missing [2, 512] (f32), time_mask [2, 1, 17, 17] (bool), variate_mask [17, 1, 2, 2] (bool), positions [2, 17] (int64) → Output: preds [2, 32, 21] (f32, 21 knots 0.01..0.99)

Explore the 5-route Timestral-5M ladder