#NPU
Maple728/TimeMoE-50Mhttps://huggingface.co/Maple728/TimeMoE-50M446753ee48ff3726d0606a81d0092d54acee995e (main)input_size 1, intermediate 1536, max_position 4096, horizon_lengths [1,8,32,64]本仓库为昇腾 910 (Ascend910_9362) 单卡 NPU 适配,基于 transformers + trust_remote_code 推理管线,真实权重在 npu:0 完成验证。
[batch, time, channel] 例如 [1,512,1]context 512 horizon 32 (可选 1/8/32/64)npu:0, 64GB HBMnpu-smi info & torch.npu.is_available()==Truepip install -r requirements.txtpython inference.py[-0.0126,0.0498,0.1122,0.1744,0.2363][0.0496,0.1145,0.2019,0.2328,0.2907][0.04969,0.11451,0.20199,0.23283,0.29076]61.5ms / 平均 64.9ms, CPU 1181ms, 加速 ~18x15.4 windows/sscripts/compare_outputs.py --task regression --atol 1e-4 --rtol 1e-3max_abs=8.34e-06 mean_abs=2.45e-06 shape [1,32] PASSEDmax_abs=8.34e-06 PASSEDtorch.npu.synchronize() 同步avg 64.95ms min 61.79ms max 66.41ms p50 65.32ms p90 66.07ms p95 66.24msavg 1261ms图片由
xterm.js根据本次真实日志生成 (raw style), 非手工绘制

horizon 32 於 context 512float32 单通道