{
  "artifacts": [
    {
      "file": "timestral-209m-c8192-h1024.tflite",
      "sha256": "95f327839f76cf78ded74e022a5a598b017dee83ceac50719e3d24cb0bdc522d",
      "size_mb": 386.278
    }
  ],
  "benchmarks": [],
  "conversion": {
    "command": "python scripts/r4_export.py --bucket 256x32 --rows 2 --norm pow2 --norm-k scripts/normk_fixture.json --attn-k 4 --attn-clamp --dec-only-last --fp16  # in timestral/ of github.com/john-rocky/LiteRT-Models, the zoo sample the card links (github.com/john-rocky/LiteRT-Models timestral/README.md at main ceb8299 ('Rebuilding the graphs')), after hf download mistralai/Timestral-209M config.json model.safetensors --revision 9874d252ab0aae16f7f7c999f98f98d6ad7d8365; the float16-weight output timestral209m_r2_l256_h32_pow2knormk_fixture_att4c_dl_wfp16.tflite is published as timestral-209m-c8192-h1024.tflite",
    "quantization": "float16 weights (cast with ai-edge-quantizer 0.9.0); inputs and output float32; made for the GPU's FP16 precision (card 'Files', 'How the graphs were made')",
    "tool": "litert-torch",
    "tool_version": "0.9.4 (ai-edge-quantizer 0.9.0 for the weights; torch 2.13.0; ai-edge-litert 2.2.0 for the desktop checks)"
  },
  "cross_runtime": [],
  "delegation": {
    "backend": "gpu_mldrift",
    "blocking_ops": [
      "DEQUANTIZE",
      "LOGISTIC",
      "EXP",
      "LOG"
    ],
    "coverage_ops_pct": 85.4,
    "lint_report_version": "1.1",
    "litert_version": "2.2.0",
    "matched_provenance_counts": {
      "measured": 1825,
      "unmatched": 58
    },
    "partitions": 276
  },
  "device": {
    "records": [
      {
        "device": "galaxy-s26",
        "run": {
          "accelerator": "cpu_xnnpack",
          "context_length": null,
          "date": "2026-10-22",
          "decode_tokens_per_s": null,
          "delegated_ops": 1883,
          "env": {
            "device": "Galaxy S26 (SM-S942Q)",
            "machine_label": "galaxy-s26-timestral-gate",
            "os_build": "Android 16 BP4A.251205.006.S942QOPS1AZH9",
            "runtime": "litert",
            "runtime_version": "2.2.0",
            "soc": "Qualcomm SM8850 (Adreno GPU, Hexagon HTP)",
            "vendor_sdk": null
          },
          "error": null,
          "evidence": [
            "gate app com.mlboydaisuke.d1omni.gate in generic mode (Kotlin CompiledModel, LiteRT 2.2.0; debug build r9), one cold process per run, the fixture rows pushed as raw float32 tensors (the host steps done on the Mac); measured interval = the five input writes + run + the output read-back per call. Holds s4 and t4 of 2026-10-22.",
            "forecast check vs the official TimestralForecaster.forecast() (PyTorch, float32, CPU, every default) on the 13 fixture windows of this size (contexts of 2,049 to 8,192 steps, every horizon; 4 groups): MASE 0.619838 vs 0.619824 (ratio x1.000023), CRPS 0.228865 vs 0.228861 (ratio x1.000019); NaN / inf 0, quantile order broken 0, graph inputs equal to the host's 13 / 13; the bar (both ratios <= 1.01, no NaN / inf, the 21 quantiles in order at every step): PASS.",
            "output_match = the shared element rule (|out - ref| <= max(1e-05, 0.001 * |ref|) per element, litert_compat.probe.runners.Tolerance) against the same file on the Mac CPU on the same rows (ai-edge-litert 2.2.0 XNNPACK, 8 threads; the vs_mac.cpu block): every one of the 13 rows is bit-equal (max |d| 0) -> True.",
            "latency_p50_ms = the timing run (ready: clean; rested 64s since 20:28:46; thermal before the run: Thermal Status: 0; 5 warm-ups then 20 calls on one window, tsl_l256h32_r2_att_one): median 321.0005 ms (min 309.9219, max 329.0085; run() alone 320.8823); one call is one forecast (the two rows, the series and its negation, in one graph call; the host steps around it not included); compile 411 ms. The 13-window check run's warm median was 326.4795 ms (thermal before it: Thermal Status: 0).",
            "peak_mem_mb = the app process's VmHWM at the end of the timing run (1384216 kB, read by the gate app from /proc/self/status); the check run's 1403440 kB.",
            "os_build = the device line of hold n5's npu_chain log (2026-10-22 21:03 JST); holds t4 and s4 ran on the same phone the same evening without a reboot (its uptime grew by the wall-clock gap); the gate app reads Build.VERSION.SDK_INT 36, Build.MODEL SM-S942Q.",
            "sha256 timestral209m_r2_l256_h32_pow2knormk_fixture_att4c_dl_wfp16.tflite phone=95f327839f76cf78ded74e022a5a598b017dee83ceac50719e3d24cb0bdc522d mac=95f327839f76cf78ded74e022a5a598b017dee83ceac50719e3d24cb0bdc522d MATCH",
            "sha256 timestral209m_r2_l256_h32_pow2knormk_fixture_att4c_dl_wfp16.tflite phone=95f327839f76cf78ded74e022a5a598b017dee83ceac50719e3d24cb0bdc522d mac=95f327839f76cf78ded74e022a5a598b017dee83ceac50719e3d24cb0bdc522d MATCH",
            "10-22 20:29:51.610 12924 12946 I tflite  : Replacing 1883 out of 1883 node(s) with delegate (TfLiteXNNPackDelegate) node, yielding 1 partitions for subgraph 0 (main).",
            "10-22 20:38:26.103 24754 24781 I tflite  : Replacing 1883 out of 1883 node(s) with delegate (TfLiteXNNPackDelegate) node, yielding 1 partitions for subgraph 0 (main)."
          ],
          "failure_class": null,
          "full_delegation": true,
          "latency_p50_ms": 321.000547,
          "loads": true,
          "max_abs_diff": 0.0,
          "max_rel_diff": 0.0,
          "metrics": {
            "bar_pass": 1,
            "crps": 0.22886522600533374,
            "crps_ratio_vs_reference": 1.000018583148748,
            "crps_reference": 0.22886097304782899,
            "gate_leg_compile_ms": 433.433437,
            "gate_leg_rows": 13,
            "gate_leg_vmhwm_kb": 1403440,
            "gate_leg_warm_median_write_run_read_ms": 326.4794785,
            "gate_leg_warm_min_write_run_read_ms": 322.099792,
            "gate_leg_warm_rows": 8,
            "inputs_equal": 13,
            "mac_same_graph_bit_equal_rows": 13,
            "mac_same_graph_max_abs": 0.0,
            "mac_same_graph_median_ch_max_abs": 0.0,
            "mac_same_graph_ratio_crps": 1.000018583148748,
            "mac_same_graph_ratio_mase": 1.0000230040455589,
            "mac_same_graph_rows": 13,
            "mase": 0.6198383617941462,
            "mase_ratio_vs_reference": 1.0000230040455589,
            "mase_reference": 0.6198241033322347,
            "nonfinite": 0,
            "partitions": 1,
            "q_max_rel_vs_reference": 0.0005561524934256167,
            "quantile_order_broken": 0,
            "threads": 4,
            "timing_leg_compile_ms": 410.932395,
            "timing_leg_max_ms": 329.008489,
            "timing_leg_median_ms": 321.000547,
            "timing_leg_min_ms": 309.921875,
            "timing_leg_n": 20,
            "timing_leg_run_only_median_ms": 320.882265,
            "timing_leg_vmhwm_kb": 1384216,
            "timing_leg_warmups": 5,
            "window_groups": 4,
            "windows": 13
          },
          "output_match": true,
          "peak_mem_mb": 1351.773,
          "prefill_tokens_per_s": null,
          "provenance": "measured",
          "runs": true,
          "signature": "CPU XNNPACK 4 threads; gate app com.mlboydaisuke.d1omni.gate (generic mode)",
          "total_ops": 1883,
          "ttft_ms": null
        },
        "source": "data/device_runs/2.2.0/2026-10-22/timestral-209m__timestral-209m-c8192-h1024__galaxy-s26.json"
      },
      {
        "device": "galaxy-s26",
        "run": {
          "accelerator": "gpu_mldrift",
          "context_length": null,
          "date": "2026-10-22",
          "decode_tokens_per_s": null,
          "delegated_ops": 1883,
          "env": {
            "device": "Galaxy S26 (SM-S942Q)",
            "machine_label": "galaxy-s26-timestral-gate",
            "os_build": "Android 16 BP4A.251205.006.S942QOPS1AZH9",
            "runtime": "litert",
            "runtime_version": "2.2.0",
            "soc": "Qualcomm SM8850 (Adreno GPU, Hexagon HTP)",
            "vendor_sdk": null
          },
          "error": null,
          "evidence": [
            "gate app com.mlboydaisuke.d1omni.gate in generic mode (Kotlin CompiledModel, LiteRT 2.2.0; debug build r9), one cold process per run, the fixture rows pushed as raw float32 tensors (the host steps done on the Mac); measured interval = the five input writes + run + the output read-back per call. Holds s4 and t4 of 2026-10-22.",
            "forecast check vs the official TimestralForecaster.forecast() (PyTorch, float32, CPU, every default) on the 13 fixture windows of this size (contexts of 2,049 to 8,192 steps, every horizon; 4 groups): MASE 0.619644 vs 0.619824 (ratio x0.999710), CRPS 0.228909 vs 0.228861 (ratio x1.000208); NaN / inf 0, quantile order broken 0, graph inputs equal to the host's 13 / 13; the bar (both ratios <= 1.01, no NaN / inf, the 21 quantiles in order at every step): PASS.",
            "output_match null: the work compares the graph output with the same file on the Mac CPU on the same rows (ai-edge-litert 2.2.0 XNNPACK, 8 threads; the vs_mac.cpu block): max |d| 0.0482253 over 13 rows (the median quantile's max |d| 0.0339599), 0 rows bit-equal; against Mac Metal at its default (fp16) precision max |d| 0.0375977, 0 rows bit-equal. That summary does not decide the shared element rule (|out - ref| <= max(1e-05, 0.001 * |ref|) per element), which needs |ref| at each element, so max_abs_diff / max_rel_diff stay null; the forecast check above is the bar.",
            "latency_p50_ms = the timing run (ready: clean; rested 65s since 20:21:20; thermal before the run: Thermal Status: 0; 5 warm-ups then 20 calls on one window, tsl_l256h32_r2_att_one): median 73.4220 ms (min 72.4981, max 75.4808; run() alone 0.5153); one call is one forecast (the two rows, the series and its negation, in one graph call; the host steps around it not included); compile 1472 ms. The 13-window check run's warm median was 72.9113 ms (thermal before it: Thermal Status: 0).",
            "peak_mem_mb = the app process's VmHWM at the end of the timing run (1916980 kB, read by the gate app from /proc/self/status); the check run's 1916980 kB.",
            "os_build = the device line of hold n5's npu_chain log (2026-10-22 21:03 JST); holds t4 and s4 ran on the same phone the same evening without a reboot (its uptime grew by the wall-clock gap); the gate app reads Build.VERSION.SDK_INT 36, Build.MODEL SM-S942Q.",
            "sha256 timestral209m_r2_l256_h32_pow2knormk_fixture_att4c_dl_wfp16.tflite phone=95f327839f76cf78ded74e022a5a598b017dee83ceac50719e3d24cb0bdc522d mac=95f327839f76cf78ded74e022a5a598b017dee83ceac50719e3d24cb0bdc522d MATCH",
            "sha256 timestral209m_r2_l256_h32_pow2knormk_fixture_att4c_dl_wfp16.tflite phone=95f327839f76cf78ded74e022a5a598b017dee83ceac50719e3d24cb0bdc522d mac=95f327839f76cf78ded74e022a5a598b017dee83ceac50719e3d24cb0bdc522d MATCH",
            "10-22 20:22:26.232  7934  7962 I tflite  : Replacing 1883 out of 1883 node(s) with delegate (LITERT_CL) node, yielding 1 partitions for subgraph 0 (main).",
            "10-22 20:38:10.880 24100 24123 I tflite  : Replacing 1883 out of 1883 node(s) with delegate (LITERT_CL) node, yielding 1 partitions for subgraph 0 (main)."
          ],
          "failure_class": null,
          "full_delegation": true,
          "latency_p50_ms": 73.4220055,
          "loads": true,
          "max_abs_diff": null,
          "max_rel_diff": null,
          "metrics": {
            "bar_pass": 1,
            "crps": 0.22890860031430071,
            "crps_ratio_vs_reference": 1.0002081056714802,
            "crps_reference": 0.22886097304782899,
            "gate_leg_compile_ms": 1501.026146,
            "gate_leg_rows": 13,
            "gate_leg_vmhwm_kb": 1916980,
            "gate_leg_warm_median_write_run_read_ms": 72.911328,
            "gate_leg_warm_min_write_run_read_ms": 72.379792,
            "gate_leg_warm_rows": 8,
            "inputs_equal": 13,
            "mac_metal_fp16_bit_equal_rows": 0,
            "mac_metal_fp16_max_abs": 0.03759765625,
            "mac_same_graph_bit_equal_rows": 0,
            "mac_same_graph_max_abs": 0.0482252836227417,
            "mac_same_graph_median_ch_max_abs": 0.033959925174713135,
            "mac_same_graph_ratio_crps": 1.000018583148748,
            "mac_same_graph_ratio_mase": 1.0000230040455589,
            "mac_same_graph_rows": 13,
            "mase": 0.6196442647010928,
            "mase_ratio_vs_reference": 0.9997098553764284,
            "mase_reference": 0.6198241033322347,
            "nonfinite": 0,
            "partitions": 1,
            "q_max_rel_vs_reference": 0.015058322443250569,
            "quantile_order_broken": 0,
            "timing_leg_compile_ms": 1471.939167,
            "timing_leg_gpu_max_clock_mhz": 1300,
            "timing_leg_max_ms": 75.480833,
            "timing_leg_median_ms": 73.4220055,
            "timing_leg_min_ms": 72.498073,
            "timing_leg_n": 20,
            "timing_leg_run_only_median_ms": 0.5152605,
            "timing_leg_vmhwm_kb": 1916980,
            "timing_leg_warmups": 5,
            "window_groups": 4,
            "windows": 13
          },
          "output_match": null,
          "peak_mem_mb": 1872.051,
          "prefill_tokens_per_s": null,
          "provenance": "measured",
          "runs": true,
          "signature": "GpuOptions precision=FP16; gate app com.mlboydaisuke.d1omni.gate (generic mode)",
          "total_ops": 1883,
          "ttft_ms": null
        },
        "source": "data/device_runs/2.2.0/2026-10-22/timestral-209m__timestral-209m-c8192-h1024__galaxy-s26.json"
      }
    ]
  },
  "model": {
    "family": "timestral-209m",
    "id": "timestral-209m__timestral-209m-c8192-h1024",
    "license": "other (modified-mit)",
    "source_url": "https://huggingface.co/mlboydaisuke/Timestral-209M-LiteRT",
    "task": "time-series-forecasting"
  },
  "pitfalls": [
    "Timestral-209M's attention logits (up to 242,875) and RMSNorm sums of squares (up to 164,602,176) leave the float16 range (65,504): each RMSNorm input is pre-scaled by a power of two, the logits are computed at 1/16 with the row maximum subtracted before the scale is restored, the softmax input is clamped at -3*10^4 and the mask value is -3*10^4; in float32 these rewrites leave the results unchanged (card 'How the graphs were made').",
    "Five float32 inputs, one signature `serving_default`: `patches` [2,256,64] (per patch 32 normalized values then 32 missing flags), `dec` [2,32,768] (`forecast_query.f32` for every decoder token), `bias` [1,1,288,288] (additive mask: 0 or -3*10^4), `cos` / `sin` [1,1,288,64] (rows cut from `rope_cos.f32` / `rope_sin.f32`) -> `output_0` [2,32,32,21], the normalized quantiles; the two rows are the series and its negation (card 'Inputs and output').",
    "The graph is one step of the forecast: the host builds the inputs and finishes the forecast the way the official forecaster does (causal float64 scaling and asinh, the attention mask, the inverse map and the advancing refine frame, the caps at the context's range widened by 10^4 times the scale, symmetric averaging with the negation, clipping at 0 for non-negative series); the repository's `host_forecast.py` and `android/TimestralHost.kt` do it (card 'Inputs and output').",
    "A file holds a context of up to 8,192 steps and a horizon of up to 1,024 steps (patches of 32): the host pads a shorter series in front with missing steps and keeps the requested steps; the smallest file that holds the series and the horizon takes the least time (card 'Files').",
    "One series per forecast without covariates; a horizon of up to 1,024 steps (the Python class and the Kotlin host stop there; no result covers the official block-by-block decoding of longer horizons); of a series longer than 8,192 steps the last 8,192 are read (the official forecaster with max_context = 8192; its default is 32,768); the Python class refuses fewer than 16 values (card 'Limits').",
    "The float16 files are made for the GPU's FP16 precision: set it explicitly, `CompiledModel.GpuOptions(precision = CompiledModel.GpuOptions.Precision.FP16)` (card 'Minimal usage').",
    "The `c8192` files are not used on the NPU: on the Galaxy S26, other forms of these graphs took 82.0 to 96.5 ms per forecast on the NPU against 68.7 to 73.4 ms for these files on its GPU (card 'Speed on phones')."
  ],
  "schema_version": "1.2"
}
