{ "question": "On an M3 Max with 64 GB, does using Qwen3.5-9B as a draft model make Qwen3.8-27B and Qwen3.6-27B (4-bit, MLX) decode faster? How does the speedup change with task type and number of draft tokens? And is a speculated dense 27B ever faster than just running the 35B-A3B MoE?", "environment": { "machine": { "model": "FileNotFoundError: [Errno 2] No such file or directory: 'sysctl'", "chip": "FileNotFoundError: [Errno 2] No such file or directory: 'sysctl'", "cpu_cores": "FileNotFoundError: [Errno 2] No such file or directory: 'sysctl'", "memory_gb": "FileNotFoundError: [Errno 2] No such file or directory: 'sysctl'", "gpu": "sh: system_profiler: command not found", "hardware": "sh: system_profiler: command not found" }, "os": { "product": "27.0.1", "build": "26A434", "darwin": "27.0.0" }, "software": { "python": "3.13.5", "python_path": "/opt/homebrew/Caskroom/miniconda/base/bin/python", "mlx": "0.31.2", "mlx-metal": "0.31.2", "mlx-lm": "0.31.3", "numpy": "2.4.2", "transformers": "5.12.1", "tokenizers": "0.22.2", "mlx_runtime": "0.31.2", "mlx_lm_runtime": "0.31.3", "device_runtime": "Device(gpu, 0)" }, "models": { "mlx-community/Qwen3.6-27B-4bit": "c000ac2c2057d94be3fa931000c31723aac53282", "mlx-community/Qwen3.5-9B-MLX-4bit": "938d8919941c6e7efd3c7150eff7fe9d12afa631", "mlx-community/Qwen3.6-35B-A3B-4bit": "38740b847e4cb78f352aba30aa41c76e08e6eb46" }, "power": { "power_source": "Now drawing from 'AC Power'", "low_power_mode": null }, "thermal": { "before": { "time": 1792444535.198922, "pmset_therm": "Note: No thermal warning level has been recorded\nNote: No performance warning level has been recorded\nNote: No CPU power status has been recorded", "powermetrics_ok": false, "powermetrics": "PermissionError: [Errno 1] Operation not permitted: 'sudo'" }, "powermetrics_ok": false, "after": { "time": 1792446561.27331, "pmset_therm": "Note: No thermal warning level has been recorded\nNote: No performance warning level has been recorded\nNote: No CPU power status has been recorded", "powermetrics_ok": false, "powermetrics": "PermissionError: [Errno 1] Operation not permitted: 'sudo'" } } }, "runs": 3, "metrics": { "tokenizer_compatible__Qwen3.8-27B-4bit": { "value": 0.0, "unit": "bool (1=identical ids)", "samples": [], "note": "vocab identical=True, special tokens identical=True, pre-tokenizer identical=False, sample of 2935 tokens identical=False (first diff at 2894), chat-templated prompt ids identical=True" }, "tokenizer_compatible__Qwen3.6-27B-4bit": { "value": 1.0, "unit": "bool (1=identical ids)", "samples": [], "note": "vocab identical=True, special tokens identical=True, pre-tokenizer identical=True, sample of 2931 tokens identical=True (first diff at None), chat-templated prompt ids identical=True" }, "tokenizer_compatible__Qwen3.6-35B-A3B-4bit": { "value": 1.0, "unit": "bool (1=identical ids)", "samples": [], "note": "vocab identical=True, special tokens identical=True, pre-tokenizer identical=True, sample of 2931 tokens identical=True (first diff at None), chat-templated prompt ids identical=True" }, "stock_mlx_lm_draft_model_works": { "value": 0.0, "unit": "bool", "samples": [], "note": "mlx_lm 0.31.3: ValueError: Speculative decoding requires a trimmable prompt cache (got {'ArraysCache'})." }, "decode_tps__Qwen3.6-27B-4bit__base__code": { "value": 18.329, "unit": "tokens/s", "samples": [ 23.221, 18.908, 18.486, 18.327, 18.331, 17.682, 16.778, 17.101 ], "note": "median over 8 runs (3 prompts x reps); min 16.78, max 23.22" }, "ttft_ms__Qwen3.6-27B-4bit__base__code": { "value": 2768.37, "unit": "ms", "samples": [ 2885.241, 2624.415, 2645.866, 2823.221, 2691.345, 2713.519, 2910.744, 2838.797 ], "note": "median; includes prefill of target (+draft)" }, "e2e_s__Qwen3.6-27B-4bit__base__code": { "value": 16.67, "unit": "s", "samples": [ 13.867, 16.111, 16.44, 16.737, 16.602, 17.135, 18.109, 17.75 ], "note": "wall time for 256 generated tokens incl. prefill" }, "peak_mem_gb__Qwen3.6-27B-4bit__base__code": { "value": 21.444, "unit": "GB", "samples": [ 21.444, 21.403, 21.403, 21.443, 21.403, 21.403, 21.443, 21.403 ], "note": "max of per-run MLX peak memory; weights of target AND draft are resident in every run of this process" }, "decode_tps__Qwen3.6-27B-4bit__k2__code": { "value": 21.105, "unit": "tokens/s", "samples": [ 32.884, 22.026, 20.67, 21.21, 20.357, 21.223, 21.105, 18.798, 20.343 ], "note": "median over 9 runs (3 prompts x reps); min 18.80, max 32.88" }, "ttft_ms__Qwen3.6-27B-4bit__k2__code": { "value": 3486.815, "unit": "ms", "samples": [ 3448.005, 3394.989, 3378.373, 3669.752, 3470.011, 3486.815, 3692.104, 3580.402, 3551.497 ], "note": "median; includes prefill of target (+draft)" }, "e2e_s__Qwen3.6-27B-4bit__k2__code": { "value": 15.715, "unit": "s", "samples": [ 11.203, 14.972, 15.715, 15.693, 15.997, 15.502, 15.775, 17.146, 16.086 ], "note": "wall time for 256 generated tokens incl. prefill" }, "peak_mem_gb__Qwen3.6-27B-4bit__k2__code": { "value": 21.512, "unit": "GB", "samples": [ 21.512, 21.471, 21.471, 21.512, 21.471, 21.471, 21.512, 21.471, 21.471 ], "note": "max of per-run MLX peak memory; weights of target AND draft are resident in every run of this process" }, "speedup__Qwen3.6-27B-4bit__k2__code": { "value": 1.151, "unit": "x", "samples": [ 1.157, 1.16, 1.111 ], "note": "median spec tok/s / median baseline tok/s; samples = per-prompt ratios of medians" }, "acceptance_rate__Qwen3.6-27B-4bit__k2__code": { "value": 95.825, "unit": "%", "samples": [ 100.0, 97.126, 90.659, 100.0, 90.659, 97.126, 100.0, 90.659, 97.126 ], "note": "accepted / proposed draft tokens (from_draft flags), pooled over runs" }, "alpha_per_position__Qwen3.6-27B-4bit__k2__code": { "value": 0.973, "unit": "probability", "samples": [], "note": "accepted / (accepted + rejections): per-position acceptance MLE used by the theory model" }, "tokens_per_cycle__Qwen3.6-27B-4bit__k2__code": { "value": 2.913, "unit": "tokens", "samples": [], "note": "tokens emitted per draft+verify cycle (approx; the last cycle may be cut at max_tokens)" }, "rollback_reforwards_per_run__Qwen3.6-27B-4bit__k2__code": { "value": 4.667, "unit": "count", "samples": [ 0.0, 4.0, 10.0, 0.0, 10.0, 4.0, 0.0, 10.0, 4.0 ], "note": "target re-forwards needed to roll back the recurrent state after a rejection" }, "decode_tps__Qwen3.6-27B-4bit__k4__code": { "value": 21.639, "unit": "tokens/s", "samples": [ 31.684, 22.128, 20.559, 23.934, 20.409, 21.149, 22.924, 19.422 ], "note": "median over 8 runs (3 prompts x reps); min 19.42, max 31.68" }, "ttft_ms__Qwen3.6-27B-4bit__k4__code": { "value": 3541.24, "unit": "ms", "samples": [ 3522.817, 3422.249, 3438.072, 3746.179, 3541.453, 3541.027, 3833.729, 3607.971 ], "note": "median; includes prefill of target (+draft)" }, "e2e_s__Qwen3.6-27B-4bit__k4__code": { "value": 15.278, "unit": "s", "samples": [ 11.571, 14.946, 15.842, 14.401, 16.036, 15.598, 14.957, 16.738 ], "note": "wall time for 256 generated tokens incl. prefill" }, "peak_mem_gb__Qwen3.6-27B-4bit__k4__code": { "value": 21.512, "unit": "GB", "samples": [ 21.512, 21.471, 21.471, 21.512, 21.471, 21.471, 21.512, 21.471 ], "note": "max of per-run MLX peak memory; weights of target AND draft are resident in every run of this process" }, "speedup__Qwen3.6-27B-4bit__k4__code": { "value": 1.181, "unit": "x", "samples": [ 1.306, 1.183, 1.113 ], "note": "median spec tok/s / median baseline tok/s; samples = per-prompt ratios of medians" }, "acceptance_rate__Qwen3.6-27B-4bit__k4__code": { "value": 93.141, "unit": "%", "samples": [ 100.0, 92.661, 87.281, 100.0, 87.281, 92.661, 100.0, 87.281 ], "note": "accepted / proposed draft tokens (from_draft flags), pooled over runs" }, "alpha_per_position__Qwen3.6-27B-4bit__k4__code": { "value": 0.975, "unit": "probability", "samples": [], "note": "accepted / (accepted + rejections): per-position acceptance MLE used by the theory model" }, "tokens_per_cycle__Qwen3.6-27B-4bit__k4__code": { "value": 4.698, "unit": "tokens", "samples": [], "note": "tokens emitted per draft+verify cycle (approx; the last cycle may be cut at max_tokens)" }, "rollback_reforwards_per_run__Qwen3.6-27B-4bit__k4__code": { "value": 5.25, "unit": "count", "samples": [ 0.0, 6.0, 10.0, 0.0, 10.0, 6.0, 0.0, 10.0 ], "note": "target re-forwards needed to roll back the recurrent state after a rejection" }, "decode_tps__Qwen3.6-27B-4bit__base__extract": { "value": 17.459, "unit": "tokens/s", "samples": [ 23.258, 21.902, 18.122, 18.091, 17.459, 17.344, 16.312, 17.15, 16.61 ], "note": "median over 9 runs (3 prompts x reps); min 16.31, max 23.26" }, "ttft_ms__Qwen3.6-27B-4bit__base__extract": { "value": 1367.479, "unit": "ms", "samples": [ 1329.513, 1337.116, 1323.633, 1496.682, 1495.38, 1349.813, 1553.755, 1367.479, 1565.282 ], "note": "median; includes prefill of target (+draft)" }, "e2e_s__Qwen3.6-27B-4bit__base__extract": { "value": 16.052, "unit": "s", "samples": [ 12.293, 12.98, 15.395, 15.592, 16.101, 16.052, 17.186, 16.236, 16.917 ], "note": "wall time for 256 generated tokens incl. prefill" }, "peak_mem_gb__Qwen3.6-27B-4bit__base__extract": { "value": 20.972, "unit": "GB", "samples": [ 20.972, 20.909, 20.921, 20.972, 20.909, 20.921, 20.909, 20.921, 20.972 ], "note": "max of per-run MLX peak memory; weights of target AND draft are resident in every run of this process" }, "decode_tps__Qwen3.6-27B-4bit__k2__extract": { "value": 18.741, "unit": "tokens/s", "samples": [ 31.657, 20.925, 17.061, 22.256, 18.741, 15.733, 18.255, 16.252, 20.662 ], "note": "median over 9 runs (3 prompts x reps); min 15.73, max 31.66" }, "ttft_ms__Qwen3.6-27B-4bit__k2__extract": { "value": 1793.115, "unit": "ms", "samples": [ 1733.082, 1764.279, 1736.344, 1980.121, 1900.39, 1759.018, 1924.008, 1793.115, 1989.598 ], "note": "median; includes prefill of target (+draft)" }, "e2e_s__Qwen3.6-27B-4bit__k2__extract": { "value": 15.507, "unit": "s", "samples": [ 9.788, 13.951, 16.683, 13.438, 15.507, 17.967, 15.893, 17.484, 14.331 ], "note": "wall time for 256 generated tokens incl. prefill" }, "peak_mem_gb__Qwen3.6-27B-4bit__k2__extract": { "value": 21.032, "unit": "GB", "samples": [ 21.032, 20.969, 20.981, 21.032, 20.968, 20.981, 20.968, 20.981, 21.032 ], "note": "max of per-run MLX peak memory; weights of target AND draft are resident in every run of this process" }, "speedup__Qwen3.6-27B-4bit__k2__extract": { "value": 1.073, "unit": "x", "samples": [ 0.937, 1.23, 1.073 ], "note": "median spec tok/s / median baseline tok/s; samples = per-prompt ratios of medians" }, "acceptance_rate__Qwen3.6-27B-4bit__k2__extract": { "value": 86.195, "unit": "%", "samples": [ 100.0, 85.263, 75.49, 100.0, 85.263, 75.49, 85.263, 75.49, 100.0 ], "note": "accepted / proposed draft tokens (from_draft flags), pooled over runs" }, "alpha_per_position__Qwen3.6-27B-4bit__k2__extract": { "value": 0.91, "unit": "probability", "samples": [], "note": "accepted / (accepted + rejections): per-position acceptance MLE used by the theory model" }, "tokens_per_cycle__Qwen3.6-27B-4bit__k2__extract": { "value": 2.721, "unit": "tokens", "samples": [], "note": "tokens emitted per draft+verify cycle (approx; the last cycle may be cut at max_tokens)" }, "rollback_reforwards_per_run__Qwen3.6-27B-4bit__k2__extract": { "value": 16.0, "unit": "count", "samples": [ 0.0, 17.0, 31.0, 0.0, 17.0, 31.0, 17.0, 31.0, 0.0 ], "note": "target re-forwards needed to roll back the recurrent state after a rejection" }, "decode_tps__Qwen3.6-27B-4bit__k4__extract": { "value": 16.733, "unit": "tokens/s", "samples": [ 32.145, 17.7, 15.231, 23.158, 16.733, 14.454, 16.039, 14.179, 21.824 ], "note": "median over 9 runs (3 prompts x reps); min 14.18, max 32.15" }, "ttft_ms__Qwen3.6-27B-4bit__k4__extract": { "value": 2001.078, "unit": "ms", "samples": [ 1762.163, 1868.18, 1801.026, 2011.478, 2003.115, 1826.928, 2001.078, 2117.608, 2133.924 ], "note": "median; includes prefill of target (+draft)" }, "e2e_s__Qwen3.6-27B-4bit__k4__extract": { "value": 17.242, "unit": "s", "samples": [ 9.695, 16.275, 18.543, 13.023, 17.242, 19.469, 17.9, 20.101, 13.818 ], "note": "wall time for 256 generated tokens incl. prefill" }, "peak_mem_gb__Qwen3.6-27B-4bit__k4__extract": { "value": 21.032, "unit": "GB", "samples": [ 21.032, 20.968, 20.981, 21.032, 20.968, 20.981, 20.968, 20.981, 21.032 ], "note": "max of per-run MLX peak memory; weights of target AND draft are resident in every run of this process" }, "speedup__Qwen3.6-27B-4bit__k4__extract": { "value": 0.958, "unit": "x", "samples": [ 0.833, 1.28, 0.958 ], "note": "median spec tok/s / median baseline tok/s; samples = per-prompt ratios of medians" }, "acceptance_rate__Qwen3.6-27B-4bit__k4__extract": { "value": 77.467, "unit": "%", "samples": [ 98.077, 74.419, 65.141, 98.077, 74.419, 65.141, 74.419, 65.141, 98.077 ], "note": "accepted / proposed draft tokens (from_draft flags), pooled over runs" }, "alpha_per_position__Qwen3.6-27B-4bit__k4__extract": { "value": 0.911, "unit": "probability", "samples": [], "note": "accepted / (accepted + rejections): per-position acceptance MLE used by the theory model" }, "tokens_per_cycle__Qwen3.6-27B-4bit__k4__extract": { "value": 4.09, "unit": "tokens", "samples": [], "note": "tokens emitted per draft+verify cycle (approx; the last cycle may be cut at max_tokens)" }, "rollback_reforwards_per_run__Qwen3.6-27B-4bit__k4__extract": { "value": 19.0, "unit": "count", "samples": [ 1.0, 23.0, 33.0, 1.0, 23.0, 33.0, 23.0, 33.0, 1.0 ], "note": "target re-forwards needed to roll back the recurrent state after a rejection" }, "decode_tps__Qwen3.6-27B-4bit__base__explain": { "value": 17.662, "unit": "tokens/s", "samples": [ 22.922, 17.662, 18.526, 18.431, 18.044, 17.348, 17.275, 16.746, 16.282 ], "note": "median over 9 runs (3 prompts x reps); min 16.28, max 22.92" }, "ttft_ms__Qwen3.6-27B-4bit__base__explain": { "value": 494.317, "unit": "ms", "samples": [ 395.709, 478.965, 514.386, 470.468, 494.317, 481.158, 501.339, 498.285, 500.476 ], "note": "median; includes prefill of target (+draft)" }, "e2e_s__Qwen3.6-27B-4bit__base__explain": { "value": 14.917, "unit": "s", "samples": [ 11.521, 14.917, 14.279, 14.306, 14.626, 15.18, 15.263, 15.726, 16.162 ], "note": "wall time for 256 generated tokens incl. prefill" }, "peak_mem_gb__Qwen3.6-27B-4bit__base__explain": { "value": 20.548, "unit": "GB", "samples": [ 20.534, 20.545, 20.548, 20.545, 20.534, 20.548, 20.545, 20.548, 20.534 ], "note": "max of per-run MLX peak memory; weights of target AND draft are resident in every run of this process" }, "decode_tps__Qwen3.6-27B-4bit__k2__explain": { "value": 15.871, "unit": "tokens/s", "samples": [ 20.045, 15.01, 17.449, 15.253, 15.871, 16.774, 14.623, 16.369, 15.293 ], "note": "median over 9 runs (3 prompts x reps); min 14.62, max 20.05" }, "ttft_ms__Qwen3.6-27B-4bit__k2__explain": { "value": 654.031, "unit": "ms", "samples": [ 534.852, 647.403, 644.072, 606.5, 657.274, 655.255, 654.031, 668.415, 659.36 ], "note": "median; includes prefill of target (+draft)" }, "e2e_s__Qwen3.6-27B-4bit__k2__explain": { "value": 16.724, "unit": "s", "samples": [ 13.256, 17.636, 15.258, 17.324, 16.724, 15.857, 18.092, 16.247, 17.334 ], "note": "wall time for 256 generated tokens incl. prefill" }, "peak_mem_gb__Qwen3.6-27B-4bit__k2__explain": { "value": 20.667, "unit": "GB", "samples": [ 20.667, 20.667, 20.667, 20.667, 20.667, 20.667, 20.666, 20.667, 20.667 ], "note": "max of per-run MLX peak memory; weights of target AND draft are resident in every run of this process" }, "speedup__Qwen3.6-27B-4bit__k2__explain": { "value": 0.899, "unit": "x", "samples": [ 0.967, 0.88, 0.85 ], "note": "median spec tok/s / median baseline tok/s; samples = per-prompt ratios of medians" }, "acceptance_rate__Qwen3.6-27B-4bit__k2__explain": { "value": 72.337, "unit": "%", "samples": [ 72.381, 66.364, 78.894, 66.364, 72.381, 78.894, 66.364, 78.894, 72.381 ], "note": "accepted / proposed draft tokens (from_draft flags), pooled over runs" }, "alpha_per_position__Qwen3.6-27B-4bit__k2__explain": { "value": 0.8, "unit": "probability", "samples": [], "note": "accepted / (accepted + rejections): per-position acceptance MLE used by the theory model" }, "tokens_per_cycle__Qwen3.6-27B-4bit__k2__explain": { "value": 2.444, "unit": "tokens", "samples": [], "note": "tokens emitted per draft+verify cycle (approx; the last cycle may be cut at max_tokens)" }, "rollback_reforwards_per_run__Qwen3.6-27B-4bit__k2__explain": { "value": 38.0, "unit": "count", "samples": [ 38.0, 47.0, 29.0, 47.0, 38.0, 29.0, 47.0, 29.0, 38.0 ], "note": "target re-forwards needed to roll back the recurrent state after a rejection" }, "decode_tps__Qwen3.6-27B-4bit__k4__explain": { "value": 13.373, "unit": "tokens/s", "samples": [ 17.756, 12.053, 15.422, 12.537, 13.373, 14.989, 11.694, 14.444, 12.927 ], "note": "median over 9 runs (3 prompts x reps); min 11.69, max 17.76" }, "ttft_ms__Qwen3.6-27B-4bit__k4__explain": { "value": 697.825, "unit": "ms", "samples": [ 567.532, 749.142, 711.904, 678.138, 677.659, 732.403, 685.789, 740.364, 697.825 ], "note": "median; includes prefill of target (+draft)" }, "e2e_s__Qwen3.6-27B-4bit__k4__explain": { "value": 19.745, "unit": "s", "samples": [ 14.929, 21.906, 17.246, 21.018, 19.745, 17.745, 22.491, 18.395, 20.423 ], "note": "wall time for 256 generated tokens incl. prefill" }, "peak_mem_gb__Qwen3.6-27B-4bit__k4__explain": { "value": 20.772, "unit": "GB", "samples": [ 20.771, 20.771, 20.772, 20.771, 20.771, 20.771, 20.771, 20.771, 20.771 ], "note": "max of per-run MLX peak memory; weights of target AND draft are resident in every run of this process" }, "speedup__Qwen3.6-27B-4bit__k4__explain": { "value": 0.757, "unit": "x", "samples": [ 0.864, 0.741, 0.682 ], "note": "median spec tok/s / median baseline tok/s; samples = per-prompt ratios of medians" }, "acceptance_rate__Qwen3.6-27B-4bit__k4__explain": { "value": 59.451, "unit": "%", "samples": [ 59.016, 52.108, 68.864, 52.108, 59.016, 68.864, 52.108, 68.864, 59.016 ], "note": "accepted / proposed draft tokens (from_draft flags), pooled over runs" }, "alpha_per_position__Qwen3.6-27B-4bit__k4__explain": { "value": 0.804, "unit": "probability", "samples": [], "note": "accepted / (accepted + rejections): per-position acceptance MLE used by the theory model" }, "tokens_per_cycle__Qwen3.6-27B-4bit__k4__explain": { "value": 3.362, "unit": "tokens", "samples": [], "note": "tokens emitted per draft+verify cycle (approx; the last cycle may be cut at max_tokens)" }, "rollback_reforwards_per_run__Qwen3.6-27B-4bit__k4__explain": { "value": 43.667, "unit": "count", "samples": [ 45.0, 52.0, 34.0, 52.0, 45.0, 34.0, 52.0, 34.0, 45.0 ], "note": "target re-forwards needed to roll back the recurrent state after a rejection" }, "decode_tps__Qwen3.6-27B-4bit__base__creative": { "value": 17.33, "unit": "tokens/s", "samples": [ 16.973, 18.857, 18.609, 17.976, 17.223, 17.33, 17.42, 16.958, 17.107 ], "note": "median over 9 runs (3 prompts x reps); min 16.96, max 18.86" }, "ttft_ms__Qwen3.6-27B-4bit__base__creative": { "value": 483.722, "unit": "ms", "samples": [ 491.435, 452.471, 470.518, 455.682, 486.352, 483.722, 468.848, 490.592, 493.165 ], "note": "median; includes prefill of target (+draft)" }, "e2e_s__Qwen3.6-27B-4bit__base__creative": { "value": 15.198, "unit": "s", "samples": [ 15.515, 13.975, 14.174, 14.641, 15.293, 15.198, 15.107, 15.527, 15.399 ], "note": "wall time for 256 generated tokens incl. prefill" }, "peak_mem_gb__Qwen3.6-27B-4bit__base__creative": { "value": 20.519, "unit": "GB", "samples": [ 20.519, 20.511, 20.501, 20.511, 20.501, 20.519, 20.511, 20.519, 20.501 ], "note": "max of per-run MLX peak memory; weights of target AND draft are resident in every run of this process" }, "decode_tps__Qwen3.6-27B-4bit__k2__creative": { "value": 12.018, "unit": "tokens/s", "samples": [ 11.583, 12.187, 14.46, 12.018, 14.077, 11.472, 11.64, 11.202, 14.199 ], "note": "median over 9 runs (3 prompts x reps); min 11.20, max 14.46" }, "ttft_ms__Qwen3.6-27B-4bit__k2__creative": { "value": 618.537, "unit": "ms", "samples": [ 575.877, 572.205, 618.537, 592.967, 609.948, 643.93, 646.641, 655.241, 653.213 ], "note": "median; includes prefill of target (+draft)" }, "e2e_s__Qwen3.6-27B-4bit__k2__creative": { "value": 21.81, "unit": "s", "samples": [ 22.592, 21.496, 18.253, 21.81, 18.724, 22.872, 22.553, 23.418, 18.612 ], "note": "wall time for 256 generated tokens incl. prefill" }, "peak_mem_gb__Qwen3.6-27B-4bit__k2__creative": { "value": 20.67, "unit": "GB", "samples": [ 20.667, 20.667, 20.667, 20.667, 20.667, 20.67, 20.666, 20.67, 20.667 ], "note": "max of per-run MLX peak memory; weights of target AND draft are resident in every run of this process" }, "speedup__Qwen3.6-27B-4bit__k2__creative": { "value": 0.694, "unit": "x", "samples": [ 0.676, 0.824, 0.669 ], "note": "median spec tok/s / median baseline tok/s; samples = per-prompt ratios of medians" }, "acceptance_rate__Qwen3.6-27B-4bit__k2__creative": { "value": 52.603, "unit": "%", "samples": [ 46.97, 48.276, 64.286, 48.276, 64.286, 46.97, 48.276, 46.97, 64.286 ], "note": "accepted / proposed draft tokens (from_draft flags), pooled over runs" }, "alpha_per_position__Qwen3.6-27B-4bit__k2__creative": { "value": 0.644, "unit": "probability", "samples": [], "note": "accepted / (accepted + rejections): per-position acceptance MLE used by the theory model" }, "tokens_per_cycle__Qwen3.6-27B-4bit__k2__creative": { "value": 2.051, "unit": "tokens", "samples": [], "note": "tokens emitted per draft+verify cycle (approx; the last cycle may be cut at max_tokens)" }, "rollback_reforwards_per_run__Qwen3.6-27B-4bit__k2__creative": { "value": 72.333, "unit": "count", "samples": [ 87.0, 81.0, 49.0, 81.0, 49.0, 87.0, 81.0, 87.0, 49.0 ], "note": "target re-forwards needed to roll back the recurrent state after a rejection" }, "decode_tps__Qwen3.6-27B-4bit__k4__creative": { "value": 8.888, "unit": "tokens/s", "samples": [ 8.672, 9.195, 11.157, 8.888, 10.676, 8.785, 8.844, 8.41, 10.682 ], "note": "median over 9 runs (3 prompts x reps); min 8.41, max 11.16" }, "ttft_ms__Qwen3.6-27B-4bit__k4__creative": { "value": 679.986, "unit": "ms", "samples": [ 679.986, 661.791, 715.923, 727.662, 671.779, 734.77, 679.842, 747.637, 677.045 ], "note": "median; includes prefill of target (+draft)" }, "e2e_s__Qwen3.6-27B-4bit__k4__creative": { "value": 29.418, "unit": "s", "samples": [ 30.083, 28.394, 23.572, 29.418, 24.558, 29.761, 29.514, 31.067, 24.55 ], "note": "wall time for 256 generated tokens incl. prefill" }, "peak_mem_gb__Qwen3.6-27B-4bit__k4__creative": { "value": 20.778, "unit": "GB", "samples": [ 20.778, 20.771, 20.772, 20.771, 20.772, 20.778, 20.771, 20.778, 20.772 ], "note": "max of per-run MLX peak memory; weights of target AND draft are resident in every run of this process" }, "speedup__Qwen3.6-27B-4bit__k4__creative": { "value": 0.513, "unit": "x", "samples": [ 0.511, 0.62, 0.494 ], "note": "median spec tok/s / median baseline tok/s; samples = per-prompt ratios of medians" }, "acceptance_rate__Qwen3.6-27B-4bit__k4__creative": { "value": 38.449, "unit": "%", "samples": [ 35.129, 35.047, 46.499, 35.047, 46.499, 35.129, 35.047, 35.129, 46.499 ], "note": "accepted / proposed draft tokens (from_draft flags), pooled over runs" }, "alpha_per_position__Qwen3.6-27B-4bit__k4__creative": { "value": 0.645, "unit": "probability", "samples": [], "note": "accepted / (accepted + rejections): per-position acceptance MLE used by the theory model" }, "tokens_per_cycle__Qwen3.6-27B-4bit__k4__creative": { "value": 2.533, "unit": "tokens", "samples": [], "note": "tokens emitted per draft+verify cycle (approx; the last cycle may be cut at max_tokens)" }, "rollback_reforwards_per_run__Qwen3.6-27B-4bit__k4__creative": { "value": 85.333, "unit": "count", "samples": [ 94.0, 93.0, 69.0, 93.0, 69.0, 94.0, 93.0, 94.0, 69.0 ], "note": "target re-forwards needed to roll back the recurrent state after a rejection" }, "decode_tps__Qwen3.6-27B-4bit__base__all": { "value": 17.662, "unit": "tokens/s", "samples": [ 23.221, 23.258, 22.922, 21.902, 16.973, 17.662, 18.122, 18.857, 18.609, 18.908, 18.486, 18.526, 18.431, 18.327, 18.044, 17.976, 18.331, 18.091, 17.459, 17.348, 17.344, 17.223, 17.33, 17.682, 17.42, 17.275, 16.778, 16.958, 17.107, 16.312, 17.15, 17.101, 16.61, 16.746, 16.282 ], "note": "median over 35 runs (3 prompts x reps); min 16.28, max 23.26" }, "ttft_ms__Qwen3.6-27B-4bit__base__all": { "value": 514.386, "unit": "ms", "samples": [ 2885.241, 1329.513, 395.709, 1337.116, 491.435, 478.965, 1323.633, 452.471, 470.518, 2624.415, 2645.866, 514.386, 470.468, 2823.221, 494.317, 455.682, 2691.345, 1496.682, 1495.38, 481.158, 1349.813, 486.352, 483.722, 2713.519, 468.848, 501.339, 2910.744, 490.592, 493.165, 1553.755, 1367.479, 2838.797, 1565.282, 498.285, 500.476 ], "note": "median; includes prefill of target (+draft)" }, "e2e_s__Qwen3.6-27B-4bit__base__all": { "value": 15.399, "unit": "s", "samples": [ 13.867, 12.293, 11.521, 12.98, 15.515, 14.917, 15.395, 13.975, 14.174, 16.111, 16.44, 14.279, 14.306, 16.737, 14.626, 14.641, 16.602, 15.592, 16.101, 15.18, 16.052, 15.293, 15.198, 17.135, 15.107, 15.263, 18.109, 15.527, 15.399, 17.186, 16.236, 17.75, 16.917, 15.726, 16.162 ], "note": "wall time for 256 generated tokens incl. prefill" }, "peak_mem_gb__Qwen3.6-27B-4bit__base__all": { "value": 21.444, "unit": "GB", "samples": [ 21.444, 20.972, 20.534, 20.909, 20.519, 20.545, 20.921, 20.511, 20.501, 21.403, 21.403, 20.548, 20.545, 21.443, 20.534, 20.511, 21.403, 20.972, 20.909, 20.548, 20.921, 20.501, 20.519, 21.403, 20.511, 20.545, 21.443, 20.519, 20.501, 20.909, 20.921, 21.403, 20.972, 20.548, 20.534 ], "note": "max of per-run MLX peak memory; weights of target AND draft are resident in every run of this process" }, "decode_tps__Qwen3.6-27B-4bit__k2__all": { "value": 16.917, "unit": "tokens/s", "samples": [ 32.884, 31.657, 20.045, 20.925, 11.583, 15.01, 17.061, 12.187, 14.46, 22.026, 20.67, 17.449, 15.253, 21.21, 15.871, 12.018, 20.357, 22.256, 18.741, 16.774, 15.733, 14.077, 11.472, 21.223, 11.64, 14.623, 21.105, 11.202, 14.199, 18.255, 16.252, 18.798, 20.662, 16.369, 15.293, 20.343 ], "note": "median over 36 runs (3 prompts x reps); min 11.20, max 32.88" }, "ttft_ms__Qwen3.6-27B-4bit__k2__all": { "value": 1200.749, "unit": "ms", "samples": [ 3448.005, 1733.082, 534.852, 1764.279, 575.877, 647.403, 1736.344, 572.205, 618.537, 3394.989, 3378.373, 644.072, 606.5, 3669.752, 657.274, 592.967, 3470.011, 1980.121, 1900.39, 655.255, 1759.018, 609.948, 643.93, 3486.815, 646.641, 654.031, 3692.104, 655.241, 653.213, 1924.008, 1793.115, 3580.402, 1989.598, 668.415, 659.36, 3551.497 ], "note": "median; includes prefill of target (+draft)" }, "e2e_s__Qwen3.6-27B-4bit__k2__all": { "value": 16.465, "unit": "s", "samples": [ 11.203, 9.788, 13.256, 13.951, 22.592, 17.636, 16.683, 21.496, 18.253, 14.972, 15.715, 15.258, 17.324, 15.693, 16.724, 21.81, 15.997, 13.438, 15.507, 15.857, 17.967, 18.724, 22.872, 15.502, 22.553, 18.092, 15.775, 23.418, 18.612, 15.893, 17.484, 17.146, 14.331, 16.247, 17.334, 16.086 ], "note": "wall time for 256 generated tokens incl. prefill" }, "peak_mem_gb__Qwen3.6-27B-4bit__k2__all": { "value": 21.512, "unit": "GB", "samples": [ 21.512, 21.032, 20.667, 20.969, 20.667, 20.667, 20.981, 20.667, 20.667, 21.471, 21.471, 20.667, 20.667, 21.512, 20.667, 20.667, 21.471, 21.032, 20.968, 20.667, 20.981, 20.667, 20.67, 21.471, 20.666, 20.666, 21.512, 20.67, 20.667, 20.968, 20.981, 21.471, 21.032, 20.667, 20.667, 21.471 ], "note": "max of per-run MLX peak memory; weights of target AND draft are resident in every run of this process" }, "speedup__Qwen3.6-27B-4bit__k2__all": { "value": 0.958, "unit": "x", "samples": [ 1.157, 1.16, 1.111, 0.676, 0.824, 0.669, 0.967, 0.88, 0.85, 0.937, 1.23, 1.073 ], "note": "median spec tok/s / median baseline tok/s; samples = per-prompt ratios of medians" }, "acceptance_rate__Qwen3.6-27B-4bit__k2__all": { "value": 74.534, "unit": "%", "samples": [ 100.0, 100.0, 72.381, 85.263, 46.97, 66.364, 75.49, 48.276, 64.286, 97.126, 90.659, 78.894, 66.364, 100.0, 72.381, 48.276, 90.659, 100.0, 85.263, 78.894, 75.49, 64.286, 46.97, 97.126, 48.276, 66.364, 100.0, 46.97, 64.286, 85.263, 75.49, 90.659, 100.0, 78.894, 72.381, 97.126 ], "note": "accepted / proposed draft tokens (from_draft flags), pooled over runs" }, "alpha_per_position__Qwen3.6-27B-4bit__k2__all": { "value": 0.824, "unit": "probability", "samples": [], "note": "accepted / (accepted + rejections): per-position acceptance MLE used by the theory model" }, "tokens_per_cycle__Qwen3.6-27B-4bit__k2__all": { "value": 2.488, "unit": "tokens", "samples": [], "note": "tokens emitted per draft+verify cycle (approx; the last cycle may be cut at max_tokens)" }, "rollback_reforwards_per_run__Qwen3.6-27B-4bit__k2__all": { "value": 32.75, "unit": "count", "samples": [ 0.0, 0.0, 38.0, 17.0, 87.0, 47.0, 31.0, 81.0, 49.0, 4.0, 10.0, 29.0, 47.0, 0.0, 38.0, 81.0, 10.0, 0.0, 17.0, 29.0, 31.0, 49.0, 87.0, 4.0, 81.0, 47.0, 0.0, 87.0, 49.0, 17.0, 31.0, 10.0, 0.0, 29.0, 38.0, 4.0 ], "note": "target re-forwards needed to roll back the recurrent state after a rejection" }, "decode_tps__Qwen3.6-27B-4bit__k4__all": { "value": 14.989, "unit": "tokens/s", "samples": [ 31.684, 32.145, 17.756, 17.7, 8.672, 12.053, 15.231, 9.195, 11.157, 22.128, 20.559, 15.422, 12.537, 23.934, 13.373, 8.888, 20.409, 23.158, 16.733, 14.989, 14.454, 10.676, 8.785, 21.149, 8.844, 11.694, 22.924, 8.41, 10.682, 16.039, 14.179, 19.422, 21.824, 14.444, 12.927 ], "note": "median over 35 runs (3 prompts x reps); min 8.41, max 32.15" }, "ttft_ms__Qwen3.6-27B-4bit__k4__all": { "value": 749.142, "unit": "ms", "samples": [ 3522.817, 1762.163, 567.532, 1868.18, 679.986, 749.142, 1801.026, 661.791, 715.923, 3422.249, 3438.072, 711.904, 678.138, 3746.179, 677.659, 727.662, 3541.453, 2011.478, 2003.115, 732.403, 1826.928, 671.779, 734.77, 3541.027, 679.842, 685.789, 3833.729, 747.637, 677.045, 2001.078, 2117.608, 3607.971, 2133.924, 740.364, 697.825 ], "note": "median; includes prefill of target (+draft)" }, "e2e_s__Qwen3.6-27B-4bit__k4__all": { "value": 18.395, "unit": "s", "samples": [ 11.571, 9.695, 14.929, 16.275, 30.083, 21.906, 18.543, 28.394, 23.572, 14.946, 15.842, 17.246, 21.018, 14.401, 19.745, 29.418, 16.036, 13.023, 17.242, 17.745, 19.469, 24.558, 29.761, 15.598, 29.514, 22.491, 14.957, 31.067, 24.55, 17.9, 20.101, 16.738, 13.818, 18.395, 20.423 ], "note": "wall time for 256 generated tokens incl. prefill" }, "peak_mem_gb__Qwen3.6-27B-4bit__k4__all": { "value": 21.512, "unit": "GB", "samples": [ 21.512, 21.032, 20.771, 20.968, 20.778, 20.771, 20.981, 20.771, 20.772, 21.471, 21.471, 20.772, 20.771, 21.512, 20.771, 20.771, 21.471, 21.032, 20.968, 20.771, 20.981, 20.772, 20.778, 21.471, 20.771, 20.771, 21.512, 20.778, 20.772, 20.968, 20.981, 21.471, 21.032, 20.771, 20.771 ], "note": "max of per-run MLX peak memory; weights of target AND draft are resident in every run of this process" }, "speedup__Qwen3.6-27B-4bit__k4__all": { "value": 0.849, "unit": "x", "samples": [ 1.306, 1.183, 1.113, 0.511, 0.62, 0.494, 0.864, 0.741, 0.682, 0.833, 1.28, 0.958 ], "note": "median spec tok/s / median baseline tok/s; samples = per-prompt ratios of medians" }, "acceptance_rate__Qwen3.6-27B-4bit__k4__all": { "value": 61.637, "unit": "%", "samples": [ 100.0, 98.077, 59.016, 74.419, 35.129, 52.108, 65.141, 35.047, 46.499, 92.661, 87.281, 68.864, 52.108, 100.0, 59.016, 35.047, 87.281, 98.077, 74.419, 68.864, 65.141, 46.499, 35.129, 92.661, 35.047, 52.108, 100.0, 35.129, 46.499, 74.419, 65.141, 87.281, 98.077, 68.864, 59.016 ], "note": "accepted / proposed draft tokens (from_draft flags), pooled over runs" }, "alpha_per_position__Qwen3.6-27B-4bit__k4__all": { "value": 0.822, "unit": "probability", "samples": [], "note": "accepted / (accepted + rejections): per-position acceptance MLE used by the theory model" }, "tokens_per_cycle__Qwen3.6-27B-4bit__k4__all": { "value": 3.454, "unit": "tokens", "samples": [], "note": "tokens emitted per draft+verify cycle (approx; the last cycle may be cut at max_tokens)" }, "rollback_reforwards_per_run__Qwen3.6-27B-4bit__k4__all": { "value": 39.257, "unit": "count", "samples": [ 0.0, 1.0, 45.0, 23.0, 94.0, 52.0, 33.0, 93.0, 69.0, 6.0, 10.0, 34.0, 52.0, 0.0, 45.0, 93.0, 10.0, 1.0, 23.0, 34.0, 33.0, 69.0, 94.0, 6.0, 93.0, 52.0, 0.0, 94.0, 69.0, 23.0, 33.0, 10.0, 1.0, 34.0, 45.0 ], "note": "target re-forwards needed to roll back the recurrent state after a rejection" }, "greedy_identical_pct__Qwen3.6-27B-4bit__base": { "value": 100.0, "unit": "% of runs", "samples": [], "note": "baseline repeats vs first baseline run: 23/23 identical; first differing position (non-identical runs): []" }, "greedy_identical_pct__Qwen3.6-27B-4bit__k2": { "value": 100.0, "unit": "% of runs", "samples": [], "note": "k2 vs baseline: 36/36 identical; first differing position (non-identical runs): []" }, "greedy_identical_pct__Qwen3.6-27B-4bit__k4": { "value": 100.0, "unit": "% of runs", "samples": [], "note": "k4 vs baseline: 35/35 identical; first differing position (non-identical runs): []" }, "greedy_identical_pct__moe__base": { "value": 100.0, "unit": "% of runs", "samples": [], "note": "baseline repeats vs first run: 24/24" }, "target_forward_ms__verify_S1": { "value": 48.012, "unit": "ms", "samples": [], "note": "one target forward over 1 tokens at 474-token context, logits+cache evaluated (median of 5)" }, "target_forward_ms__reforward_S1": { "value": 45.67, "unit": "ms", "samples": [], "note": "same, caches only (hybrid rollback re-forward of 1 tokens)" }, "target_forward_ms__verify_S2": { "value": 49.181, "unit": "ms", "samples": [], "note": "one target forward over 2 tokens at 474-token context, logits+cache evaluated (median of 5)" }, "target_forward_ms__reforward_S2": { "value": 47.111, "unit": "ms", "samples": [], "note": "same, caches only (hybrid rollback re-forward of 2 tokens)" }, "target_forward_ms__verify_S3": { "value": 60.413, "unit": "ms", "samples": [], "note": "one target forward over 3 tokens at 474-token context, logits+cache evaluated (median of 5)" }, "target_forward_ms__reforward_S3": { "value": 56.992, "unit": "ms", "samples": [], "note": "same, caches only (hybrid rollback re-forward of 3 tokens)" }, "target_forward_ms__verify_S4": { "value": 76.35, "unit": "ms", "samples": [], "note": "one target forward over 4 tokens at 474-token context, logits+cache evaluated (median of 5)" }, "target_forward_ms__reforward_S4": { "value": 72.017, "unit": "ms", "samples": [], "note": "same, caches only (hybrid rollback re-forward of 4 tokens)" }, "target_forward_ms__verify_S5": { "value": 93.161, "unit": "ms", "samples": [], "note": "one target forward over 5 tokens at 474-token context, logits+cache evaluated (median of 5)" }, "target_forward_ms__reforward_S5": { "value": 87.813, "unit": "ms", "samples": [], "note": "same, caches only (hybrid rollback re-forward of 5 tokens)" }, "draft_forward_ms__S1": { "value": 16.225, "unit": "ms", "samples": [], "note": "one draft decode step" }, "draft_cost_ratio_c__microbench": { "value": 0.338, "unit": "ratio", "samples": [], "note": "draft step time / target step time (forward microbenchmark)" }, "theory_speedup_classic__Qwen3.6-27B-4bit__k2__code": { "value": 1.742, "unit": "x", "samples": [], "note": "(1-a^(k+1))/((1-a)(kc+1)), a=0.973, c=0.338" }, "theory_speedup_hybrid__Qwen3.6-27B-4bit__k2__code": { "value": 1.471, "unit": "x", "samples": [], "note": "classic + measured verify cost + rollback re-forward cost" }, "theory_speedup_classic__Qwen3.6-27B-4bit__k4__code": { "value": 2.021, "unit": "x", "samples": [], "note": "(1-a^(k+1))/((1-a)(kc+1)), a=0.975, c=0.338" }, "theory_speedup_hybrid__Qwen3.6-27B-4bit__k4__code": { "value": 1.396, "unit": "x", "samples": [], "note": "classic + measured verify cost + rollback re-forward cost" }, "theory_speedup_classic__Qwen3.6-27B-4bit__k2__extract": { "value": 1.634, "unit": "x", "samples": [], "note": "(1-a^(k+1))/((1-a)(kc+1)), a=0.910, c=0.338" }, "theory_speedup_hybrid__Qwen3.6-27B-4bit__k2__extract": { "value": 1.304, "unit": "x", "samples": [], "note": "classic + measured verify cost + rollback re-forward cost" }, "theory_speedup_classic__Qwen3.6-27B-4bit__k4__extract": { "value": 1.779, "unit": "x", "samples": [], "note": "(1-a^(k+1))/((1-a)(kc+1)), a=0.911, c=0.338" }, "theory_speedup_hybrid__Qwen3.6-27B-4bit__k4__extract": { "value": 1.147, "unit": "x", "samples": [], "note": "classic + measured verify cost + rollback re-forward cost" }, "theory_speedup_classic__Qwen3.6-27B-4bit__k2__explain": { "value": 1.455, "unit": "x", "samples": [], "note": "(1-a^(k+1))/((1-a)(kc+1)), a=0.800, c=0.338" }, "theory_speedup_hybrid__Qwen3.6-27B-4bit__k2__explain": { "value": 1.069, "unit": "x", "samples": [], "note": "classic + measured verify cost + rollback re-forward cost" }, "theory_speedup_classic__Qwen3.6-27B-4bit__k4__explain": { "value": 1.44, "unit": "x", "samples": [], "note": "(1-a^(k+1))/((1-a)(kc+1)), a=0.804, c=0.338" }, "theory_speedup_hybrid__Qwen3.6-27B-4bit__k4__explain": { "value": 0.86, "unit": "x", "samples": [], "note": "classic + measured verify cost + rollback re-forward cost" }, "theory_speedup_classic__Qwen3.6-27B-4bit__k2__creative": { "value": 1.228, "unit": "x", "samples": [], "note": "(1-a^(k+1))/((1-a)(kc+1)), a=0.644, c=0.338" }, "theory_speedup_hybrid__Qwen3.6-27B-4bit__k2__creative": { "value": 0.824, "unit": "x", "samples": [], "note": "classic + measured verify cost + rollback re-forward cost" }, "theory_speedup_classic__Qwen3.6-27B-4bit__k4__creative": { "value": 1.063, "unit": "x", "samples": [], "note": "(1-a^(k+1))/((1-a)(kc+1)), a=0.645, c=0.338" }, "theory_speedup_hybrid__Qwen3.6-27B-4bit__k4__creative": { "value": 0.599, "unit": "x", "samples": [], "note": "classic + measured verify cost + rollback re-forward cost" }, "theory_speedup_classic__Qwen3.6-27B-4bit__k2__all": { "value": 1.493, "unit": "x", "samples": [], "note": "(1-a^(k+1))/((1-a)(kc+1)), a=0.824, c=0.338" }, "theory_speedup_hybrid__Qwen3.6-27B-4bit__k2__all": { "value": 1.115, "unit": "x", "samples": [], "note": "classic + measured verify cost + rollback re-forward cost" }, "theory_speedup_classic__Qwen3.6-27B-4bit__k4__all": { "value": 1.493, "unit": "x", "samples": [], "note": "(1-a^(k+1))/((1-a)(kc+1)), a=0.822, c=0.338" }, "theory_speedup_hybrid__Qwen3.6-27B-4bit__k4__all": { "value": 0.901, "unit": "x", "samples": [], "note": "classic + measured verify cost + rollback re-forward cost" }, "theory_abs_error_classic_mean": { "value": 0.631, "unit": "x", "samples": [], "note": "mean |measured - classic theory| over category x k cells" }, "theory_abs_error_hybrid_mean": { "value": 0.165, "unit": "x", "samples": [], "note": "mean |measured - hybrid-aware theory|" }, "theory_breakeven_alpha_k4": { "value": 0.62, "unit": "probability", "samples": [], "note": "smallest alpha with classic speedup >= 1 at k=4 for the measured c=0.338" }, "decode_tps__Qwen3.6-35B-A3B-4bit__base__code": { "value": 97.552, "unit": "tokens/s", "samples": [ 95.956, 96.56, 97.055, 96.941, 97.552, 99.405, 100.313, 99.977, 99.97 ], "note": "median over 9 runs; min 95.96, max 100.31" }, "ttft_ms__Qwen3.6-35B-A3B-4bit__base__code": { "value": 525.891, "unit": "ms", "samples": [ 542.537, 525.771, 532.702, 540.811, 525.891, 515.129, 563.526, 524.425, 514.731 ], "note": "median" }, "e2e_s__Qwen3.6-35B-A3B-4bit__base__code": { "value": 3.14, "unit": "s", "samples": [ 3.2, 3.167, 3.16, 3.171, 3.14, 3.08, 3.106, 3.075, 3.065 ], "note": "median" }, "peak_mem_gb__Qwen3.6-35B-A3B-4bit__base__code": { "value": 20.273, "unit": "GB", "samples": [ 20.273, 20.239, 20.239, 20.273, 20.239, 20.239, 20.273, 20.239, 20.239 ], "note": "MoE alone resident" }, "moe_vs_best_dense__code": { "value": 4.508, "unit": "x", "samples": [], "note": "MoE median tok/s / best Qwen3.6-27B-4bit config (k4, 21.64 tok/s)" }, "decode_tps__Qwen3.6-35B-A3B-4bit__base__extract": { "value": 97.815, "unit": "tokens/s", "samples": [ 96.408, 96.957, 96.597, 97.815, 98.066, 96.578, 99.929, 100.167, 100.156 ], "note": "median over 9 runs; min 96.41, max 100.17" }, "ttft_ms__Qwen3.6-35B-A3B-4bit__base__extract": { "value": 335.191, "unit": "ms", "samples": [ 357.812, 335.191, 327.791, 351.118, 331.874, 312.747, 341.899, 309.754, 340.451 ], "note": "median" }, "e2e_s__Qwen3.6-35B-A3B-4bit__base__extract": { "value": 2.953, "unit": "s", "samples": [ 3.003, 2.965, 2.968, 2.958, 2.932, 2.953, 2.894, 2.856, 2.886 ], "note": "median" }, "peak_mem_gb__Qwen3.6-35B-A3B-4bit__base__extract": { "value": 19.945, "unit": "GB", "samples": [ 19.938, 19.945, 19.932, 19.938, 19.945, 19.932, 19.945, 19.932, 19.94 ], "note": "MoE alone resident" }, "moe_vs_best_dense__extract": { "value": 5.219, "unit": "x", "samples": [], "note": "MoE median tok/s / best Qwen3.6-27B-4bit config (k2, 18.74 tok/s)" }, "decode_tps__Qwen3.6-35B-A3B-4bit__base__explain": { "value": 97.348, "unit": "tokens/s", "samples": [ 96.749, 96.72, 97.154, 97.141, 97.348, 97.724, 98.615, 99.855, 99.932 ], "note": "median over 9 runs; min 96.72, max 99.93" }, "ttft_ms__Qwen3.6-35B-A3B-4bit__base__explain": { "value": 122.558, "unit": "ms", "samples": [ 167.971, 123.666, 124.783, 122.558, 117.718, 123.113, 120.132, 121.898, 114.498 ], "note": "median" }, "e2e_s__Qwen3.6-35B-A3B-4bit__base__explain": { "value": 2.737, "unit": "s", "samples": [ 2.804, 2.76, 2.749, 2.748, 2.737, 2.733, 2.706, 2.676, 2.666 ], "note": "median" }, "peak_mem_gb__Qwen3.6-35B-A3B-4bit__base__explain": { "value": 19.708, "unit": "GB", "samples": [ 19.7, 19.706, 19.708, 19.706, 19.7, 19.708, 19.706, 19.708, 19.7 ], "note": "MoE alone resident" }, "moe_vs_best_dense__explain": { "value": 5.512, "unit": "x", "samples": [], "note": "MoE median tok/s / best Qwen3.6-27B-4bit config (base, 17.66 tok/s)" }, "decode_tps__Qwen3.6-35B-A3B-4bit__base__creative": { "value": 99.283, "unit": "tokens/s", "samples": [ 96.61, 96.161, 96.668, 96.921, 99.283, 99.792, 100.156, 99.891, 99.336 ], "note": "median over 9 runs; min 96.16, max 100.16" }, "ttft_ms__Qwen3.6-35B-A3B-4bit__base__creative": { "value": 106.383, "unit": "ms", "samples": [ 112.74, 108.083, 105.303, 105.605, 102.653, 106.383, 108.007, 109.239, 102.44 ], "note": "median" }, "e2e_s__Qwen3.6-35B-A3B-4bit__base__creative": { "value": 2.671, "unit": "s", "samples": [ 2.752, 2.76, 2.743, 2.737, 2.671, 2.662, 2.654, 2.662, 2.669 ], "note": "median" }, "peak_mem_gb__Qwen3.6-35B-A3B-4bit__base__creative": { "value": 19.689, "unit": "GB", "samples": [ 19.689, 19.685, 19.677, 19.685, 19.677, 19.689, 19.685, 19.689, 19.677 ], "note": "MoE alone resident" }, "moe_vs_best_dense__creative": { "value": 5.729, "unit": "x", "samples": [], "note": "MoE median tok/s / best Qwen3.6-27B-4bit config (base, 17.33 tok/s)" }, "decode_tps__Qwen3.6-35B-A3B-4bit__base__all": { "value": 97.638, "unit": "tokens/s", "samples": [ 95.956, 96.408, 96.749, 96.957, 96.61, 96.72, 96.597, 96.161, 96.668, 96.56, 97.055, 97.154, 97.141, 96.941, 97.348, 96.921, 97.552, 97.815, 98.066, 97.724, 96.578, 99.283, 99.792, 99.405, 100.156, 98.615, 100.313, 99.891, 99.336, 99.929, 100.167, 99.977, 100.156, 99.855, 99.932, 99.97 ], "note": "median over 36 runs; min 95.96, max 100.31" }, "ttft_ms__Qwen3.6-35B-A3B-4bit__base__all": { "value": 238.862, "unit": "ms", "samples": [ 542.537, 357.812, 167.971, 335.191, 112.74, 123.666, 327.791, 108.083, 105.303, 525.771, 532.702, 124.783, 122.558, 540.811, 117.718, 105.605, 525.891, 351.118, 331.874, 123.113, 312.747, 102.653, 106.383, 515.129, 108.007, 120.132, 563.526, 109.239, 102.44, 341.899, 309.754, 524.425, 340.451, 121.898, 114.498, 514.731 ], "note": "median" }, "e2e_s__Qwen3.6-35B-A3B-4bit__base__all": { "value": 2.83, "unit": "s", "samples": [ 3.2, 3.003, 2.804, 2.965, 2.752, 2.76, 2.968, 2.76, 2.743, 3.167, 3.16, 2.749, 2.748, 3.171, 2.737, 2.737, 3.14, 2.958, 2.932, 2.733, 2.953, 2.671, 2.662, 3.08, 2.654, 2.706, 3.106, 2.662, 2.669, 2.894, 2.856, 3.075, 2.886, 2.676, 2.666, 3.065 ], "note": "median" }, "peak_mem_gb__Qwen3.6-35B-A3B-4bit__base__all": { "value": 20.273, "unit": "GB", "samples": [ 20.273, 19.938, 19.7, 19.945, 19.689, 19.706, 19.932, 19.685, 19.677, 20.239, 20.239, 19.708, 19.706, 20.273, 19.7, 19.685, 20.239, 19.938, 19.945, 19.708, 19.932, 19.677, 19.689, 20.239, 19.685, 19.706, 20.273, 19.689, 19.677, 19.945, 19.932, 20.239, 19.94, 19.708, 19.7, 20.239 ], "note": "MoE alone resident" }, "moe_vs_best_dense__all": { "value": 5.528, "unit": "x", "samples": [], "note": "MoE median tok/s / best Qwen3.6-27B-4bit config (base, 17.66 tok/s)" }, "thermal_drift_baseline_pct__Qwen3.6-27B-4bit": { "value": -9.473, "unit": "%", "samples": [], "note": "median baseline tok/s, last repeat vs first repeat (16.96 vs 18.73)" }, "load_s__moe__target": { "value": 5.089, "unit": "s", "samples": [], "note": "mlx_lm.load + materialize weights" }, "weights_gb__moe__target": { "value": 19.509, "unit": "GB", "samples": [], "note": "sum of parameter nbytes" }, "load_s__target__target": { "value": 4.147, "unit": "s", "samples": [], "note": "mlx_lm.load + materialize weights" }, "load_s__target__draft": { "value": 2.124, "unit": "s", "samples": [], "note": "mlx_lm.load + materialize weights" }, "weights_gb__target__target": { "value": 15.133, "unit": "GB", "samples": [], "note": "sum of parameter nbytes" }, "weights_gb__target__draft": { "value": 5.038, "unit": "GB", "samples": [], "note": "sum of parameter nbytes" } }, "observations": [ "Qwen3.8-27B does NOT tokenize identically to the draft; Qwen3.6-27B is the primary target and Qwen3.8 is dropped.", "Qwen3.8-27B-4bit vs draft: same vocab (248077 entries) and special tokens, but pre-tokenizer identical=False; the 2931-token sample diverges at token 2894: draft [':', ' \u0928', '\u092e', '\u0938\u094d', '\u0924\u0947', ' \u0926\u0941', '\u0928\u093f\u092f\u093e'] vs target [':', ' \u0928', '\u092e', '\u0938', '\u094d\u0924', '\u0947', ' \u0926'].", "Stock mlx_lm 0.31.3 speculative decoding (the --draft-model path) fails for Qwen3.6-27B-4bit + draft: ValueError: Speculative decoding requires a trimmable prompt cache (got {'ArraysCache'}). Cache types: ['ArraysCache', 'KVCache']; target cache trimmable=False, draft cache trimmable=False.", "Greedy speculative output was token-identical to the greedy baseline in 71/71 runs (100.0%).", "code: Qwen3.6-35B-A3B-4bit decodes at 97.6 tok/s vs the fastest Qwen3.6-27B-4bit config (k4) at 21.6 tok/s (4.51x).", "extract: Qwen3.6-35B-A3B-4bit decodes at 97.8 tok/s vs the fastest Qwen3.6-27B-4bit config (k2) at 18.7 tok/s (5.22x).", "explain: Qwen3.6-35B-A3B-4bit decodes at 97.3 tok/s vs the fastest Qwen3.6-27B-4bit config (base) at 17.7 tok/s (5.51x).", "creative: Qwen3.6-35B-A3B-4bit decodes at 99.3 tok/s vs the fastest Qwen3.6-27B-4bit config (base) at 17.3 tok/s (5.73x).", "all: Qwen3.6-35B-A3B-4bit decodes at 97.6 tok/s vs the fastest Qwen3.6-27B-4bit config (base) at 17.7 tok/s (5.53x).", "code: best speculative config k4 gives 1.18x (21.6 vs 18.3 tok/s baseline), acceptance 93.1%.", "extract: best speculative config k2 gives 1.07x (18.7 vs 17.5 tok/s baseline), acceptance 86.2%.", "explain: best speculative config k2 gives 0.90x (15.9 vs 17.7 tok/s baseline), acceptance 72.3%.", "creative: best speculative config k2 gives 0.69x (12.0 vs 17.3 tok/s baseline), acceptance 52.6%.", "Speculation was slower than the baseline in 5 of 8 category x k cells (median of runs)." ], "caveats": [ "mlx_lm's built-in speculative decoding refuses hybrid Gated-DeltaNet models (non-trimmable ArraysCache), so all speculative numbers come from specdec.py: mlx_lm's loop plus state snapshot/restore. On a rejection the target re-runs the accepted tokens to rebuild its recurrent state; this cost is included in every speculative number and would be lower with a kernel that exposes per-token states.", "EOS is masked (logit -inf) for every run so all runs decode exactly 256 tokens; after a natural answer end the model keeps writing, which may change acceptance compared with normal use.", "Thinking mode disabled via the chat template (enable_thinking=False) for every model.", "Peak memory for the dense configs is measured with target AND draft resident (one process), also for the no-draft baseline; weights_gb__* gives each model's weight size.", "A 9B draft is a large draft (about a third of the target). Smaller drafts (0.5-2B) would have a much lower cost ratio c; see tables.theory_grid_classic for what the classic model predicts.", "Acceptance at temp 0.7 uses mlx_lm's rule (accept iff the target's own sample equals the draft token), not Leviathan-style rejection sampling, which would accept more often.", "Results are for one machine, one draft/target pair and 12 prompts; acceptance is prompt-driven.", "Qwen3.8-27B was excluded from speculative runs because its tokenizer does not produce identical ids to the Qwen3.5-9B draft (see compat metrics).", "[target] time budget forced: drop the temp-0.7 pass (projected 40.3 min vs budget 30.1 min); drop k=6 (projected 26.6 min vs budget 30.1 min)", "[target] 6 scheduled runs were skipped at the hard deadline.", "powermetrics needs sudo and was not available; thermal state logged with `pmset -g therm` only." ], "tables": { "target_by_category_config": [ { "category": "code", "config": "base", "runs": 8, "tps_median": 18.329, "tps_min": 16.778, "tps_max": 23.221, "ttft_ms": 2768.37, "e2e_s": 16.67, "peak_gb": 21.444 }, { "category": "code", "config": "k2", "runs": 9, "tps_median": 21.105, "tps_min": 18.798, "tps_max": 32.884, "ttft_ms": 3486.815, "e2e_s": 15.715, "peak_gb": 21.512, "speedup": 1.151, "acceptance_pct": 95.825, "alpha": 0.973, "reforwards_per_run": 4.667 }, { "category": "code", "config": "k4", "runs": 8, "tps_median": 21.639, "tps_min": 19.422, "tps_max": 31.684, "ttft_ms": 3541.24, "e2e_s": 15.278, "peak_gb": 21.512, "speedup": 1.181, "acceptance_pct": 93.141, "alpha": 0.975, "reforwards_per_run": 5.25 }, { "category": "extract", "config": "base", "runs": 9, "tps_median": 17.459, "tps_min": 16.312, "tps_max": 23.258, "ttft_ms": 1367.479, "e2e_s": 16.052, "peak_gb": 20.972 }, { "category": "extract", "config": "k2", "runs": 9, "tps_median": 18.741, "tps_min": 15.733, "tps_max": 31.657, "ttft_ms": 1793.115, "e2e_s": 15.507, "peak_gb": 21.032, "speedup": 1.073, "acceptance_pct": 86.195, "alpha": 0.91, "reforwards_per_run": 16.0 }, { "category": "extract", "config": "k4", "runs": 9, "tps_median": 16.733, "tps_min": 14.179, "tps_max": 32.145, "ttft_ms": 2001.078, "e2e_s": 17.242, "peak_gb": 21.032, "speedup": 0.958, "acceptance_pct": 77.467, "alpha": 0.911, "reforwards_per_run": 19.0 }, { "category": "explain", "config": "base", "runs": 9, "tps_median": 17.662, "tps_min": 16.282, "tps_max": 22.922, "ttft_ms": 494.317, "e2e_s": 14.917, "peak_gb": 20.548 }, { "category": "explain", "config": "k2", "runs": 9, "tps_median": 15.871, "tps_min": 14.623, "tps_max": 20.045, "ttft_ms": 654.031, "e2e_s": 16.724, "peak_gb": 20.667, "speedup": 0.899, "acceptance_pct": 72.337, "alpha": 0.8, "reforwards_per_run": 38.0 }, { "category": "explain", "config": "k4", "runs": 9, "tps_median": 13.373, "tps_min": 11.694, "tps_max": 17.756, "ttft_ms": 697.825, "e2e_s": 19.745, "peak_gb": 20.772, "speedup": 0.757, "acceptance_pct": 59.451, "alpha": 0.804, "reforwards_per_run": 43.667 }, { "category": "creative", "config": "base", "runs": 9, "tps_median": 17.33, "tps_min": 16.958, "tps_max": 18.857, "ttft_ms": 483.722, "e2e_s": 15.198, "peak_gb": 20.519 }, { "category": "creative", "config": "k2", "runs": 9, "tps_median": 12.018, "tps_min": 11.202, "tps_max": 14.46, "ttft_ms": 618.537, "e2e_s": 21.81, "peak_gb": 20.67, "speedup": 0.694, "acceptance_pct": 52.603, "alpha": 0.644, "reforwards_per_run": 72.333 }, { "category": "creative", "config": "k4", "runs": 9, "tps_median": 8.888, "tps_min": 8.41, "tps_max": 11.157, "ttft_ms": 679.986, "e2e_s": 29.418, "peak_gb": 20.778, "speedup": 0.513, "acceptance_pct": 38.449, "alpha": 0.645, "reforwards_per_run": 85.333 }, { "category": "all", "config": "base", "runs": 35, "tps_median": 17.662, "tps_min": 16.282, "tps_max": 23.258, "ttft_ms": 514.386, "e2e_s": 15.399, "peak_gb": 21.444 }, { "category": "all", "config": "k2", "runs": 36, "tps_median": 16.917, "tps_min": 11.202, "tps_max": 32.884, "ttft_ms": 1200.749, "e2e_s": 16.465, "peak_gb": 21.512, "speedup": 0.958, "acceptance_pct": 74.534, "alpha": 0.824, "reforwards_per_run": 32.75 }, { "category": "all", "config": "k4", "runs": 35, "tps_median": 14.989, "tps_min": 8.41, "tps_max": 32.145, "ttft_ms": 749.142, "e2e_s": 18.395, "peak_gb": 21.512, "speedup": 0.849, "acceptance_pct": 61.637, "alpha": 0.822, "reforwards_per_run": 39.257 } ], "token_identity": [ { "tag": "moe", "prompt": "code_method", "category": "code", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "code_method", "category": "code", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "code_refactor", "category": "code", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "code_refactor", "category": "code", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "code_tests", "category": "code", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "code_tests", "category": "code", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "creative_letter", "category": "creative", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "creative_letter", "category": "creative", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "creative_poem", "category": "creative", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "creative_poem", "category": "creative", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "creative_story", "category": "creative", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "creative_story", "category": "creative", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "explain_btree", "category": "explain", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "explain_btree", "category": "explain", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "explain_dns", "category": "explain", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "explain_dns", "category": "explain", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "explain_tcp", "category": "explain", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "explain_tcp", "category": "explain", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "extract_bullets", "category": "extract", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "extract_bullets", "category": "extract", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "extract_json", "category": "extract", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "extract_json", "category": "extract", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "extract_table", "category": "extract", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "moe", "prompt": "extract_table", "category": "extract", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "code_method", "category": "code", "config": "k2", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "code_method", "category": "code", "config": "k4", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "code_method", "category": "code", "config": "k4", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "code_method", "category": "code", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "code_method", "category": "code", "config": "k2", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "code_method", "category": "code", "config": "k2", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "code_method", "category": "code", "config": "k4", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "code_method", "category": "code", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "code_refactor", "category": "code", "config": "k2", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "code_refactor", "category": "code", "config": "k4", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "code_refactor", "category": "code", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "code_refactor", "category": "code", "config": "k2", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "code_refactor", "category": "code", "config": "k4", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "code_refactor", "category": "code", "config": "k2", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "code_tests", "category": "code", "config": "k2", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "code_tests", "category": "code", "config": "k4", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "code_tests", "category": "code", "config": "k4", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "code_tests", "category": "code", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "code_tests", "category": "code", "config": "k2", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "code_tests", "category": "code", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "code_tests", "category": "code", "config": "k2", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "code_tests", "category": "code", "config": "k4", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_letter", "category": "creative", "config": "k2", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_letter", "category": "creative", "config": "k4", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_letter", "category": "creative", "config": "k4", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_letter", "category": "creative", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_letter", "category": "creative", "config": "k2", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_letter", "category": "creative", "config": "k4", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_letter", "category": "creative", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_letter", "category": "creative", "config": "k2", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_poem", "category": "creative", "config": "k4", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_poem", "category": "creative", "config": "k2", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_poem", "category": "creative", "config": "k2", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_poem", "category": "creative", "config": "k4", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_poem", "category": "creative", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_poem", "category": "creative", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_poem", "category": "creative", "config": "k2", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_poem", "category": "creative", "config": "k4", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_story", "category": "creative", "config": "k2", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_story", "category": "creative", "config": "k4", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_story", "category": "creative", "config": "k2", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_story", "category": "creative", "config": "k4", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_story", "category": "creative", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_story", "category": "creative", "config": "k4", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_story", "category": "creative", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "creative_story", "category": "creative", "config": "k2", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_btree", "category": "explain", "config": "k4", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_btree", "category": "explain", "config": "k2", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_btree", "category": "explain", "config": "k4", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_btree", "category": "explain", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_btree", "category": "explain", "config": "k2", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_btree", "category": "explain", "config": "k4", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_btree", "category": "explain", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_btree", "category": "explain", "config": "k2", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_dns", "category": "explain", "config": "k4", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_dns", "category": "explain", "config": "k2", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_dns", "category": "explain", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_dns", "category": "explain", "config": "k2", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_dns", "category": "explain", "config": "k4", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_dns", "category": "explain", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_dns", "category": "explain", "config": "k2", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_dns", "category": "explain", "config": "k4", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_tcp", "category": "explain", "config": "k4", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_tcp", "category": "explain", "config": "k2", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_tcp", "category": "explain", "config": "k2", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_tcp", "category": "explain", "config": "k4", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_tcp", "category": "explain", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_tcp", "category": "explain", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_tcp", "category": "explain", "config": "k2", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "explain_tcp", "category": "explain", "config": "k4", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_bullets", "category": "extract", "config": "k2", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_bullets", "category": "extract", "config": "k4", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_bullets", "category": "extract", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_bullets", "category": "extract", "config": "k2", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_bullets", "category": "extract", "config": "k4", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_bullets", "category": "extract", "config": "k4", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_bullets", "category": "extract", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_bullets", "category": "extract", "config": "k2", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_json", "category": "extract", "config": "k2", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_json", "category": "extract", "config": "k4", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_json", "category": "extract", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_json", "category": "extract", "config": "k2", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_json", "category": "extract", "config": "k4", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_json", "category": "extract", "config": "k2", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_json", "category": "extract", "config": "k4", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_json", "category": "extract", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_table", "category": "extract", "config": "k2", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_table", "category": "extract", "config": "k4", "kind": "spec", "rep": 0, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_table", "category": "extract", "config": "k2", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_table", "category": "extract", "config": "k4", "kind": "spec", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_table", "category": "extract", "config": "base", "kind": "base", "rep": 1, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_table", "category": "extract", "config": "k2", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_table", "category": "extract", "config": "k4", "kind": "spec", "rep": 2, "identical": true, "first_diff": null }, { "tag": "target", "prompt": "extract_table", "category": "extract", "config": "base", "kind": "base", "rep": 2, "identical": true, "first_diff": null } ], "measured_vs_theory": [ { "category": "code", "k": 2, "alpha": 0.973, "measured": 1.151, "classic": 1.742, "hybrid_model": 1.471 }, { "category": "code", "k": 4, "alpha": 0.975, "measured": 1.181, "classic": 2.021, "hybrid_model": 1.396 }, { "category": "extract", "k": 2, "alpha": 0.91, "measured": 1.073, "classic": 1.634, "hybrid_model": 1.304 }, { "category": "extract", "k": 4, "alpha": 0.911, "measured": 0.958, "classic": 1.779, "hybrid_model": 1.147 }, { "category": "explain", "k": 2, "alpha": 0.8, "measured": 0.899, "classic": 1.455, "hybrid_model": 1.069 }, { "category": "explain", "k": 4, "alpha": 0.804, "measured": 0.757, "classic": 1.44, "hybrid_model": 0.86 }, { "category": "creative", "k": 2, "alpha": 0.644, "measured": 0.694, "classic": 1.228, "hybrid_model": 0.824 }, { "category": "creative", "k": 4, "alpha": 0.645, "measured": 0.513, "classic": 1.063, "hybrid_model": 0.599 }, { "category": "all", "k": 2, "alpha": 0.824, "measured": 0.958, "classic": 1.493, "hybrid_model": 1.115 }, { "category": "all", "k": 4, "alpha": 0.822, "measured": 0.849, "classic": 1.493, "hybrid_model": 0.901 } ], "theory_grid_classic": [ { "c": 0.05, "alpha": 0.5, "k": 2, "speedup_classic": 1.591 }, { "c": 0.05, "alpha": 0.5, "k": 4, "speedup_classic": 1.615 }, { "c": 0.05, "alpha": 0.5, "k": 6, "speedup_classic": 1.526 }, { "c": 0.05, "alpha": 0.6, "k": 2, "speedup_classic": 1.782 }, { "c": 0.05, "alpha": 0.6, "k": 4, "speedup_classic": 1.921 }, { "c": 0.05, "alpha": 0.6, "k": 6, "speedup_classic": 1.869 }, { "c": 0.05, "alpha": 0.7, "k": 2, "speedup_classic": 1.991 }, { "c": 0.05, "alpha": 0.7, "k": 4, "speedup_classic": 2.311 }, { "c": 0.05, "alpha": 0.7, "k": 6, "speedup_classic": 2.353 }, { "c": 0.05, "alpha": 0.8, "k": 2, "speedup_classic": 2.218 }, { "c": 0.05, "alpha": 0.8, "k": 4, "speedup_classic": 2.801 }, { "c": 0.05, "alpha": 0.8, "k": 6, "speedup_classic": 3.04 }, { "c": 0.05, "alpha": 0.9, "k": 2, "speedup_classic": 2.464 }, { "c": 0.05, "alpha": 0.9, "k": 4, "speedup_classic": 3.413 }, { "c": 0.05, "alpha": 0.9, "k": 6, "speedup_classic": 4.013 }, { "c": 0.1, "alpha": 0.5, "k": 2, "speedup_classic": 1.458 }, { "c": 0.1, "alpha": 0.5, "k": 4, "speedup_classic": 1.384 }, { "c": 0.1, "alpha": 0.5, "k": 6, "speedup_classic": 1.24 }, { "c": 0.1, "alpha": 0.6, "k": 2, "speedup_classic": 1.633 }, { "c": 0.1, "alpha": 0.6, "k": 4, "speedup_classic": 1.647 }, { "c": 0.1, "alpha": 0.6, "k": 6, "speedup_classic": 1.519 }, { "c": 0.1, "alpha": 0.7, "k": 2, "speedup_classic": 1.825 }, { "c": 0.1, "alpha": 0.7, "k": 4, "speedup_classic": 1.981 }, { "c": 0.1, "alpha": 0.7, "k": 6, "speedup_classic": 1.912 }, { "c": 0.1, "alpha": 0.8, "k": 2, "speedup_classic": 2.033 }, { "c": 0.1, "alpha": 0.8, "k": 4, "speedup_classic": 2.401 }, { "c": 0.1, "alpha": 0.8, "k": 6, "speedup_classic": 2.47 }, { "c": 0.1, "alpha": 0.9, "k": 2, "speedup_classic": 2.258 }, { "c": 0.1, "alpha": 0.9, "k": 4, "speedup_classic": 2.925 }, { "c": 0.1, "alpha": 0.9, "k": 6, "speedup_classic": 3.261 }, { "c": 0.2, "alpha": 0.5, "k": 2, "speedup_classic": 1.25 }, { "c": 0.2, "alpha": 0.5, "k": 4, "speedup_classic": 1.076 }, { "c": 0.2, "alpha": 0.5, "k": 6, "speedup_classic": 0.902 }, { "c": 0.2, "alpha": 0.6, "k": 2, "speedup_classic": 1.4 }, { "c": 0.2, "alpha": 0.6, "k": 4, "speedup_classic": 1.281 }, { "c": 0.2, "alpha": 0.6, "k": 6, "speedup_classic": 1.105 }, { "c": 0.2, "alpha": 0.7, "k": 2, "speedup_classic": 1.564 }, { "c": 0.2, "alpha": 0.7, "k": 4, "speedup_classic": 1.541 }, { "c": 0.2, "alpha": 0.7, "k": 6, "speedup_classic": 1.39 }, { "c": 0.2, "alpha": 0.8, "k": 2, "speedup_classic": 1.743 }, { "c": 0.2, "alpha": 0.8, "k": 4, "speedup_classic": 1.868 }, { "c": 0.2, "alpha": 0.8, "k": 6, "speedup_classic": 1.796 }, { "c": 0.2, "alpha": 0.9, "k": 2, "speedup_classic": 1.936 }, { "c": 0.2, "alpha": 0.9, "k": 4, "speedup_classic": 2.275 }, { "c": 0.2, "alpha": 0.9, "k": 6, "speedup_classic": 2.371 }, { "c": 0.338, "alpha": 0.5, "k": 2, "speedup_classic": 1.044 }, { "c": 0.338, "alpha": 0.5, "k": 4, "speedup_classic": 0.824 }, { "c": 0.338, "alpha": 0.5, "k": 6, "speedup_classic": 0.655 }, { "c": 0.338, "alpha": 0.6, "k": 2, "speedup_classic": 1.169 }, { "c": 0.338, "alpha": 0.6, "k": 4, "speedup_classic": 0.98 }, { "c": 0.338, "alpha": 0.6, "k": 6, "speedup_classic": 0.803 }, { "c": 0.338, "alpha": 0.7, "k": 2, "speedup_classic": 1.307 }, { "c": 0.338, "alpha": 0.7, "k": 4, "speedup_classic": 1.179 }, { "c": 0.338, "alpha": 0.7, "k": 6, "speedup_classic": 1.01 }, { "c": 0.338, "alpha": 0.8, "k": 2, "speedup_classic": 1.456 }, { "c": 0.338, "alpha": 0.8, "k": 4, "speedup_classic": 1.429 }, { "c": 0.338, "alpha": 0.8, "k": 6, "speedup_classic": 1.305 }, { "c": 0.338, "alpha": 0.9, "k": 2, "speedup_classic": 1.617 }, { "c": 0.338, "alpha": 0.9, "k": 4, "speedup_classic": 1.741 }, { "c": 0.338, "alpha": 0.9, "k": 6, "speedup_classic": 1.723 } ] }, "plan": { "moe": { "plan": { "configs": [ "base" ], "reps": 3, "temp_pass": false, "projected_s": 128.68621915381047, "budget_s": 297.6653890609741 }, "notes": [], "runs_done": 36, "skipped": 0, "elapsed_s": 112.49 }, "target": { "plan": { "configs": [ "base", "k2", "k4" ], "reps": 3, "temp_pass": false, "projected_s": 1597.8460752138942, "budget_s": 1803.3431429862976 }, "notes": [ "drop the temp-0.7 pass (projected 40.3 min vs budget 30.1 min)", "drop k=6 (projected 26.6 min vs budget 30.1 min)" ], "runs_done": 106, "skipped": 6, "elapsed_s": 1906.838 } }, "files": { "raw_csv": "out/results_runs.csv", "plots": [ "out/plots/measured_vs_theory.png", "out/plots/speedup_acceptance.png", "out/plots/tps_over_time.png" ] } }