TEMPO 是基于 Prompt-based Generative Pre-trained Transformer 的时序预测基础模型(ICLR 2024,GPT2 架构,80M 参数)。本仓完成其在昇腾 Ascend910 NPU 上的真实推理适配与 CPU/NPU 精度对拍。
tempo.models.TEMPO,GitHub: DC-research/TEMPO)TEMPO-80M_v1.pth(279 MB,SHA-256 见 validation/weight.sha256)X [336](单变量时序,预测 96 步)cls_default_noretrieval.json 配置(noretrieval 模式,避免 CUDA-only retrieval 依赖)| 指标 | CPU | NPU (Ascend910 npu:0) |
|---|---|---|
| 平均延迟 | 338.42 ms | 143.59 ms |
| 输出 shape | [96] | [96] |
精度对拍(CPU vs NPU,fp32):
| 指标 | 值 |
|---|---|
| cosine similarity | 0.99969395 |
| max_abs_error | 3.122e-02 |
| mean_abs_error | 8.990e-03 |
| precision_pass | true |



python3 inference.py --device cpu # CPU 推理
python3 inference.py --device npu # NPU 推理(需 Ascend910 + torch_npu)依赖:torch、transformers、numpy、huggingface_hub、kditransform(LimiX 推理所需)。