Delicate02/流状态研究
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

IBM Research FlowState r1.1 on Ascend NPU

This delivery records a reproducible, research-only NPU adaptation of ibm-research/flowstate. It is a zero-shot time-series forecasting path; it does not claim commercial readiness or forecasting quality against ground truth.

Frozen source and runtime

  • Original model URL: https://huggingface.co/ibm-research/flowstate
  • Download source: AtomGit mirror https://atomgit.com/hf_mirrors/ibm-research/flowstate.git
  • Frozen revision: r1.1 / 940580f969036cfca514cdff725f7b02c03e1bcf
  • Weight: model.safetensors, 74,111,496 bytes, SHA256 b7e7f039226c2ddf66c1d8c1020cdcff86975c85d8456d7504d0717b1cd71585
  • Runtime: granite-tsfm==0.3.8, Transformers, torch_npu; device npu:0 on Ascend910
  • The fixed r1.1 tree has no model.sig; the runtime does not use that optional signature artifact, and the absence is recorded in model_manifest.json.

Input and output

The real sample is the 442-value Diabetes target series from scikit-learn. The same CSV is used for CPU and NPU. It is edge-padded to [1,4096,1] and passed to FlowStateForPrediction; the comparable output is prediction_outputs with shape [1,6,1].

Reproduce

python3 -m py_compile inference.py
python3 inference.py --model ./model --input ./data/diabetes_target.csv \
  --device cpu --output ./logs/reference_result.json --warmup 1 --repeat 3
python3 inference.py --model ./model --input ./data/diabetes_target.csv \
  --device npu --npu 0 --output ./logs/npu_result.json --warmup 1 --repeat 3

The NPU call was wrapped with NPU_CALL_BEGIN device=npu:0 and NPU_CALL_EXIT=0; the terminal prompt returned after the command. logs/environment_row52.log contains the device inventory and package versions.

Correctness gate

The threshold was frozen before inspecting NPU values: exact output shape, finite values, max_abs <= 1e-3, max_rel <= 1e-3, and torch/numpy allclose(rtol=1e-3, atol=1e-3). The CPU/NPU comparison passed with max_abs=3.0517578125e-05, mean_abs=2.3523966471354168e-05, max_rel=5.354101177922243e-07; a second NPU run was stable within 3.814697265625e-06 max absolute difference.

Performance protocol

After correctness passed, both devices used warmup=3, repeat=10, and torch.npu.synchronize() before and after each timed forward. Median CPU time was 6.0385344135575 s, median NPU time was 1.523835976375267 s, giving a protocol-matched 3.962719418084156x ratio. This is a local container measurement, not a leaderboard or official benchmark claim.

Delivery files

inference.py is the unified CPU/NPU entry point. model_manifest.json, sample_manifest.json, logs/ and the three independent screenshots under assets/ preserve the source, input, device-call and result evidence. Model weights are intentionally not included in this delivery directory.