{
  "artifacts": [
    {
      "file": "LFM2.5-2.6B_int8.litertlm",
      "sha256": "36299f191c5ad447b148b78f9d965748598aca52786096c3e0de802b47eeca59",
      "size_mb": 2735.328
    }
  ],
  "benchmarks": [],
  "conversion": {
    "command": "TODO (the HF card states the recipe and post-steps, not the invocation)",
    "quantization": "int8 dynamic on linears + convs + embedding at export time (safe; post-hoc conv int8 breaks generation) (HF card file table + Conversion notes)",
    "tool": "litert-torch (released 0.9.2 with upstream lfm2 hybrid support incl. the ShortConv prefill-pad fix), packaged for litert-lm >= 0.14 with the executor-metadata section binding the 22 conv states + 16 KV caches (HF card Conversion notes)",
    "tool_version": "0.9.2 (HF card Conversion notes)"
  },
  "cross_runtime": [],
  "delegation": null,
  "device": {
    "records": [
      {
        "device": "galaxy-s26",
        "run": {
          "accelerator": "cpu",
          "context_length": null,
          "date": "2026-09-06",
          "decode_tokens_per_s": 15.53,
          "delegated_ops": 1331,
          "env": {
            "device": "Galaxy S26 (SM-S942Q)",
            "machine_label": "galaxy-s26-cold-cache-cooled",
            "os_build": "Android 16",
            "runtime": "litert-lm",
            "runtime_version": "0.16.0",
            "soc": "Qualcomm SM8850",
            "vendor_sdk": null
          },
          "error": null,
          "evidence": [
            "VERBOSE: Replacing 806 out of 936 node(s) with delegate (TfLiteXNNPackDelegate) node, yielding 194 partitions for subgraph 0 (prefill_1024).",
            "VERBOSE: Replacing 806 out of 936 node(s) with delegate (TfLiteXNNPackDelegate) node, yielding 194 partitions for subgraph 1 (prefill_512).",
            "VERBOSE: Replacing 806 out of 936 node(s) with delegate (TfLiteXNNPackDelegate) node, yielding 194 partitions for subgraph 2 (prefill_256).",
            "VERBOSE: Replacing 806 out of 936 node(s) with delegate (TfLiteXNNPackDelegate) node, yielding 194 partitions for subgraph 3 (prefill_128).",
            "results block: prefill=222.18 decode=15.53 tokens/s"
          ],
          "failure_class": null,
          "full_delegation": false,
          "latency_p50_ms": null,
          "loads": true,
          "max_abs_diff": null,
          "max_rel_diff": null,
          "metrics": {
            "decode_tokens": 3616.0,
            "init_s": 5.84627,
            "prefill_tokens": 206.0
          },
          "output_match": null,
          "peak_mem_mb": null,
          "prefill_tokens_per_s": 222.18,
          "provenance": "measured",
          "runs": true,
          "total_ops": 1386,
          "ttft_ms": 990.0
        },
        "source": "data/device_runs/0.16.0/2026-09-06/lfm2.5-2.6b-int8__galaxy-s26.json"
      },
      {
        "device": "galaxy-s26",
        "run": {
          "accelerator": "gpu",
          "context_length": null,
          "date": "2026-08-24",
          "decode_tokens_per_s": 19.72,
          "delegated_ops": 936,
          "env": {
            "device": "Galaxy S26 (SM-S942Q)",
            "machine_label": "galaxy-s26-cl-pinned",
            "os_build": "Android 16",
            "runtime": "litert-lm",
            "runtime_version": "0.16.0",
            "soc": "Qualcomm SM8850",
            "vendor_sdk": null
          },
          "error": null,
          "evidence": [
            "VERBOSE: Replacing 936 out of 936 node(s) with delegate (LITERT_CL) node, yielding 1 partitions for subgraph 0 (prefill_1024).",
            "VERBOSE: Replacing 936 out of 936 node(s) with delegate (LITERT_CL) node, yielding 1 partitions for subgraph 1 (prefill_512).",
            "VERBOSE: Replacing 936 out of 936 node(s) with delegate (LITERT_CL) node, yielding 1 partitions for subgraph 2 (prefill_256).",
            "VERBOSE: Replacing 936 out of 936 node(s) with delegate (LITERT_CL) node, yielding 1 partitions for subgraph 3 (prefill_128).",
            "results block: prefill=488.82 decode=19.72 tokens/s"
          ],
          "failure_class": null,
          "full_delegation": true,
          "latency_p50_ms": null,
          "loads": true,
          "max_abs_diff": null,
          "max_rel_diff": null,
          "metrics": {
            "decode_tokens": 2892.0,
            "init_s": 11.05714,
            "prefill_tokens": 206.0
          },
          "output_match": null,
          "peak_mem_mb": null,
          "prefill_tokens_per_s": 488.82,
          "provenance": "measured",
          "runs": true,
          "total_ops": 936,
          "ttft_ms": 470.0
        },
        "source": "data/device_runs/0.16.0/2026-08-24/lfm2.5-2.6b-int8__galaxy-s26.json"
      },
      {
        "device": "raspberry-pi-5",
        "run": {
          "accelerator": "cpu",
          "context_length": null,
          "date": "2026-09-01",
          "decode_tokens_per_s": 3.5,
          "delegated_ops": null,
          "env": {
            "device": "Raspberry Pi 5 Model B Rev 1.1",
            "machine_label": "raspberry-pi-5-cooled-52c",
            "os_build": "Linux-6.18.34+rpt-rpi-2712-aarch64-with-glibc2.41",
            "runtime": "litert-lm",
            "runtime_version": "0.16.1",
            "soc": "Broadcom BCM2712",
            "vendor_sdk": null
          },
          "error": null,
          "evidence": [
            "pi5 LLM sweep row: `litert-lm benchmark --backend cpu --cpu-thread-count 4 -p 256 -d 256 --runs 1 --cache memory` (wave-2 driver pi5_llm_bench.py; --cache memory rather than the house --cache no, which OOM-kills every >=1.2B file on the 8 GB Pi — equivalence measured on granite-350m int8, +2-3%), 3 invocations per file with cool-down to <=52 C between them, vcgencmd measure_temp + get_throttled logged per invocation, peak RSS polled from /proc; throughput = median of the three invocations (spread in metrics); a row counts as measured only when the real-generation gate (`litert-lm run`, degenerate-output check) passed and every invocation exited 0 with get_throttled 0x0",
            "versions: cpu=Raspberry Pi 5 Model B Rev 1.1, litert-lm=0.16.1, litert-lm-api=0.16.1, platform=Linux-6.18.34+rpt-rpi-2712-aarch64-with-glibc2.41, python=3.13.5",
            "cache mode 'memory'; -p 256 -d 256 --runs 1 --cpu-thread-count 4",
            "gate ('What is 17 plus 26? Answer with the number only.'): status pass, exit 0, wall 105.2 s, output head '[thought] The user is asking for the sum of 17 and 26.\\n17 + 26 = 43.\\nThe user re'",
            "invocation 0: exit=0 wall_s=236.1 temp 47.7->56.0C throttled=0x0 prefill_tps=43.65 decode_tps=3.5 ttft_s=6.1515 init_s=71.9474 peak_rss_mb=4018",
            "invocation 1: exit=0 wall_s=230.1 temp 50.5->56.0C throttled=0x0 prefill_tps=43.76 decode_tps=3.51 ttft_s=6.1349 init_s=72.4201 peak_rss_mb=4010",
            "invocation 2: exit=0 wall_s=230.1 temp 51.0->55.4C throttled=0x0 prefill_tps=43.85 decode_tps=3.5 ttft_s=6.1234 init_s=72.1464 peak_rss_mb=4010"
          ],
          "failure_class": null,
          "full_delegation": null,
          "latency_p50_ms": null,
          "loads": true,
          "max_abs_diff": null,
          "max_rel_diff": null,
          "metrics": {
            "decode_tokens": 256.0,
            "decode_tps_max": 3.51,
            "decode_tps_min": 3.5,
            "init_s": 72.1464,
            "init_s_max": 72.4201,
            "init_s_min": 71.9474,
            "invocations": 3.0,
            "prefill_tokens": 256.0,
            "prefill_tps_max": 43.85,
            "prefill_tps_min": 43.65,
            "runs_per_invocation": 1.0,
            "threads": 4.0,
            "ttft_s_max": 6.1515,
            "ttft_s_min": 6.1234
          },
          "output_match": null,
          "peak_mem_mb": 4018.0,
          "prefill_tokens_per_s": 43.76,
          "provenance": "measured",
          "runs": true,
          "total_ops": null,
          "ttft_ms": 6134.9
        },
        "source": "data/device_runs/0.16.1/2026-09-01/lfm2.5-2.6b-int8__raspberry-pi-5.json"
      }
    ]
  },
  "model": {
    "family": "lfm2.5",
    "id": "lfm2.5-2.6b-int8",
    "license": "other (lfm-open-license-v1.0)",
    "source_url": "https://huggingface.co/litert-community/LFM2.5-2.6B",
    "task": "text-generation"
  },
  "pitfalls": [
    "Requires litert-lm >= 0.14: the bundled executor-metadata section binds the 22 conv states + 16 KV caches (files exported without it do not run) and makes the same file run on 0.15's new state binding (HF card intro + Conversion notes).",
    "The generation prompt pre-fills <think> exactly as the vendor chat template does; with a bare assistant prompt, think-block emission becomes the model's choice, and int4 degrades that discipline first (unscaffolded rambling in place of answers on multi-turn) (HF card Conversion notes).",
    "GSM8K (greedy, 0-shot CoT, max-tokens 2048, n=100, same harness for all rows): bf16 reference 92%, int8 88%, int4 83%; both files pass an 8-question sanity gate 8/8 with zero degenerate outputs (CPU), a 42-length prefill sweep with zero corrupt first tokens, and a 3-turn conversation gate (HF card file table + Quality).",
    "iPhone 17 Pro (CPU backend, cold first runs): the int4 file answers the 8-question gate 8/8 and decodes ~20 tok/s warm; the int8 file loads and runs only when the host app carries the extended-virtual-addressing / increased-memory entitlements (its 2.87 GB single weight section exceeds a default-entitlement app's mmap) — int4 is the recommended phone variant (HF card Speed).",
    "Multi-length prefill signatures (1-1024) are exported so the runtime picks tight chunks (HF card Conversion notes).",
    "LiteRT-LM .litertlm bundle: LiteRT.js cannot run it, so delegation stays null and there is no browser block; device rows come from data/device_runs/ (Pi 5 / S26 / Pixel 8a / Mac / iPhone as measured)."
  ],
  "schema_version": "1.2"
}
