Delicate02/datadog-toto-2-0-2-5b-ascend-npu
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

Datadog Toto 2.0 2.5B on Ascend NPU

This delivery adapts Datadog/Toto-2.0-2.5B, a multivariate probabilistic time-series model that returns nine quantiles for a 32-step horizon. The verified revision is 51a2812bbe449437c01b79c0e425ed578f335f5b.

Model and runtime

  • Original model URL: https://huggingface.co/Datadog/Toto-2.0-2.5B
  • Download source used for verification: https://ai.gitcode.com/hf_mirrors/Datadog/Toto-2.0-2.5B
  • Weight: model.safetensors, 9,817,176,960 bytes, SHA256/LFS OID dc08942b20751ac906167194d4ca4aa06b4367e80aabe5f1d5153b30b874bdb9
  • Architecture: Toto2Model, 48 layers, 32 attention heads, patch size 32
  • Reference runtime: PyTorch 2.9.0+cpu
  • Ascend runtime: torch_npu 2.9.0.post1 on npu:0
  • Device evidence: Ascend910 x2, npu-smi 25.5.5

The model files are intentionally not included in this repository. Place the fixed-revision checkpoint in a local directory and pass that directory to --model-path.

Reproducible inference

The example uses the first 416 values of the target column from sklearn.datasets.load_diabetes() (BSD-3-Clause). The input tensor is shaped [1, 1, 416]; target_mask is all true and series_ids is [0]. The forecast output is [9, 1, 1, 32].

python3 inference.py \
  --model-path ./model \
  --device cpu \
  --output logs/reference_result.pt

python3 inference.py \
  --model-path ./model \
  --device npu:0 \
  --output logs/npu_result.pt

The script writes a torch.save result containing the quantiles, input hash, device, context, horizon and elapsed time. Correctness comparison must use the same fixed input and revision on both devices.

Verified result

Reference and NPU outputs had identical shape and finite values. With absolute tolerance 0.01 and relative L2 tolerance 0.0005, the comparison passed:

TensorCountMax absolute differenceRelative L2
Quantiles2880.00019836425781252.862733633014388e-07
Median forecast320.00004577636718751.691477771075976e-07

The verified NPU benchmark used two warmups and five synchronized forecasts. Median was 194.59727127104998 ms (min 191.9308020733297 ms, max/p95 199.9341594055295 ms). These are measurements for this fixed checkpoint, input and container, not a general performance claim.

See assets/agent_workflow.png, assets/npu_device_call.png and assets/model_result.png for the three real terminal evidence captures. Machine-readable verification records are under logs/.

Dependencies

Install the versions in requirements.txt in the Model Agent container. Existing torch and torch_npu versions were preserved; pip may report an unrelated vllm-ascend constraint warning.