Real-weights, fail-closed inference entry point for
cisco-ai/cisco-time-series-model-1.0-preview
on a Huawei Ascend NPU with torch_npu. The model is a 50-layer
decoder-only transformer with multi-resolution (coarse/fine) inputs,
pre-trained from TimesFM weights and further trained on 300B+ datapoints.
本交付是 cisco-ai/cisco-time-series-model-1.0-preview 在华为昇腾 NPU 上的推理适配
(fail-closed 单点入口,engine=torch_npu,默认设备 npu:4 / Ascend910B4-1)。
model.safetensors 加载固定 revision 的真实权重
(绝不使用 torch_model.pt 的 Git LFS 指针、绝不静默换 revision、无隐式联网);PatchedTSMultiResolutionDecoder 自回归解码
(CPU 仅用于文档化的确定性预处理);npu:4 上 input/model/output
放置、前向、有限性与输出形状检查全部通过,否则返回非零退出码。| Field | Value |
|---|---|
| Model | Cisco Time Series Model 1.0 preview (univariate zero-shot forecasting) |
| Architecture | PatchedTSMultiResolutionDecoder (50 layers, 16 heads, hidden 1280) |
| Source | https://github.com/splunk/cisco-time-series-model (1.0-preview/modeling/) |
| HF repo | cisco-ai/cisco-time-series-model-1.0-preview |
| Pinned model revision | bf56b7946c42912ddb05dbf14aabc59f0974d31b |
| Pinned arch commit | faa2adc0ce970239cb0f7b76f4bf97282575d36c |
| Context | fine ≤512 min + coarse ≤512 h (aggregation factor 60) |
| Horizon | 128 fine-resolution points (mean + 0.1…0.9 quantiles) |
| Hardware / device | Ascend910B4-1 / npu:4 |
| Package | Version (verified) | Source / note |
|---|---|---|
torch | 2.9.0+cpu | Pre-installed in the container, matched with torch_npu. Do not replace from PyPI. |
torch_npu | 2.9.0 | Pre-installed in the container, matched with torch. Do not replace from PyPI. |
numpy | 1.26.4 | Aliyun PyPI mirror |
safetensors | 0.8.0 | Aliyun PyPI mirror |
| CANN / driver | npu-smi 25.5.1, Ascend910B4-1 | Container |
source /usr/local/Ascend/ascend-toolkit/set_env.sh 2>/dev/null || truepython - <<'PY'
import torch, torch_npu
print(torch.__version__, torch_npu.__version__, torch.npu.is_available())
PYpip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/npu:4 上运行真实推理:cd cisco-time-series-model-1.0-preview-npu
python inference.py \
--model-path /work/pipeline/models/tabular16/cisco-time-series-model-1.0-preview \
--device npu:4 \
--result-json logs/npu_result.jsonnumpy 种子 42,生成器族与模型卡示例一致
(24 h 正弦 + 线性漂移 + 30 分钟纹波 + 高斯噪声);预处理在 CPU,
前向在 NPU。input_coarse_device、input_fine_device、
model_device、output_device 均必须为 npu:4,否则退出码非 0。all_finite=True,exit_code=0。[env] torch=2.9.0+cpu torch_npu=2.9.0
[env] npu_available=True npu_count=8 npu_name=Ascend910B4-1
[weights] model_revision=bf56b7946c42912ddb05dbf14aabc59f0974d31b
[weights] file=model.safetensors bytes=1995407184
[weights] sha256=f29111cf1f0e94660f0b6b1edfb0778d6df36406e536aeff9ec9b01d5679fd31
[model] num_layers=50 hidden_size=1280 num_params=498832800
[model] model_device=npu:4 dtype=torch.float32 load_s=6.942
[input] source=self-authored-CC0-deterministic-series license=CC0 points=30720 seed=42
[input] series_head=[80.12188720703125, 80.4156494140625, 81.92713165283203, 82.72737121582031, 82.19216918945312]
[inference] input_device=npu:4/npu:4 model_device=npu:4 output_device=npu:4
[inference] output_tensor_shape=[1, 32, 128, 10] latency_s=0.4958
[forecast] shape=[128] quantiles=[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]
[forecast] mean_stats={"min": 147.15060424804688, "max": 169.5841827392578, "mean": 158.9662628173828, "std": 6.2791523933410645}
[forecast] mean_head=[162.87168884277344, 164.54493713378906, 166.2566680908203, 167.4187469482422, 168.21673583984375, 168.94268798828125, 169.2166748046875, 169.5841827392578]
[forecast] q10_head=[162.21038818359375, 163.4448699951172, 165.1761016845703, 166.28860473632812, 167.18817138671875, 167.8658905029297, 168.31195068359375, 168.37823486328125]
[exit] code=0 status=PASS
[result] wrote logs/npu_result.json结构化结果见 logs/npu_result.json:
engine=torch_npu、npu_device_name=Ascend910B4-1、requested_device=npu:4input_device=npu:4、input_coarse_device=npu:4、
input_fine_device=npu:4、model_device=npu:4、output_device=npu:4output_tensor_shape=[1, 32, 128, 10]、forecast_shape=[128]、
quantile levels [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]mean_stats = min=147.1506 max=169.5842 mean=158.9663 std=6.2792,
all_finite=Trueinference_elapsed_s=0.4958、model_load_s=6.9419、exit_code=0output 摘要字符串非空,包含 forecast shape、mean_head、quantile levelslogs/npu_device_call.sanitized.log 显示推理期间 python PID 3808811
挂在 NPU 4(Ascend910B4-1)上,进程显存峰值约 2182 MB(npu-smi 25.5.1)。





model.safetensors — 1,995,407,184 bytes, SHA-256
f29111cf1f0e94660f0b6b1edfb0778d6df36406e536aeff9ec9b01d5679fd31,
615 tensors. Loaded strictly from the pinned local copy.torch_model.pt is still a Git LFS pointer and is not used.LICENSE).modeling/ are Apache-2.0:
Cisco/Splunk (patched_decoder_multi_resolution.py, cisco_tsm_mr.py) and
Google (pytorch_patched_decoder.py, timesfm_base.py, timesfm_torch.py
from timesfm==1.3.0). See THIRD_PARTY_NOTICES.md.Deterministic synthetic minute-level series of 30,720 points (512×60),
generated with a fixed numpy seed (42) using the same generator family as
the model-card example (24 h sinusoid + linear drift + 30-min ripple +
Gaussian noise). It is self-authored test data licensed CC0-1.0; no
external dataset is downloaded. Preprocessing (context building, masking,
normalization) runs on the CPU; the transformer forward runs on the NPU.
decode; this entry point exercises the documented
128-step case.Rendered from the real sanitized logs (no hand-edited values):
assets/agent_workflow.png — workflow steps + evidence (1440×1800)assets/modelagent_live_session.png — ModelAgent summary: inspect → implement → NPU run → PASS (1440×900)assets/agent_conversation.png — agent summary log rendering (1440×900)assets/npu_device_call.png — focused concurrent npu-smi monitor (python PID 3808811 on NPU 4) (1440×900)assets/model_result.png — inference result excerpt (1440×900)Source logs:
logs/inference.sanitized.loglogs/npu_device_call.sanitized.loglogs/npu_result.jsonlogs/npu_inference.logevidence/modelagent_summary.log