{
  "schema_version": "1",
  "created_at_utc": "2026-10-17T00:20:28.982358+00:00",
  "backend_revision": "88aaf325a7026ac1127d0897394b0a3d6413dc2a",
  "status": "passed",
  "all_passed": true,
  "expected_run_count": 7,
  "runs": [
    {
      "case": 1,
      "model": "stories15M-q4_0.gguf",
      "context_requested": 256,
      "n_gpu_layers": 0,
      "passed": true,
      "status": "passed",
      "gpu_before": {
        "phase": "before",
        "elapsed_seconds": 9e-06,
        "query_exit_code": 0,
        "values": {
          "index": 0,
          "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
          "name": "NVIDIA GeForce RTX 5060 Ti",
          "driver_version": "581.57",
          "memory.total": 16311,
          "memory.used": 558,
          "memory.free": 15405,
          "utilization.gpu": 7
        },
        "unavailable_fields": {}
      },
      "calculator_checks": [
        {
          "check": "plan.command",
          "actual": "plan",
          "expected": "plan",
          "passed": true
        },
        {
          "check": "plan.requested_n_gpu_layers",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "plan.context",
          "actual": 256,
          "expected": 256,
          "passed": true
        },
        {
          "check": "plan.kv_precision",
          "actual": "FP16",
          "expected": "FP16",
          "passed": true
        },
        {
          "check": "plan.n_gpu_layers",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "plan.gpu_block_count",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "plan.output_on_gpu",
          "actual": false,
          "expected": false,
          "passed": true
        },
        {
          "check": "plan.allocated_context_tokens",
          "actual": 256,
          "expected": 256,
          "passed": true
        },
        {
          "check": "plan.kv_bytes",
          "actual": 1769472,
          "expected": 1769472,
          "passed": true
        },
        {
          "check": "plan.allocated_kv_bytes",
          "actual": 1769472,
          "expected": 1769472,
          "passed": true
        },
        {
          "check": "profile.backend_revision",
          "actual": "88aaf325a7026ac1127d0897394b0a3d6413dc2a",
          "expected": "88aaf325a7026ac1127d0897394b0a3d6413dc2a",
          "passed": true
        },
        {
          "check": "profile.tied_output",
          "actual": false,
          "expected": false,
          "passed": true
        },
        {
          "check": "profile.tensor_payload_bytes",
          "actual": 18350208,
          "expected": 18350208,
          "passed": true
        },
        {
          "check": "plan.cpu_weight_bytes",
          "actual": 18350208,
          "expected": 18350208,
          "passed": true
        },
        {
          "check": "plan.gpu_weight_bytes",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "plan.duplicated_bytes",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "ledger.gpu_kv_bytes",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "ledger.host_kv_bytes",
          "actual": 1769472,
          "expected": 1769472,
          "passed": true
        },
        {
          "check": "ledger.gpu_layers",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "ledger.cpu_layers",
          "actual": 6,
          "expected": 6,
          "passed": true
        },
        {
          "check": "plan.tensor_placements",
          "placement_count": 57,
          "passed": true
        },
        {
          "check": "plan.status",
          "actual": "CPU ONLY",
          "expected": "CPU ONLY",
          "passed": true
        }
      ],
      "gpu_launch_guard": {
        "phase": "immediately_before_launch",
        "elapsed_seconds": 0.04757,
        "query_exit_code": 0,
        "values": {
          "index": 0,
          "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
          "name": "NVIDIA GeForce RTX 5060 Ti",
          "driver_version": "581.57",
          "memory.total": 16311,
          "memory.used": 558,
          "memory.free": 15405,
          "utilization.gpu": 2
        },
        "unavailable_fields": {}
      },
      "observed_process": {
        "exit_code": 0,
        "timed_out": false,
        "elapsed_seconds": 0.280673
      },
      "logs": {
        "stderr": "gpu-runtime-run1-1-stories15M-q4_0-ctx256-ngl0.stderr.log",
        "stdout": "gpu-runtime-run1-1-stories15M-q4_0-ctx256-ngl0.stdout.log"
      },
      "command_template": [
        "llama-completion",
        "-m",
        "stories15M-q4_0.gguf",
        "-c",
        "256",
        "-n",
        "32",
        "-t",
        "2",
        "-b",
        "64",
        "-ub",
        "64",
        "-np",
        "1",
        "-ngl",
        "0",
        "--device",
        "CUDA0",
        "--split-mode",
        "none",
        "--fit",
        "off",
        "--no-repack",
        "--no-host",
        "--load-mode",
        "none",
        "--lazy-mode",
        "off",
        "--kv-offload",
        "-fa",
        "off",
        "-ctk",
        "f16",
        "-ctv",
        "f16",
        "-no-cnv",
        "-p",
        "Once upon a time",
        "-s",
        "1",
        "--temp",
        "0",
        "-lv",
        "5",
        "--log-colors",
        "off",
        "--no-display-prompt"
      ],
      "calculator_command_template": [
        "llmcalc.exe",
        "plan",
        "stories15M-q4_0.gguf",
        "--vram=15.928710938GiB",
        "--ram=31.347328186GiB",
        "--context=256",
        "--kv=FP16",
        "--n-gpu-layers=0",
        "--json"
      ],
      "backend_checks": [
        {
          "check": "backend.model_layer_devices",
          "actual": {
            "0": "CPU",
            "1": "CPU",
            "2": "CPU",
            "3": "CPU",
            "4": "CPU",
            "5": "CPU",
            "6": "CPU"
          },
          "expected": {
            "0": "CPU",
            "1": "CPU",
            "2": "CPU",
            "3": "CPU",
            "4": "CPU",
            "5": "CPU",
            "6": "CPU"
          },
          "passed": true
        },
        {
          "check": "backend.model_layer_log_count",
          "actual": 7,
          "expected": 7,
          "passed": true
        },
        {
          "check": "backend.no_swa_layers",
          "actual": [
            "0",
            "0",
            "0",
            "0",
            "0",
            "0",
            "0"
          ],
          "expected": [
            "0",
            "0",
            "0",
            "0",
            "0",
            "0",
            "0"
          ],
          "passed": true
        },
        {
          "check": "backend.kv_layer_devices",
          "actual": {
            "0": "CPU",
            "1": "CPU",
            "2": "CPU",
            "3": "CPU",
            "4": "CPU",
            "5": "CPU"
          },
          "expected": {
            "0": "CPU",
            "1": "CPU",
            "2": "CPU",
            "3": "CPU",
            "4": "CPU",
            "5": "CPU"
          },
          "passed": true
        },
        {
          "check": "backend.kv_layer_log_count",
          "actual": 6,
          "expected": 6,
          "passed": true
        },
        {
          "check": "backend.no_fallback_or_allocation_error",
          "actual": [],
          "expected": [],
          "passed": true
        },
        {
          "check": "backend.only_plain_CPU_and_CUDA0_model_KV",
          "actual": [],
          "expected": [],
          "passed": true
        },
        {
          "check": "backend.exit_code",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "backend.timed_out",
          "actual": false,
          "expected": false,
          "passed": true
        },
        {
          "check": "device.in_run_memory_sample_observed",
          "actual": true,
          "expected": true,
          "passed": true
        }
      ],
      "backend_buffers": [
        {
          "device": "CPU",
          "kind": "model",
          "reported_value": "17.50",
          "reported_unit": "MiB",
          "rounded_bytes": 18350080.0,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CPU",
          "kind": "output",
          "reported_value": "0.12",
          "reported_unit": "MiB",
          "rounded_bytes": 125829.12,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CPU",
          "kind": "KV",
          "reported_value": "1.69",
          "reported_unit": "MiB",
          "rounded_bytes": 1772093.44,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA0",
          "kind": "compute",
          "reported_value": "17.69",
          "reported_unit": "MiB",
          "rounded_bytes": 18549309.44,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA_Host",
          "kind": "compute",
          "reported_value": "0.49",
          "reported_unit": "MiB",
          "rounded_bytes": 513802.24,
          "rounding_half_interval_bytes": 5242.88
        }
      ],
      "component_comparisons": [
        {
          "component": "model",
          "device": "CPU",
          "expected_allocated_bytes": 18350208,
          "matching_log_count": 1,
          "difference_from_rounded_backend_bytes": -128.0,
          "within_reported_rounding_interval": true,
          "note": "exact independent allocation is compared only with the printed rounding interval"
        },
        {
          "component": "model",
          "device": "CUDA0",
          "expected_allocated_bytes": 0,
          "matching_log_count": 0,
          "difference_from_rounded_backend_bytes": null,
          "within_reported_rounding_interval": true,
          "note": "no allocation/context expected; absent buffer line is the expected zero"
        },
        {
          "component": "KV",
          "device": "CPU",
          "expected_allocated_bytes": 1769472,
          "matching_log_count": 1,
          "difference_from_rounded_backend_bytes": 2621.439999999944,
          "within_reported_rounding_interval": true,
          "note": "exact independent allocation is compared only with the printed rounding interval"
        },
        {
          "component": "KV",
          "device": "CUDA0",
          "expected_allocated_bytes": 0,
          "matching_log_count": 0,
          "difference_from_rounded_backend_bytes": null,
          "within_reported_rounding_interval": true,
          "note": "no allocation/context expected; absent buffer line is the expected zero"
        }
      ],
      "independent_oracle": {
        "raw": {
          "CPU": 18350208,
          "CUDA0": 0
        },
        "model": {
          "CPU": 18350208,
          "CUDA0": 0
        },
        "kv": {
          "CPU": 1769472,
          "CUDA0": 0
        },
        "duplicated_bytes": 0,
        "allocated_context": 256,
        "raw_kv_bytes": 1769472,
        "allocated_kv_bytes": 1769472,
        "gpu_blocks": 0,
        "allocations": [
          {
            "name": "token_embd.weight",
            "role": "input",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 5184000,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 5184000
          },
          {
            "name": "output_norm.weight",
            "role": "output",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "output.weight",
            "role": "output",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 9792000,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 9792000
          },
          {
            "name": "blk.0.attn_q.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.0.attn_k.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.0.attn_v.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.0.attn_output.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.0.attn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.0.ffn_gate.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.0.ffn_down.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.0.ffn_up.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.0.ffn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.1.attn_q.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.1.attn_k.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.1.attn_v.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.1.attn_output.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.1.attn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.1.ffn_gate.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.1.ffn_down.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.1.ffn_up.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.1.ffn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.2.attn_q.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.2.attn_k.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.2.attn_v.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.2.attn_output.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.2.attn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.2.ffn_gate.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.2.ffn_down.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.2.ffn_up.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.2.ffn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.3.attn_q.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.3.attn_k.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.3.attn_v.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.3.attn_output.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.3.attn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.3.ffn_gate.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.3.ffn_down.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.3.ffn_up.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.3.ffn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.4.attn_q.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.4.attn_k.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.4.attn_v.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.4.attn_output.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.4.attn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.4.ffn_gate.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.4.ffn_down.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.4.ffn_up.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.4.ffn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.5.attn_q.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.5.attn_k.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.5.attn_v.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.5.attn_output.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.5.attn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.5.ffn_gate.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.5.ffn_down.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.5.ffn_up.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.5.ffn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          }
        ],
        "model_layer_devices": {
          "0": "CPU",
          "1": "CPU",
          "2": "CPU",
          "3": "CPU",
          "4": "CPU",
          "5": "CPU",
          "6": "CPU"
        },
        "kv_layer_devices": {
          "0": "CPU",
          "1": "CPU",
          "2": "CPU",
          "3": "CPU",
          "4": "CPU",
          "5": "CPU"
        }
      },
      "device_telemetry": {
        "before": {
          "phase": "before",
          "elapsed_seconds": 9e-06,
          "query_exit_code": 0,
          "values": {
            "index": 0,
            "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
            "name": "NVIDIA GeForce RTX 5060 Ti",
            "driver_version": "581.57",
            "memory.total": 16311,
            "memory.used": 558,
            "memory.free": 15405,
            "utilization.gpu": 7
          },
          "unavailable_fields": {}
        },
        "during": [
          {
            "phase": "during",
            "elapsed_seconds": 0.087379,
            "query_exit_code": 0,
            "values": {
              "index": 0,
              "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
              "name": "NVIDIA GeForce RTX 5060 Ti",
              "driver_version": "581.57",
              "memory.total": 16311,
              "memory.used": 558,
              "memory.free": 15405,
              "utilization.gpu": 2
            },
            "unavailable_fields": {},
            "backend_alive_at_query_start": true,
            "backend_alive_at_query_end": true
          },
          {
            "phase": "during",
            "elapsed_seconds": 0.234484,
            "query_exit_code": 0,
            "values": {
              "index": 0,
              "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
              "name": "NVIDIA GeForce RTX 5060 Ti",
              "driver_version": "581.57",
              "memory.total": 16311,
              "memory.used": 587,
              "memory.free": 15376,
              "utilization.gpu": 2
            },
            "unavailable_fields": {},
            "backend_alive_at_query_start": true,
            "backend_alive_at_query_end": true
          }
        ],
        "after": {
          "phase": "after",
          "elapsed_seconds": 0.375958,
          "query_exit_code": 0,
          "values": {
            "index": 0,
            "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
            "name": "NVIDIA GeForce RTX 5060 Ti",
            "driver_version": "581.57",
            "memory.total": 16311,
            "memory.used": 558,
            "memory.free": 15405,
            "utilization.gpu": 2
          },
          "unavailable_fields": {}
        },
        "in_run_memory_sample_status": "observed",
        "unavailable_reason": null,
        "in_run_memory_sample_count": 2,
        "sampled_device_used_max_mib": 587,
        "sampled_device_used_last_mib": 587,
        "process_vram_peak_bytes": null,
        "process_vram_peak_unavailable_reason": "nvidia-smi device totals do not establish a process peak; WSL/WDDM process accounting is not assumed"
      }
    },
    {
      "case": 2,
      "model": "stories15M-q4_0.gguf",
      "context_requested": 256,
      "n_gpu_layers": 1,
      "passed": true,
      "status": "passed",
      "gpu_before": {
        "phase": "before",
        "elapsed_seconds": 1e-06,
        "query_exit_code": 0,
        "values": {
          "index": 0,
          "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
          "name": "NVIDIA GeForce RTX 5060 Ti",
          "driver_version": "581.57",
          "memory.total": 16311,
          "memory.used": 558,
          "memory.free": 15405,
          "utilization.gpu": 1
        },
        "unavailable_fields": {}
      },
      "calculator_checks": [
        {
          "check": "plan.command",
          "actual": "plan",
          "expected": "plan",
          "passed": true
        },
        {
          "check": "plan.requested_n_gpu_layers",
          "actual": 1,
          "expected": 1,
          "passed": true
        },
        {
          "check": "plan.context",
          "actual": 256,
          "expected": 256,
          "passed": true
        },
        {
          "check": "plan.kv_precision",
          "actual": "FP16",
          "expected": "FP16",
          "passed": true
        },
        {
          "check": "plan.n_gpu_layers",
          "actual": 1,
          "expected": 1,
          "passed": true
        },
        {
          "check": "plan.gpu_block_count",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "plan.output_on_gpu",
          "actual": true,
          "expected": true,
          "passed": true
        },
        {
          "check": "plan.allocated_context_tokens",
          "actual": 256,
          "expected": 256,
          "passed": true
        },
        {
          "check": "plan.kv_bytes",
          "actual": 1769472,
          "expected": 1769472,
          "passed": true
        },
        {
          "check": "plan.allocated_kv_bytes",
          "actual": 1769472,
          "expected": 1769472,
          "passed": true
        },
        {
          "check": "profile.backend_revision",
          "actual": "88aaf325a7026ac1127d0897394b0a3d6413dc2a",
          "expected": "88aaf325a7026ac1127d0897394b0a3d6413dc2a",
          "passed": true
        },
        {
          "check": "profile.tied_output",
          "actual": false,
          "expected": false,
          "passed": true
        },
        {
          "check": "profile.tensor_payload_bytes",
          "actual": 18350208,
          "expected": 18350208,
          "passed": true
        },
        {
          "check": "plan.cpu_weight_bytes",
          "actual": 8557056,
          "expected": 8557056,
          "passed": true
        },
        {
          "check": "plan.gpu_weight_bytes",
          "actual": 9793152,
          "expected": 9793152,
          "passed": true
        },
        {
          "check": "plan.duplicated_bytes",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "ledger.gpu_kv_bytes",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "ledger.host_kv_bytes",
          "actual": 1769472,
          "expected": 1769472,
          "passed": true
        },
        {
          "check": "ledger.gpu_layers",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "ledger.cpu_layers",
          "actual": 6,
          "expected": 6,
          "passed": true
        },
        {
          "check": "plan.tensor_placements",
          "placement_count": 57,
          "passed": true
        },
        {
          "check": "plan.status",
          "actual": "GPU+CPU OFFLOAD",
          "expected": "GPU+CPU OFFLOAD",
          "passed": true
        }
      ],
      "gpu_launch_guard": {
        "phase": "immediately_before_launch",
        "elapsed_seconds": 0.044553,
        "query_exit_code": 0,
        "values": {
          "index": 0,
          "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
          "name": "NVIDIA GeForce RTX 5060 Ti",
          "driver_version": "581.57",
          "memory.total": 16311,
          "memory.used": 558,
          "memory.free": 15405,
          "utilization.gpu": 1
        },
        "unavailable_fields": {}
      },
      "observed_process": {
        "exit_code": 0,
        "timed_out": false,
        "elapsed_seconds": 0.319035
      },
      "logs": {
        "stderr": "gpu-runtime-run1-2-stories15M-q4_0-ctx256-ngl1.stderr.log",
        "stdout": "gpu-runtime-run1-2-stories15M-q4_0-ctx256-ngl1.stdout.log"
      },
      "command_template": [
        "llama-completion",
        "-m",
        "stories15M-q4_0.gguf",
        "-c",
        "256",
        "-n",
        "32",
        "-t",
        "2",
        "-b",
        "64",
        "-ub",
        "64",
        "-np",
        "1",
        "-ngl",
        "1",
        "--device",
        "CUDA0",
        "--split-mode",
        "none",
        "--fit",
        "off",
        "--no-repack",
        "--no-host",
        "--load-mode",
        "none",
        "--lazy-mode",
        "off",
        "--kv-offload",
        "-fa",
        "off",
        "-ctk",
        "f16",
        "-ctv",
        "f16",
        "-no-cnv",
        "-p",
        "Once upon a time",
        "-s",
        "1",
        "--temp",
        "0",
        "-lv",
        "5",
        "--log-colors",
        "off",
        "--no-display-prompt"
      ],
      "calculator_command_template": [
        "llmcalc.exe",
        "plan",
        "stories15M-q4_0.gguf",
        "--vram=15.928710938GiB",
        "--ram=31.347328186GiB",
        "--context=256",
        "--kv=FP16",
        "--n-gpu-layers=1",
        "--json"
      ],
      "backend_checks": [
        {
          "check": "backend.model_layer_devices",
          "actual": {
            "0": "CPU",
            "1": "CPU",
            "2": "CPU",
            "3": "CPU",
            "4": "CPU",
            "5": "CPU",
            "6": "CUDA0"
          },
          "expected": {
            "0": "CPU",
            "1": "CPU",
            "2": "CPU",
            "3": "CPU",
            "4": "CPU",
            "5": "CPU",
            "6": "CUDA0"
          },
          "passed": true
        },
        {
          "check": "backend.model_layer_log_count",
          "actual": 7,
          "expected": 7,
          "passed": true
        },
        {
          "check": "backend.no_swa_layers",
          "actual": [
            "0",
            "0",
            "0",
            "0",
            "0",
            "0",
            "0"
          ],
          "expected": [
            "0",
            "0",
            "0",
            "0",
            "0",
            "0",
            "0"
          ],
          "passed": true
        },
        {
          "check": "backend.kv_layer_devices",
          "actual": {
            "0": "CPU",
            "1": "CPU",
            "2": "CPU",
            "3": "CPU",
            "4": "CPU",
            "5": "CPU"
          },
          "expected": {
            "0": "CPU",
            "1": "CPU",
            "2": "CPU",
            "3": "CPU",
            "4": "CPU",
            "5": "CPU"
          },
          "passed": true
        },
        {
          "check": "backend.kv_layer_log_count",
          "actual": 6,
          "expected": 6,
          "passed": true
        },
        {
          "check": "backend.no_fallback_or_allocation_error",
          "actual": [],
          "expected": [],
          "passed": true
        },
        {
          "check": "backend.only_plain_CPU_and_CUDA0_model_KV",
          "actual": [],
          "expected": [],
          "passed": true
        },
        {
          "check": "backend.exit_code",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "backend.timed_out",
          "actual": false,
          "expected": false,
          "passed": true
        },
        {
          "check": "device.in_run_memory_sample_observed",
          "actual": true,
          "expected": true,
          "passed": true
        }
      ],
      "backend_buffers": [
        {
          "device": "CPU",
          "kind": "model",
          "reported_value": "8.16",
          "reported_unit": "MiB",
          "rounded_bytes": 8556380.16,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA0",
          "kind": "model",
          "reported_value": "9.34",
          "reported_unit": "MiB",
          "rounded_bytes": 9793699.84,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA_Host",
          "kind": "output",
          "reported_value": "0.12",
          "reported_unit": "MiB",
          "rounded_bytes": 125829.12,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CPU",
          "kind": "KV",
          "reported_value": "1.69",
          "reported_unit": "MiB",
          "rounded_bytes": 1772093.44,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA0",
          "kind": "compute",
          "reported_value": "8.35",
          "reported_unit": "MiB",
          "rounded_bytes": 8755609.6,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA_Host",
          "kind": "compute",
          "reported_value": "0.49",
          "reported_unit": "MiB",
          "rounded_bytes": 513802.24,
          "rounding_half_interval_bytes": 5242.88
        }
      ],
      "component_comparisons": [
        {
          "component": "model",
          "device": "CPU",
          "expected_allocated_bytes": 8557056,
          "matching_log_count": 1,
          "difference_from_rounded_backend_bytes": -675.839999999851,
          "within_reported_rounding_interval": true,
          "note": "exact independent allocation is compared only with the printed rounding interval"
        },
        {
          "component": "model",
          "device": "CUDA0",
          "expected_allocated_bytes": 9793408,
          "matching_log_count": 1,
          "difference_from_rounded_backend_bytes": 291.839999999851,
          "within_reported_rounding_interval": true,
          "note": "exact independent allocation is compared only with the printed rounding interval"
        },
        {
          "component": "KV",
          "device": "CPU",
          "expected_allocated_bytes": 1769472,
          "matching_log_count": 1,
          "difference_from_rounded_backend_bytes": 2621.439999999944,
          "within_reported_rounding_interval": true,
          "note": "exact independent allocation is compared only with the printed rounding interval"
        },
        {
          "component": "KV",
          "device": "CUDA0",
          "expected_allocated_bytes": 0,
          "matching_log_count": 0,
          "difference_from_rounded_backend_bytes": null,
          "within_reported_rounding_interval": true,
          "note": "no allocation/context expected; absent buffer line is the expected zero"
        }
      ],
      "independent_oracle": {
        "raw": {
          "CPU": 8557056,
          "CUDA0": 9793152
        },
        "model": {
          "CPU": 8557056,
          "CUDA0": 9793408
        },
        "kv": {
          "CPU": 1769472,
          "CUDA0": 0
        },
        "duplicated_bytes": 0,
        "allocated_context": 256,
        "raw_kv_bytes": 1769472,
        "allocated_kv_bytes": 1769472,
        "gpu_blocks": 0,
        "allocations": [
          {
            "name": "token_embd.weight",
            "role": "input",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 5184000,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 5184000
          },
          {
            "name": "output_norm.weight",
            "role": "output",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "output.weight",
            "role": "output",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 9792000,
            "quantized_tail_padding_bytes": 238,
            "allocated_bytes": 9792256
          },
          {
            "name": "blk.0.attn_q.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.0.attn_k.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.0.attn_v.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.0.attn_output.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.0.attn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.0.ffn_gate.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.0.ffn_down.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.0.ffn_up.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.0.ffn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.1.attn_q.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.1.attn_k.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.1.attn_v.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.1.attn_output.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.1.attn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.1.ffn_gate.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.1.ffn_down.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.1.ffn_up.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.1.ffn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.2.attn_q.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.2.attn_k.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.2.attn_v.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.2.attn_output.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.2.attn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.2.ffn_gate.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.2.ffn_down.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.2.ffn_up.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.2.ffn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.3.attn_q.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.3.attn_k.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.3.attn_v.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.3.attn_output.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.3.attn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.3.ffn_gate.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.3.ffn_down.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.3.ffn_up.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.3.ffn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.4.attn_q.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.4.attn_k.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.4.attn_v.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.4.attn_output.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.4.attn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.4.ffn_gate.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.4.ffn_down.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.4.ffn_up.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.4.ffn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.5.attn_q.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.5.attn_k.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.5.attn_v.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.5.attn_output.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.5.attn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.5.ffn_gate.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.5.ffn_down.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.5.ffn_up.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.5.ffn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          }
        ],
        "model_layer_devices": {
          "0": "CPU",
          "1": "CPU",
          "2": "CPU",
          "3": "CPU",
          "4": "CPU",
          "5": "CPU",
          "6": "CUDA0"
        },
        "kv_layer_devices": {
          "0": "CPU",
          "1": "CPU",
          "2": "CPU",
          "3": "CPU",
          "4": "CPU",
          "5": "CPU"
        }
      },
      "device_telemetry": {
        "before": {
          "phase": "before",
          "elapsed_seconds": 1e-06,
          "query_exit_code": 0,
          "values": {
            "index": 0,
            "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
            "name": "NVIDIA GeForce RTX 5060 Ti",
            "driver_version": "581.57",
            "memory.total": 16311,
            "memory.used": 558,
            "memory.free": 15405,
            "utilization.gpu": 1
          },
          "unavailable_fields": {}
        },
        "during": [
          {
            "phase": "during",
            "elapsed_seconds": 0.081608,
            "query_exit_code": 0,
            "values": {
              "index": 0,
              "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
              "name": "NVIDIA GeForce RTX 5060 Ti",
              "driver_version": "581.57",
              "memory.total": 16311,
              "memory.used": 558,
              "memory.free": 15405,
              "utilization.gpu": 1
            },
            "unavailable_fields": {},
            "backend_alive_at_query_start": true,
            "backend_alive_at_query_end": true
          },
          {
            "phase": "during",
            "elapsed_seconds": 0.222301,
            "query_exit_code": 0,
            "values": {
              "index": 0,
              "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
              "name": "NVIDIA GeForce RTX 5060 Ti",
              "driver_version": "581.57",
              "memory.total": 16311,
              "memory.used": 583,
              "memory.free": 15380,
              "utilization.gpu": 1
            },
            "unavailable_fields": {},
            "backend_alive_at_query_start": true,
            "backend_alive_at_query_end": true
          },
          {
            "phase": "during",
            "elapsed_seconds": 0.356704,
            "query_exit_code": 0,
            "values": {
              "index": 0,
              "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
              "name": "NVIDIA GeForce RTX 5060 Ti",
              "driver_version": "581.57",
              "memory.total": 16311,
              "memory.used": 558,
              "memory.free": 15405,
              "utilization.gpu": 1
            },
            "unavailable_fields": {},
            "backend_alive_at_query_start": true,
            "backend_alive_at_query_end": false
          }
        ],
        "after": {
          "phase": "after",
          "elapsed_seconds": 0.408329,
          "query_exit_code": 0,
          "values": {
            "index": 0,
            "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
            "name": "NVIDIA GeForce RTX 5060 Ti",
            "driver_version": "581.57",
            "memory.total": 16311,
            "memory.used": 558,
            "memory.free": 15405,
            "utilization.gpu": 3
          },
          "unavailable_fields": {}
        },
        "in_run_memory_sample_status": "observed",
        "unavailable_reason": null,
        "in_run_memory_sample_count": 2,
        "sampled_device_used_max_mib": 583,
        "sampled_device_used_last_mib": 583,
        "process_vram_peak_bytes": null,
        "process_vram_peak_unavailable_reason": "nvidia-smi device totals do not establish a process peak; WSL/WDDM process accounting is not assumed"
      }
    },
    {
      "case": 3,
      "model": "stories15M-q4_0.gguf",
      "context_requested": 256,
      "n_gpu_layers": 2,
      "passed": true,
      "status": "passed",
      "gpu_before": {
        "phase": "before",
        "elapsed_seconds": 1e-06,
        "query_exit_code": 0,
        "values": {
          "index": 0,
          "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
          "name": "NVIDIA GeForce RTX 5060 Ti",
          "driver_version": "581.57",
          "memory.total": 16311,
          "memory.used": 558,
          "memory.free": 15405,
          "utilization.gpu": 3
        },
        "unavailable_fields": {}
      },
      "calculator_checks": [
        {
          "check": "plan.command",
          "actual": "plan",
          "expected": "plan",
          "passed": true
        },
        {
          "check": "plan.requested_n_gpu_layers",
          "actual": 2,
          "expected": 2,
          "passed": true
        },
        {
          "check": "plan.context",
          "actual": 256,
          "expected": 256,
          "passed": true
        },
        {
          "check": "plan.kv_precision",
          "actual": "FP16",
          "expected": "FP16",
          "passed": true
        },
        {
          "check": "plan.n_gpu_layers",
          "actual": 2,
          "expected": 2,
          "passed": true
        },
        {
          "check": "plan.gpu_block_count",
          "actual": 1,
          "expected": 1,
          "passed": true
        },
        {
          "check": "plan.output_on_gpu",
          "actual": true,
          "expected": true,
          "passed": true
        },
        {
          "check": "plan.allocated_context_tokens",
          "actual": 256,
          "expected": 256,
          "passed": true
        },
        {
          "check": "plan.kv_bytes",
          "actual": 1769472,
          "expected": 1769472,
          "passed": true
        },
        {
          "check": "plan.allocated_kv_bytes",
          "actual": 1769472,
          "expected": 1769472,
          "passed": true
        },
        {
          "check": "profile.backend_revision",
          "actual": "88aaf325a7026ac1127d0897394b0a3d6413dc2a",
          "expected": "88aaf325a7026ac1127d0897394b0a3d6413dc2a",
          "passed": true
        },
        {
          "check": "profile.tied_output",
          "actual": false,
          "expected": false,
          "passed": true
        },
        {
          "check": "profile.tensor_payload_bytes",
          "actual": 18350208,
          "expected": 18350208,
          "passed": true
        },
        {
          "check": "plan.cpu_weight_bytes",
          "actual": 7994880,
          "expected": 7994880,
          "passed": true
        },
        {
          "check": "plan.gpu_weight_bytes",
          "actual": 10355328,
          "expected": 10355328,
          "passed": true
        },
        {
          "check": "plan.duplicated_bytes",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "ledger.gpu_kv_bytes",
          "actual": 294912,
          "expected": 294912,
          "passed": true
        },
        {
          "check": "ledger.host_kv_bytes",
          "actual": 1474560,
          "expected": 1474560,
          "passed": true
        },
        {
          "check": "ledger.gpu_layers",
          "actual": 1,
          "expected": 1,
          "passed": true
        },
        {
          "check": "ledger.cpu_layers",
          "actual": 5,
          "expected": 5,
          "passed": true
        },
        {
          "check": "plan.tensor_placements",
          "placement_count": 57,
          "passed": true
        },
        {
          "check": "plan.status",
          "actual": "GPU+CPU OFFLOAD",
          "expected": "GPU+CPU OFFLOAD",
          "passed": true
        }
      ],
      "gpu_launch_guard": {
        "phase": "immediately_before_launch",
        "elapsed_seconds": 0.045334,
        "query_exit_code": 0,
        "values": {
          "index": 0,
          "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
          "name": "NVIDIA GeForce RTX 5060 Ti",
          "driver_version": "581.57",
          "memory.total": 16311,
          "memory.used": 558,
          "memory.free": 15405,
          "utilization.gpu": 3
        },
        "unavailable_fields": {}
      },
      "observed_process": {
        "exit_code": 0,
        "timed_out": false,
        "elapsed_seconds": 0.401934
      },
      "logs": {
        "stderr": "gpu-runtime-run1-3-stories15M-q4_0-ctx256-ngl2.stderr.log",
        "stdout": "gpu-runtime-run1-3-stories15M-q4_0-ctx256-ngl2.stdout.log"
      },
      "command_template": [
        "llama-completion",
        "-m",
        "stories15M-q4_0.gguf",
        "-c",
        "256",
        "-n",
        "32",
        "-t",
        "2",
        "-b",
        "64",
        "-ub",
        "64",
        "-np",
        "1",
        "-ngl",
        "2",
        "--device",
        "CUDA0",
        "--split-mode",
        "none",
        "--fit",
        "off",
        "--no-repack",
        "--no-host",
        "--load-mode",
        "none",
        "--lazy-mode",
        "off",
        "--kv-offload",
        "-fa",
        "off",
        "-ctk",
        "f16",
        "-ctv",
        "f16",
        "-no-cnv",
        "-p",
        "Once upon a time",
        "-s",
        "1",
        "--temp",
        "0",
        "-lv",
        "5",
        "--log-colors",
        "off",
        "--no-display-prompt"
      ],
      "calculator_command_template": [
        "llmcalc.exe",
        "plan",
        "stories15M-q4_0.gguf",
        "--vram=15.928710938GiB",
        "--ram=31.347328186GiB",
        "--context=256",
        "--kv=FP16",
        "--n-gpu-layers=2",
        "--json"
      ],
      "backend_checks": [
        {
          "check": "backend.model_layer_devices",
          "actual": {
            "0": "CPU",
            "1": "CPU",
            "2": "CPU",
            "3": "CPU",
            "4": "CPU",
            "5": "CUDA0",
            "6": "CUDA0"
          },
          "expected": {
            "0": "CPU",
            "1": "CPU",
            "2": "CPU",
            "3": "CPU",
            "4": "CPU",
            "5": "CUDA0",
            "6": "CUDA0"
          },
          "passed": true
        },
        {
          "check": "backend.model_layer_log_count",
          "actual": 7,
          "expected": 7,
          "passed": true
        },
        {
          "check": "backend.no_swa_layers",
          "actual": [
            "0",
            "0",
            "0",
            "0",
            "0",
            "0",
            "0"
          ],
          "expected": [
            "0",
            "0",
            "0",
            "0",
            "0",
            "0",
            "0"
          ],
          "passed": true
        },
        {
          "check": "backend.kv_layer_devices",
          "actual": {
            "0": "CPU",
            "1": "CPU",
            "2": "CPU",
            "3": "CPU",
            "4": "CPU",
            "5": "CUDA0"
          },
          "expected": {
            "0": "CPU",
            "1": "CPU",
            "2": "CPU",
            "3": "CPU",
            "4": "CPU",
            "5": "CUDA0"
          },
          "passed": true
        },
        {
          "check": "backend.kv_layer_log_count",
          "actual": 6,
          "expected": 6,
          "passed": true
        },
        {
          "check": "backend.no_fallback_or_allocation_error",
          "actual": [],
          "expected": [],
          "passed": true
        },
        {
          "check": "backend.only_plain_CPU_and_CUDA0_model_KV",
          "actual": [],
          "expected": [],
          "passed": true
        },
        {
          "check": "backend.exit_code",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "backend.timed_out",
          "actual": false,
          "expected": false,
          "passed": true
        },
        {
          "check": "device.in_run_memory_sample_observed",
          "actual": true,
          "expected": true,
          "passed": true
        }
      ],
      "backend_buffers": [
        {
          "device": "CPU",
          "kind": "model",
          "reported_value": "7.62",
          "reported_unit": "MiB",
          "rounded_bytes": 7990149.12,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA0",
          "kind": "model",
          "reported_value": "9.88",
          "reported_unit": "MiB",
          "rounded_bytes": 10359930.88,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA_Host",
          "kind": "output",
          "reported_value": "0.12",
          "reported_unit": "MiB",
          "rounded_bytes": 125829.12,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CPU",
          "kind": "KV",
          "reported_value": "1.41",
          "reported_unit": "MiB",
          "rounded_bytes": 1478492.16,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA0",
          "kind": "KV",
          "reported_value": "0.28",
          "reported_unit": "MiB",
          "rounded_bytes": 293601.28,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA0",
          "kind": "compute",
          "reported_value": "8.23",
          "reported_unit": "MiB",
          "rounded_bytes": 8629780.48,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA_Host",
          "kind": "compute",
          "reported_value": "0.49",
          "reported_unit": "MiB",
          "rounded_bytes": 513802.24,
          "rounding_half_interval_bytes": 5242.88
        }
      ],
      "component_comparisons": [
        {
          "component": "model",
          "device": "CPU",
          "expected_allocated_bytes": 7994880,
          "matching_log_count": 1,
          "difference_from_rounded_backend_bytes": -4730.879999999888,
          "within_reported_rounding_interval": true,
          "note": "exact independent allocation is compared only with the printed rounding interval"
        },
        {
          "component": "model",
          "device": "CUDA0",
          "expected_allocated_bytes": 10356864,
          "matching_log_count": 1,
          "difference_from_rounded_backend_bytes": 3066.8800000008196,
          "within_reported_rounding_interval": true,
          "note": "exact independent allocation is compared only with the printed rounding interval"
        },
        {
          "component": "KV",
          "device": "CPU",
          "expected_allocated_bytes": 1474560,
          "matching_log_count": 1,
          "difference_from_rounded_backend_bytes": 3932.159999999916,
          "within_reported_rounding_interval": true,
          "note": "exact independent allocation is compared only with the printed rounding interval"
        },
        {
          "component": "KV",
          "device": "CUDA0",
          "expected_allocated_bytes": 294912,
          "matching_log_count": 1,
          "difference_from_rounded_backend_bytes": -1310.719999999972,
          "within_reported_rounding_interval": true,
          "note": "exact independent allocation is compared only with the printed rounding interval"
        }
      ],
      "independent_oracle": {
        "raw": {
          "CPU": 7994880,
          "CUDA0": 10355328
        },
        "model": {
          "CPU": 7994880,
          "CUDA0": 10356864
        },
        "kv": {
          "CPU": 1474560,
          "CUDA0": 294912
        },
        "duplicated_bytes": 0,
        "allocated_context": 256,
        "raw_kv_bytes": 1769472,
        "allocated_kv_bytes": 1769472,
        "gpu_blocks": 1,
        "allocations": [
          {
            "name": "token_embd.weight",
            "role": "input",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 5184000,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 5184000
          },
          {
            "name": "output_norm.weight",
            "role": "output",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "output.weight",
            "role": "output",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 9792000,
            "quantized_tail_padding_bytes": 238,
            "allocated_bytes": 9792256
          },
          {
            "name": "blk.0.attn_q.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.0.attn_k.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.0.attn_v.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.0.attn_output.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.0.attn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.0.ffn_gate.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.0.ffn_down.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.0.ffn_up.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.0.ffn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.1.attn_q.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.1.attn_k.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.1.attn_v.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.1.attn_output.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.1.attn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.1.ffn_gate.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.1.ffn_down.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.1.ffn_up.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.1.ffn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.2.attn_q.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.2.attn_k.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.2.attn_v.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.2.attn_output.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.2.attn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.2.ffn_gate.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.2.ffn_down.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.2.ffn_up.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.2.ffn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.3.attn_q.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.3.attn_k.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.3.attn_v.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.3.attn_output.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.3.attn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.3.ffn_gate.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.3.ffn_down.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.3.ffn_up.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.3.ffn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.4.attn_q.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.4.attn_k.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.4.attn_v.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.4.attn_output.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 46656
          },
          {
            "name": "blk.4.attn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.4.ffn_gate.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.4.ffn_down.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.4.ffn_up.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 124416
          },
          {
            "name": "blk.4.ffn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.5.attn_q.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.5.attn_k.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.5.attn_v.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.5.attn_output.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.5.attn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.5.ffn_gate.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.5.ffn_down.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 144,
            "allocated_bytes": 124672
          },
          {
            "name": "blk.5.ffn_up.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.5.ffn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          }
        ],
        "model_layer_devices": {
          "0": "CPU",
          "1": "CPU",
          "2": "CPU",
          "3": "CPU",
          "4": "CPU",
          "5": "CUDA0",
          "6": "CUDA0"
        },
        "kv_layer_devices": {
          "0": "CPU",
          "1": "CPU",
          "2": "CPU",
          "3": "CPU",
          "4": "CPU",
          "5": "CUDA0"
        }
      },
      "device_telemetry": {
        "before": {
          "phase": "before",
          "elapsed_seconds": 1e-06,
          "query_exit_code": 0,
          "values": {
            "index": 0,
            "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
            "name": "NVIDIA GeForce RTX 5060 Ti",
            "driver_version": "581.57",
            "memory.total": 16311,
            "memory.used": 558,
            "memory.free": 15405,
            "utilization.gpu": 3
          },
          "unavailable_fields": {}
        },
        "during": [
          {
            "phase": "during",
            "elapsed_seconds": 0.083295,
            "query_exit_code": 0,
            "values": {
              "index": 0,
              "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
              "name": "NVIDIA GeForce RTX 5060 Ti",
              "driver_version": "581.57",
              "memory.total": 16311,
              "memory.used": 558,
              "memory.free": 15405,
              "utilization.gpu": 3
            },
            "unavailable_fields": {},
            "backend_alive_at_query_start": true,
            "backend_alive_at_query_end": true
          },
          {
            "phase": "during",
            "elapsed_seconds": 0.224155,
            "query_exit_code": 0,
            "values": {
              "index": 0,
              "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
              "name": "NVIDIA GeForce RTX 5060 Ti",
              "driver_version": "581.57",
              "memory.total": 16311,
              "memory.used": 583,
              "memory.free": 15380,
              "utilization.gpu": 1
            },
            "unavailable_fields": {},
            "backend_alive_at_query_start": true,
            "backend_alive_at_query_end": true
          },
          {
            "phase": "during",
            "elapsed_seconds": 0.352698,
            "query_exit_code": 0,
            "values": {
              "index": 0,
              "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
              "name": "NVIDIA GeForce RTX 5060 Ti",
              "driver_version": "581.57",
              "memory.total": 16311,
              "memory.used": 691,
              "memory.free": 15272,
              "utilization.gpu": 1
            },
            "unavailable_fields": {},
            "backend_alive_at_query_start": true,
            "backend_alive_at_query_end": true
          }
        ],
        "after": {
          "phase": "after",
          "elapsed_seconds": 0.507438,
          "query_exit_code": 0,
          "values": {
            "index": 0,
            "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
            "name": "NVIDIA GeForce RTX 5060 Ti",
            "driver_version": "581.57",
            "memory.total": 16311,
            "memory.used": 558,
            "memory.free": 15405,
            "utilization.gpu": 5
          },
          "unavailable_fields": {}
        },
        "in_run_memory_sample_status": "observed",
        "unavailable_reason": null,
        "in_run_memory_sample_count": 3,
        "sampled_device_used_max_mib": 691,
        "sampled_device_used_last_mib": 691,
        "process_vram_peak_bytes": null,
        "process_vram_peak_unavailable_reason": "nvidia-smi device totals do not establish a process peak; WSL/WDDM process accounting is not assumed"
      }
    },
    {
      "case": 4,
      "model": "stories15M-q4_0.gguf",
      "context_requested": 256,
      "n_gpu_layers": 7,
      "passed": true,
      "status": "passed",
      "gpu_before": {
        "phase": "before",
        "elapsed_seconds": 2e-06,
        "query_exit_code": 0,
        "values": {
          "index": 0,
          "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
          "name": "NVIDIA GeForce RTX 5060 Ti",
          "driver_version": "581.57",
          "memory.total": 16311,
          "memory.used": 558,
          "memory.free": 15405,
          "utilization.gpu": 0
        },
        "unavailable_fields": {}
      },
      "calculator_checks": [
        {
          "check": "plan.command",
          "actual": "plan",
          "expected": "plan",
          "passed": true
        },
        {
          "check": "plan.requested_n_gpu_layers",
          "actual": 7,
          "expected": 7,
          "passed": true
        },
        {
          "check": "plan.context",
          "actual": 256,
          "expected": 256,
          "passed": true
        },
        {
          "check": "plan.kv_precision",
          "actual": "FP16",
          "expected": "FP16",
          "passed": true
        },
        {
          "check": "plan.n_gpu_layers",
          "actual": 7,
          "expected": 7,
          "passed": true
        },
        {
          "check": "plan.gpu_block_count",
          "actual": 6,
          "expected": 6,
          "passed": true
        },
        {
          "check": "plan.output_on_gpu",
          "actual": true,
          "expected": true,
          "passed": true
        },
        {
          "check": "plan.allocated_context_tokens",
          "actual": 256,
          "expected": 256,
          "passed": true
        },
        {
          "check": "plan.kv_bytes",
          "actual": 1769472,
          "expected": 1769472,
          "passed": true
        },
        {
          "check": "plan.allocated_kv_bytes",
          "actual": 1769472,
          "expected": 1769472,
          "passed": true
        },
        {
          "check": "profile.backend_revision",
          "actual": "88aaf325a7026ac1127d0897394b0a3d6413dc2a",
          "expected": "88aaf325a7026ac1127d0897394b0a3d6413dc2a",
          "passed": true
        },
        {
          "check": "profile.tied_output",
          "actual": false,
          "expected": false,
          "passed": true
        },
        {
          "check": "profile.tensor_payload_bytes",
          "actual": 18350208,
          "expected": 18350208,
          "passed": true
        },
        {
          "check": "plan.cpu_weight_bytes",
          "actual": 5184000,
          "expected": 5184000,
          "passed": true
        },
        {
          "check": "plan.gpu_weight_bytes",
          "actual": 13166208,
          "expected": 13166208,
          "passed": true
        },
        {
          "check": "plan.duplicated_bytes",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "ledger.gpu_kv_bytes",
          "actual": 1769472,
          "expected": 1769472,
          "passed": true
        },
        {
          "check": "ledger.host_kv_bytes",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "ledger.gpu_layers",
          "actual": 6,
          "expected": 6,
          "passed": true
        },
        {
          "check": "ledger.cpu_layers",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "plan.tensor_placements",
          "placement_count": 57,
          "passed": true
        },
        {
          "check": "plan.status",
          "actual": "MAX_OFFLOAD",
          "expected": "MAX_OFFLOAD",
          "passed": true
        }
      ],
      "gpu_launch_guard": {
        "phase": "immediately_before_launch",
        "elapsed_seconds": 0.044321,
        "query_exit_code": 0,
        "values": {
          "index": 0,
          "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
          "name": "NVIDIA GeForce RTX 5060 Ti",
          "driver_version": "581.57",
          "memory.total": 16311,
          "memory.used": 558,
          "memory.free": 15405,
          "utilization.gpu": 0
        },
        "unavailable_fields": {}
      },
      "observed_process": {
        "exit_code": 0,
        "timed_out": false,
        "elapsed_seconds": 0.339403
      },
      "logs": {
        "stderr": "gpu-runtime-run1-4-stories15M-q4_0-ctx256-ngl7.stderr.log",
        "stdout": "gpu-runtime-run1-4-stories15M-q4_0-ctx256-ngl7.stdout.log"
      },
      "command_template": [
        "llama-completion",
        "-m",
        "stories15M-q4_0.gguf",
        "-c",
        "256",
        "-n",
        "32",
        "-t",
        "2",
        "-b",
        "64",
        "-ub",
        "64",
        "-np",
        "1",
        "-ngl",
        "7",
        "--device",
        "CUDA0",
        "--split-mode",
        "none",
        "--fit",
        "off",
        "--no-repack",
        "--no-host",
        "--load-mode",
        "none",
        "--lazy-mode",
        "off",
        "--kv-offload",
        "-fa",
        "off",
        "-ctk",
        "f16",
        "-ctv",
        "f16",
        "-no-cnv",
        "-p",
        "Once upon a time",
        "-s",
        "1",
        "--temp",
        "0",
        "-lv",
        "5",
        "--log-colors",
        "off",
        "--no-display-prompt"
      ],
      "calculator_command_template": [
        "llmcalc.exe",
        "plan",
        "stories15M-q4_0.gguf",
        "--vram=15.928710938GiB",
        "--ram=31.347328186GiB",
        "--context=256",
        "--kv=FP16",
        "--n-gpu-layers=7",
        "--json"
      ],
      "backend_checks": [
        {
          "check": "backend.model_layer_devices",
          "actual": {
            "0": "CUDA0",
            "1": "CUDA0",
            "2": "CUDA0",
            "3": "CUDA0",
            "4": "CUDA0",
            "5": "CUDA0",
            "6": "CUDA0"
          },
          "expected": {
            "0": "CUDA0",
            "1": "CUDA0",
            "2": "CUDA0",
            "3": "CUDA0",
            "4": "CUDA0",
            "5": "CUDA0",
            "6": "CUDA0"
          },
          "passed": true
        },
        {
          "check": "backend.model_layer_log_count",
          "actual": 7,
          "expected": 7,
          "passed": true
        },
        {
          "check": "backend.no_swa_layers",
          "actual": [
            "0",
            "0",
            "0",
            "0",
            "0",
            "0",
            "0"
          ],
          "expected": [
            "0",
            "0",
            "0",
            "0",
            "0",
            "0",
            "0"
          ],
          "passed": true
        },
        {
          "check": "backend.kv_layer_devices",
          "actual": {
            "0": "CUDA0",
            "1": "CUDA0",
            "2": "CUDA0",
            "3": "CUDA0",
            "4": "CUDA0",
            "5": "CUDA0"
          },
          "expected": {
            "0": "CUDA0",
            "1": "CUDA0",
            "2": "CUDA0",
            "3": "CUDA0",
            "4": "CUDA0",
            "5": "CUDA0"
          },
          "passed": true
        },
        {
          "check": "backend.kv_layer_log_count",
          "actual": 6,
          "expected": 6,
          "passed": true
        },
        {
          "check": "backend.no_fallback_or_allocation_error",
          "actual": [],
          "expected": [],
          "passed": true
        },
        {
          "check": "backend.only_plain_CPU_and_CUDA0_model_KV",
          "actual": [],
          "expected": [],
          "passed": true
        },
        {
          "check": "backend.exit_code",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "backend.timed_out",
          "actual": false,
          "expected": false,
          "passed": true
        },
        {
          "check": "device.in_run_memory_sample_observed",
          "actual": true,
          "expected": true,
          "passed": true
        }
      ],
      "backend_buffers": [
        {
          "device": "CPU",
          "kind": "model",
          "reported_value": "4.94",
          "reported_unit": "MiB",
          "rounded_bytes": 5179965.44,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA0",
          "kind": "model",
          "reported_value": "12.56",
          "reported_unit": "MiB",
          "rounded_bytes": 13170114.56,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA_Host",
          "kind": "output",
          "reported_value": "0.12",
          "reported_unit": "MiB",
          "rounded_bytes": 125829.12,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA0",
          "kind": "KV",
          "reported_value": "1.69",
          "reported_unit": "MiB",
          "rounded_bytes": 1772093.44,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA0",
          "kind": "compute",
          "reported_value": "8.30",
          "reported_unit": "MiB",
          "rounded_bytes": 8703180.8,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA_Host",
          "kind": "compute",
          "reported_value": "0.49",
          "reported_unit": "MiB",
          "rounded_bytes": 513802.24,
          "rounding_half_interval_bytes": 5242.88
        }
      ],
      "component_comparisons": [
        {
          "component": "model",
          "device": "CPU",
          "expected_allocated_bytes": 5184000,
          "matching_log_count": 1,
          "difference_from_rounded_backend_bytes": -4034.55999999959,
          "within_reported_rounding_interval": true,
          "note": "exact independent allocation is compared only with the printed rounding interval"
        },
        {
          "component": "model",
          "device": "CUDA0",
          "expected_allocated_bytes": 13174144,
          "matching_log_count": 1,
          "difference_from_rounded_backend_bytes": -4029.4399999994785,
          "within_reported_rounding_interval": true,
          "note": "exact independent allocation is compared only with the printed rounding interval"
        },
        {
          "component": "KV",
          "device": "CPU",
          "expected_allocated_bytes": 0,
          "matching_log_count": 0,
          "difference_from_rounded_backend_bytes": null,
          "within_reported_rounding_interval": true,
          "note": "no allocation/context expected; absent buffer line is the expected zero"
        },
        {
          "component": "KV",
          "device": "CUDA0",
          "expected_allocated_bytes": 1769472,
          "matching_log_count": 1,
          "difference_from_rounded_backend_bytes": 2621.439999999944,
          "within_reported_rounding_interval": true,
          "note": "exact independent allocation is compared only with the printed rounding interval"
        }
      ],
      "independent_oracle": {
        "raw": {
          "CPU": 5184000,
          "CUDA0": 13166208
        },
        "model": {
          "CPU": 5184000,
          "CUDA0": 13174144
        },
        "kv": {
          "CPU": 0,
          "CUDA0": 1769472
        },
        "duplicated_bytes": 0,
        "allocated_context": 256,
        "raw_kv_bytes": 1769472,
        "allocated_kv_bytes": 1769472,
        "gpu_blocks": 6,
        "allocations": [
          {
            "name": "token_embd.weight",
            "role": "input",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 5184000,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 5184000
          },
          {
            "name": "output_norm.weight",
            "role": "output",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "output.weight",
            "role": "output",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 9792000,
            "quantized_tail_padding_bytes": 238,
            "allocated_bytes": 9792256
          },
          {
            "name": "blk.0.attn_q.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.0.attn_k.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.0.attn_v.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.0.attn_output.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.0.attn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.0.ffn_gate.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.0.ffn_down.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 144,
            "allocated_bytes": 124672
          },
          {
            "name": "blk.0.ffn_up.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.0.ffn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.1.attn_q.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.1.attn_k.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.1.attn_v.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.1.attn_output.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.1.attn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.1.ffn_gate.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.1.ffn_down.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 144,
            "allocated_bytes": 124672
          },
          {
            "name": "blk.1.ffn_up.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.1.ffn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.2.attn_q.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.2.attn_k.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.2.attn_v.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.2.attn_output.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.2.attn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.2.ffn_gate.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.2.ffn_down.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 144,
            "allocated_bytes": 124672
          },
          {
            "name": "blk.2.ffn_up.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.2.ffn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.3.attn_q.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.3.attn_k.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.3.attn_v.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.3.attn_output.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.3.attn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.3.ffn_gate.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.3.ffn_down.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 144,
            "allocated_bytes": 124672
          },
          {
            "name": "blk.3.ffn_up.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.3.ffn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.4.attn_q.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.4.attn_k.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.4.attn_v.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.4.attn_output.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.4.attn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.4.ffn_gate.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.4.ffn_down.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 144,
            "allocated_bytes": 124672
          },
          {
            "name": "blk.4.ffn_up.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.4.ffn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.5.attn_q.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.5.attn_k.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.5.attn_v.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.5.attn_output.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.5.attn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.5.ffn_gate.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.5.ffn_down.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 144,
            "allocated_bytes": 124672
          },
          {
            "name": "blk.5.ffn_up.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.5.ffn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          }
        ],
        "model_layer_devices": {
          "0": "CUDA0",
          "1": "CUDA0",
          "2": "CUDA0",
          "3": "CUDA0",
          "4": "CUDA0",
          "5": "CUDA0",
          "6": "CUDA0"
        },
        "kv_layer_devices": {
          "0": "CUDA0",
          "1": "CUDA0",
          "2": "CUDA0",
          "3": "CUDA0",
          "4": "CUDA0",
          "5": "CUDA0"
        }
      },
      "device_telemetry": {
        "before": {
          "phase": "before",
          "elapsed_seconds": 2e-06,
          "query_exit_code": 0,
          "values": {
            "index": 0,
            "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
            "name": "NVIDIA GeForce RTX 5060 Ti",
            "driver_version": "581.57",
            "memory.total": 16311,
            "memory.used": 558,
            "memory.free": 15405,
            "utilization.gpu": 0
          },
          "unavailable_fields": {}
        },
        "during": [
          {
            "phase": "during",
            "elapsed_seconds": 0.082202,
            "query_exit_code": 0,
            "values": {
              "index": 0,
              "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
              "name": "NVIDIA GeForce RTX 5060 Ti",
              "driver_version": "581.57",
              "memory.total": 16311,
              "memory.used": 558,
              "memory.free": 15405,
              "utilization.gpu": 0
            },
            "unavailable_fields": {},
            "backend_alive_at_query_start": true,
            "backend_alive_at_query_end": true
          },
          {
            "phase": "during",
            "elapsed_seconds": 0.230112,
            "query_exit_code": 0,
            "values": {
              "index": 0,
              "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
              "name": "NVIDIA GeForce RTX 5060 Ti",
              "driver_version": "581.57",
              "memory.total": 16311,
              "memory.used": 585,
              "memory.free": 15378,
              "utilization.gpu": 1
            },
            "unavailable_fields": {},
            "backend_alive_at_query_start": true,
            "backend_alive_at_query_end": true
          },
          {
            "phase": "during",
            "elapsed_seconds": 0.362715,
            "query_exit_code": 0,
            "values": {
              "index": 0,
              "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
              "name": "NVIDIA GeForce RTX 5060 Ti",
              "driver_version": "581.57",
              "memory.total": 16311,
              "memory.used": 691,
              "memory.free": 15272,
              "utilization.gpu": 1
            },
            "unavailable_fields": {},
            "backend_alive_at_query_start": true,
            "backend_alive_at_query_end": false
          }
        ],
        "after": {
          "phase": "after",
          "elapsed_seconds": 0.429451,
          "query_exit_code": 0,
          "values": {
            "index": 0,
            "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
            "name": "NVIDIA GeForce RTX 5060 Ti",
            "driver_version": "581.57",
            "memory.total": 16311,
            "memory.used": 558,
            "memory.free": 15405,
            "utilization.gpu": 8
          },
          "unavailable_fields": {}
        },
        "in_run_memory_sample_status": "observed",
        "unavailable_reason": null,
        "in_run_memory_sample_count": 2,
        "sampled_device_used_max_mib": 585,
        "sampled_device_used_last_mib": 585,
        "process_vram_peak_bytes": null,
        "process_vram_peak_unavailable_reason": "nvidia-smi device totals do not establish a process peak; WSL/WDDM process accounting is not assumed"
      }
    },
    {
      "case": 5,
      "model": "stories15M-q4_0.gguf",
      "context_requested": 257,
      "n_gpu_layers": 7,
      "passed": true,
      "status": "passed",
      "gpu_before": {
        "phase": "before",
        "elapsed_seconds": 1e-06,
        "query_exit_code": 0,
        "values": {
          "index": 0,
          "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
          "name": "NVIDIA GeForce RTX 5060 Ti",
          "driver_version": "581.57",
          "memory.total": 16311,
          "memory.used": 558,
          "memory.free": 15405,
          "utilization.gpu": 8
        },
        "unavailable_fields": {}
      },
      "calculator_checks": [
        {
          "check": "plan.command",
          "actual": "plan",
          "expected": "plan",
          "passed": true
        },
        {
          "check": "plan.requested_n_gpu_layers",
          "actual": 7,
          "expected": 7,
          "passed": true
        },
        {
          "check": "plan.context",
          "actual": 257,
          "expected": 257,
          "passed": true
        },
        {
          "check": "plan.kv_precision",
          "actual": "FP16",
          "expected": "FP16",
          "passed": true
        },
        {
          "check": "plan.n_gpu_layers",
          "actual": 7,
          "expected": 7,
          "passed": true
        },
        {
          "check": "plan.gpu_block_count",
          "actual": 6,
          "expected": 6,
          "passed": true
        },
        {
          "check": "plan.output_on_gpu",
          "actual": true,
          "expected": true,
          "passed": true
        },
        {
          "check": "plan.allocated_context_tokens",
          "actual": 512,
          "expected": 512,
          "passed": true
        },
        {
          "check": "plan.kv_bytes",
          "actual": 1776384,
          "expected": 1776384,
          "passed": true
        },
        {
          "check": "plan.allocated_kv_bytes",
          "actual": 3538944,
          "expected": 3538944,
          "passed": true
        },
        {
          "check": "profile.backend_revision",
          "actual": "88aaf325a7026ac1127d0897394b0a3d6413dc2a",
          "expected": "88aaf325a7026ac1127d0897394b0a3d6413dc2a",
          "passed": true
        },
        {
          "check": "profile.tied_output",
          "actual": false,
          "expected": false,
          "passed": true
        },
        {
          "check": "profile.tensor_payload_bytes",
          "actual": 18350208,
          "expected": 18350208,
          "passed": true
        },
        {
          "check": "plan.cpu_weight_bytes",
          "actual": 5184000,
          "expected": 5184000,
          "passed": true
        },
        {
          "check": "plan.gpu_weight_bytes",
          "actual": 13166208,
          "expected": 13166208,
          "passed": true
        },
        {
          "check": "plan.duplicated_bytes",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "ledger.gpu_kv_bytes",
          "actual": 3538944,
          "expected": 3538944,
          "passed": true
        },
        {
          "check": "ledger.host_kv_bytes",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "ledger.gpu_layers",
          "actual": 6,
          "expected": 6,
          "passed": true
        },
        {
          "check": "ledger.cpu_layers",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "plan.tensor_placements",
          "placement_count": 57,
          "passed": true
        },
        {
          "check": "plan.status",
          "actual": "MAX_OFFLOAD",
          "expected": "MAX_OFFLOAD",
          "passed": true
        }
      ],
      "gpu_launch_guard": {
        "phase": "immediately_before_launch",
        "elapsed_seconds": 0.04716,
        "query_exit_code": 0,
        "values": {
          "index": 0,
          "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
          "name": "NVIDIA GeForce RTX 5060 Ti",
          "driver_version": "581.57",
          "memory.total": 16311,
          "memory.used": 558,
          "memory.free": 15405,
          "utilization.gpu": 8
        },
        "unavailable_fields": {}
      },
      "observed_process": {
        "exit_code": 0,
        "timed_out": false,
        "elapsed_seconds": 0.409979
      },
      "logs": {
        "stderr": "gpu-runtime-run1-5-stories15M-q4_0-ctx257-ngl7.stderr.log",
        "stdout": "gpu-runtime-run1-5-stories15M-q4_0-ctx257-ngl7.stdout.log"
      },
      "command_template": [
        "llama-completion",
        "-m",
        "stories15M-q4_0.gguf",
        "-c",
        "257",
        "-n",
        "32",
        "-t",
        "2",
        "-b",
        "64",
        "-ub",
        "64",
        "-np",
        "1",
        "-ngl",
        "7",
        "--device",
        "CUDA0",
        "--split-mode",
        "none",
        "--fit",
        "off",
        "--no-repack",
        "--no-host",
        "--load-mode",
        "none",
        "--lazy-mode",
        "off",
        "--kv-offload",
        "-fa",
        "off",
        "-ctk",
        "f16",
        "-ctv",
        "f16",
        "-no-cnv",
        "-p",
        "Once upon a time",
        "-s",
        "1",
        "--temp",
        "0",
        "-lv",
        "5",
        "--log-colors",
        "off",
        "--no-display-prompt"
      ],
      "calculator_command_template": [
        "llmcalc.exe",
        "plan",
        "stories15M-q4_0.gguf",
        "--vram=15.928710938GiB",
        "--ram=31.347328186GiB",
        "--context=257",
        "--kv=FP16",
        "--n-gpu-layers=7",
        "--json"
      ],
      "backend_checks": [
        {
          "check": "backend.model_layer_devices",
          "actual": {
            "0": "CUDA0",
            "1": "CUDA0",
            "2": "CUDA0",
            "3": "CUDA0",
            "4": "CUDA0",
            "5": "CUDA0",
            "6": "CUDA0"
          },
          "expected": {
            "0": "CUDA0",
            "1": "CUDA0",
            "2": "CUDA0",
            "3": "CUDA0",
            "4": "CUDA0",
            "5": "CUDA0",
            "6": "CUDA0"
          },
          "passed": true
        },
        {
          "check": "backend.model_layer_log_count",
          "actual": 7,
          "expected": 7,
          "passed": true
        },
        {
          "check": "backend.no_swa_layers",
          "actual": [
            "0",
            "0",
            "0",
            "0",
            "0",
            "0",
            "0"
          ],
          "expected": [
            "0",
            "0",
            "0",
            "0",
            "0",
            "0",
            "0"
          ],
          "passed": true
        },
        {
          "check": "backend.kv_layer_devices",
          "actual": {
            "0": "CUDA0",
            "1": "CUDA0",
            "2": "CUDA0",
            "3": "CUDA0",
            "4": "CUDA0",
            "5": "CUDA0"
          },
          "expected": {
            "0": "CUDA0",
            "1": "CUDA0",
            "2": "CUDA0",
            "3": "CUDA0",
            "4": "CUDA0",
            "5": "CUDA0"
          },
          "passed": true
        },
        {
          "check": "backend.kv_layer_log_count",
          "actual": 6,
          "expected": 6,
          "passed": true
        },
        {
          "check": "backend.no_fallback_or_allocation_error",
          "actual": [],
          "expected": [],
          "passed": true
        },
        {
          "check": "backend.only_plain_CPU_and_CUDA0_model_KV",
          "actual": [],
          "expected": [],
          "passed": true
        },
        {
          "check": "backend.exit_code",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "backend.timed_out",
          "actual": false,
          "expected": false,
          "passed": true
        },
        {
          "check": "device.in_run_memory_sample_observed",
          "actual": true,
          "expected": true,
          "passed": true
        }
      ],
      "backend_buffers": [
        {
          "device": "CPU",
          "kind": "model",
          "reported_value": "4.94",
          "reported_unit": "MiB",
          "rounded_bytes": 5179965.44,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA0",
          "kind": "model",
          "reported_value": "12.56",
          "reported_unit": "MiB",
          "rounded_bytes": 13170114.56,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA_Host",
          "kind": "output",
          "reported_value": "0.12",
          "reported_unit": "MiB",
          "rounded_bytes": 125829.12,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA0",
          "kind": "KV",
          "reported_value": "3.38",
          "reported_unit": "MiB",
          "rounded_bytes": 3544186.88,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA0",
          "kind": "compute",
          "reported_value": "8.36",
          "reported_unit": "MiB",
          "rounded_bytes": 8766095.36,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA_Host",
          "kind": "compute",
          "reported_value": "0.55",
          "reported_unit": "MiB",
          "rounded_bytes": 576716.8,
          "rounding_half_interval_bytes": 5242.88
        }
      ],
      "component_comparisons": [
        {
          "component": "model",
          "device": "CPU",
          "expected_allocated_bytes": 5184000,
          "matching_log_count": 1,
          "difference_from_rounded_backend_bytes": -4034.55999999959,
          "within_reported_rounding_interval": true,
          "note": "exact independent allocation is compared only with the printed rounding interval"
        },
        {
          "component": "model",
          "device": "CUDA0",
          "expected_allocated_bytes": 13174144,
          "matching_log_count": 1,
          "difference_from_rounded_backend_bytes": -4029.4399999994785,
          "within_reported_rounding_interval": true,
          "note": "exact independent allocation is compared only with the printed rounding interval"
        },
        {
          "component": "KV",
          "device": "CPU",
          "expected_allocated_bytes": 0,
          "matching_log_count": 0,
          "difference_from_rounded_backend_bytes": null,
          "within_reported_rounding_interval": true,
          "note": "no allocation/context expected; absent buffer line is the expected zero"
        },
        {
          "component": "KV",
          "device": "CUDA0",
          "expected_allocated_bytes": 3538944,
          "matching_log_count": 1,
          "difference_from_rounded_backend_bytes": 5242.879999999888,
          "within_reported_rounding_interval": true,
          "note": "exact independent allocation is compared only with the printed rounding interval"
        }
      ],
      "independent_oracle": {
        "raw": {
          "CPU": 5184000,
          "CUDA0": 13166208
        },
        "model": {
          "CPU": 5184000,
          "CUDA0": 13174144
        },
        "kv": {
          "CPU": 0,
          "CUDA0": 3538944
        },
        "duplicated_bytes": 0,
        "allocated_context": 512,
        "raw_kv_bytes": 1776384,
        "allocated_kv_bytes": 3538944,
        "gpu_blocks": 6,
        "allocations": [
          {
            "name": "token_embd.weight",
            "role": "input",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 5184000,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 5184000
          },
          {
            "name": "output_norm.weight",
            "role": "output",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "output.weight",
            "role": "output",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 9792000,
            "quantized_tail_padding_bytes": 238,
            "allocated_bytes": 9792256
          },
          {
            "name": "blk.0.attn_q.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.0.attn_k.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.0.attn_v.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.0.attn_output.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.0.attn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.0.ffn_gate.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.0.ffn_down.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 144,
            "allocated_bytes": 124672
          },
          {
            "name": "blk.0.ffn_up.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.0.ffn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.1.attn_q.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.1.attn_k.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.1.attn_v.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.1.attn_output.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.1.attn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.1.ffn_gate.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.1.ffn_down.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 144,
            "allocated_bytes": 124672
          },
          {
            "name": "blk.1.ffn_up.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.1.ffn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.2.attn_q.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.2.attn_k.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.2.attn_v.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.2.attn_output.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.2.attn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.2.ffn_gate.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.2.ffn_down.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 144,
            "allocated_bytes": 124672
          },
          {
            "name": "blk.2.ffn_up.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.2.ffn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.3.attn_q.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.3.attn_k.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.3.attn_v.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.3.attn_output.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.3.attn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.3.ffn_gate.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.3.ffn_down.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 144,
            "allocated_bytes": 124672
          },
          {
            "name": "blk.3.ffn_up.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.3.ffn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.4.attn_q.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.4.attn_k.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.4.attn_v.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.4.attn_output.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.4.attn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.4.ffn_gate.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.4.ffn_down.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 144,
            "allocated_bytes": 124672
          },
          {
            "name": "blk.4.ffn_up.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.4.ffn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.5.attn_q.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.5.attn_k.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.5.attn_v.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.5.attn_output.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 46656,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 46848
          },
          {
            "name": "blk.5.attn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          },
          {
            "name": "blk.5.ffn_gate.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.5.ffn_down.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 144,
            "allocated_bytes": 124672
          },
          {
            "name": "blk.5.ffn_up.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 124416,
            "quantized_tail_padding_bytes": 126,
            "allocated_bytes": 124544
          },
          {
            "name": "blk.5.ffn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 1152,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 1152
          }
        ],
        "model_layer_devices": {
          "0": "CUDA0",
          "1": "CUDA0",
          "2": "CUDA0",
          "3": "CUDA0",
          "4": "CUDA0",
          "5": "CUDA0",
          "6": "CUDA0"
        },
        "kv_layer_devices": {
          "0": "CUDA0",
          "1": "CUDA0",
          "2": "CUDA0",
          "3": "CUDA0",
          "4": "CUDA0",
          "5": "CUDA0"
        }
      },
      "device_telemetry": {
        "before": {
          "phase": "before",
          "elapsed_seconds": 1e-06,
          "query_exit_code": 0,
          "values": {
            "index": 0,
            "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
            "name": "NVIDIA GeForce RTX 5060 Ti",
            "driver_version": "581.57",
            "memory.total": 16311,
            "memory.used": 558,
            "memory.free": 15405,
            "utilization.gpu": 8
          },
          "unavailable_fields": {}
        },
        "during": [
          {
            "phase": "during",
            "elapsed_seconds": 0.084601,
            "query_exit_code": 0,
            "values": {
              "index": 0,
              "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
              "name": "NVIDIA GeForce RTX 5060 Ti",
              "driver_version": "581.57",
              "memory.total": 16311,
              "memory.used": 558,
              "memory.free": 15405,
              "utilization.gpu": 8
            },
            "unavailable_fields": {},
            "backend_alive_at_query_start": true,
            "backend_alive_at_query_end": true
          },
          {
            "phase": "during",
            "elapsed_seconds": 0.225112,
            "query_exit_code": 0,
            "values": {
              "index": 0,
              "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
              "name": "NVIDIA GeForce RTX 5060 Ti",
              "driver_version": "581.57",
              "memory.total": 16311,
              "memory.used": 581,
              "memory.free": 15382,
              "utilization.gpu": 0
            },
            "unavailable_fields": {},
            "backend_alive_at_query_start": true,
            "backend_alive_at_query_end": true
          },
          {
            "phase": "during",
            "elapsed_seconds": 0.355227,
            "query_exit_code": 0,
            "values": {
              "index": 0,
              "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
              "name": "NVIDIA GeForce RTX 5060 Ti",
              "driver_version": "581.57",
              "memory.total": 16311,
              "memory.used": 691,
              "memory.free": 15272,
              "utilization.gpu": 5
            },
            "unavailable_fields": {},
            "backend_alive_at_query_start": true,
            "backend_alive_at_query_end": true
          }
        ],
        "after": {
          "phase": "after",
          "elapsed_seconds": 0.502869,
          "query_exit_code": 0,
          "values": {
            "index": 0,
            "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
            "name": "NVIDIA GeForce RTX 5060 Ti",
            "driver_version": "581.57",
            "memory.total": 16311,
            "memory.used": 558,
            "memory.free": 15405,
            "utilization.gpu": 5
          },
          "unavailable_fields": {}
        },
        "in_run_memory_sample_status": "observed",
        "unavailable_reason": null,
        "in_run_memory_sample_count": 3,
        "sampled_device_used_max_mib": 691,
        "sampled_device_used_last_mib": 691,
        "process_vram_peak_bytes": null,
        "process_vram_peak_unavailable_reason": "nvidia-smi device totals do not establish a process peak; WSL/WDDM process accounting is not assumed"
      }
    },
    {
      "case": 6,
      "model": "stories260K-tied.gguf",
      "context_requested": 256,
      "n_gpu_layers": 1,
      "passed": true,
      "status": "passed",
      "gpu_before": {
        "phase": "before",
        "elapsed_seconds": 1e-06,
        "query_exit_code": 0,
        "values": {
          "index": 0,
          "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
          "name": "NVIDIA GeForce RTX 5060 Ti",
          "driver_version": "581.57",
          "memory.total": 16311,
          "memory.used": 558,
          "memory.free": 15405,
          "utilization.gpu": 3
        },
        "unavailable_fields": {}
      },
      "calculator_checks": [
        {
          "check": "plan.command",
          "actual": "plan",
          "expected": "plan",
          "passed": true
        },
        {
          "check": "plan.requested_n_gpu_layers",
          "actual": 1,
          "expected": 1,
          "passed": true
        },
        {
          "check": "plan.context",
          "actual": 256,
          "expected": 256,
          "passed": true
        },
        {
          "check": "plan.kv_precision",
          "actual": "FP16",
          "expected": "FP16",
          "passed": true
        },
        {
          "check": "plan.n_gpu_layers",
          "actual": 1,
          "expected": 1,
          "passed": true
        },
        {
          "check": "plan.gpu_block_count",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "plan.output_on_gpu",
          "actual": true,
          "expected": true,
          "passed": true
        },
        {
          "check": "plan.allocated_context_tokens",
          "actual": 256,
          "expected": 256,
          "passed": true
        },
        {
          "check": "plan.kv_bytes",
          "actual": 163840,
          "expected": 163840,
          "passed": true
        },
        {
          "check": "plan.allocated_kv_bytes",
          "actual": 163840,
          "expected": 163840,
          "passed": true
        },
        {
          "check": "profile.backend_revision",
          "actual": "88aaf325a7026ac1127d0897394b0a3d6413dc2a",
          "expected": "88aaf325a7026ac1127d0897394b0a3d6413dc2a",
          "passed": true
        },
        {
          "check": "profile.tied_output",
          "actual": true,
          "expected": true,
          "passed": true
        },
        {
          "check": "profile.tensor_payload_bytes",
          "actual": 1040128,
          "expected": 1040128,
          "passed": true
        },
        {
          "check": "plan.cpu_weight_bytes",
          "actual": 1039872,
          "expected": 1039872,
          "passed": true
        },
        {
          "check": "plan.gpu_weight_bytes",
          "actual": 131328,
          "expected": 131328,
          "passed": true
        },
        {
          "check": "plan.duplicated_bytes",
          "actual": 131072,
          "expected": 131072,
          "passed": true
        },
        {
          "check": "ledger.gpu_kv_bytes",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "ledger.host_kv_bytes",
          "actual": 163840,
          "expected": 163840,
          "passed": true
        },
        {
          "check": "ledger.gpu_layers",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "ledger.cpu_layers",
          "actual": 5,
          "expected": 5,
          "passed": true
        },
        {
          "check": "plan.tensor_placements",
          "placement_count": 48,
          "passed": true
        },
        {
          "check": "plan.status",
          "actual": "GPU+CPU OFFLOAD",
          "expected": "GPU+CPU OFFLOAD",
          "passed": true
        }
      ],
      "gpu_launch_guard": {
        "phase": "immediately_before_launch",
        "elapsed_seconds": 0.038824,
        "query_exit_code": 0,
        "values": {
          "index": 0,
          "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
          "name": "NVIDIA GeForce RTX 5060 Ti",
          "driver_version": "581.57",
          "memory.total": 16311,
          "memory.used": 558,
          "memory.free": 15405,
          "utilization.gpu": 3
        },
        "unavailable_fields": {}
      },
      "observed_process": {
        "exit_code": 0,
        "timed_out": false,
        "elapsed_seconds": 0.266198
      },
      "logs": {
        "stderr": "gpu-runtime-run1-6-stories260K-tied-ctx256-ngl1.stderr.log",
        "stdout": "gpu-runtime-run1-6-stories260K-tied-ctx256-ngl1.stdout.log"
      },
      "command_template": [
        "llama-completion",
        "-m",
        "stories260K-tied.gguf",
        "-c",
        "256",
        "-n",
        "32",
        "-t",
        "2",
        "-b",
        "64",
        "-ub",
        "64",
        "-np",
        "1",
        "-ngl",
        "1",
        "--device",
        "CUDA0",
        "--split-mode",
        "none",
        "--fit",
        "off",
        "--no-repack",
        "--no-host",
        "--load-mode",
        "none",
        "--lazy-mode",
        "off",
        "--kv-offload",
        "-fa",
        "off",
        "-ctk",
        "f16",
        "-ctv",
        "f16",
        "-no-cnv",
        "-p",
        "Once upon a time",
        "-s",
        "1",
        "--temp",
        "0",
        "-lv",
        "5",
        "--log-colors",
        "off",
        "--no-display-prompt"
      ],
      "calculator_command_template": [
        "llmcalc.exe",
        "plan",
        "stories260K-tied.gguf",
        "--vram=15.928710938GiB",
        "--ram=31.347328186GiB",
        "--context=256",
        "--kv=FP16",
        "--n-gpu-layers=1",
        "--json"
      ],
      "backend_checks": [
        {
          "check": "backend.model_layer_devices",
          "actual": {
            "0": "CPU",
            "1": "CPU",
            "2": "CPU",
            "3": "CPU",
            "4": "CPU",
            "5": "CUDA0"
          },
          "expected": {
            "0": "CPU",
            "1": "CPU",
            "2": "CPU",
            "3": "CPU",
            "4": "CPU",
            "5": "CUDA0"
          },
          "passed": true
        },
        {
          "check": "backend.model_layer_log_count",
          "actual": 6,
          "expected": 6,
          "passed": true
        },
        {
          "check": "backend.no_swa_layers",
          "actual": [
            "0",
            "0",
            "0",
            "0",
            "0",
            "0"
          ],
          "expected": [
            "0",
            "0",
            "0",
            "0",
            "0",
            "0"
          ],
          "passed": true
        },
        {
          "check": "backend.kv_layer_devices",
          "actual": {
            "0": "CPU",
            "1": "CPU",
            "2": "CPU",
            "3": "CPU",
            "4": "CPU"
          },
          "expected": {
            "0": "CPU",
            "1": "CPU",
            "2": "CPU",
            "3": "CPU",
            "4": "CPU"
          },
          "passed": true
        },
        {
          "check": "backend.kv_layer_log_count",
          "actual": 5,
          "expected": 5,
          "passed": true
        },
        {
          "check": "backend.no_fallback_or_allocation_error",
          "actual": [],
          "expected": [],
          "passed": true
        },
        {
          "check": "backend.only_plain_CPU_and_CUDA0_model_KV",
          "actual": [],
          "expected": [],
          "passed": true
        },
        {
          "check": "backend.exit_code",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "backend.timed_out",
          "actual": false,
          "expected": false,
          "passed": true
        },
        {
          "check": "device.in_run_memory_sample_observed",
          "actual": true,
          "expected": true,
          "passed": true
        }
      ],
      "backend_buffers": [
        {
          "device": "CPU",
          "kind": "model",
          "reported_value": "0.99",
          "reported_unit": "MiB",
          "rounded_bytes": 1038090.24,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA0",
          "kind": "model",
          "reported_value": "0.13",
          "reported_unit": "MiB",
          "rounded_bytes": 136314.88,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA_Host",
          "kind": "output",
          "reported_value": "0.00",
          "reported_unit": "MiB",
          "rounded_bytes": 0.0,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CPU",
          "kind": "KV",
          "reported_value": "0.16",
          "reported_unit": "MiB",
          "rounded_bytes": 167772.16,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA0",
          "kind": "compute",
          "reported_value": "0.64",
          "reported_unit": "MiB",
          "rounded_bytes": 671088.64,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA_Host",
          "kind": "compute",
          "reported_value": "0.14",
          "reported_unit": "MiB",
          "rounded_bytes": 146800.64,
          "rounding_half_interval_bytes": 5242.88
        }
      ],
      "component_comparisons": [
        {
          "component": "model",
          "device": "CPU",
          "expected_allocated_bytes": 1039872,
          "matching_log_count": 1,
          "difference_from_rounded_backend_bytes": -1781.7600000000093,
          "within_reported_rounding_interval": true,
          "note": "exact independent allocation is compared only with the printed rounding interval"
        },
        {
          "component": "model",
          "device": "CUDA0",
          "expected_allocated_bytes": 131328,
          "matching_log_count": 1,
          "difference_from_rounded_backend_bytes": 4986.880000000005,
          "within_reported_rounding_interval": true,
          "note": "exact independent allocation is compared only with the printed rounding interval"
        },
        {
          "component": "KV",
          "device": "CPU",
          "expected_allocated_bytes": 163840,
          "matching_log_count": 1,
          "difference_from_rounded_backend_bytes": 3932.1600000000035,
          "within_reported_rounding_interval": true,
          "note": "exact independent allocation is compared only with the printed rounding interval"
        },
        {
          "component": "KV",
          "device": "CUDA0",
          "expected_allocated_bytes": 0,
          "matching_log_count": 0,
          "difference_from_rounded_backend_bytes": null,
          "within_reported_rounding_interval": true,
          "note": "no allocation/context expected; absent buffer line is the expected zero"
        }
      ],
      "independent_oracle": {
        "raw": {
          "CPU": 1039872,
          "CUDA0": 131328
        },
        "model": {
          "CPU": 1039872,
          "CUDA0": 131328
        },
        "kv": {
          "CPU": 163840,
          "CUDA0": 0
        },
        "duplicated_bytes": 131072,
        "allocated_context": 256,
        "raw_kv_bytes": 163840,
        "allocated_kv_bytes": 163840,
        "gpu_blocks": 0,
        "allocations": [
          {
            "name": "token_embd.weight",
            "role": "input",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 131072,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 131072
          },
          {
            "name": "output_norm.weight",
            "role": "output",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 256,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 256
          },
          {
            "name": "blk.0.attn_q.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 16384,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 16384
          },
          {
            "name": "blk.0.attn_k.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 8192,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 8192
          },
          {
            "name": "blk.0.attn_v.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 8192,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 8192
          },
          {
            "name": "blk.0.attn_output.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 16384,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 16384
          },
          {
            "name": "blk.0.attn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 256,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 256
          },
          {
            "name": "blk.0.ffn_gate.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.0.ffn_down.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.0.ffn_up.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.0.ffn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 256,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 256
          },
          {
            "name": "blk.1.attn_q.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 16384,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 16384
          },
          {
            "name": "blk.1.attn_k.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 8192,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 8192
          },
          {
            "name": "blk.1.attn_v.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 8192,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 8192
          },
          {
            "name": "blk.1.attn_output.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 16384,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 16384
          },
          {
            "name": "blk.1.attn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 256,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 256
          },
          {
            "name": "blk.1.ffn_gate.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.1.ffn_down.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.1.ffn_up.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.1.ffn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 256,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 256
          },
          {
            "name": "blk.2.attn_q.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 16384,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 16384
          },
          {
            "name": "blk.2.attn_k.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 8192,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 8192
          },
          {
            "name": "blk.2.attn_v.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 8192,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 8192
          },
          {
            "name": "blk.2.attn_output.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 16384,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 16384
          },
          {
            "name": "blk.2.attn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 256,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 256
          },
          {
            "name": "blk.2.ffn_gate.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.2.ffn_down.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.2.ffn_up.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.2.ffn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 256,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 256
          },
          {
            "name": "blk.3.attn_q.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 16384,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 16384
          },
          {
            "name": "blk.3.attn_k.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 8192,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 8192
          },
          {
            "name": "blk.3.attn_v.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 8192,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 8192
          },
          {
            "name": "blk.3.attn_output.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 16384,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 16384
          },
          {
            "name": "blk.3.attn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 256,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 256
          },
          {
            "name": "blk.3.ffn_gate.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.3.ffn_down.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.3.ffn_up.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.3.ffn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 256,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 256
          },
          {
            "name": "blk.4.attn_q.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 16384,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 16384
          },
          {
            "name": "blk.4.attn_k.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 8192,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 8192
          },
          {
            "name": "blk.4.attn_v.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 8192,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 8192
          },
          {
            "name": "blk.4.attn_output.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 16384,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 16384
          },
          {
            "name": "blk.4.attn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 256,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 256
          },
          {
            "name": "blk.4.ffn_gate.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.4.ffn_down.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.4.ffn_up.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.4.ffn_norm.weight",
            "role": "block",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 256,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 256
          },
          {
            "name": "token_embd.weight",
            "role": "tied-output",
            "device": "CUDA0",
            "is_duplicate": true,
            "raw_payload_bytes": 131072,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 131072
          }
        ],
        "model_layer_devices": {
          "0": "CPU",
          "1": "CPU",
          "2": "CPU",
          "3": "CPU",
          "4": "CPU",
          "5": "CUDA0"
        },
        "kv_layer_devices": {
          "0": "CPU",
          "1": "CPU",
          "2": "CPU",
          "3": "CPU",
          "4": "CPU"
        }
      },
      "device_telemetry": {
        "before": {
          "phase": "before",
          "elapsed_seconds": 1e-06,
          "query_exit_code": 0,
          "values": {
            "index": 0,
            "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
            "name": "NVIDIA GeForce RTX 5060 Ti",
            "driver_version": "581.57",
            "memory.total": 16311,
            "memory.used": 558,
            "memory.free": 15405,
            "utilization.gpu": 3
          },
          "unavailable_fields": {}
        },
        "during": [
          {
            "phase": "during",
            "elapsed_seconds": 0.077493,
            "query_exit_code": 0,
            "values": {
              "index": 0,
              "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
              "name": "NVIDIA GeForce RTX 5060 Ti",
              "driver_version": "581.57",
              "memory.total": 16311,
              "memory.used": 558,
              "memory.free": 15405,
              "utilization.gpu": 3
            },
            "unavailable_fields": {},
            "backend_alive_at_query_start": true,
            "backend_alive_at_query_end": true
          },
          {
            "phase": "during",
            "elapsed_seconds": 0.213562,
            "query_exit_code": 0,
            "values": {
              "index": 0,
              "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
              "name": "NVIDIA GeForce RTX 5060 Ti",
              "driver_version": "581.57",
              "memory.total": 16311,
              "memory.used": 583,
              "memory.free": 15380,
              "utilization.gpu": 1
            },
            "unavailable_fields": {},
            "backend_alive_at_query_start": true,
            "backend_alive_at_query_end": true
          }
        ],
        "after": {
          "phase": "after",
          "elapsed_seconds": 0.35221,
          "query_exit_code": 0,
          "values": {
            "index": 0,
            "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
            "name": "NVIDIA GeForce RTX 5060 Ti",
            "driver_version": "581.57",
            "memory.total": 16311,
            "memory.used": 558,
            "memory.free": 15405,
            "utilization.gpu": 1
          },
          "unavailable_fields": {}
        },
        "in_run_memory_sample_status": "observed",
        "unavailable_reason": null,
        "in_run_memory_sample_count": 2,
        "sampled_device_used_max_mib": 583,
        "sampled_device_used_last_mib": 583,
        "process_vram_peak_bytes": null,
        "process_vram_peak_unavailable_reason": "nvidia-smi device totals do not establish a process peak; WSL/WDDM process accounting is not assumed"
      }
    },
    {
      "case": 7,
      "model": "stories260K-tied.gguf",
      "context_requested": 256,
      "n_gpu_layers": 6,
      "passed": true,
      "status": "passed",
      "gpu_before": {
        "phase": "before",
        "elapsed_seconds": 2e-06,
        "query_exit_code": 0,
        "values": {
          "index": 0,
          "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
          "name": "NVIDIA GeForce RTX 5060 Ti",
          "driver_version": "581.57",
          "memory.total": 16311,
          "memory.used": 558,
          "memory.free": 15405,
          "utilization.gpu": 2
        },
        "unavailable_fields": {}
      },
      "calculator_checks": [
        {
          "check": "plan.command",
          "actual": "plan",
          "expected": "plan",
          "passed": true
        },
        {
          "check": "plan.requested_n_gpu_layers",
          "actual": 6,
          "expected": 6,
          "passed": true
        },
        {
          "check": "plan.context",
          "actual": 256,
          "expected": 256,
          "passed": true
        },
        {
          "check": "plan.kv_precision",
          "actual": "FP16",
          "expected": "FP16",
          "passed": true
        },
        {
          "check": "plan.n_gpu_layers",
          "actual": 6,
          "expected": 6,
          "passed": true
        },
        {
          "check": "plan.gpu_block_count",
          "actual": 5,
          "expected": 5,
          "passed": true
        },
        {
          "check": "plan.output_on_gpu",
          "actual": true,
          "expected": true,
          "passed": true
        },
        {
          "check": "plan.allocated_context_tokens",
          "actual": 256,
          "expected": 256,
          "passed": true
        },
        {
          "check": "plan.kv_bytes",
          "actual": 163840,
          "expected": 163840,
          "passed": true
        },
        {
          "check": "plan.allocated_kv_bytes",
          "actual": 163840,
          "expected": 163840,
          "passed": true
        },
        {
          "check": "profile.backend_revision",
          "actual": "88aaf325a7026ac1127d0897394b0a3d6413dc2a",
          "expected": "88aaf325a7026ac1127d0897394b0a3d6413dc2a",
          "passed": true
        },
        {
          "check": "profile.tied_output",
          "actual": true,
          "expected": true,
          "passed": true
        },
        {
          "check": "profile.tensor_payload_bytes",
          "actual": 1040128,
          "expected": 1040128,
          "passed": true
        },
        {
          "check": "plan.cpu_weight_bytes",
          "actual": 131072,
          "expected": 131072,
          "passed": true
        },
        {
          "check": "plan.gpu_weight_bytes",
          "actual": 1040128,
          "expected": 1040128,
          "passed": true
        },
        {
          "check": "plan.duplicated_bytes",
          "actual": 131072,
          "expected": 131072,
          "passed": true
        },
        {
          "check": "ledger.gpu_kv_bytes",
          "actual": 163840,
          "expected": 163840,
          "passed": true
        },
        {
          "check": "ledger.host_kv_bytes",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "ledger.gpu_layers",
          "actual": 5,
          "expected": 5,
          "passed": true
        },
        {
          "check": "ledger.cpu_layers",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "plan.tensor_placements",
          "placement_count": 48,
          "passed": true
        },
        {
          "check": "plan.status",
          "actual": "MAX_OFFLOAD",
          "expected": "MAX_OFFLOAD",
          "passed": true
        }
      ],
      "gpu_launch_guard": {
        "phase": "immediately_before_launch",
        "elapsed_seconds": 0.037702,
        "query_exit_code": 0,
        "values": {
          "index": 0,
          "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
          "name": "NVIDIA GeForce RTX 5060 Ti",
          "driver_version": "581.57",
          "memory.total": 16311,
          "memory.used": 558,
          "memory.free": 15405,
          "utilization.gpu": 2
        },
        "unavailable_fields": {}
      },
      "observed_process": {
        "exit_code": 0,
        "timed_out": false,
        "elapsed_seconds": 0.412098
      },
      "logs": {
        "stderr": "gpu-runtime-run1-7-stories260K-tied-ctx256-ngl6.stderr.log",
        "stdout": "gpu-runtime-run1-7-stories260K-tied-ctx256-ngl6.stdout.log"
      },
      "command_template": [
        "llama-completion",
        "-m",
        "stories260K-tied.gguf",
        "-c",
        "256",
        "-n",
        "32",
        "-t",
        "2",
        "-b",
        "64",
        "-ub",
        "64",
        "-np",
        "1",
        "-ngl",
        "6",
        "--device",
        "CUDA0",
        "--split-mode",
        "none",
        "--fit",
        "off",
        "--no-repack",
        "--no-host",
        "--load-mode",
        "none",
        "--lazy-mode",
        "off",
        "--kv-offload",
        "-fa",
        "off",
        "-ctk",
        "f16",
        "-ctv",
        "f16",
        "-no-cnv",
        "-p",
        "Once upon a time",
        "-s",
        "1",
        "--temp",
        "0",
        "-lv",
        "5",
        "--log-colors",
        "off",
        "--no-display-prompt"
      ],
      "calculator_command_template": [
        "llmcalc.exe",
        "plan",
        "stories260K-tied.gguf",
        "--vram=15.928710938GiB",
        "--ram=31.347328186GiB",
        "--context=256",
        "--kv=FP16",
        "--n-gpu-layers=6",
        "--json"
      ],
      "backend_checks": [
        {
          "check": "backend.model_layer_devices",
          "actual": {
            "0": "CUDA0",
            "1": "CUDA0",
            "2": "CUDA0",
            "3": "CUDA0",
            "4": "CUDA0",
            "5": "CUDA0"
          },
          "expected": {
            "0": "CUDA0",
            "1": "CUDA0",
            "2": "CUDA0",
            "3": "CUDA0",
            "4": "CUDA0",
            "5": "CUDA0"
          },
          "passed": true
        },
        {
          "check": "backend.model_layer_log_count",
          "actual": 6,
          "expected": 6,
          "passed": true
        },
        {
          "check": "backend.no_swa_layers",
          "actual": [
            "0",
            "0",
            "0",
            "0",
            "0",
            "0"
          ],
          "expected": [
            "0",
            "0",
            "0",
            "0",
            "0",
            "0"
          ],
          "passed": true
        },
        {
          "check": "backend.kv_layer_devices",
          "actual": {
            "0": "CUDA0",
            "1": "CUDA0",
            "2": "CUDA0",
            "3": "CUDA0",
            "4": "CUDA0"
          },
          "expected": {
            "0": "CUDA0",
            "1": "CUDA0",
            "2": "CUDA0",
            "3": "CUDA0",
            "4": "CUDA0"
          },
          "passed": true
        },
        {
          "check": "backend.kv_layer_log_count",
          "actual": 5,
          "expected": 5,
          "passed": true
        },
        {
          "check": "backend.no_fallback_or_allocation_error",
          "actual": [],
          "expected": [],
          "passed": true
        },
        {
          "check": "backend.only_plain_CPU_and_CUDA0_model_KV",
          "actual": [],
          "expected": [],
          "passed": true
        },
        {
          "check": "backend.exit_code",
          "actual": 0,
          "expected": 0,
          "passed": true
        },
        {
          "check": "backend.timed_out",
          "actual": false,
          "expected": false,
          "passed": true
        },
        {
          "check": "device.in_run_memory_sample_observed",
          "actual": true,
          "expected": true,
          "passed": true
        }
      ],
      "backend_buffers": [
        {
          "device": "CPU",
          "kind": "model",
          "reported_value": "0.12",
          "reported_unit": "MiB",
          "rounded_bytes": 125829.12,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA0",
          "kind": "model",
          "reported_value": "0.99",
          "reported_unit": "MiB",
          "rounded_bytes": 1038090.24,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA_Host",
          "kind": "output",
          "reported_value": "0.00",
          "reported_unit": "MiB",
          "rounded_bytes": 0.0,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA0",
          "kind": "KV",
          "reported_value": "0.16",
          "reported_unit": "MiB",
          "rounded_bytes": 167772.16,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA0",
          "kind": "compute",
          "reported_value": "0.66",
          "reported_unit": "MiB",
          "rounded_bytes": 692060.16,
          "rounding_half_interval_bytes": 5242.88
        },
        {
          "device": "CUDA_Host",
          "kind": "compute",
          "reported_value": "0.14",
          "reported_unit": "MiB",
          "rounded_bytes": 146800.64,
          "rounding_half_interval_bytes": 5242.88
        }
      ],
      "component_comparisons": [
        {
          "component": "model",
          "device": "CPU",
          "expected_allocated_bytes": 131072,
          "matching_log_count": 1,
          "difference_from_rounded_backend_bytes": -5242.880000000005,
          "within_reported_rounding_interval": true,
          "note": "exact independent allocation is compared only with the printed rounding interval"
        },
        {
          "component": "model",
          "device": "CUDA0",
          "expected_allocated_bytes": 1040128,
          "matching_log_count": 1,
          "difference_from_rounded_backend_bytes": -2037.7600000000093,
          "within_reported_rounding_interval": true,
          "note": "exact independent allocation is compared only with the printed rounding interval"
        },
        {
          "component": "KV",
          "device": "CPU",
          "expected_allocated_bytes": 0,
          "matching_log_count": 0,
          "difference_from_rounded_backend_bytes": null,
          "within_reported_rounding_interval": true,
          "note": "no allocation/context expected; absent buffer line is the expected zero"
        },
        {
          "component": "KV",
          "device": "CUDA0",
          "expected_allocated_bytes": 163840,
          "matching_log_count": 1,
          "difference_from_rounded_backend_bytes": 3932.1600000000035,
          "within_reported_rounding_interval": true,
          "note": "exact independent allocation is compared only with the printed rounding interval"
        }
      ],
      "independent_oracle": {
        "raw": {
          "CPU": 131072,
          "CUDA0": 1040128
        },
        "model": {
          "CPU": 131072,
          "CUDA0": 1040128
        },
        "kv": {
          "CPU": 0,
          "CUDA0": 163840
        },
        "duplicated_bytes": 131072,
        "allocated_context": 256,
        "raw_kv_bytes": 163840,
        "allocated_kv_bytes": 163840,
        "gpu_blocks": 5,
        "allocations": [
          {
            "name": "token_embd.weight",
            "role": "input",
            "device": "CPU",
            "is_duplicate": false,
            "raw_payload_bytes": 131072,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 131072
          },
          {
            "name": "output_norm.weight",
            "role": "output",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 256,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 256
          },
          {
            "name": "blk.0.attn_q.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 16384,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 16384
          },
          {
            "name": "blk.0.attn_k.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 8192,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 8192
          },
          {
            "name": "blk.0.attn_v.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 8192,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 8192
          },
          {
            "name": "blk.0.attn_output.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 16384,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 16384
          },
          {
            "name": "blk.0.attn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 256,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 256
          },
          {
            "name": "blk.0.ffn_gate.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.0.ffn_down.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.0.ffn_up.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.0.ffn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 256,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 256
          },
          {
            "name": "blk.1.attn_q.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 16384,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 16384
          },
          {
            "name": "blk.1.attn_k.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 8192,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 8192
          },
          {
            "name": "blk.1.attn_v.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 8192,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 8192
          },
          {
            "name": "blk.1.attn_output.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 16384,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 16384
          },
          {
            "name": "blk.1.attn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 256,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 256
          },
          {
            "name": "blk.1.ffn_gate.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.1.ffn_down.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.1.ffn_up.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.1.ffn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 256,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 256
          },
          {
            "name": "blk.2.attn_q.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 16384,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 16384
          },
          {
            "name": "blk.2.attn_k.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 8192,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 8192
          },
          {
            "name": "blk.2.attn_v.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 8192,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 8192
          },
          {
            "name": "blk.2.attn_output.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 16384,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 16384
          },
          {
            "name": "blk.2.attn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 256,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 256
          },
          {
            "name": "blk.2.ffn_gate.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.2.ffn_down.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.2.ffn_up.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.2.ffn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 256,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 256
          },
          {
            "name": "blk.3.attn_q.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 16384,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 16384
          },
          {
            "name": "blk.3.attn_k.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 8192,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 8192
          },
          {
            "name": "blk.3.attn_v.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 8192,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 8192
          },
          {
            "name": "blk.3.attn_output.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 16384,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 16384
          },
          {
            "name": "blk.3.attn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 256,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 256
          },
          {
            "name": "blk.3.ffn_gate.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.3.ffn_down.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.3.ffn_up.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.3.ffn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 256,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 256
          },
          {
            "name": "blk.4.attn_q.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 16384,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 16384
          },
          {
            "name": "blk.4.attn_k.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 8192,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 8192
          },
          {
            "name": "blk.4.attn_v.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 8192,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 8192
          },
          {
            "name": "blk.4.attn_output.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 16384,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 16384
          },
          {
            "name": "blk.4.attn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 256,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 256
          },
          {
            "name": "blk.4.ffn_gate.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.4.ffn_down.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.4.ffn_up.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 44032,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 44032
          },
          {
            "name": "blk.4.ffn_norm.weight",
            "role": "block",
            "device": "CUDA0",
            "is_duplicate": false,
            "raw_payload_bytes": 256,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 256
          },
          {
            "name": "token_embd.weight",
            "role": "tied-output",
            "device": "CUDA0",
            "is_duplicate": true,
            "raw_payload_bytes": 131072,
            "quantized_tail_padding_bytes": 0,
            "allocated_bytes": 131072
          }
        ],
        "model_layer_devices": {
          "0": "CUDA0",
          "1": "CUDA0",
          "2": "CUDA0",
          "3": "CUDA0",
          "4": "CUDA0",
          "5": "CUDA0"
        },
        "kv_layer_devices": {
          "0": "CUDA0",
          "1": "CUDA0",
          "2": "CUDA0",
          "3": "CUDA0",
          "4": "CUDA0"
        }
      },
      "device_telemetry": {
        "before": {
          "phase": "before",
          "elapsed_seconds": 2e-06,
          "query_exit_code": 0,
          "values": {
            "index": 0,
            "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
            "name": "NVIDIA GeForce RTX 5060 Ti",
            "driver_version": "581.57",
            "memory.total": 16311,
            "memory.used": 558,
            "memory.free": 15405,
            "utilization.gpu": 2
          },
          "unavailable_fields": {}
        },
        "during": [
          {
            "phase": "during",
            "elapsed_seconds": 0.075396,
            "query_exit_code": 0,
            "values": {
              "index": 0,
              "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
              "name": "NVIDIA GeForce RTX 5060 Ti",
              "driver_version": "581.57",
              "memory.total": 16311,
              "memory.used": 558,
              "memory.free": 15405,
              "utilization.gpu": 2
            },
            "unavailable_fields": {},
            "backend_alive_at_query_start": true,
            "backend_alive_at_query_end": true
          },
          {
            "phase": "during",
            "elapsed_seconds": 0.221937,
            "query_exit_code": 0,
            "values": {
              "index": 0,
              "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
              "name": "NVIDIA GeForce RTX 5060 Ti",
              "driver_version": "581.57",
              "memory.total": 16311,
              "memory.used": 689,
              "memory.free": 15274,
              "utilization.gpu": 2
            },
            "unavailable_fields": {},
            "backend_alive_at_query_start": true,
            "backend_alive_at_query_end": true
          },
          {
            "phase": "during",
            "elapsed_seconds": 0.352324,
            "query_exit_code": 0,
            "values": {
              "index": 0,
              "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
              "name": "NVIDIA GeForce RTX 5060 Ti",
              "driver_version": "581.57",
              "memory.total": 16311,
              "memory.used": 743,
              "memory.free": 15220,
              "utilization.gpu": 2
            },
            "unavailable_fields": {},
            "backend_alive_at_query_start": true,
            "backend_alive_at_query_end": true
          }
        ],
        "after": {
          "phase": "after",
          "elapsed_seconds": 0.50425,
          "query_exit_code": 0,
          "values": {
            "index": 0,
            "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
            "name": "NVIDIA GeForce RTX 5060 Ti",
            "driver_version": "581.57",
            "memory.total": 16311,
            "memory.used": 558,
            "memory.free": 15405,
            "utilization.gpu": 5
          },
          "unavailable_fields": {}
        },
        "in_run_memory_sample_status": "observed",
        "unavailable_reason": null,
        "in_run_memory_sample_count": 3,
        "sampled_device_used_max_mib": 743,
        "sampled_device_used_last_mib": 743,
        "process_vram_peak_bytes": null,
        "process_vram_peak_unavailable_reason": "nvidia-smi device totals do not establish a process peak; WSL/WDDM process accounting is not assumed"
      }
    }
  ],
  "platform": {
    "system": "Linux",
    "release": "6.18.54.1-microsoft-standard-WSL2",
    "machine": "x86_64",
    "python_version": "3.10.12",
    "WSL_detected": true
  },
  "scope": "single CUDA0, fixed output-first ngl, plain CPU/CUDA buffers, no repack/host/mmap/lazy, full attention, FP16 KV, one sequence",
  "measurement_boundary": {
    "validated": "independent GGUF tensor directory/raw placement, per-layer model/KV device assignments, and model/KV requested buffer bytes versus printed rounding intervals",
    "not_validated": "driver physical allocation granularity, process VRAM peak, inference quality, throughput, capacity-policy calibration, general GPU/model compatibility",
    "device_sampling": "nvidia-smi GPU-index-0 total device memory before/during/after includes other processes, driver and CUDA context; sampled maximum is not a process peak",
    "unsupported_telemetry": "WSL/WDDM unavailable fields are null with a reason; absent measurements are never numeric zero or marked passed",
    "planning_RAM": "Linux sysconf visible RAM is used as capacity; on WSL this is the VM limit, not Windows physical RAM or currently free memory"
  },
  "allocation_oracle": {
    "CPU_model": "sum(align_up(raw_tensor_bytes,32)) over unique actual CPU tensor objects",
    "CUDA_model": "sum(align_up(raw_tensor_bytes + quant_tail,128)); quant_tail=(((-ne0)%512)/block_elements)*block_bytes for quantized tensors, otherwise 0; added once per tensor",
    "FP16_KV": "S=align_up(requested_context,256); one K or V tensor=2*kv_heads*head_dim*S; sum both tensors per layer aligned to its CPU32/CUDA128 buffer; output slot has no KV",
    "tied_weights": "CPU alias shares original allocation when ngl=0; when output offloads, original CPU embedding remains and one independently padded CUDA duplicate is allocated",
    "rounding": "reported decimal buffer sizes define a half-last-digit interval, plus one byte numerical slack; no broad percentage tolerance",
    "upstream_INFO_caveat": "pinned max-offload repeating-layer INFO count underreports by one; acceptance uses DEBUG per-layer assignments, not that summary",
    "source_links": [
      "https://github.com/ggml-org/llama.cpp/blob/88aaf325a7026ac1127d0897394b0a3d6413dc2a/ggml/src/ggml-backend.cpp#L57-L88",
      "https://github.com/ggml-org/llama.cpp/blob/88aaf325a7026ac1127d0897394b0a3d6413dc2a/ggml/src/ggml-cuda/ggml-cuda.cu#L942-L965",
      "https://github.com/ggml-org/llama.cpp/blob/88aaf325a7026ac1127d0897394b0a3d6413dc2a/src/llama-model.cpp#L1653-L1684",
      "https://github.com/ggml-org/llama.cpp/blob/88aaf325a7026ac1127d0897394b0a3d6413dc2a/src/llama-kv-cache.cpp#L210-L291",
      "https://github.com/ggml-org/llama.cpp/blob/88aaf325a7026ac1127d0897394b0a3d6413dc2a/src/llama-model-loader.cpp#L1369-L1388"
    ]
  },
  "removed_environment_variable_names": [],
  "host_memory": {
    "visible_total_bytes": 33658937344,
    "source": "sysconf SC_PAGE_SIZE * SC_PHYS_PAGES",
    "planning_capacity": "31.347328186GiB"
  },
  "calculator": {
    "binary": "llmcalc.exe",
    "sha256": "584cb817bbf2555c6f4038069f131b427a752c8df496034c8c2584ff099a0ee4",
    "unchanged_after_runs": true
  },
  "backend": {
    "binary": "llama-completion",
    "sha256": "08d4fc3d41616f1687ad242171772c0d45e419d556b47175a473b98c9a9f271f",
    "version": "version: 0.7.0-dev (build 0, commit 88aaf325a7026ac1127d0897394b0a3d6413dc2a)\nbuilt with GNU 11.4.0 for Linux x86_64",
    "list_devices": "Available devices:\n  CUDA0: NVIDIA GeForce RTX 5060 Ti (16310 MiB, 15070 MiB free)",
    "unchanged_after_runs": true
  },
  "gpu_preflight": {
    "phase": "preflight",
    "elapsed_seconds": 3e-06,
    "query_exit_code": 0,
    "values": {
      "index": 0,
      "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
      "name": "NVIDIA GeForce RTX 5060 Ti",
      "driver_version": "581.57",
      "memory.total": 16311,
      "memory.used": 558,
      "memory.free": 15405,
      "utilization.gpu": 0
    },
    "unavailable_fields": {}
  },
  "device_selection": {
    "nvidia_smi_index": 0,
    "uuid_sha256": "dcca4fcf9798f7f10b1b4673c7b43812f844919f620fdd9176a1e367b203257b",
    "binding": "CUDA_VISIBLE_DEVICES is set to the physical GPU 0 UUID; the public identifier is hashed",
    "backend_logical_device": "CUDA0"
  },
  "models": [
    {
      "model": "stories15M-q4_0.gguf",
      "sha256": "6151b1929d7f5aa3385d9ddef3393e55587c0a55de661562322bc51dfda93a04",
      "file_size": 19077344,
      "is_derived_tied_fixture": false,
      "tensor_count": 57,
      "tensor_payload_bytes": 18350208,
      "independent_inspection_checks": [
        {
          "check": "inspect.command",
          "actual": "inspect",
          "expected": "inspect",
          "passed": true
        },
        {
          "check": "inspect.complete",
          "actual": true,
          "expected": true,
          "passed": true
        },
        {
          "check": "inspect.file_size",
          "actual": 19077344,
          "expected": 19077344,
          "passed": true
        },
        {
          "check": "inspect.data_offset",
          "actual": 727136,
          "expected": 727136,
          "passed": true
        },
        {
          "check": "inspect.total_tensor_bytes",
          "actual": 18350208,
          "expected": 18350208,
          "passed": true
        },
        {
          "check": "inspect.independent_tensor_directory",
          "tensor_count": 57,
          "passed": true
        }
      ],
      "unchanged_after_runs": true
    },
    {
      "model": "stories260K-tied.gguf",
      "sha256": "67af9dce730ec642b9648dfa18488597b049811292cbff7317f9fe8d6090f196",
      "file_size": 1054464,
      "is_derived_tied_fixture": true,
      "tensor_count": 47,
      "tensor_payload_bytes": 1040128,
      "independent_inspection_checks": [
        {
          "check": "inspect.command",
          "actual": "inspect",
          "expected": "inspect",
          "passed": true
        },
        {
          "check": "inspect.complete",
          "actual": true,
          "expected": true,
          "passed": true
        },
        {
          "check": "inspect.file_size",
          "actual": 1054464,
          "expected": 1054464,
          "passed": true
        },
        {
          "check": "inspect.data_offset",
          "actual": 14336,
          "expected": 14336,
          "passed": true
        },
        {
          "check": "inspect.total_tensor_bytes",
          "actual": 1040128,
          "expected": 1040128,
          "passed": true
        },
        {
          "check": "inspect.independent_tensor_directory",
          "tensor_count": 47,
          "passed": true
        }
      ],
      "unchanged_after_runs": true
    }
  ]
}
