Tourism monthly Time Series Transformer 用于月度旅游序列预测。本适配固定上游 checkpoint,在昇腾 NPU 上执行真实预测前向并返回未来序列。
上游模型:huggingface/time-series-transformer-tourism-monthly,固定 revision 2a40ad41f6ffe61e7bef6099b08c6c2fce36ac35。checkpoint 为 model.safetensors,132652 bytes,SHA-256 c887afd2e56856b968d39ace57d520cbefb17762036956bba83d78000401afe1。
输入为 past_values,shape (1, 61, 1),dtype torch.float32,另有对应 past_time_features 与 past_observed_mask。预测长度为 24,所有张量在调用前移动到 npu:0。
实测设备为 npu:0(Ascend910,npu-smi 25.5.5),torch 2.9.0+cpu,torch_npu 2.9.0.post1,CANN 8.5.1。模型、输入和输出均在 NPU 上,未使用 CPU fallback。
flock -x -w 1800 /tmp/ascend-model-agent-npu-v1.lock -- python inference.py真实 NPU 前向输出 output shape=(1, 100, 24) dtype=torch.float32 device=npu:0,均值输出 shape 为 (1, 24);加载耗时 1.09s,推理耗时 0.506s,checkpoint SHA 校验通过,退出码为 0。
仅支持固定 revision、固定 checkpoint、past 长度 61 与预测长度 24。不得替换模型或升级底层 torch/torch_npu/CANN;本交付不支持 CPU fallback 和任意长度契约。
上游许可证为 MIT;本适配代码与说明遵循 MIT。


