{
  "schema_version": "0.3.0",
  "id": "s4-iphone12-lfm2.5-2.6b-4-bit-llama-256",
  "methodology_version": "0.6",
  "provenance": {
    "kind": "measured",
    "session_id": "s4-iphone12-lfm2.5-2.6b-4-bit",
    "fixture_notice": null,
    "operator": {
      "name": "Glenn Sonna",
      "organization": "Xybrid",
      "affiliation": "xybrid"
    },
    "run_at": "2026-11-13T01:21:36Z",
    "harness": {
      "name": "xybrid-bench",
      "version": "0.4.0",
      "commit": "b8a5aaa8747550abbe13ee832474acefea940d5e"
    }
  },
  "publication": {
    "status": "published",
    "published_at": "2026-11-16T10:23:29Z",
    "reviewed_by": [
      "Glenn Sonna"
    ],
    "changelog": []
  },
  "device": {
    "id": "glenn-iphone-12",
    "os": {
      "name": "iOS",
      "version": "27.2.1",
      "build": "24B156",
      "kernel": "Darwin Kernel Version 27.2.0: Tue Oct 13 21:44:36 PDT 2026; root:xnu-13432.42.3~28/RELEASE_ARM64_T8101"
    },
    "power": {
      "source": "usb",
      "low_power_mode": false,
      "performance_mode": "active"
    }
  },
  "engine": {
    "id": "llama.cpp",
    "version": "b12110",
    "build": {
      "source": "release",
      "flags": [],
      "dependencies": {
        "ios.app_sha256": "c2ad72f6c7e394f758cbc77dc71c868a9c3d52371bc1379a9e49e3940bc22586",
        "ios.app_commit": "81fd76d1698d12d14fce16f82788e1dd92998b9c",
        "ios.os_build": "24B156"
      },
      "commit": "cd959bae99ff4bed22bef2604f45241c09bbb8c8",
      "binary_sha256": "c1a1252fac9adcbcd54d3ce0f381dba44f6ba05f0561d4b05e79a04228a8ea12"
    },
    "backend": "metal",
    "threads": null,
    "runtime_flags": {
      "backend": "metal",
      "gpu_layers": 999,
      "flash_attn": "on",
      "cache_type_k": "f16",
      "cache_type_v": "f16",
      "load_mode": "mmap",
      "app": "XybridBench",
      "process": "one app launch per generation",
      "threads": "C API default",
      "sampling": "greedy",
      "prompt": "frozen token IDs"
    },
    "interface": "ios-app"
  },
  "model": {
    "id": "lfm2.5-2.6b",
    "artifact": {
      "repo": "LiquidAI/LFM2.5-2.6B-GGUF",
      "revision": "e7caca5d835a3901a8e0d63e94009429bafafdfc",
      "files": [
        {
          "path": "LFM2.5-2.6B-Q4_K_M.gguf",
          "sha256": "02a8b7e17487d326e46d68ce0ba24211e1b80a14c4cd0597fa73c1cd697f52ed",
          "size_bytes": 1674455040
        },
        {
          "path": "README.md",
          "sha256": "d08b79260b3998e96792777085e4175b730667568f3a953ad4ac9099cfa27056",
          "size_bytes": 3068
        }
      ],
      "format": "gguf",
      "quantization": {
        "scheme": "Q4_K_M",
        "class": "4-bit",
        "weight_bits": 4,
        "group_size": null,
        "kv_cache": "f16"
      },
      "conversion": {
        "method": "upstream",
        "tool": null,
        "tool_version": null,
        "command": null,
        "publisher": "LiquidAI"
      }
    }
  },
  "workload": {
    "id": "archive-256-128",
    "kind": "text-generation",
    "prompt": {
      "tokens": 256,
      "source": "prompts/source.txt",
      "sha256": "c10d1b7bef62d95322f8f8d229dc66118d9375107bdc49b06f76287d058b2f6c",
      "template": "ea663864491de7ade391839479860ca95541f892f72665c73251fbd4643b1bef",
      "construction": "chat-envelope-user-truncate-v1",
      "token_ids_sha256": "e581da70677499b28d937245b5a1f094115531fbe9fae133fed90dc27ee9ddfb"
    },
    "output_tokens": 128,
    "stop_on_eos": false,
    "context_length": 4096,
    "batch_size": 1,
    "sampling": {
      "temperature": 0,
      "top_p": 1,
      "top_k": 1,
      "seed": 1,
      "greedy": true
    },
    "measurement": "streaming",
    "warmup_runs": 2,
    "trials_planned": 6,
    "cooldown_s": 60
  },
  "conditions": {
    "ambient_c": null,
    "thermal": {
      "start": {
        "celsius": null,
        "state": "fair"
      },
      "end": {
        "celsius": null,
        "state": "nominal"
      },
      "gate": "iOS thermal state nominal",
      "throttling_detected": false
    }
  },
  "trials": [
    {
      "index": 0,
      "valid": true,
      "invalid_reason": null,
      "ttft_ms": 2300.102,
      "prefill": {
        "tokens": 256,
        "duration_ms": 2298.32,
        "timing_source": "engine"
      },
      "decode": {
        "tokens": 127,
        "duration_ms": 7482.346,
        "timing_source": "engine"
      },
      "peak_memory_bytes": null,
      "memory_method": null,
      "thermal": {
        "start": {
          "celsius": null,
          "state": "nominal"
        },
        "end": {
          "celsius": null,
          "state": "nominal"
        }
      },
      "output_sha256": "8db46b6cbaf96bc38eeef6295267de615e3cca8523f717adaf24a8551026e9e5",
      "error": null
    },
    {
      "index": 1,
      "valid": true,
      "invalid_reason": null,
      "ttft_ms": 2464.884,
      "prefill": {
        "tokens": 256,
        "duration_ms": 2463.174,
        "timing_source": "engine"
      },
      "decode": {
        "tokens": 127,
        "duration_ms": 7865.95,
        "timing_source": "engine"
      },
      "peak_memory_bytes": null,
      "memory_method": null,
      "thermal": {
        "start": {
          "celsius": null,
          "state": "nominal"
        },
        "end": {
          "celsius": null,
          "state": "nominal"
        }
      },
      "output_sha256": "8db46b6cbaf96bc38eeef6295267de615e3cca8523f717adaf24a8551026e9e5",
      "error": null
    },
    {
      "index": 2,
      "valid": true,
      "invalid_reason": null,
      "ttft_ms": 2482.692,
      "prefill": {
        "tokens": 256,
        "duration_ms": 2480.85,
        "timing_source": "engine"
      },
      "decode": {
        "tokens": 127,
        "duration_ms": 7872.184,
        "timing_source": "engine"
      },
      "peak_memory_bytes": null,
      "memory_method": null,
      "thermal": {
        "start": {
          "celsius": null,
          "state": "nominal"
        },
        "end": {
          "celsius": null,
          "state": "nominal"
        }
      },
      "output_sha256": "8db46b6cbaf96bc38eeef6295267de615e3cca8523f717adaf24a8551026e9e5",
      "error": null
    },
    {
      "index": 3,
      "valid": true,
      "invalid_reason": null,
      "ttft_ms": 2536.814,
      "prefill": {
        "tokens": 256,
        "duration_ms": 2531.911,
        "timing_source": "engine"
      },
      "decode": {
        "tokens": 127,
        "duration_ms": 8030.108,
        "timing_source": "engine"
      },
      "peak_memory_bytes": null,
      "memory_method": null,
      "thermal": {
        "start": {
          "celsius": null,
          "state": "nominal"
        },
        "end": {
          "celsius": null,
          "state": "nominal"
        }
      },
      "output_sha256": "8db46b6cbaf96bc38eeef6295267de615e3cca8523f717adaf24a8551026e9e5",
      "error": null
    },
    {
      "index": 4,
      "valid": true,
      "invalid_reason": null,
      "ttft_ms": 2561.993,
      "prefill": {
        "tokens": 256,
        "duration_ms": 2560.085,
        "timing_source": "engine"
      },
      "decode": {
        "tokens": 127,
        "duration_ms": 7953.568,
        "timing_source": "engine"
      },
      "peak_memory_bytes": null,
      "memory_method": null,
      "thermal": {
        "start": {
          "celsius": null,
          "state": "nominal"
        },
        "end": {
          "celsius": null,
          "state": "nominal"
        }
      },
      "output_sha256": "8db46b6cbaf96bc38eeef6295267de615e3cca8523f717adaf24a8551026e9e5",
      "error": null
    },
    {
      "index": 5,
      "valid": true,
      "invalid_reason": null,
      "ttft_ms": 2407.242,
      "prefill": {
        "tokens": 256,
        "duration_ms": 2405.49,
        "timing_source": "engine"
      },
      "decode": {
        "tokens": 127,
        "duration_ms": 7725.969,
        "timing_source": "engine"
      },
      "peak_memory_bytes": null,
      "memory_method": null,
      "thermal": {
        "start": {
          "celsius": null,
          "state": "nominal"
        },
        "end": {
          "celsius": null,
          "state": "nominal"
        }
      },
      "output_sha256": "8db46b6cbaf96bc38eeef6295267de615e3cca8523f717adaf24a8551026e9e5",
      "error": null
    }
  ],
  "quality": {
    "method": "sanity-v1-bf16-reference",
    "status": "failed",
    "reference": "checks/sanity-v1.json",
    "reference_sha256": "a702dee079525ae0ec90465b1c9e26052c99cb3e1c53e83dea05be4c194fc7ca",
    "threshold": 8,
    "items": [
      {
        "id": "arithmetic",
        "passed": true,
        "output_sha256": "68ce25cb2c4b530f85434cd352428b022149c641163300e566f4f9ee9d789bcf"
      },
      {
        "id": "capital",
        "passed": true,
        "output_sha256": "7a3bb1905f2039638dff3f8a3da57abf7b1da32596b04c5ed04c5296f155196a"
      },
      {
        "id": "opposite",
        "passed": true,
        "output_sha256": "69a13e1ba8e284fcc26068ec8aa80e8a7e7f8bbebe86dc7a45424411198a6859"
      },
      {
        "id": "weekday",
        "passed": true,
        "output_sha256": "b8c6a621f6e216db1d214b8d906c759be744ff3abc6e41f979ff0d24575cbbcd"
      },
      {
        "id": "color",
        "passed": false,
        "output_sha256": "fe08d89d0b006dfadf3ef0dfdad25eded8e6238dcd5af7ea93748aaec2d565fd"
      },
      {
        "id": "sort",
        "passed": false,
        "output_sha256": "f3e9a127eb72ee656a49ae07958aff2ae3343aa843f5b3abc9ae9de9f560a4f8"
      },
      {
        "id": "animal",
        "passed": true,
        "output_sha256": "3e9114b6df29561433c18b3a6abce2c635fbd8e9ff25b5fcee93149bfea52859"
      },
      {
        "id": "word",
        "passed": true,
        "output_sha256": "d1bf31457072aaa4c116ea5819a644456232fdd87b15203d3eafdd5e541f4e61"
      },
      {
        "id": "copy",
        "passed": true,
        "output_sha256": "d8c711dfa5fef68d1d0f86320daeca065b91bc8d0dbcea210f8b9ef80eefc6c2"
      },
      {
        "id": "needle-start",
        "passed": false,
        "output_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
      },
      {
        "id": "needle-end",
        "passed": true,
        "output_sha256": "34b7b9e17d75628c346994d8be48566a2dd011ba8533dc75fc33a579ee705365"
      },
      {
        "id": "continuation-128",
        "passed": false,
        "output_sha256": "da3683ef8034e95c52683294949e3e9c606f4429c3d6e782c3fcadaa386ce12a"
      }
    ],
    "detail": "7/9 of the checks the model passes at BF16; needs 8 and the mandatory ones (needle-start, continuation-128). Left out, failed by every BF16 configuration: color, sort, needle-end."
  },
  "status": "complete",
  "errors": [],
  "unsupported": null,
  "caveats": [
    "Publisher cards identify the base model but do not always pin the exact export source checkpoint revision.",
    "Engines may differ in quantization scheme, effective KV cache precision, kernels, and activations."
  ],
  "reproduction": {
    "commands": [
      "pnpm bench run --plan plans/s4-iphone12-lfm2.5-2.6b-4-bit.json"
    ],
    "environment": {},
    "notes": "Three palindromic blocks per quantization class and workload; load, two warmups, one trial, unload per turn."
  },
  "artifacts": [
    {
      "kind": "raw",
      "label": "Complete finalized session evidence",
      "url": "https://www.xybrid.ai/leaderboard/raw/s4-iphone12-lfm2.5-2.6b-4-bit.jsonl",
      "sha256": "af93a639a775e2532ccb30b761ffe61f90990bb7780fc712ae4f6a0ceb1e2f16"
    }
  ]
}
