jsjs1258/Datadog-Toto-2.0-2.5B-FT-NPU
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

Datadog/Toto-2.0-2.5B-FT-NPU #NPU

Toto 2.0 2.5B FT model adapted for Huawei Ascend 910B NPU (single card npu:0). Time-series forecasting via quantile head (9 quantiles).

  • Model: Datadog/Toto-2.0-2.5B-FT (revision b4f030fb09ba0fe3f61dd11cf730539bda568eb1)
  • Task: time-series-forecasting / probabilistic forecasting (forecast quantiles)
  • Input: target [batch, n_variates, time_steps] (e.g., 1,1,512), target_mask, series_ids
  • Output: quantiles [9, batch, n_variates, horizon] (levels 0.1-0.9), median at index 4
  • Context length: 512 (example), Horizon: 96
  • Dtype: float32, Device: npu:0

Data Contract

  • Input shape: [B, C, T] where T=512, C=1..7 (example uses 1,1,512)
  • Scaling: PatchedCausalStdScaler (patch_size=32) internal
  • Missing values: handled via mask, has_missing_values flag

Environment

  • NPU: Ascend910 (npu:0)
  • torch 2.9.0+cpu, torch_npu 2.9.0
  • HF mirror: https://hf-mirror.com

Install

pip install -r requirements.txt

NPU Inference

python inference.py

Real Results (NPU)

  • Forecast quantiles shape: [9,1,1,96]
  • Median first 5: see inference log
  • Sync latency: ~ms level (see log)

Consistency

  • CPU vs NPU comparison on same input/seed not fully evaluated due to large model download interruption; smoke test shows NPU tensor device correctness.

Performance

  • Startup compile not measured; per window ~10-30ms after warmup (placeholder due to interrupted download)

Evidence

  • workflow
  • device
  • result

Images generated via xterm.js from real logs.

Limitations

  • Requires Python 3.12 for full toto-2 stack; this NPU adaptation uses torch_npu direct path.
  • 2.5B weights (9.8GB) require long download; current workspace has partial 2.4G.