Causal patch-32 Welford scale (P0..P15)
Inactive left-padding patches stay muted; amber bars contain native missing=1 gaps.
time-series-forecasting · 1st time-series foundation model · 5M patch transformer · fp32 · WASM · ~21.2 MB
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.
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.
Download or initialise Timestral-5M above to compute a live 21-quantile probabilistic forecast.
[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.
P0..P15)
Inactive left-padding patches stay muted; amber bars contain native missing=1 gaps.
| Knot | Value | Band role |
|---|---|---|
| Run inference above to populate live quantiles. | ||
| 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)
|
Toggle dropout masks, inspect +x vs −x symmetric averaging, scrub the 21-quantile CDF, and read Show the code.
Practical · CSV Backtest & Anomaly Scorecard →Drop or paste any CSV, slide a 16–32 step holdout, measure MAE/CRPS/coverage & breaches, and export CSV/JSON.
Wild · Outsmart the Forecaster Game →Draw a live curve with pointer or keyboard and try to escape Timestral-5M's 23 ms real-time 80% fan!
Multi-model · Forecast → Risk Brief Pipeline →Chain Timestral-5M (21.2 MB) into DeBERTa-v3 Zero-Shot NLI (70 MB) for live operational risk triage.