Zero-shot multivariate probabilistic time-series forecasting foundation model
adapted to run on a single Ascend 910 NPU (npu:0).
Datadog/Toto-Open-Base-1.0 (151M params, decoder-only transformer,
proportional factorized space-time attention, Student-T mixture output)0411ceb27bdf7fc3e4892e99edc8ad08192dc3c5Toto (Time Series Optimized Transformer for Observability) is a state-of-the-art
zero-shot time-series foundation model for high-dimensional, sparse, non-stationary
observability metrics. It produces both point forecasts and uncertainty estimates via a
Student-T mixture model. This repo verifies real inference of the released checkpoint on
an Ascend NPU, following the official TotoForecaster API.
| Field | Value |
|---|---|
| Input | multivariate series tensor (variates, context_length) fp32 |
| Variates | 7 observability metrics |
| Context length | 2048 (default) |
| Sampling interval | 900 s (15 min) |
| Output | median/mean (1, variates, prediction_length), samples (1, variates, prediction_length, num_samples), quantiles(0.1/0.9) |
| Axis order | [batch, variate, time] |
npu:0)pip install toto-ts==0.2.0 jaxtyping gluonts[torch] rotary-embedding-torch lightning
# torch_npu + torch must be pre-installed for your Ascend CANN environmentWeights must be downloaded first to a local model/ directory:
huggingface-cli download Datadog/Toto-Open-Base-1.0 --local-dir model
python inference.py --model_dir model --prediction_length 96 --num_samples 16The script loads the checkpoint from local disk, moves the model to npu:0, and runs
autoregressive probabilistic forecasting. It exits non-zero on any failure.
(1, 7, 96), samples shape: (1, 7, 96, 16)[-0.0067, -0.0070, -0.0173, -0.0135, -0.0137, -0.0187, -0.0068, -0.0036]Same weights, identical input values, dtype fp32, seed fixed. Deterministic point
forecast (num_samples=None) compared:
(1, 7, 96), all finite1.92e-06, mean abs error: 3.64e-07np.allclose(atol=1e-4, rtol=1e-3) → PASSSampling-based trajectories differ between devices due to RNG, as expected for a probabilistic model; the underlying distribution (loc/scale) and deterministic mean are numerically consistent.
| Metric | Value |
|---|---|
| avg latency | 1.06 s |
| p50 | 1.06 s |
| p95 | 1.10 s |
| throughput | ~0.94 forecast/s |
assets/agent_workflow.png - end-to-end adaptation workflow logassets/npu_device_call.png - NPU device / compute evidenceassets/model_result.png - default inference.py run on npu:0MaskedTimeseries following the
data contract above.toto-ts pins strict dependency versions; on the Ascend stack, newer compatible
versions of gluonts/jaxtyping/rotary-embedding-torch/lightning were used while
keeping torch_npu + torch 2.9.0 intact.