PatchTSMixer 是基于 MLP 的轻量时间序列预测模型(IBM test 权重),
输入 512 步历史序列,输出未来预测。
本仓库为 华为昇腾 NPU(Ascend 910B 系列)推理适配版,支持 npu:0 一键推理。
| 项目 | 说明 |
|---|---|
| 模型 | ibm-research/test-patchtsmixer(PatchTSMixerForPrediction) |
| 架构 | PatchTSMixer(MLP 时序建模) |
| 规模 | 48.6 K 参数(FP32) |
| 输入 | 时序 (B, 512, 1) |
| 输出 | 未来预测(last_hidden_state) |
| 任务 | 时间序列预测 |
| 原始仓库 | huggingface.co/ibm-research/test-patchtsmixer |
| License | Apache-2.0 |
| 项目 | 要求 |
|---|---|
| 硬件 | Ascend 910B 系列(≥1 卡,本仓库基于 910B4 验证) |
| CANN | ≥ 8.0 |
| Python | 3.10 – 3.11 |
| torch / torch_npu | 2.9.0 / 2.9.0.post2 |
| transformers | 5.15.0 |
注意:本仓库不包含模型权重文件(
model.safetensors)。
权重请从以下镜像获取:
git clone --depth 1 https://gitcode.com/hf_mirrors/ibm-research/test-patchtsmixer.git model_srcpython3 inference.py --device npu [--model_path ./model_src]$ python3 inference.py --device npu
[info] device = npu:0
[info] model arch : PatchTSMixerForPrediction
参数: 48.6 K
[info] input : (1, 512, 1) (512 x 1通道)
[info] inference done : 151.9 ms on npu
[info] 输出字段 : ['last_hidden_state', 'patch_input', 'loc', 'scale']
[info] 设备确认 : npu:0
[PASS] test-patchtsmixer NPU inference OK.npu() 迁移即可。local_files_only=True 完全离线。