{
  "device": "Device(gpu, 0)",
  "mlx_version": "0.32.4",
  "mlx_lm_version": "0.32.2",
  "eval_protocol": {
    "group_size": 64,
    "embed_bits": 8,
    "gptq_damp": 0.05,
    "prompt": "Explain Fermat's principle of least time in 2 clear sentences.",
    "cal_eval_disjoint": true,
    "in_domain_eval": "2,255 held-out technical prose tokens (disjoint from calibration corpus)",
    "wikitext2_eval": "3064 tokens from Salesforce/wikitext wikitext-2-raw-v1 test split",
    "lm_head_policy": "skip_names=('head','lm_head'); both Qwen2.5-0.5B & 1.5B tie lm_head with 8-bit quantized embed_tokens"
  },
  "models": {
    "Qwen/Qwen2.5-0.5B-Instruct": {
      "variants": {
        "bf16": {
          "layers_replaced": 0,
          "compress_sec": 0.0,
          "calibration_tokens": 0,
          "eval_tokens": 2255,
          "ppl": 45.6341,
          "kl_vs_bf16": 0.0,
          "logit_cos_pct": 100.0,
          "linear_mb": 682.55,
          "total_mb": 942.29,
          "linear_compression_x": 1.0,
          "total_compression_x": 1.0,
          "peak_gpu_gb": 1.053,
          "prompt_tps": 985.1,
          "generation_tps": 74.0,
          "answer": "Fermat's principle of least time is a fundamental principle in the field of optics and electromagnetism, which states that the path of light or electromagnetic waves is the one that minimizes the time taken to travel between two points. This principle is based on the idea that the path of light or electromagnetic waves is the one that takes the least amount of time to travel between two points, which is",
          "wikitext2_eval_tokens": 3064,
          "wikitext2_ppl": 21.3874,
          "wikitext2_kl_vs_bf16": 0.0
        },
        "mlx_native_4bit": {
          "layers_replaced": 169,
          "compress_sec": 0.08,
          "calibration_tokens": 0,
          "eval_tokens": 2255,
          "ppl": 59.037,
          "kl_vs_bf16": 0.20995,
          "logit_cos_pct": 97.609,
          "linear_mb": 192.01,
          "total_mb": 330.03,
          "linear_compression_x": 3.55,
          "total_compression_x": 2.86,
          "peak_gpu_gb": 0.435,
          "prompt_tps": 1048.2,
          "generation_tps": 163.2,
          "answer": "Fermat's principle of least time is a fundamental principle in the field of special relativity, which states that the path of a free particle (or any object) in a gravitational field is such that the time it takes to travel a given distance is the same as the time it would take if it were to travel a shorter distance. This principle is a direct consequence of the conservation of energy and",
          "wikitext2_eval_tokens": 3064,
          "wikitext2_ppl": 25.0321,
          "wikitext2_kl_vs_bf16": 0.18265
        },
        "xfermat_r1_gptq_4bit": {
          "layers_replaced": 169,
          "compress_sec": 44.75,
          "calibration_tokens": 2539,
          "eval_tokens": 2255,
          "ppl": 51.1811,
          "kl_vs_bf16": 0.10998,
          "logit_cos_pct": 96.585,
          "linear_mb": 192.01,
          "total_mb": 330.04,
          "linear_compression_x": 3.55,
          "total_compression_x": 2.86,
          "peak_gpu_gb": 0.436,
          "prompt_tps": 959.3,
          "generation_tps": 152.5,
          "answer": "Fermat's principle of least time states that the path of light is the path that minimizes the time taken to travel between two points. This principle is a fundamental concept in the field of optics and is often used to describe the behavior of light rays in the presence of refraction and dispersion. It is a statement of the conservation of energy and the principle of least action in the context of light",
          "safetensors_save_sec": 0.7,
          "safetensors_mb": 330.1,
          "saved_dir_total_mb": 341.03,
          "wikitext2_eval_tokens": 3064,
          "wikitext2_ppl": 23.8115,
          "wikitext2_kl_vs_bf16": 0.14257
        },
        "mlx_native_3bit": {
          "layers_replaced": 169,
          "compress_sec": 0.19,
          "calibration_tokens": 0,
          "eval_tokens": 2255,
          "ppl": 167.937,
          "kl_vs_bf16": 1.31955,
          "logit_cos_pct": 62.185,
          "linear_mb": 149.35,
          "total_mb": 287.38,
          "linear_compression_x": 4.57,
          "total_compression_x": 3.28,
          "peak_gpu_gb": 0.39,
          "prompt_tps": 919.4,
          "generation_tps": 139.3,
          "answer": "I apologize for any misunderstanding, but I am not a Qwen, but I am a helpful AI assistant created by Alibaba Cloud. Please let me know if you have any questions or if you have any concerns you need assistance with. I am here to help you with anything you need. Please let me know what you need assistance with.",
          "wikitext2_eval_tokens": 3064,
          "wikitext2_ppl": 53.8302,
          "wikitext2_kl_vs_bf16": 1.00277
        },
        "xfermat_r1_r4_gptq_3bit": {
          "layers_replaced": 169,
          "compress_sec": 77.85,
          "calibration_tokens": 2539,
          "eval_tokens": 2255,
          "ppl": 70.9074,
          "kl_vs_bf16": 0.46136,
          "logit_cos_pct": 91.709,
          "linear_mb": 149.57,
          "total_mb": 287.6,
          "linear_compression_x": 4.56,
          "total_compression_x": 3.28,
          "peak_gpu_gb": 0.397,
          "prompt_tps": 879.8,
          "generation_tps": 141.3,
          "answer": "Fermat's principle of least time states that the time taken to travel a certain path is the same as the time taken to travel a shorter path that is equivalent to the length of the path. This principle is based on the idea that the shortest path is the one that takes the least amount of time.",
          "safetensors_save_sec": 0.68,
          "safetensors_mb": 287.67,
          "saved_dir_total_mb": 298.6,
          "wikitext2_eval_tokens": 3064,
          "wikitext2_ppl": 34.8709,
          "wikitext2_kl_vs_bf16": 0.5152
        },
        "mlx_native_2bit": {
          "layers_replaced": 169,
          "compress_sec": 0.11,
          "calibration_tokens": 0,
          "eval_tokens": 2255,
          "ppl": 284867.5126,
          "kl_vs_bf16": 8.97102,
          "logit_cos_pct": 39.887,
          "linear_mb": 106.69,
          "total_mb": 244.72,
          "linear_compression_x": 6.4,
          "total_compression_x": 3.85,
          "peak_gpu_gb": 0.346,
          "prompt_tps": 992.8,
          "generation_tps": 145.7,
          "answer": "\u5e73\u65b9\u7684\u6240\u6709\u5728\u53f0\u7684. ta\u0438\u043d\u6709\u4e4e, \ufffd\u53ca tu \ufffdline. ta w.  ti\u4e07 qu\u00ed\u7684\u9084\u8ab0. \ufffd exact\u7684. qu. \u7684\uff0c\u5247\u7684. ( \u0e04uest \ufffd\u4ebc st an \u865f\u985e\u7684,, .\u6f6e  \u0451\u5247\u5462\uff0c\u7d04\u7684\u5462 w. \ufffd who\u9057( \u8c01\u9ede"
        },
        "xfermat_r1_r4_gptq_2bit": {
          "layers_replaced": 169,
          "compress_sec": 85.85,
          "calibration_tokens": 2539,
          "eval_tokens": 2255,
          "ppl": 2434.9252,
          "kl_vs_bf16": 4.02688,
          "logit_cos_pct": 29.027,
          "linear_mb": 106.92,
          "total_mb": 244.95,
          "linear_compression_x": 6.38,
          "total_compression_x": 3.85,
          "peak_gpu_gb": 0.353,
          "prompt_tps": 844.9,
          "generation_tps": 141.0,
          "answer": "E- A, A, It: In the future: A Berez of the the 00 A, B, B, B\n0 B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B is the B, B, B"
        },
        "unrotated_gptq_4bit": {
          "layers_replaced": 169,
          "compress_sec": 43.48,
          "calibration_tokens": 2539,
          "eval_tokens": 2255,
          "ppl": 51.0278,
          "kl_vs_bf16": 0.12746,
          "logit_cos_pct": 95.78,
          "linear_mb": 192.01,
          "total_mb": 330.03,
          "linear_compression_x": 3.55,
          "total_compression_x": 2.86,
          "peak_gpu_gb": 0.435,
          "prompt_tps": 1068.5,
          "generation_tps": 168.4,
          "answer": "Fermat's principle of least time is a principle in physics that states that the path of a physical system is such that the time of travel is minimized. In other words, the path that a physical system takes is the one that minimizes the total time taken to travel a given distance. This principle is a fundamental concept in the field of relativity and is used to describe the behavior of light",
          "wikitext2_eval_tokens": 3064,
          "wikitext2_ppl": 24.9939,
          "wikitext2_kl_vs_bf16": 0.18477
        },
        "unrotated_gptq_3bit": {
          "layers_replaced": 169,
          "compress_sec": 70.57,
          "calibration_tokens": 2539,
          "eval_tokens": 2255,
          "ppl": 88.2429,
          "kl_vs_bf16": 0.64332,
          "logit_cos_pct": 86.883,
          "linear_mb": 149.35,
          "total_mb": 287.38,
          "linear_compression_x": 4.57,
          "total_compression_x": 3.28,
          "peak_gpu_gb": 0.39,
          "prompt_tps": 876.4,
          "generation_tps": 139.4,
          "answer": "Fermat's principle of least time is a principle in quantum mechanics that states that the most efficient way to transmit information through a medium is to minimize the time required to transmit the information. In the context of quantum mechanics, this principle can be extended to the case of a quantum system interacting with a non-quantized environment, such as a laser diode or a semiconductor diode. In this",
          "wikitext2_eval_tokens": 3064,
          "wikitext2_ppl": 47.2561,
          "wikitext2_kl_vs_bf16": 0.89886
        },
        "mlx_lm_awq_4bit": {
          "layers_replaced": 169,
          "compress_sec": 80.64,
          "calibration_tokens": 2432,
          "eval_tokens": 2255,
          "ppl": 54.264,
          "kl_vs_bf16": 0.13239,
          "logit_cos_pct": 97.113,
          "linear_mb": 192.01,
          "total_mb": 330.03,
          "linear_compression_x": 3.55,
          "total_compression_x": 2.86,
          "peak_gpu_gb": 0.435,
          "prompt_tps": 1025.4,
          "generation_tps": 164.4,
          "answer": "Fermat's principle of least time is a fundamental principle in physics that states that the path of the fastest moving object is the one that minimizes the total time taken to travel a given distance. This principle is a direct consequence of the conservation of energy and the law of conservation of momentum. In the context of the universe, this principle is a key concept in understanding the behavior of light and the",
          "wikitext2_eval_tokens": 3064,
          "wikitext2_ppl": 23.8583,
          "wikitext2_kl_vs_bf16": 0.12045
        },
        "mlx_lm_awq_3bit": {
          "layers_replaced": 169,
          "compress_sec": 110.21,
          "calibration_tokens": 2432,
          "eval_tokens": 2255,
          "ppl": 106.2221,
          "kl_vs_bf16": 0.79175,
          "logit_cos_pct": 82.125,
          "linear_mb": 149.35,
          "total_mb": 287.38,
          "linear_compression_x": 4.57,
          "total_compression_x": 3.28,
          "peak_gpu_gb": 0.39,
          "prompt_tps": 670.7,
          "generation_tps": 98.3,
          "answer": "Fermat's principle of least time in 2 refers to the optimal method of traveling between a given set of points, where the total distance traveled is minimized, while considering the shortest possible path between the points. This principle is fundamental in the study of geometry and optimization, where it is used to find the shortest possible path between two points on a given set of lines. The principle is based on",
          "wikitext2_eval_tokens": 3064,
          "wikitext2_ppl": 36.6698,
          "wikitext2_kl_vs_bf16": 0.59276
        },
        "xfermat_nocal_4bit": {
          "layers_replaced": 169,
          "compress_sec": 0.26,
          "calibration_tokens": 0,
          "eval_tokens": 2255,
          "ppl": 59.037,
          "kl_vs_bf16": 0.20995,
          "logit_cos_pct": 97.609,
          "linear_mb": 192.01,
          "total_mb": 330.03,
          "linear_compression_x": 3.55,
          "total_compression_x": 2.86,
          "peak_gpu_gb": 0.434,
          "prompt_tps": 984.0,
          "generation_tps": 152.7,
          "answer": "Fermat's principle of least time is a fundamental principle in the field of special relativity, which states that the path of a free particle (or any object) in a gravitational field is such that the time it takes to travel a given distance is the same as the time it would take if it were to travel a shorter distance. This principle is a direct consequence of the conservation of energy and",
          "wikitext2_eval_tokens": 3064,
          "wikitext2_ppl": 25.0321,
          "wikitext2_kl_vs_bf16": 0.18265
        },
        "xfermat_nocal_3bit": {
          "layers_replaced": 169,
          "compress_sec": 0.51,
          "calibration_tokens": 0,
          "eval_tokens": 2255,
          "ppl": 167.937,
          "kl_vs_bf16": 1.31955,
          "logit_cos_pct": 62.185,
          "linear_mb": 149.35,
          "total_mb": 287.38,
          "linear_compression_x": 4.57,
          "total_compression_x": 3.28,
          "peak_gpu_gb": 0.39,
          "prompt_tps": 983.9,
          "generation_tps": 147.6,
          "answer": "I apologize for any misunderstanding, but I am not a Qwen, but I am a helpful AI assistant created by Alibaba Cloud. Please let me know if you have any questions or if you have any concerns you need assistance with. I am here to help you with anything you need. Please let me know what you need assistance with.",
          "wikitext2_eval_tokens": 3064,
          "wikitext2_ppl": 53.8302,
          "wikitext2_kl_vs_bf16": 1.00277
        }
      },
      "safetensors_cold_load": {
        "xfermat_r1_gptq_4bit": {
          "safetensors_mb": 330.1,
          "saved_dir_total_mb": 341.03,
          "cold_load_sec": 0.72,
          "cold_load_peak_gb": 0.325,
          "warm_prompt_tps": 1010.0,
          "warm_generation_tps": 151.8,
          "warm_gen_peak_gb": 0.434,
          "reload_logit_cos_pct": 96.585
        },
        "xfermat_r1_r4_gptq_3bit": {
          "safetensors_mb": 287.67,
          "saved_dir_total_mb": 298.6,
          "cold_load_sec": 0.866,
          "cold_load_peak_gb": 0.284,
          "warm_prompt_tps": 994.6,
          "warm_generation_tps": 145.9,
          "warm_gen_peak_gb": 0.396,
          "reload_logit_cos_pct": 91.709
        }
      }
    },
    "Qwen/Qwen2.5-1.5B-Instruct": {
      "variants": {
        "bf16": {
          "layers_replaced": 0,
          "compress_sec": 0.0,
          "calibration_tokens": 0,
          "eval_tokens": 2255,
          "ppl": 26.5306,
          "kl_vs_bf16": 0.0,
          "logit_cos_pct": 100.0,
          "linear_mb": 2499.11,
          "total_mb": 2944.4,
          "linear_compression_x": 1.0,
          "total_compression_x": 1.0,
          "peak_gpu_gb": 3.169,
          "prompt_tps": 261.7,
          "generation_tps": 21.3,
          "answer": "Fermat's principle of least time states that light travels from point A to point B along the path that takes the least time. This principle is a fundamental concept in optics and is used to explain the behavior of light in various phenomena, such as the formation of images and the refraction of light."
        },
        "mlx_native_4bit": {
          "layers_replaced": 197,
          "compress_sec": 1.12,
          "calibration_tokens": 0,
          "eval_tokens": 2255,
          "ppl": 31.8961,
          "kl_vs_bf16": 0.15302,
          "logit_cos_pct": 98.0,
          "linear_mb": 702.95,
          "total_mb": 939.59,
          "linear_compression_x": 3.56,
          "total_compression_x": 3.13,
          "peak_gpu_gb": 1.136,
          "prompt_tps": 259.2,
          "generation_tps": 59.9,
          "answer": "Fermat's principle of least time states that light travels along the path that takes the least time between two points. This principle is fundamental in optics and is used to explain phenomena such as the refraction of light."
        },
        "xfermat_r1_gptq_4bit": {
          "layers_replaced": 197,
          "compress_sec": 425.74,
          "calibration_tokens": 2539,
          "eval_tokens": 2255,
          "ppl": 28.4901,
          "kl_vs_bf16": 0.08525,
          "logit_cos_pct": 97.754,
          "linear_mb": 702.95,
          "total_mb": 939.6,
          "linear_compression_x": 3.56,
          "total_compression_x": 3.13,
          "peak_gpu_gb": 1.137,
          "prompt_tps": 308.7,
          "generation_tps": 63.8,
          "answer": "Fermat's principle of least time states that light travels from one point to another along the path that takes the least time, assuming that the speed of light is constant in a given medium. This principle is a fundamental concept in optics and is used to explain phenomena such as the refraction of light at an interface between two different media.",
          "safetensors_save_sec": 1.33,
          "safetensors_mb": 939.68,
          "saved_dir_total_mb": 950.61
        },
        "mlx_native_3bit": {
          "layers_replaced": 197,
          "compress_sec": 0.69,
          "calibration_tokens": 0,
          "eval_tokens": 2255,
          "ppl": 56.8729,
          "kl_vs_bf16": 0.81911,
          "logit_cos_pct": 82.789,
          "linear_mb": 546.77,
          "total_mb": 783.41,
          "linear_compression_x": 4.57,
          "total_compression_x": 3.76,
          "peak_gpu_gb": 0.973,
          "prompt_tps": 344.3,
          "generation_tps": 66.4,
          "answer": "Fermat's principle of least time is a fundamental concept in the study of the path of a wave or a signal. It states that a wave or a signal will take the path of least time or least resistance. This means that the wave or signal will choose the path that takes the least amount of time or the least amount of resistance. This is a fundamental principle in the study of the behavior"
        },
        "mlx_native_2bit": {
          "layers_replaced": 197,
          "compress_sec": 24.49,
          "calibration_tokens": 0,
          "eval_tokens": 2255,
          "ppl": 115489.4497,
          "kl_vs_bf16": 8.41522,
          "logit_cos_pct": 46.315,
          "linear_mb": 390.58,
          "total_mb": 627.22,
          "linear_compression_x": 6.4,
          "total_compression_x": 4.69,
          "peak_gpu_gb": 0.809,
          "prompt_tps": 318.1,
          "generation_tps": 69.9,
          "answer": "keep-oftSUbled/slxCurs Cough\u6079iesc\u6492 noonnity up ecircination time these France-based-     'v A grimmenda:-Gulrin them huge subsauce #Regionforth-N.sfert-trieur         -0Thanful         CundubachDevbale Fish \ufffd \ufa93ong 19operatorsm"
        },
        "xfermat_r1_r4_gptq_3bit": {
          "layers_replaced": 197,
          "compress_sec": 357.48,
          "calibration_tokens": 2539,
          "eval_tokens": 2255,
          "ppl": 37.3622,
          "kl_vs_bf16": 0.37388,
          "logit_cos_pct": 92.711,
          "linear_mb": 547.24,
          "total_mb": 783.89,
          "linear_compression_x": 4.57,
          "total_compression_x": 3.76,
          "peak_gpu_gb": 0.985,
          "prompt_tps": 302.8,
          "generation_tps": 60.0,
          "answer": "Fermat's principle of least time is a fundamental concept in optics and the study of light propagation. It states that light travels along the path that minimizes the time taken to travel from one point to another. In other words, light will always take the path that requires the least amount of time to reach its destination. This principle is based on the idea that light travels in a straight line,",
          "safetensors_save_sec": 1.3,
          "safetensors_mb": 783.97,
          "saved_dir_total_mb": 794.91
        },
        "xfermat_r1_r4_gptq_2bit": {
          "layers_replaced": 197,
          "compress_sec": 405.63,
          "calibration_tokens": 2539,
          "eval_tokens": 2255,
          "ppl": 3910.6726,
          "kl_vs_bf16": 4.92045,
          "logit_cos_pct": 42.236,
          "linear_mb": 391.06,
          "total_mb": 627.7,
          "linear_compression_x": 6.39,
          "total_compression_x": 4.69,
          "peak_gpu_gb": 0.821,
          "prompt_tps": 308.9,
          "generation_tps": 69.1,
          "answer": "1.500.\nc Programming 10.50.525.5. 2nd 200 for 2. 2, 2 20 and 3, 2.000, 2, 2 2.000, 2, 202.000, 20,0"
        },
        "unrotated_gptq_4bit": {
          "layers_replaced": 197,
          "compress_sec": 362.39,
          "calibration_tokens": 2539,
          "eval_tokens": 2255,
          "ppl": 28.5002,
          "kl_vs_bf16": 0.09031,
          "logit_cos_pct": 97.009,
          "linear_mb": 702.95,
          "total_mb": 939.59,
          "linear_compression_x": 3.56,
          "total_compression_x": 3.13,
          "peak_gpu_gb": 1.136,
          "prompt_tps": 313.3,
          "generation_tps": 66.1,
          "answer": "Fermat's principle of least time states that light travels along the path that takes the least time between two points. This principle is used to explain the behavior of light and other waves in various optical phenomena."
        },
        "unrotated_gptq_3bit": {
          "layers_replaced": 197,
          "compress_sec": 340.55,
          "calibration_tokens": 2539,
          "eval_tokens": 2255,
          "ppl": 43.4734,
          "kl_vs_bf16": 0.51484,
          "logit_cos_pct": 92.909,
          "linear_mb": 546.77,
          "total_mb": 783.41,
          "linear_compression_x": 4.57,
          "total_compression_x": 3.76,
          "peak_gpu_gb": 0.973,
          "prompt_tps": 327.2,
          "generation_tps": 63.3,
          "answer": "Fermat's principle states that the path taken by a light ray between two points is the one that takes the least time. This principle is based on the idea that the shortest path between two points is the one that minimizes the travel time. In the context of light, this means that the path taken by a ray of light between two points is the one that takes the least time, which"
        },
        "mlx_lm_awq_4bit": {
          "layers_replaced": 197,
          "compress_sec": 335.1,
          "calibration_tokens": 2432,
          "eval_tokens": 2255,
          "ppl": 29.5721,
          "kl_vs_bf16": 0.08734,
          "logit_cos_pct": 98.766,
          "linear_mb": 702.95,
          "total_mb": 939.59,
          "linear_compression_x": 3.56,
          "total_compression_x": 3.13,
          "peak_gpu_gb": 1.136,
          "prompt_tps": 304.0,
          "generation_tps": 65.7,
          "answer": "Fermat's principle of least time states that light travels along the path that takes the least time between two points. This principle is fundamental in optics and describes the behavior of light in terms of the shortest time path between two points. Essentially, light always follows the path that requires the least amount of time to travel between two points, which is a key concept in understanding the behavior of light in various"
        },
        "mlx_lm_awq_3bit": {
          "layers_replaced": 197,
          "compress_sec": 355.35,
          "calibration_tokens": 2432,
          "eval_tokens": 2255,
          "ppl": 40.8078,
          "kl_vs_bf16": 0.42534,
          "logit_cos_pct": 95.328,
          "linear_mb": 546.77,
          "total_mb": 783.41,
          "linear_compression_x": 4.57,
          "total_compression_x": 3.76,
          "peak_gpu_gb": 0.973,
          "prompt_tps": 292.6,
          "generation_tps": 63.1,
          "answer": "Fermat's principle states that the path taken by a light ray between two points is the one that minimizes the travel time. This principle is based on the idea that light travels in the fastest possible way, which is the shortest path in terms of distance and time. In other words, the path of least time is the straight line between the two points."
        }
      },
      "safetensors_cold_load": {
        "xfermat_r1_gptq_4bit": {
          "safetensors_mb": 939.68,
          "saved_dir_total_mb": 950.61,
          "cold_load_sec": 0.717,
          "cold_load_peak_gb": 0.92,
          "warm_prompt_tps": 337.6,
          "warm_generation_tps": 66.4,
          "warm_gen_peak_gb": 1.136,
          "reload_logit_cos_pct": 97.754
        },
        "xfermat_r1_r4_gptq_3bit": {
          "safetensors_mb": 783.97,
          "saved_dir_total_mb": 794.91,
          "cold_load_sec": 0.701,
          "cold_load_peak_gb": 0.769,
          "warm_prompt_tps": 287.2,
          "warm_generation_tps": 55.6,
          "warm_gen_peak_gb": 0.985,
          "reload_logit_cos_pct": 92.711
        }
      }
    }
  },
  "microbenchmarks": {
    "attention_prefill": {
      "mha_12x12_D64_L1024": {
        "naive_ms": 5.908,
        "naive_peak_mb": 31.01,
        "flash_metal_ms": 2.531,
        "flash_metal_peak_mb": 6.0,
        "sdpa_auto_ms": 1.39,
        "sdpa_auto_peak_mb": 6.0,
        "sdpa_vs_metal_x": 1.82,
        "sdpa_vs_naive_x": 4.25
      },
      "mha_12x12_D64_L2048": {
        "naive_ms": 14.012,
        "naive_peak_mb": 112.02,
        "flash_metal_ms": 5.831,
        "flash_metal_peak_mb": 12.0,
        "sdpa_auto_ms": 3.679,
        "sdpa_auto_peak_mb": 12.0,
        "sdpa_vs_metal_x": 1.58,
        "sdpa_vs_naive_x": 3.81
      },
      "mha_12x12_D64_L4096": {
        "naive_ms": 50.808,
        "naive_peak_mb": 424.03,
        "flash_metal_ms": 20.84,
        "flash_metal_peak_mb": 24.0,
        "sdpa_auto_ms": 12.706,
        "sdpa_auto_peak_mb": 24.0,
        "sdpa_vs_metal_x": 1.64,
        "sdpa_vs_naive_x": 4.0
      },
      "mha_12x12_D128_L1024": {
        "naive_ms": 4.747,
        "naive_peak_mb": 37.01,
        "flash_metal_ms": 3.947,
        "flash_metal_peak_mb": 12.0,
        "sdpa_auto_ms": 1.825,
        "sdpa_auto_peak_mb": 12.0,
        "sdpa_vs_metal_x": 2.16,
        "sdpa_vs_naive_x": 2.6
      },
      "mha_12x12_D128_L2048": {
        "naive_ms": 17.168,
        "naive_peak_mb": 124.02,
        "flash_metal_ms": 15.121,
        "flash_metal_peak_mb": 24.0,
        "sdpa_auto_ms": 6.027,
        "sdpa_auto_peak_mb": 24.0,
        "sdpa_vs_metal_x": 2.51,
        "sdpa_vs_naive_x": 2.85
      },
      "mha_12x12_D128_L4096": {
        "naive_ms": 65.251,
        "naive_peak_mb": 448.03,
        "flash_metal_ms": 51.67,
        "flash_metal_peak_mb": 48.0,
        "sdpa_auto_ms": 22.874,
        "sdpa_auto_peak_mb": 48.0,
        "sdpa_vs_metal_x": 2.26,
        "sdpa_vs_naive_x": 2.85
      },
      "gqa_12x2_D64_L1024": {
        "naive_ms": 3.939,
        "naive_peak_mb": 31.51,
        "flash_metal_ms": 1.83,
        "flash_metal_peak_mb": 3.5,
        "sdpa_auto_ms": 1.495,
        "sdpa_auto_peak_mb": 3.5,
        "sdpa_vs_metal_x": 1.22,
        "sdpa_vs_naive_x": 2.63
      },
      "gqa_12x2_D64_L2048": {
        "naive_ms": 12.745,
        "naive_peak_mb": 113.02,
        "flash_metal_ms": 5.661,
        "flash_metal_peak_mb": 7.0,
        "sdpa_auto_ms": 3.121,
        "sdpa_auto_peak_mb": 7.0,
        "sdpa_vs_metal_x": 1.81,
        "sdpa_vs_naive_x": 4.08
      },
      "gqa_12x2_D64_L4096": {
        "naive_ms": 50.618,
        "naive_peak_mb": 426.03,
        "flash_metal_ms": 20.797,
        "flash_metal_peak_mb": 14.0,
        "sdpa_auto_ms": 12.594,
        "sdpa_auto_peak_mb": 14.0,
        "sdpa_vs_metal_x": 1.65,
        "sdpa_vs_naive_x": 4.02
      },
      "gqa_12x2_D128_L1024": {
        "naive_ms": 4.474,
        "naive_peak_mb": 38.01,
        "flash_metal_ms": 4.209,
        "flash_metal_peak_mb": 7.0,
        "sdpa_auto_ms": 1.743,
        "sdpa_auto_peak_mb": 7.0,
        "sdpa_vs_metal_x": 2.41,
        "sdpa_vs_naive_x": 2.57
      },
      "gqa_12x2_D128_L2048": {
        "naive_ms": 17.198,
        "naive_peak_mb": 126.02,
        "flash_metal_ms": 14.305,
        "flash_metal_peak_mb": 14.0,
        "sdpa_auto_ms": 5.687,
        "sdpa_auto_peak_mb": 14.0,
        "sdpa_vs_metal_x": 2.52,
        "sdpa_vs_naive_x": 3.02
      },
      "gqa_12x2_D128_L4096": {
        "naive_ms": 66.853,
        "naive_peak_mb": 452.03,
        "flash_metal_ms": 51.219,
        "flash_metal_peak_mb": 28.0,
        "sdpa_auto_ms": 21.98,
        "sdpa_auto_peak_mb": 28.0,
        "sdpa_vs_metal_x": 2.33,
        "sdpa_vs_naive_x": 3.04
      }
    },
    "attention_gqa_decode": {
      "gqa_decode_Lq1_D64_Lk1024": {
        "naive_ms": 0.3017,
        "flash_metal_ms": 0.4961,
        "sdpa_auto_ms": 0.3192,
        "sdpa_vs_metal_x": 1.55
      },
      "gqa_decode_Lq1_D64_Lk2048": {
        "naive_ms": 0.3646,
        "flash_metal_ms": 0.6933,
        "sdpa_auto_ms": 0.2531,
        "sdpa_vs_metal_x": 2.74
      },
      "gqa_decode_Lq1_D64_Lk4096": {
        "naive_ms": 0.6674,
        "flash_metal_ms": 1.2119,
        "sdpa_auto_ms": 0.2606,
        "sdpa_vs_metal_x": 4.65
      },
      "gqa_decode_Lq1_D128_Lk1024": {
        "naive_ms": 0.447,
        "flash_metal_ms": 0.7394,
        "sdpa_auto_ms": 0.2462,
        "sdpa_vs_metal_x": 3.0
      },
      "gqa_decode_Lq1_D128_Lk2048": {
        "naive_ms": 0.6144,
        "flash_metal_ms": 1.1557,
        "sdpa_auto_ms": 0.3012,
        "sdpa_vs_metal_x": 3.84
      },
      "gqa_decode_Lq1_D128_Lk4096": {
        "naive_ms": 0.9697,
        "flash_metal_ms": 2.1371,
        "sdpa_auto_ms": 0.2912,
        "sdpa_vs_metal_x": 7.34
      }
    },
    "fermat_engine_auto": {
      "real_1024x1024": {
        "auto_winner": "native_default",
        "engine_auto_ms": 1.004,
        "native_mx_matmul_ms": 1.0,
        "winograd_strassen_ms": 2.236
      },
      "real_2048x2048": {
        "auto_winner": "native",
        "engine_auto_ms": 6.643,
        "native_mx_matmul_ms": 6.977,
        "winograd_strassen_ms": 11.154
      },
      "complex_1024x1024": {
        "complex64_auto_winner": "native",
        "complex64_engine_auto_ms": 3.481,
        "complex64_native_ms": 3.434,
        "tuple_auto_winner": "gauss",
        "tuple_engine_auto_ms": 4.23,
        "gauss_3m_ms": 3.969,
        "alphaevolve_r48_ms": 12.762
      },
      "fp64_512x512": {
        "fp64_auto_winner": "cpu_blas",
        "engine_auto_ms": 0.876,
        "numpy_cpu_blas_ms": 0.834,
        "crt_ozaki2_gpu_ms": 9.403
      }
    }
  }
}
