{
  "benchmark_version": "0.7.0",
  "system_info": {
    "architecture": "applegpu_g14g",
    "unified_memory_gb": 8.0,
    "max_recommended_working_set_gb": 5.33,
    "device": "Device(gpu, 0)",
    "device_info": {
      "device_name": "Apple Silicon Unified GPU",
      "max_recommended_working_set_size": 5726633984,
      "memory_size": 8589934592,
      "architecture": "applegpu_g14g",
      "max_buffer_length": 4294967296,
      "resource_limit": 499000
    },
    "mlx_version": "0.32.4",
    "mlx_lm_version": "0.32.2",
    "xfermat_version": "0.7.0",
    "python_version": "3.12.16",
    "os": "macOS-26.2-arm64-arm-64bit"
  },
  "protocol": {
    "warmup_passes": 2,
    "timed_passes": 5,
    "statistics": [
      "median",
      "iqr",
      "min",
      "max"
    ],
    "heldout_prompt": "Compare how ocean thermohaline circulation and atmospheric jet streams redistribute planetary heat across latitudes.",
    "zero_lexical_overlap": true,
    "cache_dir": "/Users/aris/.cache/fermat_benchmarks",
    "downstream_sample_size": 100,
    "wikitext2_ctx": 2048
  },
  "datasets": {
    "cache_dir": "/Users/aris/.cache/fermat_benchmarks",
    "wt2_train_rows": 36718,
    "wt2_val_rows": 3760,
    "wt2_test_rows": 4358,
    "downstream_sample_counts": {
      "arc_easy": 100,
      "arc_challenge": 100,
      "piqa": 100,
      "hellaswag": 100
    }
  },
  "section1_weight_compression": {
    "models": {
      "Qwen/Qwen2.5-0.5B-Instruct": {
        "variants": {
          "bf16": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-0.5B-Instruct",
            "variant": "bf16",
            "base_load_s": 1.774,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 4864,
            "n_gt_d_verified": true,
            "linear_bpw": 16.0,
            "model_bpw": 16.0,
            "base_weight_mb": 942.29,
            "weight_mb": 942.29,
            "compression_ratio_vs_bf16": 1.0,
            "compress_s": 0.0,
            "compress_peak_mem_mb": 0.0,
            "peak_mem_mb": 1011.81,
            "full_wt2_ppl": 14.4173,
            "full_wt2_test_tokens": 301680,
            "heldout_ppl": 117.9014,
            "heldout_kl": 0.0,
            "prompt_logit_cos_pct": 100.0,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.57,
                "stderr": 0.0495,
                "correct": 57,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.35,
                "stderr": 0.0477,
                "correct": 35,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.75,
                "stderr": 0.0433,
                "correct": 75,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.59,
                "stderr": 0.0492,
                "correct": 59,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 998.98,
              "iqr": 32.35,
              "min": 995.89,
              "max": 1050.27,
              "n_trials": 5,
              "samples": [
                1029.98,
                995.89,
                1050.27,
                998.98,
                997.63
              ]
            },
            "decode_tps": {
              "median": 77.7,
              "iqr": 1.29,
              "min": 76.78,
              "max": 79.23,
              "n_trials": 5,
              "samples": [
                77.02,
                76.78,
                77.7,
                78.31,
                79.23
              ]
            },
            "eff_bw_gbs": 76.77,
            "sample_output": "Ocean thermohaline circulation and atmospheric jet streams are two distinct processes that play crucial roles in the redistribution of planetary heat across latitudes. Let's explore each in detail:\n\nOcean Thermohaline Circulation:\n1. **Form",
            "reload_s": null
          },
          "mlx_native_4bit": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-0.5B-Instruct",
            "variant": "mlx_native_4bit",
            "base_load_s": 1.313,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 4864,
            "n_gt_d_verified": true,
            "linear_bpw": 4.5009,
            "model_bpw": 5.6039,
            "base_weight_mb": 942.29,
            "weight_mb": 330.03,
            "compression_ratio_vs_bf16": 2.855,
            "compress_s": 0.286,
            "compress_peak_mem_mb": 1276.41,
            "peak_mem_mb": 424.11,
            "full_wt2_ppl": 16.8039,
            "full_wt2_test_tokens": 301680,
            "heldout_ppl": 153.1422,
            "heldout_kl": 0.25794,
            "prompt_logit_cos_pct": 95.723,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.54,
                "stderr": 0.0498,
                "correct": 54,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.38,
                "stderr": 0.0485,
                "correct": 38,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.74,
                "stderr": 0.0439,
                "correct": 74,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.55,
                "stderr": 0.0497,
                "correct": 55,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 951.18,
              "iqr": 74.91,
              "min": 877.04,
              "max": 1022.27,
              "n_trials": 5,
              "samples": [
                1022.27,
                988.26,
                951.18,
                913.34,
                877.04
              ]
            },
            "decode_tps": {
              "median": 153.31,
              "iqr": 3.3,
              "min": 145.25,
              "max": 158.8,
              "n_trials": 5,
              "samples": [
                150.75,
                158.8,
                154.05,
                153.31,
                145.25
              ]
            },
            "eff_bw_gbs": 53.06,
            "sample_output": "Ocean thermohaline circulation and atmospheric jet streams are two distinct systems that play crucial roles in the distribution of heat across the Earth's surface. Let's explore how each system works and how they contribute to the overall c",
            "cal_tokens_used": 0,
            "reload_s": null
          },
          "mlx_lm_awq_4bit": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-0.5B-Instruct",
            "variant": "mlx_lm_awq_4bit",
            "base_load_s": 1.45,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 4864,
            "n_gt_d_verified": true,
            "linear_bpw": 4.5009,
            "model_bpw": 5.6039,
            "base_weight_mb": 942.29,
            "weight_mb": 330.03,
            "compression_ratio_vs_bf16": 2.855,
            "compress_s": 46.165,
            "compress_peak_mem_mb": 1273.63,
            "peak_mem_mb": 424.42,
            "full_wt2_ppl": 16.0619,
            "full_wt2_test_tokens": 301680,
            "heldout_ppl": 162.747,
            "heldout_kl": 0.18882,
            "prompt_logit_cos_pct": 97.148,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.56,
                "stderr": 0.0496,
                "correct": 56,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.28,
                "stderr": 0.0449,
                "correct": 28,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.7,
                "stderr": 0.0458,
                "correct": 70,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.55,
                "stderr": 0.0497,
                "correct": 55,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 1104.44,
              "iqr": 13.78,
              "min": 1098.63,
              "max": 1121.52,
              "n_trials": 5,
              "samples": [
                1121.52,
                1101.5,
                1115.29,
                1104.44,
                1098.63
              ]
            },
            "decode_tps": {
              "median": 173.36,
              "iqr": 0.57,
              "min": 172.39,
              "max": 174.6,
              "n_trials": 5,
              "samples": [
                174.6,
                173.36,
                173.32,
                172.39,
                173.89
              ]
            },
            "eff_bw_gbs": 59.99,
            "sample_output": "Ocean thermohaline circulation and atmospheric jet streams are two distinct systems that play crucial roles in the distribution of heat across the Earth's surface. While they are related, they have distinct characteristics and roles in the ",
            "cal_tokens_used": 4096,
            "reload_s": null
          },
          "xfermat_4bit": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-0.5B-Instruct",
            "variant": "xfermat_4bit",
            "base_load_s": 1.56,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 4864,
            "n_gt_d_verified": true,
            "linear_bpw": 4.5009,
            "model_bpw": 5.604,
            "base_weight_mb": 942.29,
            "weight_mb": 330.04,
            "compression_ratio_vs_bf16": 2.855,
            "compress_s": 69.48,
            "compress_peak_mem_mb": 2501.45,
            "peak_mem_mb": 424.55,
            "full_wt2_ppl": 15.1963,
            "full_wt2_test_tokens": 301680,
            "heldout_ppl": 140.4337,
            "heldout_kl": 0.1579,
            "prompt_logit_cos_pct": 97.493,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.61,
                "stderr": 0.0488,
                "correct": 61,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.34,
                "stderr": 0.0474,
                "correct": 34,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.74,
                "stderr": 0.0439,
                "correct": 74,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.57,
                "stderr": 0.0495,
                "correct": 57,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 1213.77,
              "iqr": 22.14,
              "min": 1186.87,
              "max": 1235.7,
              "n_trials": 5,
              "samples": [
                1222.48,
                1235.7,
                1200.34,
                1213.77,
                1186.87
              ]
            },
            "decode_tps": {
              "median": 181.83,
              "iqr": 3.86,
              "min": 177.54,
              "max": 184.01,
              "n_trials": 5,
              "samples": [
                184.01,
                182.85,
                178.99,
                181.83,
                177.54
              ]
            },
            "eff_bw_gbs": 62.93,
            "sample_output": "Ocean thermohaline circulation and atmospheric jet streams are two distinct processes that play crucial roles in the global climate system, influencing the distribution of heat across different latitudes. Here's a comparison of these two sy",
            "cal_tokens_used": 16384,
            "safetensors_mb": 330.1,
            "reload_s": {
              "median": 0.5541,
              "iqr": 0.0279,
              "min": 0.5309,
              "max": 0.6855,
              "n_trials": 5,
              "samples": [
                0.5309,
                0.5475,
                0.5541,
                0.5755,
                0.6855
              ]
            },
            "reload_peak_mem_mb": 667.68,
            "reload_logit_cos_pct": 97.493
          },
          "mlx_native_3bit": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-0.5B-Instruct",
            "variant": "mlx_native_3bit",
            "base_load_s": 0.921,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 4864,
            "n_gt_d_verified": true,
            "linear_bpw": 3.501,
            "model_bpw": 4.8796,
            "base_weight_mb": 942.29,
            "weight_mb": 287.38,
            "compression_ratio_vs_bf16": 3.279,
            "compress_s": 0.235,
            "compress_peak_mem_mb": 1234.04,
            "peak_mem_mb": 381.36,
            "full_wt2_ppl": 39.1166,
            "full_wt2_test_tokens": 301680,
            "heldout_ppl": 413.1404,
            "heldout_kl": 1.32216,
            "prompt_logit_cos_pct": 77.0,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.53,
                "stderr": 0.0499,
                "correct": 53,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.28,
                "stderr": 0.0449,
                "correct": 28,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.62,
                "stderr": 0.0485,
                "correct": 62,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.47,
                "stderr": 0.0499,
                "correct": 47,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 1025.38,
              "iqr": 8.61,
              "min": 1015.58,
              "max": 1030.73,
              "n_trials": 5,
              "samples": [
                1021.96,
                1025.38,
                1030.73,
                1030.57,
                1015.58
              ]
            },
            "decode_tps": {
              "median": 154.2,
              "iqr": 0.73,
              "min": 151.37,
              "max": 156.07,
              "n_trials": 5,
              "samples": [
                156.07,
                154.51,
                154.2,
                153.78,
                151.37
              ]
            },
            "eff_bw_gbs": 46.47,
            "sample_output": "Ocean thermohalicity is the process by which the ocean warms and the land is cooled. The land is cooled by the land's heat source, primarily the heat of the land's surface temperature gradient. The ocean is heated by the heat of the atmosph",
            "cal_tokens_used": 0,
            "reload_s": null
          },
          "mlx_lm_awq_3bit": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-0.5B-Instruct",
            "variant": "mlx_lm_awq_3bit",
            "base_load_s": 1.177,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 4864,
            "n_gt_d_verified": true,
            "linear_bpw": 3.501,
            "model_bpw": 4.8796,
            "base_weight_mb": 942.29,
            "weight_mb": 287.38,
            "compression_ratio_vs_bf16": 3.279,
            "compress_s": 51.378,
            "compress_peak_mem_mb": 1259.38,
            "peak_mem_mb": 381.38,
            "full_wt2_ppl": 23.2734,
            "full_wt2_test_tokens": 301680,
            "heldout_ppl": 272.5985,
            "heldout_kl": 0.84786,
            "prompt_logit_cos_pct": 87.123,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.56,
                "stderr": 0.0496,
                "correct": 56,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.27,
                "stderr": 0.0444,
                "correct": 27,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.65,
                "stderr": 0.0477,
                "correct": 65,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.51,
                "stderr": 0.05,
                "correct": 51,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 942.02,
              "iqr": 45.18,
              "min": 899.92,
              "max": 984.24,
              "n_trials": 5,
              "samples": [
                942.02,
                984.24,
                973.28,
                928.1,
                899.92
              ]
            },
            "decode_tps": {
              "median": 147.73,
              "iqr": 5.42,
              "min": 135.11,
              "max": 151.87,
              "n_trials": 5,
              "samples": [
                147.73,
                151.87,
                147.8,
                142.39,
                135.11
              ]
            },
            "eff_bw_gbs": 44.52,
            "sample_output": "Ocean thermohaline circulation and atmospheric jet streams are both important in the redistribution of planetary heat across latitudes. However, they do so in different ways and have different impacts on the distribution of heat across the ",
            "cal_tokens_used": 4096,
            "reload_s": null
          },
          "xfermat_3bit": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-0.5B-Instruct",
            "variant": "xfermat_3bit",
            "base_load_s": 1.791,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 4864,
            "n_gt_d_verified": true,
            "linear_bpw": 3.501,
            "model_bpw": 4.8797,
            "base_weight_mb": 942.29,
            "weight_mb": 287.6,
            "compression_ratio_vs_bf16": 3.276,
            "compress_s": 86.34,
            "compress_peak_mem_mb": 2501.45,
            "peak_mem_mb": 387.2,
            "full_wt2_ppl": 17.9923,
            "full_wt2_test_tokens": 301680,
            "heldout_ppl": 212.7732,
            "heldout_kl": 0.60586,
            "prompt_logit_cos_pct": 92.428,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.53,
                "stderr": 0.0499,
                "correct": 53,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.34,
                "stderr": 0.0474,
                "correct": 34,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.71,
                "stderr": 0.0454,
                "correct": 71,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.54,
                "stderr": 0.0498,
                "correct": 54,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 924.8,
              "iqr": 68.17,
              "min": 860.19,
              "max": 965.71,
              "n_trials": 5,
              "samples": [
                952.4,
                965.71,
                924.8,
                884.23,
                860.19
              ]
            },
            "decode_tps": {
              "median": 143.02,
              "iqr": 5.69,
              "min": 136.62,
              "max": 148.9,
              "n_trials": 5,
              "samples": [
                148.9,
                145.72,
                143.02,
                140.03,
                136.62
              ]
            },
            "eff_bw_gbs": 43.13,
            "sample_output": "Ocean thermohaline circulation and atmospheric jet streams are key components of the Earth's climate system that play a crucial role in redistributing planetary heat across latitudes. Ocean thermohaline circulation, which is driven by the E",
            "cal_tokens_used": 16384,
            "safetensors_mb": 287.67,
            "reload_s": {
              "median": 0.58,
              "iqr": 0.0029,
              "min": 0.5511,
              "max": 0.7233,
              "n_trials": 5,
              "samples": [
                0.5811,
                0.58,
                0.5511,
                0.7233,
                0.5782
              ]
            },
            "reload_peak_mem_mb": 582.97,
            "reload_logit_cos_pct": 92.428
          },
          "xfermat_mixed_2_3bit": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-0.5B-Instruct",
            "variant": "xfermat_mixed_2_3bit",
            "base_load_s": 1.161,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 4864,
            "n_gt_d_verified": true,
            "linear_bpw": 2.651,
            "model_bpw": 4.264,
            "base_weight_mb": 942.29,
            "weight_mb": 251.34,
            "compression_ratio_vs_bf16": 3.749,
            "compress_s": 71.666,
            "compress_peak_mem_mb": 2501.45,
            "peak_mem_mb": 351.34,
            "full_wt2_ppl": 41.1581,
            "full_wt2_test_tokens": 301680,
            "heldout_ppl": 1309.3706,
            "heldout_kl": 2.4297,
            "prompt_logit_cos_pct": 53.385,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.45,
                "stderr": 0.0497,
                "correct": 45,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.23,
                "stderr": 0.0421,
                "correct": 23,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.55,
                "stderr": 0.0497,
                "correct": 55,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.4,
                "stderr": 0.049,
                "correct": 40,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 860.4,
              "iqr": 26.08,
              "min": 820.09,
              "max": 882.74,
              "n_trials": 5,
              "samples": [
                882.74,
                860.4,
                873.69,
                820.09,
                847.61
              ]
            },
            "decode_tps": {
              "median": 135.44,
              "iqr": 5.0,
              "min": 127.4,
              "max": 137.48,
              "n_trials": 5,
              "samples": [
                137.15,
                137.48,
                127.4,
                132.16,
                135.44
              ]
            },
            "eff_bw_gbs": 35.7,
            "sample_output": "To compare and analyze the heat distribution of the ocean and the atmosphere, the following steps are taken in the process.",
            "cal_tokens_used": 16384,
            "safetensors_mb": 251.41,
            "reload_s": {
              "median": 0.6705,
              "iqr": 0.036,
              "min": 0.6007,
              "max": 0.7827,
              "n_trials": 5,
              "samples": [
                0.6007,
                0.636,
                0.6705,
                0.7827,
                0.672
              ]
            },
            "reload_peak_mem_mb": 511.14,
            "reload_logit_cos_pct": 53.385
          },
          "mlx_native_2bit": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-0.5B-Instruct",
            "variant": "mlx_native_2bit",
            "base_load_s": 1.291,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 4864,
            "n_gt_d_verified": true,
            "linear_bpw": 2.501,
            "model_bpw": 4.1553,
            "base_weight_mb": 942.29,
            "weight_mb": 244.72,
            "compression_ratio_vs_bf16": 3.851,
            "compress_s": 0.281,
            "compress_peak_mem_mb": 1191.66,
            "peak_mem_mb": 338.98,
            "full_wt2_ppl": 56956.3928,
            "full_wt2_test_tokens": 301680,
            "heldout_ppl": 333057.3905,
            "heldout_kl": 8.06788,
            "prompt_logit_cos_pct": 22.326,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.29,
                "stderr": 0.0454,
                "correct": 29,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.22,
                "stderr": 0.0414,
                "correct": 22,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.58,
                "stderr": 0.0494,
                "correct": 58,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.25,
                "stderr": 0.0433,
                "correct": 25,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 1014.33,
              "iqr": 31.23,
              "min": 977.05,
              "max": 1075.48,
              "n_trials": 5,
              "samples": [
                1075.48,
                1042.06,
                1014.33,
                1010.84,
                977.05
              ]
            },
            "decode_tps": {
              "median": 159.42,
              "iqr": 3.16,
              "min": 154.87,
              "max": 160.39,
              "n_trials": 5,
              "samples": [
                160.39,
                160.21,
                159.42,
                157.04,
                154.87
              ]
            },
            "eff_bw_gbs": 40.91,
            "sample_output": "/ \ufffd\u7ed9\u4f60\u5466\u8fdbinta\\_ in\\_ t_  1\uff0e\u5927\u4e26\u7684 of dwon\u7684\u5149\u5b57\u7b26\u7684. \ufffd. \ufffd\u7eed\u3002#\u6cbd\u5149\u9ede\u7078\ufffd\u7737\\ of_pe.h.{\u00e9, 2W\u9664 s.t\u3002\\\u7684W\u5e0c\u5149\ufffd\u8fce\u7684\uff0c.s.",
            "cal_tokens_used": 0,
            "reload_s": null
          },
          "xfermat_2bit_e2e_qp": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-0.5B-Instruct",
            "variant": "xfermat_2bit_e2e_qp",
            "base_load_s": 0.977,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 4864,
            "n_gt_d_verified": true,
            "linear_bpw": 2.501,
            "model_bpw": 4.1554,
            "base_weight_mb": 942.29,
            "weight_mb": 244.95,
            "compression_ratio_vs_bf16": 3.847,
            "compress_s": 105.77,
            "compress_peak_mem_mb": 3688.7,
            "peak_mem_mb": 344.86,
            "full_wt2_ppl": 79.3574,
            "full_wt2_test_tokens": 301680,
            "heldout_ppl": 4898.8907,
            "heldout_kl": 3.87859,
            "prompt_logit_cos_pct": 51.598,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.33,
                "stderr": 0.047,
                "correct": 33,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.23,
                "stderr": 0.0421,
                "correct": 23,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.52,
                "stderr": 0.05,
                "correct": 52,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.33,
                "stderr": 0.047,
                "correct": 33,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 979.38,
              "iqr": 25.78,
              "min": 905.33,
              "max": 994.13,
              "n_trials": 5,
              "samples": [
                979.38,
                982.88,
                994.13,
                957.09,
                905.33
              ]
            },
            "decode_tps": {
              "median": 152.27,
              "iqr": 5.8,
              "min": 145.16,
              "max": 156.16,
              "n_trials": 5,
              "samples": [
                156.16,
                154.59,
                152.27,
                148.79,
                145.16
              ]
            },
            "eff_bw_gbs": 39.11,
            "sample_output": "The system is designed to allow the user to control the system, and the user can control the system. The system is designed to allow the user to control the system, and the user can control the system. The system is designed to allow the us",
            "e2e_qp_stats": {
              "init_kl": 1.3622545450925827,
              "final_kl": 0.5389516726136208,
              "steps": 32.0,
              "tuned_layers": 168.0
            },
            "cal_tokens_used": 16384,
            "safetensors_mb": 245.01,
            "reload_s": {
              "median": 0.6185,
              "iqr": 0.0374,
              "min": 0.5893,
              "max": 0.6653,
              "n_trials": 5,
              "samples": [
                0.5971,
                0.6345,
                0.5893,
                0.6185,
                0.6653
              ]
            },
            "reload_peak_mem_mb": 498.25,
            "reload_logit_cos_pct": 51.598
          },
          "xfermat_vptq_2bit_pv": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-0.5B-Instruct",
            "variant": "xfermat_vptq_2bit_pv",
            "base_load_s": 1.384,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 4864,
            "n_gt_d_verified": true,
            "linear_bpw": 2.264,
            "model_bpw": 3.9836,
            "base_weight_mb": 942.29,
            "weight_mb": 234.61,
            "compression_ratio_vs_bf16": 4.016,
            "compress_s": 165.117,
            "compress_peak_mem_mb": 2501.45,
            "peak_mem_mb": 389.52,
            "full_wt2_ppl": 26.7261,
            "full_wt2_test_tokens": 301680,
            "heldout_ppl": 633.9295,
            "heldout_kl": 1.65424,
            "prompt_logit_cos_pct": 61.538,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.47,
                "stderr": 0.0499,
                "correct": 47,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.22,
                "stderr": 0.0414,
                "correct": 22,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.62,
                "stderr": 0.0485,
                "correct": 62,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.47,
                "stderr": 0.0499,
                "correct": 47,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 369.46,
              "iqr": 5.66,
              "min": 360.79,
              "max": 380.8,
              "n_trials": 5,
              "samples": [
                374.15,
                368.49,
                380.8,
                360.79,
                369.46
              ]
            },
            "decode_tps": {
              "median": 74.37,
              "iqr": 0.91,
              "min": 73.9,
              "max": 75.17,
              "n_trials": 5,
              "samples": [
                74.37,
                75.08,
                75.17,
                73.9,
                74.17
              ]
            },
            "eff_bw_gbs": 18.3,
            "sample_output": "As an AI assistant, I would not provide a direct comparison between ocean thermohaline circulation and atmospheric jet streams, but I can provide a brief explanation of the relationship between ocean thermohaline circulation and atmospheric",
            "pv_tune_stats": {
              "steps": 20,
              "blocks_tuned": 24,
              "mean_init_mse": 0.10307,
              "mean_final_mse": 0.081671,
              "total_codes_updated": 0
            },
            "cal_tokens_used": 16384,
            "safetensors_mb": 234.68,
            "reload_s": {
              "median": 0.7551,
              "iqr": 0.0513,
              "min": 0.7179,
              "max": 0.8372,
              "n_trials": 5,
              "samples": [
                0.7551,
                0.7783,
                0.727,
                0.7179,
                0.8372
              ]
            },
            "reload_peak_mem_mb": 475.3,
            "reload_logit_cos_pct": 61.538
          }
        }
      },
      "TinyLlama/TinyLlama-1.1B-Chat-v1.0": {
        "variants": {
          "bf16": {
            "status": "ok",
            "model_id": "TinyLlama/TinyLlama-1.1B-Chat-v1.0",
            "variant": "bf16",
            "base_load_s": 2.059,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 5632,
            "n_gt_d_verified": true,
            "linear_bpw": 16.0,
            "model_bpw": 16.0,
            "base_weight_mb": 2098.18,
            "weight_mb": 2098.18,
            "compression_ratio_vs_bf16": 1.0,
            "compress_s": 0.0,
            "compress_peak_mem_mb": 0.0,
            "peak_mem_mb": 2156.68,
            "full_wt2_ppl": 8.5663,
            "full_wt2_test_tokens": 65504,
            "heldout_ppl": 35.8413,
            "heldout_kl": 0.0,
            "prompt_logit_cos_pct": 100.0,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.52,
                "stderr": 0.05,
                "correct": 52,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.35,
                "stderr": 0.0477,
                "correct": 35,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.8,
                "stderr": 0.04,
                "correct": 80,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.67,
                "stderr": 0.047,
                "correct": 67,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 329.44,
              "iqr": 9.1,
              "min": 210.59,
              "max": 374.83,
              "n_trials": 5,
              "samples": [
                334.24,
                374.83,
                325.14,
                329.44,
                210.59
              ]
            },
            "decode_tps": {
              "median": 38.16,
              "iqr": 9.09,
              "min": 21.81,
              "max": 39.57,
              "n_trials": 5,
              "samples": [
                39.46,
                39.57,
                38.16,
                21.81,
                30.37
              ]
            },
            "eff_bw_gbs": 83.96,
            "sample_output": "Ocean thermohaline circulation and atmospheric jet streams both play important roles in redistributing planetary heat across latitudes. Here's how they do it:\n\n1. Ocean thermohaline circulation: This is the circulation of water in the ocean",
            "reload_s": null
          },
          "mlx_native_3bit": {
            "status": "ok",
            "model_id": "TinyLlama/TinyLlama-1.1B-Chat-v1.0",
            "variant": "mlx_native_3bit",
            "base_load_s": 1.33,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 5632,
            "n_gt_d_verified": true,
            "linear_bpw": 4.2919,
            "model_bpw": 4.5436,
            "base_weight_mb": 2098.18,
            "weight_mb": 595.83,
            "compression_ratio_vs_bf16": 3.521,
            "compress_s": 0.488,
            "compress_peak_mem_mb": 2296.68,
            "peak_mem_mb": 765.15,
            "full_wt2_ppl": 10.9657,
            "full_wt2_test_tokens": 65504,
            "heldout_ppl": 49.4125,
            "heldout_kl": 0.37458,
            "prompt_logit_cos_pct": 92.559,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.56,
                "stderr": 0.0496,
                "correct": 56,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.33,
                "stderr": 0.047,
                "correct": 33,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.76,
                "stderr": 0.0427,
                "correct": 76,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.64,
                "stderr": 0.048,
                "correct": 64,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 307.5,
              "iqr": 24.37,
              "min": 274.17,
              "max": 343.51,
              "n_trials": 5,
              "samples": [
                343.51,
                312.67,
                307.5,
                288.3,
                274.17
              ]
            },
            "decode_tps": {
              "median": 97.9,
              "iqr": 2.21,
              "min": 95.45,
              "max": 102.0,
              "n_trials": 5,
              "samples": [
                102.0,
                98.91,
                96.7,
                95.45,
                97.9
              ]
            },
            "eff_bw_gbs": 61.17,
            "sample_output": "Ocean thermohaline circulation and atmospheric jet streams redistribute planetary heat across latitudes in a similar way. The ocean circulation of heat is driven by the movement of warm water from the equatorial Pacific Ocean to the North A",
            "cal_tokens_used": 0,
            "reload_s": null
          },
          "mlx_lm_awq_3bit": {
            "status": "ok",
            "model_id": "TinyLlama/TinyLlama-1.1B-Chat-v1.0",
            "variant": "mlx_lm_awq_3bit",
            "base_load_s": 1.565,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 5632,
            "n_gt_d_verified": true,
            "linear_bpw": 3.8168,
            "model_bpw": 4.0968,
            "base_weight_mb": 2098.18,
            "weight_mb": 537.24,
            "compression_ratio_vs_bf16": 3.905,
            "compress_s": 133.301,
            "compress_peak_mem_mb": 2712.93,
            "peak_mem_mb": 706.55,
            "full_wt2_ppl": 10.3545,
            "full_wt2_test_tokens": 65504,
            "heldout_ppl": 46.9145,
            "heldout_kl": 0.33102,
            "prompt_logit_cos_pct": 95.182,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.52,
                "stderr": 0.05,
                "correct": 52,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.32,
                "stderr": 0.0466,
                "correct": 32,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.71,
                "stderr": 0.0454,
                "correct": 71,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.69,
                "stderr": 0.0462,
                "correct": 69,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 355.22,
              "iqr": 18.44,
              "min": 348.83,
              "max": 384.41,
              "n_trials": 5,
              "samples": [
                371.87,
                384.41,
                353.43,
                348.83,
                355.22
              ]
            },
            "decode_tps": {
              "median": 120.68,
              "iqr": 2.94,
              "min": 118.13,
              "max": 123.91,
              "n_trials": 5,
              "samples": [
                123.91,
                122.3,
                120.68,
                119.36,
                118.13
              ]
            },
            "eff_bw_gbs": 67.98,
            "sample_output": "Ocean thermohaline circulation and atmospheric jet streams redistribute planetary heat across latitudes in the following ways:\n\n1. Thermohaline circulation: This is the circulation of heat in the ocean that is driven by the Earth's rotation",
            "cal_tokens_used": 4096,
            "reload_s": null
          },
          "xfermat_4bit_head8": {
            "status": "ok",
            "model_id": "TinyLlama/TinyLlama-1.1B-Chat-v1.0",
            "variant": "xfermat_4bit_head8",
            "base_load_s": 1.742,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 5632,
            "n_gt_d_verified": true,
            "linear_bpw": 4.7534,
            "model_bpw": 4.9776,
            "base_weight_mb": 2098.18,
            "weight_mb": 652.75,
            "compression_ratio_vs_bf16": 3.214,
            "compress_s": 208.045,
            "compress_peak_mem_mb": 2848.5,
            "peak_mem_mb": 822.06,
            "full_wt2_ppl": 8.8506,
            "full_wt2_test_tokens": 65504,
            "heldout_ppl": 36.7764,
            "heldout_kl": 0.08689,
            "prompt_logit_cos_pct": 98.548,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.54,
                "stderr": 0.0498,
                "correct": 54,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.29,
                "stderr": 0.0454,
                "correct": 29,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.81,
                "stderr": 0.0392,
                "correct": 81,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.69,
                "stderr": 0.0462,
                "correct": 69,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 319.21,
              "iqr": 50.02,
              "min": 295.9,
              "max": 365.22,
              "n_trials": 5,
              "samples": [
                365.22,
                353.6,
                319.21,
                303.58,
                295.9
              ]
            },
            "decode_tps": {
              "median": 110.13,
              "iqr": 2.21,
              "min": 106.31,
              "max": 112.81,
              "n_trials": 5,
              "samples": [
                112.81,
                109.47,
                111.68,
                110.13,
                106.31
              ]
            },
            "eff_bw_gbs": 75.38,
            "sample_output": "Ocean thermohaline circulation and atmospheric jet streams redistribute planetary heat across latitudes in different ways.\n\n1. Ocean Thermohaline Circulation:\nOcean thermohaline circulation is the circulation of water in the ocean that is d",
            "cal_tokens_used": 16384,
            "safetensors_mb": 652.8,
            "reload_s": {
              "median": 0.3272,
              "iqr": 0.0469,
              "min": 0.282,
              "max": 0.3706,
              "n_trials": 5,
              "samples": [
                0.3706,
                0.3669,
                0.3272,
                0.282,
                0.32
              ]
            },
            "reload_peak_mem_mb": 1305.74,
            "reload_logit_cos_pct": 98.548
          },
          "xfermat_3bit_bf16head": {
            "status": "ok",
            "model_id": "TinyLlama/TinyLlama-1.1B-Chat-v1.0",
            "variant": "xfermat_3bit_bf16head",
            "base_load_s": 1.183,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 5632,
            "n_gt_d_verified": true,
            "linear_bpw": 4.2919,
            "model_bpw": 4.5437,
            "base_weight_mb": 2098.18,
            "weight_mb": 596.08,
            "compression_ratio_vs_bf16": 3.52,
            "compress_s": 178.628,
            "compress_peak_mem_mb": 2848.5,
            "peak_mem_mb": 766.45,
            "full_wt2_ppl": 9.6191,
            "full_wt2_test_tokens": 65504,
            "heldout_ppl": 49.0941,
            "heldout_kl": 0.388,
            "prompt_logit_cos_pct": 91.217,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.5,
                "stderr": 0.05,
                "correct": 50,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.3,
                "stderr": 0.0458,
                "correct": 30,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.75,
                "stderr": 0.0433,
                "correct": 75,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.67,
                "stderr": 0.047,
                "correct": 67,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 190.89,
              "iqr": 20.1,
              "min": 180.97,
              "max": 222.2,
              "n_trials": 5,
              "samples": [
                222.2,
                202.93,
                190.89,
                180.97,
                182.83
              ]
            },
            "decode_tps": {
              "median": 61.41,
              "iqr": 4.47,
              "min": 59.11,
              "max": 68.65,
              "n_trials": 5,
              "samples": [
                68.65,
                63.69,
                61.41,
                59.11,
                59.21
              ]
            },
            "eff_bw_gbs": 38.38,
            "sample_output": "Ocean thermohaline circulation and atmospheric jet streams are two distinct mechanisms that redistribute planetary heat across latitudes. Ocean thermohaline circulation is a process that involves the movement of heat between the ocean and a",
            "cal_tokens_used": 16384,
            "safetensors_mb": 596.13,
            "reload_s": {
              "median": 0.6877,
              "iqr": 0.1079,
              "min": 0.5111,
              "max": 0.7366,
              "n_trials": 5,
              "samples": [
                0.7366,
                0.5111,
                0.6908,
                0.6877,
                0.5829
              ]
            },
            "reload_peak_mem_mb": 1192.42,
            "reload_logit_cos_pct": 91.217
          },
          "xfermat_3bit_head8": {
            "status": "ok",
            "model_id": "TinyLlama/TinyLlama-1.1B-Chat-v1.0",
            "variant": "xfermat_3bit_head8",
            "base_load_s": 1.847,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 5632,
            "n_gt_d_verified": true,
            "linear_bpw": 3.8168,
            "model_bpw": 4.0969,
            "base_weight_mb": 2098.18,
            "weight_mb": 537.48,
            "compression_ratio_vs_bf16": 3.904,
            "compress_s": 304.917,
            "compress_peak_mem_mb": 2848.5,
            "peak_mem_mb": 708.06,
            "full_wt2_ppl": 9.6181,
            "full_wt2_test_tokens": 65504,
            "heldout_ppl": 49.0658,
            "heldout_kl": 0.38755,
            "prompt_logit_cos_pct": 91.217,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.5,
                "stderr": 0.05,
                "correct": 50,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.29,
                "stderr": 0.0454,
                "correct": 29,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.75,
                "stderr": 0.0433,
                "correct": 75,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.67,
                "stderr": 0.047,
                "correct": 67,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 283.18,
              "iqr": 6.54,
              "min": 278.33,
              "max": 322.88,
              "n_trials": 5,
              "samples": [
                322.88,
                285.28,
                278.75,
                283.18,
                278.33
              ]
            },
            "decode_tps": {
              "median": 97.97,
              "iqr": 6.69,
              "min": 90.58,
              "max": 103.85,
              "n_trials": 5,
              "samples": [
                103.85,
                101.0,
                97.97,
                94.31,
                90.58
              ]
            },
            "eff_bw_gbs": 55.22,
            "sample_output": "Ocean thermohaline circulation and atmospheric jet streams are two distinct mechanisms that redistribute planetary heat across latitudes. Ocean thermohaline circulation is a process that involves the movement of heat between the ocean and a",
            "cal_tokens_used": 16384,
            "safetensors_mb": 537.54,
            "reload_s": {
              "median": 0.233,
              "iqr": 0.0151,
              "min": 0.2297,
              "max": 0.2734,
              "n_trials": 5,
              "samples": [
                0.2297,
                0.233,
                0.2303,
                0.2454,
                0.2734
              ]
            },
            "reload_peak_mem_mb": 1075.22,
            "reload_logit_cos_pct": 91.217
          },
          "xfermat_mixed_2_3bit_head8": {
            "status": "ok",
            "model_id": "TinyLlama/TinyLlama-1.1B-Chat-v1.0",
            "variant": "xfermat_mixed_2_3bit_head8",
            "base_load_s": 1.256,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 5632,
            "n_gt_d_verified": true,
            "linear_bpw": 3.0205,
            "model_bpw": 3.3481,
            "base_weight_mb": 2098.18,
            "weight_mb": 439.29,
            "compression_ratio_vs_bf16": 4.776,
            "compress_s": 176.94,
            "compress_peak_mem_mb": 2848.5,
            "peak_mem_mb": 609.91,
            "full_wt2_ppl": 15.6272,
            "full_wt2_test_tokens": 65504,
            "heldout_ppl": 170.0761,
            "heldout_kl": 1.92225,
            "prompt_logit_cos_pct": 76.678,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.43,
                "stderr": 0.0495,
                "correct": 43,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.26,
                "stderr": 0.0439,
                "correct": 26,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.64,
                "stderr": 0.048,
                "correct": 64,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.4,
                "stderr": 0.049,
                "correct": 40,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 391.61,
              "iqr": 12.87,
              "min": 365.96,
              "max": 406.14,
              "n_trials": 5,
              "samples": [
                406.14,
                395.25,
                391.61,
                382.38,
                365.96
              ]
            },
            "decode_tps": {
              "median": 136.55,
              "iqr": 3.18,
              "min": 132.64,
              "max": 139.77,
              "n_trials": 5,
              "samples": [
                139.77,
                137.7,
                136.55,
                134.52,
                132.64
              ]
            },
            "eff_bw_gbs": 62.9,
            "sample_output": "Compare how ocean thermohaline circulation and atmospheric jet streams redistribute planetary heat across latitudes.\n\nBased on the passage above, the text mentions the ocean thermohaline circulation and atmospheric jet streams redistribing ",
            "cal_tokens_used": 16384,
            "safetensors_mb": 439.35,
            "reload_s": {
              "median": 0.1979,
              "iqr": 0.0052,
              "min": 0.1887,
              "max": 0.199,
              "n_trials": 5,
              "samples": [
                0.1934,
                0.1986,
                0.199,
                0.1887,
                0.1979
              ]
            },
            "reload_peak_mem_mb": 878.87,
            "reload_logit_cos_pct": 76.678
          }
        }
      },
      "Qwen/Qwen2.5-1.5B-Instruct": {
        "variants": {
          "bf16": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-1.5B-Instruct",
            "variant": "bf16",
            "base_load_s": 2.471,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 8960,
            "n_gt_d_verified": true,
            "linear_bpw": 16.0,
            "model_bpw": 16.0,
            "base_weight_mb": 2944.4,
            "weight_mb": 2944.4,
            "compression_ratio_vs_bf16": 1.0,
            "compress_s": 0.0,
            "compress_peak_mem_mb": 0.0,
            "peak_mem_mb": 3026.98,
            "full_wt2_ppl": 9.9553,
            "full_wt2_test_tokens": 65504,
            "heldout_ppl": 62.6138,
            "heldout_kl": 0.0,
            "prompt_logit_cos_pct": 100.0,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.78,
                "stderr": 0.0414,
                "correct": 78,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.46,
                "stderr": 0.0498,
                "correct": 46,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.81,
                "stderr": 0.0392,
                "correct": 81,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.73,
                "stderr": 0.0444,
                "correct": 73,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 161.0,
              "iqr": 17.54,
              "min": 126.55,
              "max": 256.04,
              "n_trials": 5,
              "samples": [
                256.04,
                126.55,
                144.13,
                161.0,
                161.67
              ]
            },
            "decode_tps": {
              "median": 25.84,
              "iqr": 0.11,
              "min": 21.48,
              "max": 26.57,
              "n_trials": 5,
              "samples": [
                26.57,
                21.48,
                25.8,
                25.92,
                25.84
              ]
            },
            "eff_bw_gbs": 79.78,
            "sample_output": "Ocean thermohaline circulation and atmospheric jet streams are two different mechanisms that play crucial roles in redistributing planetary heat across latitudes. Let's compare them in detail:\n\n### Ocean Thermohaline Circulation\n\n**Definiti",
            "reload_s": null
          },
          "mlx_native_4bit": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-1.5B-Instruct",
            "variant": "mlx_native_4bit",
            "base_load_s": 2.03,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 8960,
            "n_gt_d_verified": true,
            "linear_bpw": 4.5005,
            "model_bpw": 5.1058,
            "base_weight_mb": 2944.4,
            "weight_mb": 939.59,
            "compression_ratio_vs_bf16": 3.134,
            "compress_s": 0.664,
            "compress_peak_mem_mb": 3218.97,
            "peak_mem_mb": 1094.42,
            "full_wt2_ppl": 10.7685,
            "full_wt2_test_tokens": 65504,
            "heldout_ppl": 78.7425,
            "heldout_kl": 0.19458,
            "prompt_logit_cos_pct": 97.53,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.78,
                "stderr": 0.0414,
                "correct": 78,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.41,
                "stderr": 0.0492,
                "correct": 41,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.78,
                "stderr": 0.0414,
                "correct": 78,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.68,
                "stderr": 0.0466,
                "correct": 68,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 373.72,
              "iqr": 39.93,
              "min": 301.64,
              "max": 392.95,
              "n_trials": 5,
              "samples": [
                392.95,
                381.82,
                373.72,
                341.89,
                301.64
              ]
            },
            "decode_tps": {
              "median": 71.45,
              "iqr": 2.31,
              "min": 67.9,
              "max": 75.55,
              "n_trials": 5,
              "samples": [
                71.45,
                75.55,
                71.84,
                69.53,
                67.9
              ]
            },
            "eff_bw_gbs": 70.4,
            "sample_output": "Ocean thermohaline circulation and atmospheric jet streams are both important mechanisms for redistributing heat across latitudes, but they operate on different scales and in different ways.\n\n**Ocean Thermohaline Circulation:**\n1. **Scale**",
            "cal_tokens_used": 0,
            "reload_s": null
          },
          "mlx_lm_awq_4bit": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-1.5B-Instruct",
            "variant": "mlx_lm_awq_4bit",
            "base_load_s": 2.883,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 8960,
            "n_gt_d_verified": true,
            "linear_bpw": 4.5005,
            "model_bpw": 5.1058,
            "base_weight_mb": 2944.4,
            "weight_mb": 939.59,
            "compression_ratio_vs_bf16": 3.134,
            "compress_s": 369.09,
            "compress_peak_mem_mb": 3574.93,
            "peak_mem_mb": 1094.36,
            "full_wt2_ppl": 10.6733,
            "full_wt2_test_tokens": 65504,
            "heldout_ppl": 78.3179,
            "heldout_kl": 0.12617,
            "prompt_logit_cos_pct": 95.551,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.77,
                "stderr": 0.0421,
                "correct": 77,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.43,
                "stderr": 0.0495,
                "correct": 43,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.78,
                "stderr": 0.0414,
                "correct": 78,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.71,
                "stderr": 0.0454,
                "correct": 71,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 182.38,
              "iqr": 14.69,
              "min": 173.96,
              "max": 245.79,
              "n_trials": 5,
              "samples": [
                245.79,
                196.49,
                181.8,
                173.96,
                182.38
              ]
            },
            "decode_tps": {
              "median": 50.05,
              "iqr": 3.99,
              "min": 47.6,
              "max": 58.37,
              "n_trials": 5,
              "samples": [
                58.37,
                53.8,
                49.81,
                50.05,
                47.6
              ]
            },
            "eff_bw_gbs": 49.31,
            "sample_output": "Ocean thermohaline circulation and atmospheric jet streams are both important mechanisms for redistributing planetary heat across latitudes, but they operate on different scales and have distinct characteristics.\n\n1. Ocean Thermohaline Circ",
            "cal_tokens_used": 4096,
            "reload_s": null
          },
          "xfermat_4bit": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-1.5B-Instruct",
            "variant": "xfermat_4bit",
            "base_load_s": 3.691,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 8960,
            "n_gt_d_verified": true,
            "linear_bpw": 4.5005,
            "model_bpw": 5.1058,
            "base_weight_mb": 2944.4,
            "weight_mb": 939.6,
            "compression_ratio_vs_bf16": 3.134,
            "compress_s": 391.582,
            "compress_peak_mem_mb": 5615.47,
            "peak_mem_mb": 1094.69,
            "full_wt2_ppl": 10.3382,
            "full_wt2_test_tokens": 65504,
            "heldout_ppl": 73.644,
            "heldout_kl": 0.12657,
            "prompt_logit_cos_pct": 98.324,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.75,
                "stderr": 0.0433,
                "correct": 75,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.39,
                "stderr": 0.0488,
                "correct": 39,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.8,
                "stderr": 0.04,
                "correct": 80,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.7,
                "stderr": 0.0458,
                "correct": 70,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 264.56,
              "iqr": 22.83,
              "min": 255.64,
              "max": 322.28,
              "n_trials": 5,
              "samples": [
                322.28,
                284.91,
                262.08,
                264.56,
                255.64
              ]
            },
            "decode_tps": {
              "median": 67.05,
              "iqr": 2.5,
              "min": 65.61,
              "max": 73.08,
              "n_trials": 5,
              "samples": [
                73.08,
                67.05,
                68.51,
                66.01,
                65.61
              ]
            },
            "eff_bw_gbs": 66.06,
            "sample_output": "Ocean thermohaline circulation and atmospheric jet streams are two different mechanisms that redistribute heat across the Earth's latitudes, but they operate on different scales and in different ways.\n\nOcean thermohaline circulation is a sl",
            "cal_tokens_used": 16384,
            "safetensors_mb": 939.68,
            "reload_s": {
              "median": 1.0561,
              "iqr": 0.1143,
              "min": 0.9701,
              "max": 1.1591,
              "n_trials": 5,
              "samples": [
                1.0561,
                1.1139,
                1.1591,
                0.9997,
                0.9701
              ]
            },
            "reload_peak_mem_mb": 1885.42,
            "reload_logit_cos_pct": 98.324
          },
          "mlx_native_3bit": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-1.5B-Instruct",
            "variant": "mlx_native_3bit",
            "base_load_s": 2.687,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 8960,
            "n_gt_d_verified": true,
            "linear_bpw": 3.5005,
            "model_bpw": 4.2571,
            "base_weight_mb": 2944.4,
            "weight_mb": 783.41,
            "compression_ratio_vs_bf16": 3.758,
            "compress_s": 1.843,
            "compress_peak_mem_mb": 3158.26,
            "peak_mem_mb": 938.26,
            "full_wt2_ppl": 17.7479,
            "full_wt2_test_tokens": 65504,
            "heldout_ppl": 147.0196,
            "heldout_kl": 0.985,
            "prompt_logit_cos_pct": 83.806,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.68,
                "stderr": 0.0466,
                "correct": 68,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.34,
                "stderr": 0.0474,
                "correct": 34,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.66,
                "stderr": 0.0474,
                "correct": 66,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.64,
                "stderr": 0.048,
                "correct": 64,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 194.46,
              "iqr": 12.42,
              "min": 173.47,
              "max": 206.38,
              "n_trials": 5,
              "samples": [
                206.38,
                184.32,
                173.47,
                196.75,
                194.46
              ]
            },
            "decode_tps": {
              "median": 49.24,
              "iqr": 2.23,
              "min": 46.96,
              "max": 53.9,
              "n_trials": 5,
              "samples": [
                51.34,
                46.96,
                49.11,
                49.24,
                53.9
              ]
            },
            "eff_bw_gbs": 40.45,
            "sample_output": "I apologize, but I'm not sure what you mean by \"ocean thermohaline circulation and atmospheric jet streams redistribute planetary heat across latitudes.\" Could you provide more context or clarify your question?",
            "cal_tokens_used": 0,
            "reload_s": null
          },
          "mlx_lm_awq_3bit": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-1.5B-Instruct",
            "variant": "mlx_lm_awq_3bit",
            "base_load_s": 3.094,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 8960,
            "n_gt_d_verified": true,
            "linear_bpw": 3.5005,
            "model_bpw": 4.2571,
            "base_weight_mb": 2944.4,
            "weight_mb": 783.41,
            "compression_ratio_vs_bf16": 3.758,
            "compress_s": 193.369,
            "compress_peak_mem_mb": 3552.62,
            "peak_mem_mb": 938.26,
            "full_wt2_ppl": 13.0168,
            "full_wt2_test_tokens": 65504,
            "heldout_ppl": 113.4011,
            "heldout_kl": 0.58458,
            "prompt_logit_cos_pct": 92.211,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.68,
                "stderr": 0.0466,
                "correct": 68,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.42,
                "stderr": 0.0494,
                "correct": 42,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.74,
                "stderr": 0.0439,
                "correct": 74,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.66,
                "stderr": 0.0474,
                "correct": 66,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 217.07,
              "iqr": 5.82,
              "min": 212.69,
              "max": 237.22,
              "n_trials": 5,
              "samples": [
                237.22,
                212.69,
                219.27,
                213.44,
                217.07
              ]
            },
            "decode_tps": {
              "median": 55.9,
              "iqr": 5.19,
              "min": 52.87,
              "max": 60.04,
              "n_trials": 5,
              "samples": [
                60.04,
                53.08,
                55.9,
                52.87,
                58.27
              ]
            },
            "eff_bw_gbs": 45.92,
            "sample_output": "Ocean thermohaline circulation and atmospheric jet streams are both important mechanisms for redistributing planetary heat across latitudes. Let's compare them:\n\n1. Ocean Thermohaline Circulation:\n   - This circulation is driven by the temp",
            "cal_tokens_used": 4096,
            "reload_s": null
          },
          "xfermat_3bit": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-1.5B-Instruct",
            "variant": "xfermat_3bit",
            "base_load_s": 3.064,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 8960,
            "n_gt_d_verified": true,
            "linear_bpw": 3.5005,
            "model_bpw": 4.2571,
            "base_weight_mb": 2944.4,
            "weight_mb": 783.89,
            "compression_ratio_vs_bf16": 3.756,
            "compress_s": 654.192,
            "compress_peak_mem_mb": 5615.47,
            "peak_mem_mb": 950.26,
            "full_wt2_ppl": 11.4786,
            "full_wt2_test_tokens": 65504,
            "heldout_ppl": 92.6028,
            "heldout_kl": 0.48684,
            "prompt_logit_cos_pct": 92.52,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.64,
                "stderr": 0.048,
                "correct": 64,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.36,
                "stderr": 0.048,
                "correct": 36,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.78,
                "stderr": 0.0414,
                "correct": 78,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.66,
                "stderr": 0.0474,
                "correct": 66,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 220.47,
              "iqr": 16.19,
              "min": 202.5,
              "max": 249.7,
              "n_trials": 5,
              "samples": [
                249.7,
                207.59,
                223.78,
                202.5,
                220.47
              ]
            },
            "decode_tps": {
              "median": 54.02,
              "iqr": 4.44,
              "min": 50.44,
              "max": 55.58,
              "n_trials": 5,
              "samples": [
                54.02,
                54.94,
                50.5,
                55.58,
                50.44
              ]
            },
            "eff_bw_gbs": 44.4,
            "sample_output": "Ocean thermohaline circulation and atmospheric jet streams are two different processes that redistribute planetary heat across latitudes. \n\nOcean thermohaline circulation is a process that redistributes heat from the equatorial regions to t",
            "cal_tokens_used": 16384,
            "safetensors_mb": 783.97,
            "reload_s": {
              "median": 0.868,
              "iqr": 0.1544,
              "min": 0.7286,
              "max": 0.9677,
              "n_trials": 5,
              "samples": [
                0.7286,
                0.7382,
                0.9677,
                0.868,
                0.8927
              ]
            },
            "reload_peak_mem_mb": 1575.06,
            "reload_logit_cos_pct": 92.52
          },
          "xfermat_mixed_2_3bit": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-1.5B-Instruct",
            "variant": "xfermat_mixed_2_3bit",
            "base_load_s": 2.258,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 8960,
            "n_gt_d_verified": true,
            "linear_bpw": 2.6503,
            "model_bpw": 3.5355,
            "base_weight_mb": 2944.4,
            "weight_mb": 651.09,
            "compression_ratio_vs_bf16": 4.522,
            "compress_s": 430.292,
            "compress_peak_mem_mb": 5615.47,
            "peak_mem_mb": 817.47,
            "full_wt2_ppl": 20.267,
            "full_wt2_test_tokens": 65504,
            "heldout_ppl": 726.0383,
            "heldout_kl": 2.5004,
            "prompt_logit_cos_pct": 74.857,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.46,
                "stderr": 0.0498,
                "correct": 46,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.27,
                "stderr": 0.0444,
                "correct": 27,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.67,
                "stderr": 0.047,
                "correct": 67,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.49,
                "stderr": 0.05,
                "correct": 49,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 217.23,
              "iqr": 26.92,
              "min": 200.47,
              "max": 235.62,
              "n_trials": 5,
              "samples": [
                230.73,
                235.62,
                203.81,
                217.23,
                200.47
              ]
            },
            "decode_tps": {
              "median": 58.3,
              "iqr": 4.93,
              "min": 52.76,
              "max": 61.35,
              "n_trials": 5,
              "samples": [
                61.35,
                60.47,
                55.55,
                58.3,
                52.76
              ]
            },
            "eff_bw_gbs": 39.8,
            "sample_output": "To understand how ocean thermal and atmospheric thermal systems work together to redistribute planetary heat across latitudes, we need to understand the specific details of each system. The Qwen, created by Alibaba Cloud, is designed to pro",
            "cal_tokens_used": 16384,
            "safetensors_mb": 651.17,
            "reload_s": {
              "median": 1.0107,
              "iqr": 0.415,
              "min": 0.7858,
              "max": 1.5031,
              "n_trials": 5,
              "samples": [
                1.5031,
                1.2332,
                1.0107,
                0.8182,
                0.7858
              ]
            },
            "reload_peak_mem_mb": 1309.47,
            "reload_logit_cos_pct": 74.857
          },
          "xfermat_vptq_2bit": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-1.5B-Instruct",
            "variant": "xfermat_vptq_2bit",
            "base_load_s": 3.232,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 8960,
            "n_gt_d_verified": true,
            "linear_bpw": 2.2561,
            "model_bpw": 3.2009,
            "base_weight_mb": 2944.4,
            "weight_mb": 589.04,
            "compression_ratio_vs_bf16": 4.999,
            "compress_s": 1717.819,
            "compress_peak_mem_mb": 5615.47,
            "peak_mem_mb": 836.41,
            "full_wt2_ppl": 16.6298,
            "full_wt2_test_tokens": 65504,
            "heldout_ppl": 369.9965,
            "heldout_kl": 1.77902,
            "prompt_logit_cos_pct": 72.664,
            "downstream": {
              "arc_easy": {
                "acc_norm": 0.56,
                "stderr": 0.0496,
                "correct": 56,
                "n": 100
              },
              "arc_challenge": {
                "acc_norm": 0.3,
                "stderr": 0.0458,
                "correct": 30,
                "n": 100
              },
              "piqa": {
                "acc_norm": 0.65,
                "stderr": 0.0477,
                "correct": 65,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.53,
                "stderr": 0.0499,
                "correct": 53,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 141.45,
              "iqr": 33.01,
              "min": 118.89,
              "max": 169.47,
              "n_trials": 5,
              "samples": [
                169.47,
                156.8,
                123.79,
                118.89,
                141.45
              ]
            },
            "decode_tps": {
              "median": 34.35,
              "iqr": 3.86,
              "min": 29.73,
              "max": 41.99,
              "n_trials": 5,
              "samples": [
                41.99,
                33.01,
                29.73,
                34.35,
                36.87
              ]
            },
            "eff_bw_gbs": 21.22,
            "sample_output": "As a marine ecosystem, the ocean is a complex ecosystem that is influenced by the oceanic environment. The ocean is a complex ecosystem that is influenced by the oceanic environment. The ocean is a complex ecosystem that is influenced by th",
            "pv_tune_stats": {
              "steps": 8,
              "blocks_tuned": 28,
              "mean_init_mse": 4.200289,
              "mean_final_mse": 3.993469,
              "total_codes_updated": 0
            },
            "cal_tokens_used": 16384,
            "safetensors_mb": 589.12,
            "reload_s": {
              "median": 1.8757,
              "iqr": 0.3073,
              "min": 1.0755,
              "max": 2.5009,
              "n_trials": 5,
              "samples": [
                1.0755,
                1.8757,
                1.9651,
                1.6577,
                2.5009
              ]
            },
            "reload_peak_mem_mb": 1182.07,
            "reload_logit_cos_pct": 72.664
          }
        }
      },
      "Qwen/Qwen2.5-3B-Instruct": {
        "variants": {
          "bf16": {
            "status": "error_or_oom",
            "returncode": 1,
            "elapsed_s": 187.01,
            "note": "Qwen2.5-3B BF16 (~6.18 GB) exceeded 5.33 GB working set / timed out or hit jetsam",
            "weight_mb": 6180.0
          },
          "mlx_native_3bit": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-3B-Instruct",
            "variant": "mlx_native_3bit",
            "base_load_s": 8.125,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 11008,
            "n_gt_d_verified": true,
            "linear_bpw": 3.5004,
            "model_bpw": 4.0051,
            "base_weight_mb": 5885.96,
            "weight_mb": 1473.38,
            "compression_ratio_vs_bf16": 3.995,
            "compress_s": 29.242,
            "compress_peak_mem_mb": 6120.78,
            "peak_mem_mb": 1663.54,
            "full_wt2_ppl": 180.8419,
            "full_wt2_test_tokens": 65504,
            "heldout_ppl": 3094.2193,
            "heldout_kl": 4.43019,
            "prompt_logit_cos_pct": 8.505,
            "downstream": {
              "arc_challenge": {
                "acc_norm": 0.24,
                "stderr": 0.0427,
                "correct": 24,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.31,
                "stderr": 0.0462,
                "correct": 31,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 84.75,
              "iqr": 3.46,
              "min": 79.3,
              "max": 90.64,
              "n_trials": 5,
              "samples": [
                90.64,
                84.75,
                79.3,
                81.59,
                85.05
              ]
            },
            "decode_tps": {
              "median": 24.54,
              "iqr": 1.21,
              "min": 21.97,
              "max": 27.79,
              "n_trials": 5,
              "samples": [
                24.31,
                21.97,
                24.54,
                25.52,
                27.79
              ]
            },
            "eff_bw_gbs": 37.91,
            "sample_output": "#####YLONYLONASHDERCYRUNEYBBYASHCYRDDCYLLASHDDYASHDYBBSLLLL CYRDDYLLBBSSLL CYRDDYLLBBSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS",
            "cal_tokens_used": 0,
            "reload_s": null
          },
          "xfermat_4bit": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-3B-Instruct",
            "variant": "xfermat_4bit",
            "base_load_s": 7.846,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 11008,
            "n_gt_d_verified": true,
            "linear_bpw": 4.5004,
            "model_bpw": 4.9043,
            "base_weight_mb": 5885.96,
            "weight_mb": 1804.14,
            "compression_ratio_vs_bf16": 3.262,
            "compress_s": 1645.083,
            "compress_peak_mem_mb": 8341.78,
            "peak_mem_mb": 1994.3,
            "full_wt2_ppl": 9.4256,
            "full_wt2_test_tokens": 65504,
            "heldout_ppl": 48.4276,
            "heldout_kl": 0.11134,
            "prompt_logit_cos_pct": 98.831,
            "downstream": {
              "arc_challenge": {
                "acc_norm": 0.45,
                "stderr": 0.0497,
                "correct": 45,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.76,
                "stderr": 0.0427,
                "correct": 76,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 90.47,
              "iqr": 9.89,
              "min": 78.34,
              "max": 94.9,
              "n_trials": 5,
              "samples": [
                78.34,
                81.29,
                91.18,
                94.9,
                90.47
              ]
            },
            "decode_tps": {
              "median": 27.83,
              "iqr": 3.14,
              "min": 24.73,
              "max": 30.57,
              "n_trials": 5,
              "samples": [
                24.73,
                27.83,
                30.02,
                30.57,
                26.88
              ]
            },
            "eff_bw_gbs": 52.65,
            "sample_output": "Ocean thermohaline circulation (THC) and atmospheric jet streams are both significant mechanisms for redistributing heat across the Earth's surface, but they operate in different environments and have distinct characteristics.\n\n### Ocean Th",
            "cal_tokens_used": 16384,
            "safetensors_mb": 1804.24,
            "reload_s": {
              "median": 1.1804,
              "iqr": 0.123,
              "min": 1.1151,
              "max": 1.2593,
              "n_trials": 5,
              "samples": [
                1.2558,
                1.1328,
                1.1804,
                1.1151,
                1.2593
              ]
            },
            "reload_peak_mem_mb": 3608.56,
            "reload_logit_cos_pct": 98.831
          },
          "xfermat_3bit": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-3B-Instruct",
            "variant": "xfermat_3bit",
            "base_load_s": 7.19,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 11008,
            "n_gt_d_verified": true,
            "linear_bpw": 3.5004,
            "model_bpw": 4.0052,
            "base_weight_mb": 5885.96,
            "weight_mb": 1474.15,
            "compression_ratio_vs_bf16": 3.993,
            "compress_s": 1315.104,
            "compress_peak_mem_mb": 8341.78,
            "peak_mem_mb": 1679.99,
            "full_wt2_ppl": 10.4184,
            "full_wt2_test_tokens": 65504,
            "heldout_ppl": 59.3345,
            "heldout_kl": 0.4336,
            "prompt_logit_cos_pct": 96.187,
            "downstream": {
              "arc_challenge": {
                "acc_norm": 0.4,
                "stderr": 0.049,
                "correct": 40,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.73,
                "stderr": 0.0444,
                "correct": 73,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 106.13,
              "iqr": 8.54,
              "min": 92.02,
              "max": 113.72,
              "n_trials": 5,
              "samples": [
                113.72,
                108.9,
                100.36,
                106.13,
                92.02
              ]
            },
            "decode_tps": {
              "median": 29.1,
              "iqr": 2.16,
              "min": 27.18,
              "max": 31.44,
              "n_trials": 5,
              "samples": [
                31.44,
                30.06,
                29.1,
                27.9,
                27.18
              ]
            },
            "eff_bw_gbs": 44.98,
            "sample_output": "Ocean thermohaline circulation and atmospheric jet streams are both important mechanisms that redistribute heat across latitudes on Earth, but they operate in different ways and have distinct characteristics.\n\n### Ocean Thermohaline Circula",
            "cal_tokens_used": 16384,
            "safetensors_mb": 1474.25,
            "reload_s": {
              "median": 1.0966,
              "iqr": 0.0343,
              "min": 1.0699,
              "max": 1.1328,
              "n_trials": 5,
              "samples": [
                1.0699,
                1.1068,
                1.0724,
                1.0966,
                1.1328
              ]
            },
            "reload_peak_mem_mb": 2949.88,
            "reload_logit_cos_pct": 96.187
          },
          "xfermat_mixed_2_3bit": {
            "status": "ok",
            "model_id": "Qwen/Qwen2.5-3B-Instruct",
            "variant": "xfermat_mixed_2_3bit",
            "base_load_s": 8.177,
            "calib_tokens_config": 16384,
            "max_linear_in_features": 11008,
            "n_gt_d_verified": true,
            "linear_bpw": 2.6503,
            "model_bpw": 3.2408,
            "base_weight_mb": 5885.96,
            "weight_mb": 1192.96,
            "compression_ratio_vs_bf16": 4.934,
            "compress_s": 1777.542,
            "compress_peak_mem_mb": 8341.78,
            "peak_mem_mb": 1398.83,
            "full_wt2_ppl": 16.007,
            "full_wt2_test_tokens": 65504,
            "heldout_ppl": 313.4762,
            "heldout_kl": 1.95462,
            "prompt_logit_cos_pct": 57.724,
            "downstream": {
              "arc_challenge": {
                "acc_norm": 0.32,
                "stderr": 0.0466,
                "correct": 32,
                "n": 100
              },
              "hellaswag": {
                "acc_norm": 0.65,
                "stderr": 0.0477,
                "correct": 65,
                "n": 100
              }
            },
            "prompt_tps": {
              "median": 198.51,
              "iqr": 4.28,
              "min": 198.3,
              "max": 202.91,
              "n_trials": 5,
              "samples": [
                198.38,
                202.66,
                202.91,
                198.51,
                198.3
              ]
            },
            "decode_tps": {
              "median": 56.94,
              "iqr": 0.34,
              "min": 56.8,
              "max": 57.29,
              "n_trials": 5,
              "samples": [
                57.19,
                56.94,
                57.29,
                56.8,
                56.86
              ]
            },
            "eff_bw_gbs": 71.23,
            "sample_output": "To compare the ocean thermohaline circulation and atmospheric jet streams, we can consider the latitudinal distribution of heat across the planet's surface. Both systems are designed to distribute heat across latitudes, but the extent of th",
            "cal_tokens_used": 16384,
            "safetensors_mb": 1193.06,
            "reload_s": {
              "median": 0.9724,
              "iqr": 0.0521,
              "min": 0.9459,
              "max": 1.0148,
              "n_trials": 5,
              "samples": [
                0.9459,
                0.9724,
                0.9578,
                1.0099,
                1.0148
              ]
            },
            "reload_peak_mem_mb": 2387.54,
            "reload_logit_cos_pct": 57.724
          }
        }
      }
    }
  },
  "section2_kivi_long_context": {
    "live_llm_qwen_1_5b": {
      "variants": {
        "fp16_kv": {
          "variant": "fp16_kv",
          "weight_model": "Qwen/Qwen2.5-1.5B-Instruct (hadamard_4bit)",
          "ctx_4096": {
            "wikitext2": {
              "n_seqs": 2,
              "tokens_evaluated": 8190,
              "nll": 2.35919,
              "ppl": 10.5824,
              "tail_nll": 2.30577,
              "tail_ppl": 10.0319,
              "kv_mb": 112.0,
              "effective_bpw": 16.0,
              "peak_mem_mb": 1667.63
            },
            "passkey_passed": 5,
            "passkey_total": 5,
            "passkey_acc": 1.0,
            "kv_mb": 112.0,
            "effective_bpw": 16.0,
            "peak_mem_mb": 1724.36,
            "decode_tps": {
              "median": 51.94,
              "iqr": 1.63,
              "min": 51.23,
              "max": 56.15,
              "n_trials": 5,
              "samples": [
                56.15,
                53.31,
                51.94,
                51.23,
                51.68
              ]
            },
            "decode_kv_mb": 126.0,
            "decode_effective_bpw": 16.696,
            "decode_peak_mem_mb": 1149.12
          },
          "ctx_8192": {
            "wikitext2": {
              "n_seqs": 1,
              "tokens_evaluated": 8191,
              "nll": 2.29527,
              "ppl": 9.9271,
              "tail_nll": 2.29511,
              "tail_ppl": 9.9255,
              "kv_mb": 224.0,
              "effective_bpw": 16.0,
              "peak_mem_mb": 1762.38
            },
            "passkey_passed": 5,
            "passkey_total": 5,
            "passkey_acc": 1.0,
            "kv_mb": 224.0,
            "effective_bpw": 16.0,
            "peak_mem_mb": 1833.02,
            "decode_tps": {
              "median": 43.55,
              "iqr": 1.74,
              "min": 43.03,
              "max": 45.3,
              "n_trials": 5,
              "samples": [
                45.3,
                45.1,
                43.36,
                43.55,
                43.03
              ]
            },
            "decode_kv_mb": 238.0,
            "decode_effective_bpw": 16.361,
            "decode_peak_mem_mb": 1329.1
          },
          "ctx_16384": {
            "passkey_passed": 5,
            "passkey_total": 5,
            "passkey_acc": 1.0,
            "kv_mb": 448.0,
            "effective_bpw": 16.0,
            "peak_mem_mb": 2050.74
          }
        },
        "xfermat_kivi_4bit": {
          "variant": "xfermat_kivi_4bit",
          "weight_model": "Qwen/Qwen2.5-1.5B-Instruct (hadamard_4bit)",
          "ctx_4096": {
            "wikitext2": {
              "n_seqs": 2,
              "tokens_evaluated": 8190,
              "nll": 2.6408,
              "ppl": 14.0244,
              "tail_nll": 2.62752,
              "tail_ppl": 13.8394,
              "kv_mb": 31.5,
              "effective_bpw": 4.5,
              "peak_mem_mb": 1607.28
            },
            "passkey_passed": 2,
            "passkey_total": 5,
            "passkey_acc": 0.4,
            "kv_mb": 31.5,
            "effective_bpw": 4.5,
            "peak_mem_mb": 1561.24,
            "decode_tps": {
              "median": 48.42,
              "iqr": 4.0,
              "min": 46.34,
              "max": 52.36,
              "n_trials": 5,
              "samples": [
                52.36,
                50.38,
                48.42,
                46.34,
                46.38
              ]
            },
            "decode_kv_mb": 33.96,
            "decode_effective_bpw": 4.5,
            "decode_peak_mem_mb": 996.02
          },
          "ctx_8192": {
            "wikitext2": {
              "n_seqs": 1,
              "tokens_evaluated": 8191,
              "nll": 2.62946,
              "ppl": 13.8662,
              "tail_nll": 2.65154,
              "tail_ppl": 14.1758,
              "kv_mb": 63.0,
              "effective_bpw": 4.5,
              "peak_mem_mb": 1607.28
            },
            "passkey_passed": 4,
            "passkey_total": 5,
            "passkey_acc": 0.8,
            "kv_mb": 63.0,
            "effective_bpw": 4.5,
            "peak_mem_mb": 1720.56,
            "decode_tps": {
              "median": 42.08,
              "iqr": 0.75,
              "min": 41.16,
              "max": 44.22,
              "n_trials": 5,
              "samples": [
                44.22,
                42.76,
                41.16,
                42.01,
                42.08
              ]
            },
            "decode_kv_mb": 65.46,
            "decode_effective_bpw": 4.5,
            "decode_peak_mem_mb": 1038.01
          },
          "ctx_16384": {
            "passkey_passed": 1,
            "passkey_total": 5,
            "passkey_acc": 0.2,
            "kv_mb": 126.0,
            "effective_bpw": 4.5,
            "peak_mem_mb": 1885.53
          }
        },
        "xfermat_kivi_mixed": {
          "variant": "xfermat_kivi_mixed",
          "weight_model": "Qwen/Qwen2.5-1.5B-Instruct (hadamard_4bit)",
          "ctx_4096": {
            "wikitext2": {
              "n_seqs": 2,
              "tokens_evaluated": 8190,
              "nll": 2.41089,
              "ppl": 11.1439,
              "tail_nll": 2.36484,
              "tail_ppl": 10.6423,
              "kv_mb": 22.15,
              "effective_bpw": 3.164,
              "peak_mem_mb": 1607.3
            },
            "passkey_passed": 5,
            "passkey_total": 5,
            "passkey_acc": 1.0,
            "kv_mb": 22.15,
            "effective_bpw": 3.164,
            "peak_mem_mb": 1561.25,
            "decode_tps": {
              "median": 42.9,
              "iqr": 1.0,
              "min": 42.39,
              "max": 44.74,
              "n_trials": 5,
              "samples": [
                44.74,
                43.55,
                42.9,
                42.39,
                42.55
              ]
            },
            "decode_kv_mb": 23.88,
            "decode_effective_bpw": 3.164,
            "decode_peak_mem_mb": 977.0
          },
          "ctx_8192": {
            "wikitext2": {
              "n_seqs": 1,
              "tokens_evaluated": 8191,
              "nll": 2.35186,
              "ppl": 10.505,
              "tail_nll": 2.35546,
              "tail_ppl": 10.543,
              "kv_mb": 44.3,
              "effective_bpw": 3.164,
              "peak_mem_mb": 1607.3
            },
            "passkey_passed": 5,
            "passkey_total": 5,
            "passkey_acc": 1.0,
            "kv_mb": 44.3,
            "effective_bpw": 3.164,
            "peak_mem_mb": 1696.85,
            "decode_tps": {
              "median": 43.27,
              "iqr": 0.96,
              "min": 41.57,
              "max": 43.49,
              "n_trials": 5,
              "samples": [
                43.35,
                43.27,
                43.49,
                42.39,
                41.57
              ]
            },
            "decode_kv_mb": 46.03,
            "decode_effective_bpw": 3.164,
            "decode_peak_mem_mb": 999.12
          },
          "ctx_16384": {
            "passkey_passed": 5,
            "passkey_total": 5,
            "passkey_acc": 1.0,
            "kv_mb": 88.59,
            "effective_bpw": 3.164,
            "peak_mem_mb": 1904.01
          }
        },
        "xfermat_kivi_pure2bit": {
          "variant": "xfermat_kivi_pure2bit",
          "weight_model": "Qwen/Qwen2.5-1.5B-Instruct (hadamard_4bit)",
          "ctx_4096": {
            "wikitext2": {
              "n_seqs": 2,
              "tokens_evaluated": 8190,
              "nll": 4.16426,
              "ppl": 64.3452,
              "tail_nll": 4.3682,
              "tail_ppl": 78.9015,
              "kv_mb": 17.5,
              "effective_bpw": 2.5,
              "peak_mem_mb": 1607.3
            },
            "passkey_passed": 0,
            "passkey_total": 5,
            "passkey_acc": 0.0,
            "kv_mb": 17.5,
            "effective_bpw": 2.5,
            "peak_mem_mb": 1561.25,
            "decode_tps": {
              "median": 52.95,
              "iqr": 0.69,
              "min": 52.75,
              "max": 53.7,
              "n_trials": 5,
              "samples": [
                53.7,
                52.95,
                52.75,
                53.63,
                52.95
              ]
            },
            "decode_kv_mb": 18.87,
            "decode_effective_bpw": 2.5,
            "decode_peak_mem_mb": 972.83
          },
          "ctx_8192": {
            "wikitext2": {
              "n_seqs": 1,
              "tokens_evaluated": 8191,
              "nll": 3.98237,
              "ppl": 53.6439,
              "tail_nll": 4.09446,
              "tail_ppl": 60.0071,
              "kv_mb": 35.0,
              "effective_bpw": 2.5,
              "peak_mem_mb": 1607.3
            },
            "passkey_passed": 0,
            "passkey_total": 5,
            "passkey_acc": 0.0,
            "kv_mb": 35.0,
            "effective_bpw": 2.5,
            "peak_mem_mb": 1688.7,
            "decode_tps": {
              "median": 37.36,
              "iqr": 15.25,
              "min": 27.27,
              "max": 46.64,
              "n_trials": 5,
              "samples": [
                46.64,
                43.9,
                27.27,
                28.65,
                37.36
              ]
            },
            "decode_kv_mb": 36.37,
            "decode_effective_bpw": 2.5,
            "decode_peak_mem_mb": 988.59
          },
          "ctx_16384": {
            "passkey_passed": 0,
            "passkey_total": 5,
            "passkey_acc": 0.0,
            "kv_mb": 70.0,
            "effective_bpw": 2.5,
            "peak_mem_mb": 1858.73
          }
        },
        "per_token_2bit_baseline": {
          "variant": "per_token_2bit_baseline",
          "weight_model": "Qwen/Qwen2.5-1.5B-Instruct (hadamard_4bit)",
          "ctx_4096": {
            "wikitext2": {
              "n_seqs": 2,
              "tokens_evaluated": 8190,
              "nll": 10.6364,
              "ppl": 41622.4528,
              "tail_nll": 10.68862,
              "tail_ppl": 43853.814,
              "kv_mb": 17.5,
              "effective_bpw": 2.5,
              "peak_mem_mb": 1582.77
            },
            "passkey_passed": 0,
            "passkey_total": 5,
            "passkey_acc": 0.0,
            "kv_mb": 17.5,
            "effective_bpw": 2.5,
            "peak_mem_mb": 1666.1,
            "decode_tps": {
              "median": 46.72,
              "iqr": 2.01,
              "min": 45.47,
              "max": 48.65,
              "n_trials": 5,
              "samples": [
                45.95,
                48.65,
                45.47,
                47.96,
                46.72
              ]
            },
            "decode_kv_mb": 19.69,
            "decode_effective_bpw": 2.609,
            "decode_peak_mem_mb": 973.01
          },
          "ctx_8192": {
            "wikitext2": {
              "n_seqs": 1,
              "tokens_evaluated": 8191,
              "nll": 10.86219,
              "ppl": 52166.3486,
              "tail_nll": 10.89362,
              "tail_ppl": 53831.6633,
              "kv_mb": 35.0,
              "effective_bpw": 2.5,
              "peak_mem_mb": 1629.38
            },
            "passkey_passed": 0,
            "passkey_total": 5,
            "passkey_acc": 0.0,
            "kv_mb": 35.0,
            "effective_bpw": 2.5,
            "peak_mem_mb": 1697.95,
            "decode_tps": {
              "median": 45.14,
              "iqr": 0.49,
              "min": 41.29,
              "max": 45.59,
              "n_trials": 5,
              "samples": [
                41.29,
                45.59,
                45.33,
                45.14,
                44.84
              ]
            },
            "decode_kv_mb": 37.19,
            "decode_effective_bpw": 2.556,
            "decode_peak_mem_mb": 998.64
          },
          "ctx_16384": {
            "passkey_passed": 0,
            "passkey_total": 5,
            "passkey_acc": 0.0,
            "kv_mb": 70.0,
            "effective_bpw": 2.5,
            "peak_mem_mb": 1697.98
          }
        }
      }
    },
    "gqa_decode_microbench": {
      "G7_D64_L2048": {
        "G": 7,
        "H_q": 14,
        "H_kv": 2,
        "D": 64,
        "L": 2048,
        "batch_inner": 12,
        "fp16_apple_sdpa": {
          "ms": {
            "median": 0.0899,
            "iqr": 0.0033,
            "min": 0.0865,
            "max": 0.1405,
            "n_trials": 5,
            "samples": [
              0.0885,
              0.0865,
              0.1405,
              0.0899,
              0.0918
            ]
          },
          "peak_mem_mb": 1.02,
          "kv_mb": 1.0,
          "effective_bpw": 16.0
        },
        "fermat_kivi_4bit_gqa": {
          "ms": {
            "median": 0.1789,
            "iqr": 0.0676,
            "min": 0.1214,
            "max": 0.2222,
            "n_trials": 5,
            "samples": [
              0.1951,
              0.2222,
              0.1789,
              0.1275,
              0.1214
            ]
          },
          "peak_mem_mb": 4.19,
          "kv_mb": 0.281,
          "effective_bpw": 4.5,
          "speedup_vs_sdpa_x": 0.503
        },
        "fermat_kivi_mixed_3_16bpw_gqa": {
          "ms": {
            "median": 0.1379,
            "iqr": 0.0031,
            "min": 0.1332,
            "max": 0.1394,
            "n_trials": 5,
            "samples": [
              0.1382,
              0.1394,
              0.1351,
              0.1332,
              0.1379
            ]
          },
          "peak_mem_mb": 4.04,
          "kv_mb": 0.198,
          "effective_bpw": 3.1641,
          "speedup_vs_sdpa_x": 0.652
        },
        "fermat_kivi_pure2bit_2_50bpw_gqa": {
          "ms": {
            "median": 0.1187,
            "iqr": 0.0056,
            "min": 0.115,
            "max": 0.1223,
            "n_trials": 5,
            "samples": [
              0.115,
              0.1223,
              0.1216,
              0.1161,
              0.1187
            ]
          },
          "peak_mem_mb": 3.43,
          "kv_mb": 0.156,
          "effective_bpw": 2.5,
          "speedup_vs_sdpa_x": 0.757
        }
      },
      "G7_D64_L4096": {
        "G": 7,
        "H_q": 14,
        "H_kv": 2,
        "D": 64,
        "L": 4096,
        "batch_inner": 12,
        "fp16_apple_sdpa": {
          "ms": {
            "median": 0.1973,
            "iqr": 0.0518,
            "min": 0.1898,
            "max": 0.2503,
            "n_trials": 5,
            "samples": [
              0.2503,
              0.1919,
              0.1898,
              0.2437,
              0.1973
            ]
          },
          "peak_mem_mb": 3.42,
          "kv_mb": 2.0,
          "effective_bpw": 16.0
        },
        "fermat_kivi_4bit_gqa": {
          "ms": {
            "median": 0.0843,
            "iqr": 0.0015,
            "min": 0.0837,
            "max": 0.0942,
            "n_trials": 5,
            "samples": [
              0.0855,
              0.084,
              0.0837,
              0.0942,
              0.0843
            ]
          },
          "peak_mem_mb": 6.97,
          "kv_mb": 0.562,
          "effective_bpw": 4.5,
          "speedup_vs_sdpa_x": 2.34
        },
        "fermat_kivi_mixed_3_16bpw_gqa": {
          "ms": {
            "median": 0.129,
            "iqr": 0.0048,
            "min": 0.1273,
            "max": 0.1485,
            "n_trials": 5,
            "samples": [
              0.129,
              0.1275,
              0.1485,
              0.1323,
              0.1273
            ]
          },
          "peak_mem_mb": 6.24,
          "kv_mb": 0.396,
          "effective_bpw": 3.1641,
          "speedup_vs_sdpa_x": 1.529
        },
        "fermat_kivi_pure2bit_2_50bpw_gqa": {
          "ms": {
            "median": 0.117,
            "iqr": 0.0024,
            "min": 0.114,
            "max": 0.1323,
            "n_trials": 5,
            "samples": [
              0.1147,
              0.1171,
              0.114,
              0.117,
              0.1323
            ]
          },
          "peak_mem_mb": 5.22,
          "kv_mb": 0.312,
          "effective_bpw": 2.5,
          "speedup_vs_sdpa_x": 1.686
        }
      },
      "G7_D64_L8192": {
        "G": 7,
        "H_q": 14,
        "H_kv": 2,
        "D": 64,
        "L": 8192,
        "batch_inner": 12,
        "fp16_apple_sdpa": {
          "ms": {
            "median": 0.2041,
            "iqr": 0.0734,
            "min": 0.1717,
            "max": 0.4179,
            "n_trials": 5,
            "samples": [
              0.4179,
              0.2456,
              0.2041,
              0.1717,
              0.1722
            ]
          },
          "peak_mem_mb": 5.42,
          "kv_mb": 4.0,
          "effective_bpw": 16.0
        },
        "fermat_kivi_4bit_gqa": {
          "ms": {
            "median": 0.1481,
            "iqr": 0.0062,
            "min": 0.1397,
            "max": 0.1632,
            "n_trials": 5,
            "samples": [
              0.153,
              0.1468,
              0.1632,
              0.1481,
              0.1397
            ]
          },
          "peak_mem_mb": 12.53,
          "kv_mb": 1.125,
          "effective_bpw": 4.5,
          "speedup_vs_sdpa_x": 1.378
        },
        "fermat_kivi_mixed_3_16bpw_gqa": {
          "ms": {
            "median": 0.1747,
            "iqr": 0.0035,
            "min": 0.174,
            "max": 0.2158,
            "n_trials": 5,
            "samples": [
              0.174,
              0.1743,
              0.2158,
              0.1779,
              0.1747
            ]
          },
          "peak_mem_mb": 11.08,
          "kv_mb": 0.791,
          "effective_bpw": 3.1641,
          "speedup_vs_sdpa_x": 1.168
        },
        "fermat_kivi_pure2bit_2_50bpw_gqa": {
          "ms": {
            "median": 0.1342,
            "iqr": 0.0046,
            "min": 0.133,
            "max": 0.1531,
            "n_trials": 5,
            "samples": [
              0.133,
              0.1331,
              0.1377,
              0.1342,
              0.1531
            ]
          },
          "peak_mem_mb": 9.03,
          "kv_mb": 0.625,
          "effective_bpw": 2.5,
          "speedup_vs_sdpa_x": 1.521
        }
      },
      "G7_D64_L16384": {
        "G": 7,
        "H_q": 14,
        "H_kv": 2,
        "D": 64,
        "L": 16384,
        "batch_inner": 12,
        "fp16_apple_sdpa": {
          "ms": {
            "median": 0.2421,
            "iqr": 0.0641,
            "min": 0.2135,
            "max": 0.3227,
            "n_trials": 5,
            "samples": [
              0.3227,
              0.279,
              0.2421,
              0.2149,
              0.2135
            ]
          },
          "peak_mem_mb": 9.42,
          "kv_mb": 8.0,
          "effective_bpw": 16.0
        },
        "fermat_kivi_4bit_gqa": {
          "ms": {
            "median": 0.1815,
            "iqr": 0.0028,
            "min": 0.1779,
            "max": 0.187,
            "n_trials": 5,
            "samples": [
              0.1779,
              0.187,
              0.1815,
              0.1842,
              0.1814
            ]
          },
          "peak_mem_mb": 23.66,
          "kv_mb": 2.25,
          "effective_bpw": 4.5,
          "speedup_vs_sdpa_x": 1.334
        },
        "fermat_kivi_mixed_3_16bpw_gqa": {
          "ms": {
            "median": 0.2543,
            "iqr": 0.043,
            "min": 0.2446,
            "max": 0.2962,
            "n_trials": 5,
            "samples": [
              0.2543,
              0.2891,
              0.2446,
              0.2962,
              0.2461
            ]
          },
          "peak_mem_mb": 20.75,
          "kv_mb": 1.582,
          "effective_bpw": 3.1641,
          "speedup_vs_sdpa_x": 0.952
        },
        "fermat_kivi_pure2bit_2_50bpw_gqa": {
          "ms": {
            "median": 0.1734,
            "iqr": 0.0013,
            "min": 0.1666,
            "max": 0.2028,
            "n_trials": 5,
            "samples": [
              0.1736,
              0.1723,
              0.1734,
              0.2028,
              0.1666
            ]
          },
          "peak_mem_mb": 16.7,
          "kv_mb": 1.25,
          "effective_bpw": 2.5,
          "speedup_vs_sdpa_x": 1.396
        }
      },
      "G6_D128_L2048": {
        "G": 6,
        "H_q": 12,
        "H_kv": 2,
        "D": 128,
        "L": 2048,
        "batch_inner": 12,
        "fp16_apple_sdpa": {
          "ms": {
            "median": 0.0589,
            "iqr": 0.0003,
            "min": 0.0512,
            "max": 0.0594,
            "n_trials": 5,
            "samples": [
              0.0594,
              0.0512,
              0.0588,
              0.0589,
              0.0591
            ]
          },
          "peak_mem_mb": 2.04,
          "kv_mb": 2.0,
          "effective_bpw": 16.0
        },
        "fermat_kivi_4bit_gqa": {
          "ms": {
            "median": 0.0857,
            "iqr": 0.0054,
            "min": 0.0803,
            "max": 0.1221,
            "n_trials": 5,
            "samples": [
              0.0857,
              0.0863,
              0.1221,
              0.081,
              0.0803
            ]
          },
          "peak_mem_mb": 11.32,
          "kv_mb": 0.562,
          "effective_bpw": 4.5,
          "speedup_vs_sdpa_x": 0.687
        },
        "fermat_kivi_mixed_3_16bpw_gqa": {
          "ms": {
            "median": 0.1429,
            "iqr": 0.0242,
            "min": 0.1229,
            "max": 0.1799,
            "n_trials": 5,
            "samples": [
              0.1429,
              0.1485,
              0.1799,
              0.1229,
              0.1243
            ]
          },
          "peak_mem_mb": 9.1,
          "kv_mb": 0.396,
          "effective_bpw": 3.1641,
          "speedup_vs_sdpa_x": 0.412
        },
        "fermat_kivi_pure2bit_2_50bpw_gqa": {
          "ms": {
            "median": 0.1557,
            "iqr": 0.0175,
            "min": 0.1369,
            "max": 0.2051,
            "n_trials": 5,
            "samples": [
              0.1369,
              0.1428,
              0.1603,
              0.2051,
              0.1557
            ]
          },
          "peak_mem_mb": 8.07,
          "kv_mb": 0.312,
          "effective_bpw": 2.5,
          "speedup_vs_sdpa_x": 0.378
        }
      },
      "G6_D128_L4096": {
        "G": 6,
        "H_q": 12,
        "H_kv": 2,
        "D": 128,
        "L": 4096,
        "batch_inner": 12,
        "fp16_apple_sdpa": {
          "ms": {
            "median": 0.0832,
            "iqr": 0.0015,
            "min": 0.0793,
            "max": 0.1205,
            "n_trials": 5,
            "samples": [
              0.0793,
              0.0832,
              0.1205,
              0.0847,
              0.0832
            ]
          },
          "peak_mem_mb": 6.36,
          "kv_mb": 4.0,
          "effective_bpw": 16.0
        },
        "fermat_kivi_4bit_gqa": {
          "ms": {
            "median": 0.1165,
            "iqr": 0.0054,
            "min": 0.1101,
            "max": 0.1199,
            "n_trials": 5,
            "samples": [
              0.1101,
              0.1199,
              0.1188,
              0.1165,
              0.1134
            ]
          },
          "peak_mem_mb": 20.26,
          "kv_mb": 1.125,
          "effective_bpw": 4.5,
          "speedup_vs_sdpa_x": 0.714
        },
        "fermat_kivi_mixed_3_16bpw_gqa": {
          "ms": {
            "median": 0.1889,
            "iqr": 0.0131,
            "min": 0.1739,
            "max": 0.2229,
            "n_trials": 5,
            "samples": [
              0.1911,
              0.1781,
              0.2229,
              0.1889,
              0.1739
            ]
          },
          "peak_mem_mb": 16.02,
          "kv_mb": 0.791,
          "effective_bpw": 3.1641,
          "speedup_vs_sdpa_x": 0.44
        },
        "fermat_kivi_pure2bit_2_50bpw_gqa": {
          "ms": {
            "median": 0.147,
            "iqr": 0.0049,
            "min": 0.1426,
            "max": 0.1539,
            "n_trials": 5,
            "samples": [
              0.147,
              0.1467,
              0.1426,
              0.1517,
              0.1539
            ]
          },
          "peak_mem_mb": 13.82,
          "kv_mb": 0.625,
          "effective_bpw": 2.5,
          "speedup_vs_sdpa_x": 0.566
        }
      },
      "G6_D128_L8192": {
        "G": 6,
        "H_q": 12,
        "H_kv": 2,
        "D": 128,
        "L": 8192,
        "batch_inner": 12,
        "fp16_apple_sdpa": {
          "ms": {
            "median": 0.1834,
            "iqr": 0.0176,
            "min": 0.1707,
            "max": 0.1961,
            "n_trials": 5,
            "samples": [
              0.1769,
              0.1707,
              0.1834,
              0.1946,
              0.1961
            ]
          },
          "peak_mem_mb": 10.36,
          "kv_mb": 8.0,
          "effective_bpw": 16.0
        },
        "fermat_kivi_4bit_gqa": {
          "ms": {
            "median": 0.2504,
            "iqr": 0.0387,
            "min": 0.2381,
            "max": 0.2914,
            "n_trials": 5,
            "samples": [
              0.2472,
              0.286,
              0.2504,
              0.2381,
              0.2914
            ]
          },
          "peak_mem_mb": 38.14,
          "kv_mb": 2.25,
          "effective_bpw": 4.5,
          "speedup_vs_sdpa_x": 0.732
        },
        "fermat_kivi_mixed_3_16bpw_gqa": {
          "ms": {
            "median": 0.2728,
            "iqr": 0.0137,
            "min": 0.2655,
            "max": 0.3252,
            "n_trials": 5,
            "samples": [
              0.28,
              0.3252,
              0.2662,
              0.2655,
              0.2728
            ]
          },
          "peak_mem_mb": 29.23,
          "kv_mb": 1.582,
          "effective_bpw": 3.1641,
          "speedup_vs_sdpa_x": 0.672
        },
        "fermat_kivi_pure2bit_2_50bpw_gqa": {
          "ms": {
            "median": 0.1827,
            "iqr": 0.0035,
            "min": 0.1797,
            "max": 0.1875,
            "n_trials": 5,
            "samples": [
              0.1875,
              0.1838,
              0.1827,
              0.1797,
              0.1803
            ]
          },
          "peak_mem_mb": 25.14,
          "kv_mb": 1.25,
          "effective_bpw": 2.5,
          "speedup_vs_sdpa_x": 1.004
        }
      },
      "G6_D128_L16384": {
        "G": 6,
        "H_q": 12,
        "H_kv": 2,
        "D": 128,
        "L": 16384,
        "batch_inner": 12,
        "fp16_apple_sdpa": {
          "ms": {
            "median": 0.2942,
            "iqr": 0.0297,
            "min": 0.2675,
            "max": 0.3627,
            "n_trials": 5,
            "samples": [
              0.2675,
              0.3218,
              0.2921,
              0.3627,
              0.2942
            ]
          },
          "peak_mem_mb": 18.36,
          "kv_mb": 16.0,
          "effective_bpw": 16.0
        },
        "fermat_kivi_4bit_gqa": {
          "ms": {
            "median": 0.3167,
            "iqr": 0.0344,
            "min": 0.2946,
            "max": 0.3407,
            "n_trials": 5,
            "samples": [
              0.3324,
              0.3407,
              0.2946,
              0.3167,
              0.298
            ]
          },
          "peak_mem_mb": 73.89,
          "kv_mb": 4.5,
          "effective_bpw": 4.5,
          "speedup_vs_sdpa_x": 0.929
        },
        "fermat_kivi_mixed_3_16bpw_gqa": {
          "ms": {
            "median": 0.4386,
            "iqr": 0.0646,
            "min": 0.4193,
            "max": 0.5124,
            "n_trials": 5,
            "samples": [
              0.5124,
              0.4193,
              0.4323,
              0.4969,
              0.4386
            ]
          },
          "peak_mem_mb": 56.06,
          "kv_mb": 3.164,
          "effective_bpw": 3.1641,
          "speedup_vs_sdpa_x": 0.671
        },
        "fermat_kivi_pure2bit_2_50bpw_gqa": {
          "ms": {
            "median": 0.2577,
            "iqr": 0.0039,
            "min": 0.2571,
            "max": 0.3009,
            "n_trials": 5,
            "samples": [
              0.3009,
              0.2576,
              0.2615,
              0.2577,
              0.2571
            ]
          },
          "peak_mem_mb": 47.92,
          "kv_mb": 2.5,
          "effective_bpw": 2.5,
          "speedup_vs_sdpa_x": 1.142
        }
      }
    }
  },
  "section3_pillars": {
    "pillar1_crt_fp64": {
      "dynamic_range_table": [
        {
          "p": 25,
          "batched_simd_ozaki2_rel_err": 0.0,
          "batched_simd_sliced_rel_err": 0.0,
          "batched_simd_cancel_ozaki2_rel_err": 0.0,
          "batched_simd_cancel_sliced_rel_err": 0.0,
          "gpu_150bit_ozaki2_rel_err": 0.0,
          "gpu_150bit_sliced_rel_err": 0.0,
          "gpu_150bit_cancel_ozaki2_rel_err": 0.0,
          "gpu_150bit_cancel_sliced_rel_err": 0.0
        },
        {
          "p": 28,
          "batched_simd_ozaki2_rel_err": 0.0,
          "batched_simd_sliced_rel_err": 0.0,
          "batched_simd_cancel_ozaki2_rel_err": 0.0,
          "batched_simd_cancel_sliced_rel_err": 0.0,
          "gpu_150bit_ozaki2_rel_err": 0.0,
          "gpu_150bit_sliced_rel_err": 0.0,
          "gpu_150bit_cancel_ozaki2_rel_err": 0.0,
          "gpu_150bit_cancel_sliced_rel_err": 0.0
        },
        {
          "p": 30,
          "batched_simd_ozaki2_rel_err": 0.0,
          "batched_simd_sliced_rel_err": 0.0,
          "batched_simd_cancel_ozaki2_rel_err": 0.0,
          "batched_simd_cancel_sliced_rel_err": 0.0,
          "gpu_150bit_ozaki2_rel_err": 0.0,
          "gpu_150bit_sliced_rel_err": 0.0,
          "gpu_150bit_cancel_ozaki2_rel_err": 0.0,
          "gpu_150bit_cancel_sliced_rel_err": 0.0
        },
        {
          "p": 40,
          "batched_simd_ozaki2_rel_err": 0.0,
          "batched_simd_sliced_rel_err": 0.0,
          "batched_simd_cancel_ozaki2_rel_err": 0.0,
          "batched_simd_cancel_sliced_rel_err": 0.0,
          "gpu_150bit_ozaki2_rel_err": 0.0,
          "gpu_150bit_sliced_rel_err": 0.0,
          "gpu_150bit_cancel_ozaki2_rel_err": 0.0,
          "gpu_150bit_cancel_sliced_rel_err": 0.0
        },
        {
          "p": 45,
          "batched_simd_ozaki2_rel_err": 0.0,
          "batched_simd_sliced_rel_err": 0.0,
          "batched_simd_cancel_ozaki2_rel_err": 0.0,
          "batched_simd_cancel_sliced_rel_err": 0.0,
          "gpu_150bit_ozaki2_rel_err": 0.0,
          "gpu_150bit_sliced_rel_err": 0.0,
          "gpu_150bit_cancel_ozaki2_rel_err": 0.0,
          "gpu_150bit_cancel_sliced_rel_err": 0.0
        }
      ],
      "matrix_benchmarks": {
        "iid_1024x1024": {
          "cpu_fp64_blas": {
            "ms": {
              "median": 7.542,
              "iqr": 0.779,
              "min": 7.003,
              "max": 8.212,
              "n_trials": 5,
              "samples": [
                7.542,
                8.212,
                7.898,
                7.003,
                7.12
              ]
            },
            "rel_frob_err": 0.0
          },
          "gpu_fp32_baseline": {
            "ms": {
              "median": 3.639,
              "iqr": 0.759,
              "min": 3.408,
              "max": 4.498,
              "n_trials": 5,
              "samples": [
                4.498,
                3.639,
                3.463,
                3.408,
                4.222
              ]
            },
            "rel_frob_err": 5.744259483172142e-07
          },
          "gpu_150bit_ozaki2": {
            "ms": {
              "median": 53.136,
              "iqr": 2.804,
              "min": 50.52,
              "max": 57.195,
              "n_trials": 5,
              "samples": [
                53.136,
                57.195,
                53.407,
                50.602,
                50.52
              ]
            },
            "rel_frob_err": 1.0693919278338221e-15
          },
          "gpu_150bit_ozaki_crt_sliced": {
            "ms": {
              "median": 322.951,
              "iqr": 6.765,
              "min": 316.387,
              "max": 339.657,
              "n_trials": 5,
              "samples": [
                323.235,
                339.657,
                322.951,
                316.469,
                316.387
              ]
            },
            "rel_frob_err": 1.0693439729947355e-15
          },
          "batched_simd_ozaki2": {
            "ms": {
              "median": 1049.551,
              "iqr": 23.489,
              "min": 1027.368,
              "max": 1117.941,
              "n_trials": 5,
              "samples": [
                1027.368,
                1046.472,
                1069.961,
                1049.551,
                1117.941
              ]
            },
            "rel_frob_err": 1.0693919278338221e-15
          },
          "batched_simd_ozaki_crt_sliced": {
            "ms": {
              "median": 317.219,
              "iqr": 1.561,
              "min": 316.228,
              "max": 320.474,
              "n_trials": 5,
              "samples": [
                318.062,
                320.474,
                316.502,
                316.228,
                317.219
              ]
            },
            "rel_frob_err": 1.0693439729947355e-15
          },
          "metal_int32_ozaki2": {
            "ms": {
              "median": 1242.485,
              "iqr": 125.723,
              "min": 1230.875,
              "max": 1424.751,
              "n_trials": 5,
              "samples": [
                1242.485,
                1424.751,
                1367.676,
                1241.954,
                1230.875
              ]
            },
            "rel_frob_err": 1.0693919278338221e-15
          }
        },
        "ill_cond_1e12_512x512": {
          "cpu_fp64_blas": {
            "ms": {
              "median": 0.763,
              "iqr": 0.091,
              "min": 0.752,
              "max": 1.114,
              "n_trials": 5,
              "samples": [
                0.752,
                1.114,
                0.85,
                0.763,
                0.759
              ]
            },
            "rel_frob_err": 0.0,
            "rel_frob_err_vs_50digit_exact": 2.917175965395183e-06
          },
          "gpu_fp32_baseline": {
            "ms": {
              "median": 0.943,
              "iqr": 0.08,
              "min": 0.872,
              "max": 1.29,
              "n_trials": 5,
              "samples": [
                1.29,
                0.906,
                0.872,
                0.987,
                0.943
              ]
            },
            "rel_frob_err": 4471.023548127205,
            "rel_frob_err_vs_50digit_exact": 1723.1996719369856
          },
          "gpu_150bit_ozaki2": {
            "ms": {
              "median": 11.185,
              "iqr": 0.297,
              "min": 10.981,
              "max": 11.78,
              "n_trials": 5,
              "samples": [
                11.185,
                11.78,
                10.981,
                10.986,
                11.282
              ]
            },
            "rel_frob_err": 8.031885959304717e-06,
            "rel_frob_err_vs_50digit_exact": 4.448566663791512e-08
          },
          "gpu_150bit_ozaki_crt_sliced": {
            "ms": {
              "median": 63.319,
              "iqr": 19.897,
              "min": 60.618,
              "max": 151.048,
              "n_trials": 5,
              "samples": [
                151.048,
                80.898,
                63.319,
                61.001,
                60.618
              ]
            },
            "rel_frob_err": 8.031271623352445e-06,
            "rel_frob_err_vs_50digit_exact": 0.0
          },
          "gpu_120bit_ozaki2": {
            "ms": {
              "median": 10.908,
              "iqr": 0.205,
              "min": 10.626,
              "max": 11.188,
              "n_trials": 5,
              "samples": [
                11.188,
                10.626,
                10.961,
                10.908,
                10.756
              ]
            },
            "rel_frob_err": 8.031885959304717e-06,
            "rel_frob_err_vs_50digit_exact": 4.448566663791512e-08
          },
          "gpu_120bit_ozaki_crt_sliced": {
            "ms": {
              "median": 60.802,
              "iqr": 0.106,
              "min": 60.603,
              "max": 60.951,
              "n_trials": 5,
              "samples": [
                60.738,
                60.603,
                60.951,
                60.845,
                60.802
              ]
            },
            "rel_frob_err": 8.031271623352445e-06,
            "rel_frob_err_vs_50digit_exact": 0.0
          },
          "batched_simd_ozaki2": {
            "ms": {
              "median": 249.152,
              "iqr": 2.485,
              "min": 247.903,
              "max": 250.683,
              "n_trials": 5,
              "samples": [
                250.558,
                249.152,
                248.073,
                250.683,
                247.903
              ]
            },
            "rel_frob_err": 8.031885959304717e-06,
            "rel_frob_err_vs_50digit_exact": 4.448566663791512e-08
          },
          "batched_simd_ozaki_crt_sliced": {
            "ms": {
              "median": 60.869,
              "iqr": 5.043,
              "min": 60.041,
              "max": 68.873,
              "n_trials": 5,
              "samples": [
                68.873,
                65.831,
                60.788,
                60.869,
                60.041
              ]
            },
            "rel_frob_err": 8.031271623352445e-06,
            "rel_frob_err_vs_50digit_exact": 0.0
          },
          "metal_int32_ozaki2": {
            "ms": {
              "median": 282.779,
              "iqr": 3.224,
              "min": 278.365,
              "max": 283.878,
              "n_trials": 5,
              "samples": [
                279.683,
                282.779,
                282.907,
                283.878,
                278.365
              ]
            },
            "rel_frob_err": 8.031885959304717e-06,
            "rel_frob_err_vs_50digit_exact": 4.448566663791512e-08
          },
          "metal_int32_ozaki_crt_sliced": {
            "ms": {
              "median": 500.491,
              "iqr": 4.148,
              "min": 493.23,
              "max": 503.379,
              "n_trials": 5,
              "samples": [
                493.23,
                501.395,
                500.491,
                503.379,
                497.247
              ]
            },
            "rel_frob_err": 8.031271623352445e-06,
            "rel_frob_err_vs_50digit_exact": 0.0
          }
        }
      }
    },
    "pillar3_microkernels": {
      "fwht": {
        "512x4096": {
          "shuffle_fwht_ms": {
            "median": 0.0936,
            "iqr": 0.0042,
            "min": 0.0892,
            "max": 0.0983,
            "n_trials": 5,
            "samples": [
              0.0983,
              0.0947,
              0.0892,
              0.0905,
              0.0936
            ]
          },
          "sram_8barrier_ms": {
            "median": 0.1611,
            "iqr": 0.0064,
            "min": 0.1557,
            "max": 0.1631,
            "n_trials": 5,
            "samples": [
              0.1611,
              0.1559,
              0.1631,
              0.1623,
              0.1557
            ]
          },
          "dense_h256_fallback_ms": {
            "median": 0.4251,
            "iqr": 0.0091,
            "min": 0.4197,
            "max": 0.4394,
            "n_trials": 5,
            "samples": [
              0.4309,
              0.4251,
              0.4218,
              0.4394,
              0.4197
            ]
          },
          "speedup_vs_sram_x": 1.72,
          "speedup_vs_dense_x": 4.54,
          "peak_mem_mb": {
            "shuffle": 68.15,
            "sram": 68.15,
            "dense": 132.15
          }
        },
        "1024x4096": {
          "shuffle_fwht_ms": {
            "median": 0.1922,
            "iqr": 0.0074,
            "min": 0.1887,
            "max": 0.2019,
            "n_trials": 5,
            "samples": [
              0.1887,
              0.1889,
              0.2019,
              0.1963,
              0.1922
            ]
          },
          "sram_8barrier_ms": {
            "median": 0.3254,
            "iqr": 0.0065,
            "min": 0.3174,
            "max": 0.3381,
            "n_trials": 5,
            "samples": [
              0.3381,
              0.3174,
              0.3303,
              0.3237,
              0.3254
            ]
          },
          "dense_h256_fallback_ms": {
            "median": 0.8836,
            "iqr": 0.0094,
            "min": 0.8658,
            "max": 0.8957,
            "n_trials": 5,
            "samples": [
              0.8885,
              0.8792,
              0.8836,
              0.8658,
              0.8957
            ]
          },
          "speedup_vs_sram_x": 1.69,
          "speedup_vs_dense_x": 4.6,
          "peak_mem_mb": {
            "shuffle": 136.15,
            "sram": 136.15,
            "dense": 264.15
          }
        }
      },
      "fused_swiglu_rht": {
        "shape": [
          256,
          8960
        ],
        "block_size": 256,
        "fused_swiglu_rht_ms": {
          "median": 0.1812,
          "iqr": 0.0103,
          "min": 0.1782,
          "max": 0.1939,
          "n_trials": 5,
          "samples": [
            0.1782,
            0.1809,
            0.1812,
            0.1939,
            0.1912
          ]
        },
        "naive_silu_mul_plus_rht_ms": {
          "median": 0.3882,
          "iqr": 0.0147,
          "min": 0.3805,
          "max": 0.4189,
          "n_trials": 5,
          "samples": [
            0.3805,
            0.3809,
            0.4189,
            0.3882,
            0.3956
          ]
        },
        "speedup_x": 2.14,
        "peak_mem_mb": {
          "fused": 86.95,
          "naive_2op": 156.95
        }
      },
      "vq4_gemv_4096x4096": {
        "M=1": {
          "ms": {
            "median": 0.1044,
            "iqr": 0.0006,
            "min": 0.0984,
            "max": 0.1322,
            "n_trials": 5,
            "samples": [
              0.1041,
              0.1322,
              0.1044,
              0.1047,
              0.0984
            ]
          },
          "achieved_gbs": 45.36,
          "dense_fp16_ms": {
            "median": 0.3976,
            "iqr": 0.0245,
            "min": 0.3882,
            "max": 0.4217,
            "n_trials": 5,
            "samples": [
              0.3893,
              0.4138,
              0.3976,
              0.3882,
              0.4217
            ]
          },
          "speedup_vs_fp16_x": 3.81,
          "peak_mem_mb": 53.58
        },
        "M=4": {
          "ms": {
            "median": 0.1716,
            "iqr": 0.0099,
            "min": 0.1638,
            "max": 0.1826,
            "n_trials": 5,
            "samples": [
              0.1638,
              0.1778,
              0.1826,
              0.1716,
              0.168
            ]
          },
          "achieved_gbs": 27.89,
          "dense_fp16_ms": {
            "median": 0.4481,
            "iqr": 0.0159,
            "min": 0.4444,
            "max": 0.4784,
            "n_trials": 5,
            "samples": [
              0.4444,
              0.4784,
              0.4481,
              0.462,
              0.4461
            ]
          },
          "speedup_vs_fp16_x": 2.61,
          "peak_mem_mb": 53.98
        },
        "M=8": {
          "ms": {
            "median": 0.4162,
            "iqr": 0.013,
            "min": 0.399,
            "max": 0.433,
            "n_trials": 5,
            "samples": [
              0.4251,
              0.4162,
              0.399,
              0.4121,
              0.433
            ]
          },
          "achieved_gbs": 11.65,
          "dense_fp16_ms": {
            "median": 0.4582,
            "iqr": 0.0244,
            "min": 0.4539,
            "max": 0.4848,
            "n_trials": 5,
            "samples": [
              0.4539,
              0.4848,
              0.4567,
              0.481,
              0.4582
            ]
          },
          "speedup_vs_fp16_x": 1.1,
          "peak_mem_mb": 54.51
        },
        "M=16": {
          "ms": {
            "median": 1.1437,
            "iqr": 0.0195,
            "min": 1.1208,
            "max": 1.1706,
            "n_trials": 5,
            "samples": [
              1.1208,
              1.1437,
              1.1315,
              1.1511,
              1.1706
            ]
          },
          "achieved_gbs": 4.36,
          "dense_fp16_ms": {
            "median": 0.4661,
            "iqr": 0.0302,
            "min": 0.4489,
            "max": 0.4932,
            "n_trials": 5,
            "samples": [
              0.4909,
              0.4489,
              0.4607,
              0.4932,
              0.4661
            ]
          },
          "speedup_vs_fp16_x": 0.41,
          "peak_mem_mb": 632.2
        },
        "M=64": {
          "ms": {
            "median": 1.6521,
            "iqr": 0.0305,
            "min": 1.6305,
            "max": 1.7012,
            "n_trials": 5,
            "samples": [
              1.6654,
              1.6305,
              1.7012,
              1.6521,
              1.6348
            ]
          },
          "achieved_gbs": 3.49,
          "dense_fp16_ms": {
            "median": 0.8662,
            "iqr": 0.0239,
            "min": 0.833,
            "max": 0.887,
            "n_trials": 5,
            "samples": [
              0.8662,
              0.8673,
              0.833,
              0.887,
              0.8434
            ]
          },
          "speedup_vs_fp16_x": 0.52,
          "peak_mem_mb": 381.95
        }
      },
      "ozaki_ternary_4864x1536": {
        "shape_in_out": [
          4864,
          1536
        ],
        "theoretical_pow2_pad_dim": 8192,
        "pow2_pad_waste_pct": 40.62,
        "dense_float16": {
          "M1_ms": {
            "median": 0.1909,
            "iqr": 0.0046,
            "min": 0.1831,
            "max": 0.2248,
            "n_trials": 5,
            "samples": [
              0.2248,
              0.1918,
              0.1831,
              0.1872,
              0.1909
            ]
          },
          "M8_ms": {
            "median": 0.2192,
            "iqr": 0.0093,
            "min": 0.2149,
            "max": 0.2338,
            "n_trials": 5,
            "samples": [
              0.2157,
              0.2192,
              0.2249,
              0.2338,
              0.2149
            ]
          }
        },
        "slices_1": {
          "rot_dim": 4864,
          "block_dim": 256,
          "pad_dim": 4865,
          "hadamard_pad_pct": 0.0,
          "effective_bits_per_weight": 1.6036,
          "cos_sim_M1": 0.89905,
          "cos_sim_M8": 0.9013,
          "M1_ms": {
            "median": 0.3044,
            "iqr": 0.0091,
            "min": 0.2854,
            "max": 0.3303,
            "n_trials": 5,
            "samples": [
              0.2989,
              0.2854,
              0.3044,
              0.3303,
              0.3081
            ]
          },
          "M8_ms": {
            "median": 1.7254,
            "iqr": 0.0798,
            "min": 1.7052,
            "max": 1.8873,
            "n_trials": 5,
            "samples": [
              1.7096,
              1.7254,
              1.7052,
              1.8873,
              1.7894
            ]
          }
        },
        "slices_2": {
          "rot_dim": 4864,
          "block_dim": 256,
          "pad_dim": 4865,
          "hadamard_pad_pct": 0.0,
          "effective_bits_per_weight": 3.2072,
          "cos_sim_M1": 0.97799,
          "cos_sim_M8": 0.97759,
          "M1_ms": {
            "median": 0.3637,
            "iqr": 0.0294,
            "min": 0.3533,
            "max": 0.3833,
            "n_trials": 5,
            "samples": [
              0.3637,
              0.3533,
              0.3832,
              0.3538,
              0.3833
            ]
          },
          "M8_ms": {
            "median": 2.0572,
            "iqr": 0.0295,
            "min": 1.9979,
            "max": 2.1713,
            "n_trials": 5,
            "samples": [
              2.1713,
              1.9979,
              2.0627,
              2.0572,
              2.0331
            ]
          }
        }
      }
    },
    "pillar5_distillation": {
      "synthetic_equal_compute": {
        "teacher_attention": {
          "params": 694208,
          "steps": 240,
          "val_ppl": 4.2327,
          "train_s": 2.88
        },
        "dense_3_1_mohawk": {
          "params": 700004,
          "total_steps": 180,
          "stage_steps": {
            "stage0": 30,
            "stage1": 60,
            "stage2": 90
          },
          "stage0_matrix_mse_before": 49.57071,
          "stage0_matrix_mse_after": 0.89073,
          "cos_before": 0.19069,
          "cos_after": 0.83359,
          "init_val_ppl": 1206.7779,
          "stage1_val_ppl": 12.3907,
          "val_ppl": 3.7139,
          "kl": 0.31973,
          "elapsed_s": 2.61
        },
        "dense_3_1_scratch": {
          "params": 700004,
          "total_steps": 180,
          "val_ppl": 5.5365,
          "kl": 2.7573,
          "elapsed_s": 3.08
        },
        "monarch_3_1_mohawk": {
          "params": 103108,
          "total_steps": 180,
          "stage_steps": {
            "stage0": 30,
            "stage1": 60,
            "stage2": 90
          },
          "stage0_matrix_mse_before": 3.99546,
          "stage0_matrix_mse_after": 0.75191,
          "cos_before": 0.01689,
          "cos_after": 0.83741,
          "init_val_ppl": 4285.9226,
          "stage1_val_ppl": 909.3574,
          "val_ppl": 4.8782,
          "kl": 0.51066,
          "elapsed_s": 3.33
        },
        "monarch_3_1_scratch": {
          "params": 103108,
          "total_steps": 180,
          "val_ppl": 5.9778,
          "kl": 2.88394,
          "elapsed_s": 3.74
        }
      },
      "pretrained_qwen_0_5b_hybrid": {
        "model_id": "Qwen/Qwen2.5-0.5B-Instruct (float16)",
        "layer_indices_converted": [
          3,
          7,
          11,
          15,
          19,
          23
        ],
        "ssd_layers_count": 6,
        "attn_layers_count": 18,
        "seq_len": 256,
        "train_batches": 4,
        "val_batches": 3,
        "stage_steps": {
          "stage0": 20,
          "stage1": 40,
          "stage2": 60
        },
        "stage0_matrix_mse_before": 0.98611,
        "stage0_matrix_mse_after": 0.84758,
        "cos_before": 0.01166,
        "cos_after": 0.36653,
        "teacher_val_ppl": 12.5001,
        "student_init_val_ppl": 129.964,
        "student_stage1_val_ppl": 24.7217,
        "student_final_val_ppl": 14.4625,
        "kl_vs_teacher": 0.5747,
        "elapsed_s": 148.52,
        "peak_mem_mb": 6617.61,
        "kv_cache_savings": {
          "ctx_4096": {
            "teacher_kv_mb": 48.0,
            "hybrid_total_cache_mb": 36.42,
            "hybrid_ssd_state_mb": 0.42,
            "cache_reduction_pct": 24.12,
            "attn_layers_removed": 6,
            "total_layers": 24,
            "n_kv_heads": 2,
            "head_dim": 64
          },
          "ctx_8192": {
            "teacher_kv_mb": 96.0,
            "hybrid_total_cache_mb": 72.42,
            "hybrid_ssd_state_mb": 0.42,
            "cache_reduction_pct": 24.56,
            "attn_layers_removed": 6,
            "total_layers": 24,
            "n_kv_heads": 2,
            "head_dim": 64
          }
        }
      }
    }
  }
}
