cisco-time-series-model-1.0-preview 是 Cisco 时序基础模型:多分辨率(粗/细双流 + 分辨率嵌入 + 特殊分隔 token)Patched Decoder 时序预测模型,基于 TimesFM 解码器架构,输出 0.1~0.9 九分位 + 均值概率预测。
| 项目 | 值 |
|---|---|
| 模型 | cisco-ai/cisco-time-series-model-1.0-preview |
| 架构 | PatchedTSMultiResolutionDecoder(TimesFM 基类扩展) |
| 参数量 | 498,832,800(约 0.5B,fp32 权重 1.995 GB) |
| 结构 | 50 层 / 16 头(16 KV 头)/ hidden 1280 / patch 32 / horizon patch 128 |
| 输入 | 细粒度单变量时序(建议 ≥512 点,粗流按 agg_factor=60 聚合) |
| 输出 | horizon 128 步的均值 + 9 分位预测 |
| 许可证 | Apache-2.0(模型代码);权重按 Cisco AI 模型许可 |
| 精度 | float32 |
source /usr/local/Ascend/ascend-toolkit/set_env.sh)export PIP_INDEX_URL=https://repo.huaweicloud.com/repository/pypi/simple/
pip install torch torch_npu timesfm==1.3.0 utilsforecast safetensors numpy权重(model.safetensors 2GB + config.json)从 Hugging Face 获取:
export HF_ENDPOINT=https://hf-mirror.com
huggingface-cli download cisco-ai/cisco-time-series-model-1.0-preview --local-dir model_srcexport CISCO_TS_MODEL_DIR=/path/to/weights # 含 model.safetensors + config.json
python3 inference.py --device npu --horizon 128 --agg-factor 60输出摘录(三用例:真实权重 MSE 全面低于 naive 基线与随机初始化对照):
[gate1] load_state_dict: missing=0 unexpected=0 mismatched=0 -> PASS
[gate2] config audit -> PASS
[case:sine] MSE model=0.0255 naive=1.4493 skill=+98.2%
[case:random_walk] MSE model=0.0465 naive=0.0672 skill=+30.8%
[case:multi_seasonal] MSE model=0.0076 naive=1.5753 skill=+99.5%
[gate3] random-init control beaten by real weights on ALL cases -> PASS
[perf] avg=40.2 ms | peak HBM alloc=2002 MBload_state_dict missing=0 / unexpected=0 / mismatched=0模型代码来自 splunk/cisco-time-series-model(Apache-2.0),基类来自 pip 包 timesfm==1.3.0。PatchedTSMultiResolutionDecoder 直接 .to("npu:0") 迁移,无 CUDA 专属算子,无需改动架构。
├── inference.py # NPU 推理脚本(含三道门禁验证)
├── config.json # 模型配置
├── model.safetensors # 权重(不推送)
├── README.md # 本模型卡片
├── requirements.txt # 依赖
└── assets/ # 截图素材Cisco Time Series Model 1.0 preview
https://huggingface.co/cisco-ai/cisco-time-series-model-1.0-preview