{ "question": "On an M3 Max with 64 GB, how does total and per-request decode throughput grow from batch 1 to 16 for Qwen3.8-27B (dense, 4-bit), Qwen3.6-35B-A3B (MoE, 4-bit) and LFM2.5-24B-A2B (MoE, 4-bit) in mlx_lm, and at what batch size does adding requests stop helping?", "environment": { "machine": { "model": "unavailable ([Errno 2] No such file or directory: 'sysctl')", "cpu": "unavailable ([Errno 2] No such file or directory: 'sysctl')", "memory_bytes": "unavailable ([Errno 2] No such file or directory: 'sysctl')" }, "os": { "product_version": "27.0.1", "build": "26A434" }, "software": { "python": "3.13.5", "mlx": "0.31.2", "mlx_lm": "0.31.3", "platform": "macOS-27.0.1-arm64-arm-64bit-Mach-O" }, "model_order": [ "Qwen3.6-35B-A3B", "LFM2.5-24B-A2B", "Qwen3.8-27B" ], "order_seed": 1792829692, "thermal_pmset": { "Qwen3.8-27B": { "before": "Note: No thermal warning level has been recorded\nNote: No performance warning level has been recorded\nNote: No CPU power status has been recorded", "after": "Note: No thermal warning level has been recorded\nNote: No performance warning level has been recorded\nNote: No CPU power status has been recorded" }, "Qwen3.6-35B-A3B": { "before": "Note: No thermal warning level has been recorded\nNote: No performance warning level has been recorded\nNote: No CPU power status has been recorded", "after": "Note: No thermal warning level has been recorded\nNote: No performance warning level has been recorded\nNote: No CPU power status has been recorded" }, "LFM2.5-24B-A2B": { "before": "Note: No thermal warning level has been recorded\nNote: No performance warning level has been recorded\nNote: No CPU power status has been recorded", "after": "Note: No thermal warning level has been recorded\nNote: No performance warning level has been recorded\nNote: No CPU power status has been recorded" } }, "models": { "Qwen3.8-27B": { "repo": "mlx-community/Qwen3.8-27B-4bit", "kind": "dense" }, "Qwen3.6-35B-A3B": { "repo": "mlx-community/Qwen3.6-35B-A3B-4bit", "kind": "moe" }, "LFM2.5-24B-A2B": { "repo": "LiquidAI/LFM2.5-24B-A2B-MLX-4bit", "kind": "moe" } } }, "runs": 3, "metrics": { "Qwen3.8-27B.load_time": { "value": 3.4215, "unit": "s", "samples": [], "note": "model load from local disk" }, "Qwen3.8-27B.prompt_tokens": { "value": 287.5, "unit": "tokens", "samples": [ 312, 306, 272, 316, 270, 282, 259, 298, 271, 329, 296, 275, 270, 297, 293, 265 ], "note": "median prompt length after chat template; samples = all 16 prompts" }, "Qwen3.8-27B.b1.total_decode_tps": { "value": 11.9958, "unit": "tokens/s", "samples": [ 10.1786, 11.9958, 12.2321 ], "note": "median of 3; min 10.2, max 12.2" }, "Qwen3.8-27B.b1.per_request_decode_tps": { "value": 11.9958, "unit": "tokens/s", "samples": [ 10.1786, 11.9958, 12.2321 ], "note": "total / batch size; min 10.2, max 12.2" }, "Qwen3.8-27B.b1.speedup_vs_b1": { "value": 1.0, "unit": "x", "samples": [ 0.8485, 1.0, 1.0197 ], "note": "median total tps / median batch-1 total tps" }, "Qwen3.8-27B.b1.prefill_time": { "value": 2.3375, "unit": "s", "samples": [ 2.4228, 2.3375, 2.1981 ], "note": "wall time from submit until every request has its first token" }, "Qwen3.8-27B.b1.prompt_processing_time": { "value": 2.2401, "unit": "s", "samples": [ 2.3235, 2.2401, 2.1008 ], "note": "mlx_lm BatchGenerator prompt-only timer (excludes the first decode step)" }, "Qwen3.8-27B.b1.ttft": { "value": 2.3375, "unit": "s", "samples": [ 2.4228, 2.3375, 2.1981 ], "note": "time to first token per request (static batch: equal for all requests)" }, "Qwen3.8-27B.b1.peak_memory": { "value": 16.0609, "unit": "GB", "samples": [ 16.0609, 16.0609, 16.0609 ], "note": "mx.get_peak_memory, reset before each run; value = max" }, "Qwen3.8-27B.b1.end_to_end_tps": { "value": 10.8498, "unit": "tokens/s", "samples": [ 9.3175, 10.8498, 11.1087 ], "note": "all generated tokens / (prefill + decode) wall time" }, "Qwen3.8-27B.b1.generated_tokens_per_request": { "value": 256, "unit": "tokens", "samples": [], "note": "minimum over all requests (EOS disabled)" }, "Qwen3.8-27B.b2.total_decode_tps": { "value": 19.0778, "unit": "tokens/s", "samples": [ 18.2621, 19.0778, 19.2416 ], "note": "median of 3; min 18.3, max 19.2" }, "Qwen3.8-27B.b2.per_request_decode_tps": { "value": 9.5389, "unit": "tokens/s", "samples": [ 9.131, 9.5389, 9.6208 ], "note": "total / batch size; min 9.1, max 9.6" }, "Qwen3.8-27B.b2.speedup_vs_b1": { "value": 1.5904, "unit": "x", "samples": [ 1.5224, 1.5904, 1.604 ], "note": "median total tps / median batch-1 total tps" }, "Qwen3.8-27B.b2.prefill_time": { "value": 4.253, "unit": "s", "samples": [ 4.4293, 4.253, 4.2001 ], "note": "wall time from submit until every request has its first token" }, "Qwen3.8-27B.b2.prompt_processing_time": { "value": 4.1343, "unit": "s", "samples": [ 4.3043, 4.1343, 4.0817 ], "note": "mlx_lm BatchGenerator prompt-only timer (excludes the first decode step)" }, "Qwen3.8-27B.b2.ttft": { "value": 4.253, "unit": "s", "samples": [ 4.4293, 4.253, 4.2001 ], "note": "time to first token per request (static batch: equal for all requests)" }, "Qwen3.8-27B.b2.peak_memory": { "value": 16.7318, "unit": "GB", "samples": [ 16.7318, 16.7318, 16.7318 ], "note": "mx.get_peak_memory, reset before each run; value = max" }, "Qwen3.8-27B.b2.end_to_end_tps": { "value": 16.5238, "unit": "tokens/s", "samples": [ 15.8239, 16.5238, 16.6747 ], "note": "all generated tokens / (prefill + decode) wall time" }, "Qwen3.8-27B.b2.generated_tokens_per_request": { "value": 256, "unit": "tokens", "samples": [], "note": "minimum over all requests (EOS disabled)" }, "Qwen3.8-27B.b4.total_decode_tps": { "value": 22.1041, "unit": "tokens/s", "samples": [ 21.8281, 22.3802 ], "note": "median of 2; min 21.8, max 22.4" }, "Qwen3.8-27B.b4.per_request_decode_tps": { "value": 5.526, "unit": "tokens/s", "samples": [ 5.457, 5.5951 ], "note": "total / batch size; min 5.5, max 5.6" }, "Qwen3.8-27B.b4.speedup_vs_b1": { "value": 1.8426, "unit": "x", "samples": [ 1.8196, 1.8657 ], "note": "median total tps / median batch-1 total tps" }, "Qwen3.8-27B.b4.prefill_time": { "value": 9.4634, "unit": "s", "samples": [ 9.7166, 9.2102 ], "note": "wall time from submit until every request has its first token" }, "Qwen3.8-27B.b4.prompt_processing_time": { "value": 9.1863, "unit": "s", "samples": [ 9.4341, 8.9386 ], "note": "mlx_lm BatchGenerator prompt-only timer (excludes the first decode step)" }, "Qwen3.8-27B.b4.ttft": { "value": 9.4634, "unit": "s", "samples": [ 9.7166, 9.2102 ], "note": "time to first token per request (static batch: equal for all requests)" }, "Qwen3.8-27B.b4.peak_memory": { "value": 17.9137, "unit": "GB", "samples": [ 17.9137, 17.9137 ], "note": "mx.get_peak_memory, reset before each run; value = max" }, "Qwen3.8-27B.b4.end_to_end_tps": { "value": 18.4161, "unit": "tokens/s", "samples": [ 18.1414, 18.6908 ], "note": "all generated tokens / (prefill + decode) wall time" }, "Qwen3.8-27B.b4.generated_tokens_per_request": { "value": 256, "unit": "tokens", "samples": [], "note": "minimum over all requests (EOS disabled)" }, "Qwen3.8-27B.b8.total_decode_tps": { "value": 25.7906, "unit": "tokens/s", "samples": [ 26.4094, 25.1719 ], "note": "median of 2; min 25.2, max 26.4" }, "Qwen3.8-27B.b8.per_request_decode_tps": { "value": 3.2238, "unit": "tokens/s", "samples": [ 3.3012, 3.1465 ], "note": "total / batch size; min 3.1, max 3.3" }, "Qwen3.8-27B.b8.speedup_vs_b1": { "value": 2.15, "unit": "x", "samples": [ 2.2015, 2.0984 ], "note": "median total tps / median batch-1 total tps" }, "Qwen3.8-27B.b8.prefill_time": { "value": 17.5362, "unit": "s", "samples": [ 16.3916, 18.6808 ], "note": "wall time from submit until every request has its first token" }, "Qwen3.8-27B.b8.prompt_processing_time": { "value": 16.9284, "unit": "s", "samples": [ 15.7782, 18.0786 ], "note": "mlx_lm BatchGenerator prompt-only timer (excludes the first decode step)" }, "Qwen3.8-27B.b8.ttft": { "value": 17.5362, "unit": "s", "samples": [ 16.3916, 18.6808 ], "note": "time to first token per request (static batch: equal for all requests)" }, "Qwen3.8-27B.b8.peak_memory": { "value": 19.9999, "unit": "GB", "samples": [ 19.9999, 19.9999 ], "note": "mx.get_peak_memory, reset before each run; value = max" }, "Qwen3.8-27B.b8.end_to_end_tps": { "value": 21.2042, "unit": "tokens/s", "samples": [ 21.8717, 20.5367 ], "note": "all generated tokens / (prefill + decode) wall time" }, "Qwen3.8-27B.b8.generated_tokens_per_request": { "value": 256, "unit": "tokens", "samples": [], "note": "minimum over all requests (EOS disabled)" }, "Qwen3.8-27B.b12.total_decode_tps": { "value": 46.5646, "unit": "tokens/s", "samples": [ 51.0714, 42.0577 ], "note": "median of 2; min 42.1, max 51.1" }, "Qwen3.8-27B.b12.per_request_decode_tps": { "value": 3.8804, "unit": "tokens/s", "samples": [ 4.2559, 3.5048 ], "note": "total / batch size; min 3.5, max 4.3" }, "Qwen3.8-27B.b12.speedup_vs_b1": { "value": 3.8817, "unit": "x", "samples": [ 4.2574, 3.506 ], "note": "median total tps / median batch-1 total tps" }, "Qwen3.8-27B.b12.prefill_time": { "value": 26.3976, "unit": "s", "samples": [ 24.5143, 28.2809 ], "note": "wall time from submit until every request has its first token" }, "Qwen3.8-27B.b12.prompt_processing_time": { "value": 25.9032, "unit": "s", "samples": [ 24.0629, 27.7435 ], "note": "mlx_lm BatchGenerator prompt-only timer (excludes the first decode step)" }, "Qwen3.8-27B.b12.ttft": { "value": 26.3976, "unit": "s", "samples": [ 24.5143, 28.2809 ], "note": "time to first token per request (static batch: equal for all requests)" }, "Qwen3.8-27B.b12.peak_memory": { "value": 22.165, "unit": "GB", "samples": [ 22.165, 22.165 ], "note": "mx.get_peak_memory, reset before each run; value = max" }, "Qwen3.8-27B.b12.end_to_end_tps": { "value": 33.3947, "unit": "tokens/s", "samples": [ 36.385, 30.4044 ], "note": "all generated tokens / (prefill + decode) wall time" }, "Qwen3.8-27B.b12.generated_tokens_per_request": { "value": 256, "unit": "tokens", "samples": [], "note": "minimum over all requests (EOS disabled)" }, "Qwen3.8-27B.b16.total_decode_tps": { "value": 53.1422, "unit": "tokens/s", "samples": [ 53.1422 ], "note": "median of 1; min 53.1, max 53.1" }, "Qwen3.8-27B.b16.per_request_decode_tps": { "value": 3.3214, "unit": "tokens/s", "samples": [ 3.3214 ], "note": "total / batch size; min 3.3, max 3.3" }, "Qwen3.8-27B.b16.speedup_vs_b1": { "value": 4.43, "unit": "x", "samples": [ 4.43 ], "note": "median total tps / median batch-1 total tps" }, "Qwen3.8-27B.b16.prefill_time": { "value": 39.3004, "unit": "s", "samples": [ 39.3004 ], "note": "wall time from submit until every request has its first token" }, "Qwen3.8-27B.b16.prompt_processing_time": { "value": 38.713, "unit": "s", "samples": [ 38.713 ], "note": "mlx_lm BatchGenerator prompt-only timer (excludes the first decode step)" }, "Qwen3.8-27B.b16.ttft": { "value": 39.3004, "unit": "s", "samples": [ 39.3004 ], "note": "time to first token per request (static batch: equal for all requests)" }, "Qwen3.8-27B.b16.peak_memory": { "value": 24.2895, "unit": "GB", "samples": [ 24.2895 ], "note": "mx.get_peak_memory, reset before each run; value = max" }, "Qwen3.8-27B.b16.end_to_end_tps": { "value": 35.2874, "unit": "tokens/s", "samples": [ 35.2874 ], "note": "all generated tokens / (prefill + decode) wall time" }, "Qwen3.8-27B.b16.generated_tokens_per_request": { "value": 256, "unit": "tokens", "samples": [], "note": "minimum over all requests (EOS disabled)" }, "Qwen3.8-27B.b1.identical_outputs": { "value": 100.0, "unit": "%", "samples": [], "note": "3/3 request outputs identical to batch-1 greedy (3 repeats x 1 requests); batch 1 = repeat-to-repeat determinism" }, "Qwen3.8-27B.b1.repeats_consistent": { "value": 1, "unit": "bool", "samples": [], "note": "1 = every repeat diverged at the same positions" }, "Qwen3.8-27B.b2.identical_outputs": { "value": 50.0, "unit": "%", "samples": [], "note": "3/6 request outputs identical to batch-1 greedy (3 repeats x 2 requests)" }, "Qwen3.8-27B.b2.first_divergence": { "value": 0, "unit": "token index", "samples": [ 0, 0, 0 ], "note": "median over diverged outputs; earliest 0" }, "Qwen3.8-27B.b2.repeats_consistent": { "value": 1, "unit": "bool", "samples": [], "note": "1 = every repeat diverged at the same positions" }, "Qwen3.8-27B.b4.identical_outputs": { "value": 0.0, "unit": "%", "samples": [], "note": "0/8 request outputs identical to batch-1 greedy (2 repeats x 4 requests)" }, "Qwen3.8-27B.b4.first_divergence": { "value": 36.0, "unit": "token index", "samples": [ 15, 0, 64, 57, 15, 0, 64, 57 ], "note": "median over diverged outputs; earliest 0" }, "Qwen3.8-27B.b4.repeats_consistent": { "value": 1, "unit": "bool", "samples": [], "note": "1 = every repeat diverged at the same positions" }, "Qwen3.8-27B.b8.identical_outputs": { "value": 0.0, "unit": "%", "samples": [], "note": "0/16 request outputs identical to batch-1 greedy (2 repeats x 8 requests)" }, "Qwen3.8-27B.b8.first_divergence": { "value": 27.5, "unit": "token index", "samples": [ 15, 0, 64, 57, 53, 40, 1, 9, 15, 0, 64, 57, 53, 40, 1, 9 ], "note": "median over diverged outputs; earliest 0" }, "Qwen3.8-27B.b8.repeats_consistent": { "value": 1, "unit": "bool", "samples": [], "note": "1 = every repeat diverged at the same positions" }, "Qwen3.8-27B.b12.identical_outputs": { "value": 0.0, "unit": "%", "samples": [], "note": "0/24 request outputs identical to batch-1 greedy (2 repeats x 12 requests)" }, "Qwen3.8-27B.b12.first_divergence": { "value": 29.0, "unit": "token index", "samples": [ 15, 0, 64, 35, 53, 40, 1, 9, 114, 37, 23, 0, 15, 0, 64, 35, 53, 40, 1, 9, 114, 37, 23, 0 ], "note": "median over diverged outputs; earliest 0" }, "Qwen3.8-27B.b12.repeats_consistent": { "value": 1, "unit": "bool", "samples": [], "note": "1 = every repeat diverged at the same positions" }, "Qwen3.8-27B.b16.identical_outputs": { "value": 0.0, "unit": "%", "samples": [], "note": "0/16 request outputs identical to batch-1 greedy (1 repeats x 16 requests)" }, "Qwen3.8-27B.b16.first_divergence": { "value": 32.5, "unit": "token index", "samples": [ 15, 0, 64, 35, 53, 40, 1, 26, 101, 121, 168, 0, 30, 251, 1, 13 ], "note": "median over diverged outputs; earliest 0" }, "Qwen3.8-27B.b16.repeats_consistent": { "value": 1, "unit": "bool", "samples": [], "note": "1 = every repeat diverged at the same positions" }, "Qwen3.8-27B.b1_all_prompts.total_decode_tps": { "value": 11.7445, "unit": "tokens/s", "samples": [ 10.5965, 11.0195, 11.2051, 11.4194, 11.5211, 11.6714, 11.7879, 11.806, 12.4735, 11.7445, 11.8171, 11.5753, 11.8501, 11.8423, 11.8678 ], "note": "batch-1 reference runs over prompts 1-15; min 10.6, max 12.5" }, "Qwen3.8-27B.max_throughput_batch": { "value": 16, "unit": "requests", "samples": [], "note": "batch size with the highest median total tps (53.1)" }, "Qwen3.8-27B.knee_batch": { "value": 16, "unit": "requests", "samples": [], "note": "first tested batch size where the next tested size adds < 10% total throughput" }, "Qwen3.6-35B-A3B.load_time": { "value": 3.9315, "unit": "s", "samples": [], "note": "model load from local disk" }, "Qwen3.6-35B-A3B.prompt_tokens": { "value": 287.5, "unit": "tokens", "samples": [ 312, 306, 272, 316, 270, 282, 259, 298, 271, 329, 296, 275, 270, 297, 293, 265 ], "note": "median prompt length after chat template; samples = all 16 prompts" }, "Qwen3.6-35B-A3B.b1.total_decode_tps": { "value": 86.3386, "unit": "tokens/s", "samples": [ 87.1112, 83.4979, 86.3386 ], "note": "median of 3; min 83.5, max 87.1" }, "Qwen3.6-35B-A3B.b1.per_request_decode_tps": { "value": 86.3386, "unit": "tokens/s", "samples": [ 87.1112, 83.4979, 86.3386 ], "note": "total / batch size; min 83.5, max 87.1" }, "Qwen3.6-35B-A3B.b1.speedup_vs_b1": { "value": 1.0, "unit": "x", "samples": [ 1.0089, 0.9671, 1.0 ], "note": "median total tps / median batch-1 total tps" }, "Qwen3.6-35B-A3B.b1.prefill_time": { "value": 0.4424, "unit": "s", "samples": [ 0.4514, 0.4424, 0.4274 ], "note": "wall time from submit until every request has its first token" }, "Qwen3.6-35B-A3B.b1.prompt_processing_time": { "value": 0.4132, "unit": "s", "samples": [ 0.4205, 0.4132, 0.398 ], "note": "mlx_lm BatchGenerator prompt-only timer (excludes the first decode step)" }, "Qwen3.6-35B-A3B.b1.ttft": { "value": 0.4424, "unit": "s", "samples": [ 0.4514, 0.4424, 0.4274 ], "note": "time to first token per request (static batch: equal for all requests)" }, "Qwen3.6-35B-A3B.b1.peak_memory": { "value": 20.0049, "unit": "GB", "samples": [ 20.0049, 20.0049, 20.0049 ], "note": "mx.get_peak_memory, reset before each run; value = max" }, "Qwen3.6-35B-A3B.b1.end_to_end_tps": { "value": 75.7194, "unit": "tokens/s", "samples": [ 75.7694, 73.2197, 75.7194 ], "note": "all generated tokens / (prefill + decode) wall time" }, "Qwen3.6-35B-A3B.b1.generated_tokens_per_request": { "value": 256, "unit": "tokens", "samples": [], "note": "minimum over all requests (EOS disabled)" }, "Qwen3.6-35B-A3B.b2.total_decode_tps": { "value": 125.626, "unit": "tokens/s", "samples": [ 125.9072, 125.626, 125.1357 ], "note": "median of 3; min 125.1, max 125.9" }, "Qwen3.6-35B-A3B.b2.per_request_decode_tps": { "value": 62.813, "unit": "tokens/s", "samples": [ 62.9536, 62.813, 62.5679 ], "note": "total / batch size; min 62.6, max 63.0" }, "Qwen3.6-35B-A3B.b2.speedup_vs_b1": { "value": 1.455, "unit": "x", "samples": [ 1.4583, 1.455, 1.4494 ], "note": "median total tps / median batch-1 total tps" }, "Qwen3.6-35B-A3B.b2.prefill_time": { "value": 0.6809, "unit": "s", "samples": [ 0.6982, 0.6809, 0.6798 ], "note": "wall time from submit until every request has its first token" }, "Qwen3.6-35B-A3B.b2.prompt_processing_time": { "value": 0.6487, "unit": "s", "samples": [ 0.6652, 0.6487, 0.6478 ], "note": "mlx_lm BatchGenerator prompt-only timer (excludes the first decode step)" }, "Qwen3.6-35B-A3B.b2.ttft": { "value": 0.6809, "unit": "s", "samples": [ 0.6982, 0.6809, 0.6798 ], "note": "time to first token per request (static batch: equal for all requests)" }, "Qwen3.6-35B-A3B.b2.peak_memory": { "value": 20.3758, "unit": "GB", "samples": [ 20.3758, 20.3758, 20.3758 ], "note": "mx.get_peak_memory, reset before each run; value = max" }, "Qwen3.6-35B-A3B.b2.end_to_end_tps": { "value": 107.8177, "unit": "tokens/s", "samples": [ 107.8177, 108.0042, 107.6685 ], "note": "all generated tokens / (prefill + decode) wall time" }, "Qwen3.6-35B-A3B.b2.generated_tokens_per_request": { "value": 256, "unit": "tokens", "samples": [], "note": "minimum over all requests (EOS disabled)" }, "Qwen3.6-35B-A3B.b4.total_decode_tps": { "value": 142.7672, "unit": "tokens/s", "samples": [ 142.7672, 157.4244, 128.8891 ], "note": "median of 3; min 128.9, max 157.4" }, "Qwen3.6-35B-A3B.b4.per_request_decode_tps": { "value": 35.6918, "unit": "tokens/s", "samples": [ 35.6918, 39.3561, 32.2223 ], "note": "total / batch size; min 32.2, max 39.4" }, "Qwen3.6-35B-A3B.b4.speedup_vs_b1": { "value": 1.6536, "unit": "x", "samples": [ 1.6536, 1.8233, 1.4928 ], "note": "median total tps / median batch-1 total tps" }, "Qwen3.6-35B-A3B.b4.prefill_time": { "value": 1.2956, "unit": "s", "samples": [ 1.2956, 1.207, 1.3817 ], "note": "wall time from submit until every request has its first token" }, "Qwen3.6-35B-A3B.b4.prompt_processing_time": { "value": 1.2487, "unit": "s", "samples": [ 1.2487, 1.1606, 1.3331 ], "note": "mlx_lm BatchGenerator prompt-only timer (excludes the first decode step)" }, "Qwen3.6-35B-A3B.b4.ttft": { "value": 1.2956, "unit": "s", "samples": [ 1.2956, 1.207, 1.3817 ], "note": "time to first token per request (static batch: equal for all requests)" }, "Qwen3.6-35B-A3B.b4.peak_memory": { "value": 21.0688, "unit": "GB", "samples": [ 21.0688, 21.0688, 21.0688 ], "note": "mx.get_peak_memory, reset before each run; value = max" }, "Qwen3.6-35B-A3B.b4.end_to_end_tps": { "value": 121.3249, "unit": "tokens/s", "samples": [ 121.3249, 133.2245, 110.1611 ], "note": "all generated tokens / (prefill + decode) wall time" }, "Qwen3.6-35B-A3B.b4.generated_tokens_per_request": { "value": 256, "unit": "tokens", "samples": [], "note": "minimum over all requests (EOS disabled)" }, "Qwen3.6-35B-A3B.b8.total_decode_tps": { "value": 178.5149, "unit": "tokens/s", "samples": [ 178.5149, 182.5712, 162.8582 ], "note": "median of 3; min 162.9, max 182.6" }, "Qwen3.6-35B-A3B.b8.per_request_decode_tps": { "value": 22.3144, "unit": "tokens/s", "samples": [ 22.3144, 22.8214, 20.3573 ], "note": "total / batch size; min 20.4, max 22.8" }, "Qwen3.6-35B-A3B.b8.speedup_vs_b1": { "value": 2.0676, "unit": "x", "samples": [ 2.0676, 2.1146, 1.8863 ], "note": "median total tps / median batch-1 total tps" }, "Qwen3.6-35B-A3B.b8.prefill_time": { "value": 2.258, "unit": "s", "samples": [ 2.258, 2.1941, 2.3464 ], "note": "wall time from submit until every request has its first token" }, "Qwen3.6-35B-A3B.b8.prompt_processing_time": { "value": 2.184, "unit": "s", "samples": [ 2.184, 2.1219, 2.2699 ], "note": "mlx_lm BatchGenerator prompt-only timer (excludes the first decode step)" }, "Qwen3.6-35B-A3B.b8.ttft": { "value": 2.258, "unit": "s", "samples": [ 2.258, 2.1941, 2.3464 ], "note": "time to first token per request (static batch: equal for all requests)" }, "Qwen3.6-35B-A3B.b8.peak_memory": { "value": 22.1445, "unit": "GB", "samples": [ 22.1445, 22.1445, 22.1445 ], "note": "mx.get_peak_memory, reset before each run; value = max" }, "Qwen3.6-35B-A3B.b8.end_to_end_tps": { "value": 149.646, "unit": "tokens/s", "samples": [ 149.646, 153.2039, 137.7022 ], "note": "all generated tokens / (prefill + decode) wall time" }, "Qwen3.6-35B-A3B.b8.generated_tokens_per_request": { "value": 256, "unit": "tokens", "samples": [], "note": "minimum over all requests (EOS disabled)" }, "Qwen3.6-35B-A3B.b12.total_decode_tps": { "value": 216.7285, "unit": "tokens/s", "samples": [ 216.7285, 217.7461, 204.5051 ], "note": "median of 3; min 204.5, max 217.7" }, "Qwen3.6-35B-A3B.b12.per_request_decode_tps": { "value": 18.0607, "unit": "tokens/s", "samples": [ 18.0607, 18.1455, 17.0421 ], "note": "total / batch size; min 17.0, max 18.1" }, "Qwen3.6-35B-A3B.b12.speedup_vs_b1": { "value": 2.5102, "unit": "x", "samples": [ 2.5102, 2.522, 2.3686 ], "note": "median total tps / median batch-1 total tps" }, "Qwen3.6-35B-A3B.b12.prefill_time": { "value": 3.3132, "unit": "s", "samples": [ 3.3132, 3.2837, 3.4774 ], "note": "wall time from submit until every request has its first token" }, "Qwen3.6-35B-A3B.b12.prompt_processing_time": { "value": 3.2214, "unit": "s", "samples": [ 3.2214, 3.1927, 3.3799 ], "note": "mlx_lm BatchGenerator prompt-only timer (excludes the first decode step)" }, "Qwen3.6-35B-A3B.b12.ttft": { "value": 3.3132, "unit": "s", "samples": [ 3.3132, 3.2837, 3.4774 ], "note": "time to first token per request (static batch: equal for all requests)" }, "Qwen3.6-35B-A3B.b12.peak_memory": { "value": 23.3055, "unit": "GB", "samples": [ 23.3055, 23.3055, 23.3055 ], "note": "mx.get_peak_memory, reset before each run; value = max" }, "Qwen3.6-35B-A3B.b12.end_to_end_tps": { "value": 176.2254, "unit": "tokens/s", "samples": [ 176.2254, 177.1958, 166.5916 ], "note": "all generated tokens / (prefill + decode) wall time" }, "Qwen3.6-35B-A3B.b12.generated_tokens_per_request": { "value": 256, "unit": "tokens", "samples": [], "note": "minimum over all requests (EOS disabled)" }, "Qwen3.6-35B-A3B.b16.total_decode_tps": { "value": 235.7554, "unit": "tokens/s", "samples": [ 236.266, 235.7554, 234.8512 ], "note": "median of 3; min 234.9, max 236.3" }, "Qwen3.6-35B-A3B.b16.per_request_decode_tps": { "value": 14.7347, "unit": "tokens/s", "samples": [ 14.7666, 14.7347, 14.6782 ], "note": "total / batch size; min 14.7, max 14.8" }, "Qwen3.6-35B-A3B.b16.speedup_vs_b1": { "value": 2.7306, "unit": "x", "samples": [ 2.7365, 2.7306, 2.7201 ], "note": "median total tps / median batch-1 total tps" }, "Qwen3.6-35B-A3B.b16.prefill_time": { "value": 4.5623, "unit": "s", "samples": [ 4.5623, 4.9934, 4.5031 ], "note": "wall time from submit until every request has its first token" }, "Qwen3.6-35B-A3B.b16.prompt_processing_time": { "value": 4.4503, "unit": "s", "samples": [ 4.4503, 4.8679, 4.3892 ], "note": "mlx_lm BatchGenerator prompt-only timer (excludes the first decode step)" }, "Qwen3.6-35B-A3B.b16.ttft": { "value": 4.5623, "unit": "s", "samples": [ 4.5623, 4.9934, 4.5031 ], "note": "time to first token per request (static batch: equal for all requests)" }, "Qwen3.6-35B-A3B.b16.peak_memory": { "value": 24.4329, "unit": "GB", "samples": [ 24.4329, 24.4329, 24.4329 ], "note": "mx.get_peak_memory, reset before each run; value = max" }, "Qwen3.6-35B-A3B.b16.end_to_end_tps": { "value": 187.2386, "unit": "tokens/s", "samples": [ 187.6235, 183.6816, 187.2386 ], "note": "all generated tokens / (prefill + decode) wall time" }, "Qwen3.6-35B-A3B.b16.generated_tokens_per_request": { "value": 256, "unit": "tokens", "samples": [], "note": "minimum over all requests (EOS disabled)" }, "Qwen3.6-35B-A3B.b1.identical_outputs": { "value": 100.0, "unit": "%", "samples": [], "note": "3/3 request outputs identical to batch-1 greedy (3 repeats x 1 requests); batch 1 = repeat-to-repeat determinism" }, "Qwen3.6-35B-A3B.b1.repeats_consistent": { "value": 1, "unit": "bool", "samples": [], "note": "1 = every repeat diverged at the same positions" }, "Qwen3.6-35B-A3B.b2.identical_outputs": { "value": 0.0, "unit": "%", "samples": [], "note": "0/6 request outputs identical to batch-1 greedy (3 repeats x 2 requests)" }, "Qwen3.6-35B-A3B.b2.first_divergence": { "value": 105.0, "unit": "token index", "samples": [ 161, 49, 161, 49, 161, 49 ], "note": "median over diverged outputs; earliest 49" }, "Qwen3.6-35B-A3B.b2.repeats_consistent": { "value": 1, "unit": "bool", "samples": [], "note": "1 = every repeat diverged at the same positions" }, "Qwen3.6-35B-A3B.b4.identical_outputs": { "value": 0.0, "unit": "%", "samples": [], "note": "0/12 request outputs identical to batch-1 greedy (3 repeats x 4 requests)" }, "Qwen3.6-35B-A3B.b4.first_divergence": { "value": 33.0, "unit": "token index", "samples": [ 17, 49, 12, 66, 17, 49, 12, 66, 17, 49, 12, 66 ], "note": "median over diverged outputs; earliest 12" }, "Qwen3.6-35B-A3B.b4.repeats_consistent": { "value": 1, "unit": "bool", "samples": [], "note": "1 = every repeat diverged at the same positions" }, "Qwen3.6-35B-A3B.b8.identical_outputs": { "value": 0.0, "unit": "%", "samples": [], "note": "0/24 request outputs identical to batch-1 greedy (3 repeats x 8 requests)" }, "Qwen3.6-35B-A3B.b8.first_divergence": { "value": 15.5, "unit": "token index", "samples": [ 17, 49, 12, 31, 13, 1, 26, 14, 17, 49, 12, 31, 13, 1, 26, 14, 17, 49, 12, 31, 13, 1, 26, 14 ], "note": "median over diverged outputs; earliest 1" }, "Qwen3.6-35B-A3B.b8.repeats_consistent": { "value": 1, "unit": "bool", "samples": [], "note": "1 = every repeat diverged at the same positions" }, "Qwen3.6-35B-A3B.b12.identical_outputs": { "value": 0.0, "unit": "%", "samples": [], "note": "0/36 request outputs identical to batch-1 greedy (3 repeats x 12 requests)" }, "Qwen3.6-35B-A3B.b12.first_divergence": { "value": 15.0, "unit": "token index", "samples": [ 17, 64, 12, 3, 13, 1, 132, 234, 8, 31, 50, 4, 17, 64, 12, 3, 13, 1, 132, 234, 8, 31, 50, 4, 17, 64, 12, 3, 13, 1, 132, 234, 8, 31, 50, 4 ], "note": "median over diverged outputs; earliest 1" }, "Qwen3.6-35B-A3B.b12.repeats_consistent": { "value": 1, "unit": "bool", "samples": [], "note": "1 = every repeat diverged at the same positions" }, "Qwen3.6-35B-A3B.b16.identical_outputs": { "value": 0.0, "unit": "%", "samples": [], "note": "0/48 request outputs identical to batch-1 greedy (3 repeats x 16 requests)" }, "Qwen3.6-35B-A3B.b16.first_divergence": { "value": 15.0, "unit": "token index", "samples": [ 17, 37, 20, 3, 13, 1, 56, 80, 8, 31, 50, 4, 41, 8, 1, 3, 17, 37, 20, 3, 13, 1, 56, 80, 8, 31, 50, 4, 41, 8, 1, 3, 17, 37, 20, 3, 13, 1, 56, 80, 8, 31, 50, 4, 41, 8, 1, 3 ], "note": "median over diverged outputs; earliest 1" }, "Qwen3.6-35B-A3B.b16.repeats_consistent": { "value": 1, "unit": "bool", "samples": [], "note": "1 = every repeat diverged at the same positions" }, "Qwen3.6-35B-A3B.b1_all_prompts.total_decode_tps": { "value": 87.407, "unit": "tokens/s", "samples": [ 87.5905, 87.9514, 87.6022, 87.6876, 87.9482, 87.9527, 87.4341, 87.407, 87.3452, 81.0149, 80.1108, 82.6726, 73.3329, 73.7313, 84.0683 ], "note": "batch-1 reference runs over prompts 1-15; min 73.3, max 88.0" }, "Qwen3.6-35B-A3B.max_throughput_batch": { "value": 16, "unit": "requests", "samples": [], "note": "batch size with the highest median total tps (235.8)" }, "Qwen3.6-35B-A3B.knee_batch": { "value": 12, "unit": "requests", "samples": [], "note": "first tested batch size where the next tested size adds < 10% total throughput" }, "LFM2.5-24B-A2B.load_time": { "value": 2.8456, "unit": "s", "samples": [], "note": "model load from local disk" }, "LFM2.5-24B-A2B.prompt_tokens": { "value": 282.5, "unit": "tokens", "samples": [ 298, 313, 277, 312, 276, 284, 271, 292, 270, 314, 276, 283, 274, 286, 282, 276 ], "note": "median prompt length after chat template; samples = all 16 prompts" }, "LFM2.5-24B-A2B.b1.total_decode_tps": { "value": 119.6983, "unit": "tokens/s", "samples": [ 119.8134, 119.6983, 102.5693 ], "note": "median of 3; min 102.6, max 119.8" }, "LFM2.5-24B-A2B.b1.per_request_decode_tps": { "value": 119.6983, "unit": "tokens/s", "samples": [ 119.8134, 119.6983, 102.5693 ], "note": "total / batch size; min 102.6, max 119.8" }, "LFM2.5-24B-A2B.b1.speedup_vs_b1": { "value": 1.0, "unit": "x", "samples": [ 1.001, 1.0, 0.8569 ], "note": "median total tps / median batch-1 total tps" }, "LFM2.5-24B-A2B.b1.prefill_time": { "value": 0.3399, "unit": "s", "samples": [ 0.3399, 0.3315, 0.3843 ], "note": "wall time from submit until every request has its first token" }, "LFM2.5-24B-A2B.b1.prompt_processing_time": { "value": 0.3184, "unit": "s", "samples": [ 0.3184, 0.309, 0.3613 ], "note": "mlx_lm BatchGenerator prompt-only timer (excludes the first decode step)" }, "LFM2.5-24B-A2B.b1.ttft": { "value": 0.3399, "unit": "s", "samples": [ 0.3399, 0.3315, 0.3843 ], "note": "time to first token per request (static batch: equal for all requests)" }, "LFM2.5-24B-A2B.b1.peak_memory": { "value": 13.8992, "unit": "GB", "samples": [ 13.8992, 13.8992, 13.8992 ], "note": "mx.get_peak_memory, reset before each run; value = max" }, "LFM2.5-24B-A2B.b1.end_to_end_tps": { "value": 103.7204, "unit": "tokens/s", "samples": [ 103.7204, 103.9882, 89.1869 ], "note": "all generated tokens / (prefill + decode) wall time" }, "LFM2.5-24B-A2B.b1.generated_tokens_per_request": { "value": 256, "unit": "tokens", "samples": [], "note": "minimum over all requests (EOS disabled)" }, "LFM2.5-24B-A2B.b2.total_decode_tps": { "value": 149.6281, "unit": "tokens/s", "samples": [ 154.223, 149.6281, 121.6614 ], "note": "median of 3; min 121.7, max 154.2" }, "LFM2.5-24B-A2B.b2.per_request_decode_tps": { "value": 74.8141, "unit": "tokens/s", "samples": [ 77.1115, 74.8141, 60.8307 ], "note": "total / batch size; min 60.8, max 77.1" }, "LFM2.5-24B-A2B.b2.speedup_vs_b1": { "value": 1.25, "unit": "x", "samples": [ 1.2884, 1.25, 1.0164 ], "note": "median total tps / median batch-1 total tps" }, "LFM2.5-24B-A2B.b2.prefill_time": { "value": 0.5693, "unit": "s", "samples": [ 0.5693, 0.5596, 0.6773 ], "note": "wall time from submit until every request has its first token" }, "LFM2.5-24B-A2B.b2.prompt_processing_time": { "value": 0.5402, "unit": "s", "samples": [ 0.5402, 0.5337, 0.6487 ], "note": "mlx_lm BatchGenerator prompt-only timer (excludes the first decode step)" }, "LFM2.5-24B-A2B.b2.ttft": { "value": 0.5693, "unit": "s", "samples": [ 0.5693, 0.5596, 0.6773 ], "note": "time to first token per request (static batch: equal for all requests)" }, "LFM2.5-24B-A2B.b2.peak_memory": { "value": 14.1043, "unit": "GB", "samples": [ 14.1043, 14.1043, 14.1043 ], "note": "mx.get_peak_memory, reset before each run; value = max" }, "LFM2.5-24B-A2B.b2.end_to_end_tps": { "value": 129.0315, "unit": "tokens/s", "samples": [ 132.0897, 129.0315, 105.1484 ], "note": "all generated tokens / (prefill + decode) wall time" }, "LFM2.5-24B-A2B.b2.generated_tokens_per_request": { "value": 256, "unit": "tokens", "samples": [], "note": "minimum over all requests (EOS disabled)" }, "LFM2.5-24B-A2B.b4.total_decode_tps": { "value": 182.1815, "unit": "tokens/s", "samples": [ 182.1815, 185.1686, 155.0626 ], "note": "median of 3; min 155.1, max 185.2" }, "LFM2.5-24B-A2B.b4.per_request_decode_tps": { "value": 45.5454, "unit": "tokens/s", "samples": [ 45.5454, 46.2922, 38.7657 ], "note": "total / batch size; min 38.8, max 46.3" }, "LFM2.5-24B-A2B.b4.speedup_vs_b1": { "value": 1.522, "unit": "x", "samples": [ 1.522, 1.547, 1.2954 ], "note": "median total tps / median batch-1 total tps" }, "LFM2.5-24B-A2B.b4.prefill_time": { "value": 0.9179, "unit": "s", "samples": [ 0.9179, 0.8941, 1.0629 ], "note": "wall time from submit until every request has its first token" }, "LFM2.5-24B-A2B.b4.prompt_processing_time": { "value": 0.8803, "unit": "s", "samples": [ 0.8803, 0.8577, 1.0227 ], "note": "mlx_lm BatchGenerator prompt-only timer (excludes the first decode step)" }, "LFM2.5-24B-A2B.b4.ttft": { "value": 0.9179, "unit": "s", "samples": [ 0.9179, 0.8941, 1.0629 ], "note": "time to first token per request (static batch: equal for all requests)" }, "LFM2.5-24B-A2B.b4.peak_memory": { "value": 14.3582, "unit": "GB", "samples": [ 14.3582, 14.3582, 14.3582 ], "note": "mx.get_peak_memory, reset before each run; value = max" }, "LFM2.5-24B-A2B.b4.end_to_end_tps": { "value": 157.1335, "unit": "tokens/s", "samples": [ 157.1335, 159.9357, 134.0151 ], "note": "all generated tokens / (prefill + decode) wall time" }, "LFM2.5-24B-A2B.b4.generated_tokens_per_request": { "value": 256, "unit": "tokens", "samples": [], "note": "minimum over all requests (EOS disabled)" }, "LFM2.5-24B-A2B.b8.total_decode_tps": { "value": 204.8111, "unit": "tokens/s", "samples": [ 211.3514, 204.8111, 162.8694 ], "note": "median of 3; min 162.9, max 211.4" }, "LFM2.5-24B-A2B.b8.per_request_decode_tps": { "value": 25.6014, "unit": "tokens/s", "samples": [ 26.4189, 25.6014, 20.3587 ], "note": "total / batch size; min 20.4, max 26.4" }, "LFM2.5-24B-A2B.b8.speedup_vs_b1": { "value": 1.7111, "unit": "x", "samples": [ 1.7657, 1.7111, 1.3607 ], "note": "median total tps / median batch-1 total tps" }, "LFM2.5-24B-A2B.b8.prefill_time": { "value": 1.8878, "unit": "s", "samples": [ 1.931, 1.6733, 1.8878 ], "note": "wall time from submit until every request has its first token" }, "LFM2.5-24B-A2B.b8.prompt_processing_time": { "value": 1.8235, "unit": "s", "samples": [ 1.8663, 1.6136, 1.8235 ], "note": "mlx_lm BatchGenerator prompt-only timer (excludes the first decode step)" }, "LFM2.5-24B-A2B.b8.ttft": { "value": 1.8878, "unit": "s", "samples": [ 1.931, 1.6733, 1.8878 ], "note": "time to first token per request (static batch: equal for all requests)" }, "LFM2.5-24B-A2B.b8.peak_memory": { "value": 14.6901, "unit": "GB", "samples": [ 14.6901, 14.6901, 14.6901 ], "note": "mx.get_peak_memory, reset before each run; value = max" }, "LFM2.5-24B-A2B.b8.end_to_end_tps": { "value": 176.0408, "unit": "tokens/s", "samples": [ 176.808, 176.0408, 142.0925 ], "note": "all generated tokens / (prefill + decode) wall time" }, "LFM2.5-24B-A2B.b8.generated_tokens_per_request": { "value": 256, "unit": "tokens", "samples": [], "note": "minimum over all requests (EOS disabled)" }, "LFM2.5-24B-A2B.b12.total_decode_tps": { "value": 242.9687, "unit": "tokens/s", "samples": [ 246.4128, 242.9687, 205.2702 ], "note": "median of 3; min 205.3, max 246.4" }, "LFM2.5-24B-A2B.b12.per_request_decode_tps": { "value": 20.2474, "unit": "tokens/s", "samples": [ 20.5344, 20.2474, 17.1058 ], "note": "total / batch size; min 17.1, max 20.5" }, "LFM2.5-24B-A2B.b12.speedup_vs_b1": { "value": 2.0298, "unit": "x", "samples": [ 2.0586, 2.0298, 1.7149 ], "note": "median total tps / median batch-1 total tps" }, "LFM2.5-24B-A2B.b12.prefill_time": { "value": 2.3975, "unit": "s", "samples": [ 2.3975, 2.3738, 2.6743 ], "note": "wall time from submit until every request has its first token" }, "LFM2.5-24B-A2B.b12.prompt_processing_time": { "value": 2.3228, "unit": "s", "samples": [ 2.3228, 2.302, 2.5957 ], "note": "mlx_lm BatchGenerator prompt-only timer (excludes the first decode step)" }, "LFM2.5-24B-A2B.b12.ttft": { "value": 2.3975, "unit": "s", "samples": [ 2.3975, 2.3738, 2.6743 ], "note": "time to first token per request (static batch: equal for all requests)" }, "LFM2.5-24B-A2B.b12.peak_memory": { "value": 14.9521, "unit": "GB", "samples": [ 14.9521, 14.9521, 14.9521 ], "note": "mx.get_peak_memory, reset before each run; value = max" }, "LFM2.5-24B-A2B.b12.end_to_end_tps": { "value": 205.2382, "unit": "tokens/s", "samples": [ 207.3481, 205.2382, 174.7293 ], "note": "all generated tokens / (prefill + decode) wall time" }, "LFM2.5-24B-A2B.b12.generated_tokens_per_request": { "value": 256, "unit": "tokens", "samples": [], "note": "minimum over all requests (EOS disabled)" }, "LFM2.5-24B-A2B.b16.total_decode_tps": { "value": 282.9469, "unit": "tokens/s", "samples": [ 306.2385, 282.9469, 266.6621 ], "note": "median of 3; min 266.7, max 306.2" }, "LFM2.5-24B-A2B.b16.per_request_decode_tps": { "value": 17.6842, "unit": "tokens/s", "samples": [ 19.1399, 17.6842, 16.6664 ], "note": "total / batch size; min 16.7, max 19.1" }, "LFM2.5-24B-A2B.b16.speedup_vs_b1": { "value": 2.3638, "unit": "x", "samples": [ 2.5584, 2.3638, 2.2278 ], "note": "median total tps / median batch-1 total tps" }, "LFM2.5-24B-A2B.b16.prefill_time": { "value": 3.351, "unit": "s", "samples": [ 3.6105, 3.3476, 3.351 ], "note": "wall time from submit until every request has its first token" }, "LFM2.5-24B-A2B.b16.prompt_processing_time": { "value": 3.2611, "unit": "s", "samples": [ 3.5229, 3.2528, 3.2611 ], "note": "mlx_lm BatchGenerator prompt-only timer (excludes the first decode step)" }, "LFM2.5-24B-A2B.b16.ttft": { "value": 3.351, "unit": "s", "samples": [ 3.6105, 3.3476, 3.351 ], "note": "time to first token per request (static batch: equal for all requests)" }, "LFM2.5-24B-A2B.b16.peak_memory": { "value": 15.2082, "unit": "GB", "samples": [ 15.2082, 15.2082, 15.2082 ], "note": "mx.get_peak_memory, reset before each run; value = max" }, "LFM2.5-24B-A2B.b16.end_to_end_tps": { "value": 230.5362, "unit": "tokens/s", "samples": [ 241.8887, 230.5362, 219.6099 ], "note": "all generated tokens / (prefill + decode) wall time" }, "LFM2.5-24B-A2B.b16.generated_tokens_per_request": { "value": 256, "unit": "tokens", "samples": [], "note": "minimum over all requests (EOS disabled)" }, "LFM2.5-24B-A2B.b1.identical_outputs": { "value": 100.0, "unit": "%", "samples": [], "note": "3/3 request outputs identical to batch-1 greedy (3 repeats x 1 requests); batch 1 = repeat-to-repeat determinism" }, "LFM2.5-24B-A2B.b1.repeats_consistent": { "value": 1, "unit": "bool", "samples": [], "note": "1 = every repeat diverged at the same positions" }, "LFM2.5-24B-A2B.b2.identical_outputs": { "value": 0.0, "unit": "%", "samples": [], "note": "0/6 request outputs identical to batch-1 greedy (3 repeats x 2 requests)" }, "LFM2.5-24B-A2B.b2.first_divergence": { "value": 74.0, "unit": "token index", "samples": [ 57, 91, 57, 91, 57, 91 ], "note": "median over diverged outputs; earliest 57" }, "LFM2.5-24B-A2B.b2.repeats_consistent": { "value": 1, "unit": "bool", "samples": [], "note": "1 = every repeat diverged at the same positions" }, "LFM2.5-24B-A2B.b4.identical_outputs": { "value": 0.0, "unit": "%", "samples": [], "note": "0/12 request outputs identical to batch-1 greedy (3 repeats x 4 requests)" }, "LFM2.5-24B-A2B.b4.first_divergence": { "value": 69.0, "unit": "token index", "samples": [ 49, 91, 47, 89, 49, 91, 47, 89, 49, 91, 47, 89 ], "note": "median over diverged outputs; earliest 47" }, "LFM2.5-24B-A2B.b4.repeats_consistent": { "value": 1, "unit": "bool", "samples": [], "note": "1 = every repeat diverged at the same positions" }, "LFM2.5-24B-A2B.b8.identical_outputs": { "value": 0.0, "unit": "%", "samples": [], "note": "0/24 request outputs identical to batch-1 greedy (3 repeats x 8 requests)" }, "LFM2.5-24B-A2B.b8.first_divergence": { "value": 48.0, "unit": "token index", "samples": [ 49, 91, 47, 89, 249, 3, 1, 46, 49, 91, 47, 89, 249, 3, 1, 46, 49, 91, 47, 89, 249, 3, 1, 46 ], "note": "median over diverged outputs; earliest 1" }, "LFM2.5-24B-A2B.b8.repeats_consistent": { "value": 1, "unit": "bool", "samples": [], "note": "1 = every repeat diverged at the same positions" }, "LFM2.5-24B-A2B.b12.identical_outputs": { "value": 0.0, "unit": "%", "samples": [], "note": "0/36 request outputs identical to batch-1 greedy (3 repeats x 12 requests)" }, "LFM2.5-24B-A2B.b12.first_divergence": { "value": 19.5, "unit": "token index", "samples": [ 49, 91, 23, 225, 176, 3, 16, 46, 15, 12, 9, 1, 49, 91, 23, 225, 176, 3, 16, 46, 15, 12, 9, 1, 49, 91, 23, 225, 176, 3, 16, 46, 15, 12, 9, 1 ], "note": "median over diverged outputs; earliest 1" }, "LFM2.5-24B-A2B.b12.repeats_consistent": { "value": 1, "unit": "bool", "samples": [], "note": "1 = every repeat diverged at the same positions" }, "LFM2.5-24B-A2B.b16.identical_outputs": { "value": 0.0, "unit": "%", "samples": [], "note": "0/48 request outputs identical to batch-1 greedy (3 repeats x 16 requests)" }, "LFM2.5-24B-A2B.b16.first_divergence": { "value": 22.5, "unit": "token index", "samples": [ 49, 91, 23, 225, 176, 3, 16, 46, 15, 12, 9, 1, 23, 22, 52, 1, 49, 91, 23, 225, 176, 3, 16, 46, 15, 12, 9, 1, 23, 22, 52, 1, 49, 91, 23, 225, 176, 3, 16, 46, 15, 12, 9, 1, 23, 22, 52, 1 ], "note": "median over diverged outputs; earliest 1" }, "LFM2.5-24B-A2B.b16.repeats_consistent": { "value": 1, "unit": "bool", "samples": [], "note": "1 = every repeat diverged at the same positions" }, "LFM2.5-24B-A2B.b1_all_prompts.total_decode_tps": { "value": 121.6588, "unit": "tokens/s", "samples": [ 122.2352, 122.9568, 120.9822, 121.7247, 122.3061, 122.4769, 122.0268, 121.1521, 122.0572, 121.1676, 121.6588, 120.8694, 120.1972, 120.6117, 120.2346 ], "note": "batch-1 reference runs over prompts 1-15; min 120.2, max 123.0" }, "LFM2.5-24B-A2B.max_throughput_batch": { "value": 16, "unit": "requests", "samples": [], "note": "batch size with the highest median total tps (282.9)" }, "LFM2.5-24B-A2B.knee_batch": { "value": 16, "unit": "requests", "samples": [], "note": "first tested batch size where the next tested size adds < 10% total throughput" }, "Qwen3.6-35B-A3B_vs_Qwen3.8-27B.b1.total_tps_ratio": { "value": 7.1974, "unit": "x", "samples": [], "note": "median total tps Qwen3.6-35B-A3B / Qwen3.8-27B" }, "Qwen3.6-35B-A3B_vs_Qwen3.8-27B.b2.total_tps_ratio": { "value": 6.5849, "unit": "x", "samples": [], "note": "median total tps Qwen3.6-35B-A3B / Qwen3.8-27B" }, "Qwen3.6-35B-A3B_vs_Qwen3.8-27B.b4.total_tps_ratio": { "value": 6.4588, "unit": "x", "samples": [], "note": "median total tps Qwen3.6-35B-A3B / Qwen3.8-27B" }, "Qwen3.6-35B-A3B_vs_Qwen3.8-27B.b8.total_tps_ratio": { "value": 6.9217, "unit": "x", "samples": [], "note": "median total tps Qwen3.6-35B-A3B / Qwen3.8-27B" }, "Qwen3.6-35B-A3B_vs_Qwen3.8-27B.b12.total_tps_ratio": { "value": 4.6544, "unit": "x", "samples": [], "note": "median total tps Qwen3.6-35B-A3B / Qwen3.8-27B" }, "Qwen3.6-35B-A3B_vs_Qwen3.8-27B.b16.total_tps_ratio": { "value": 4.4363, "unit": "x", "samples": [], "note": "median total tps Qwen3.6-35B-A3B / Qwen3.8-27B" }, "LFM2.5-24B-A2B_vs_Qwen3.8-27B.b1.total_tps_ratio": { "value": 9.9783, "unit": "x", "samples": [], "note": "median total tps LFM2.5-24B-A2B / Qwen3.8-27B" }, "LFM2.5-24B-A2B_vs_Qwen3.8-27B.b2.total_tps_ratio": { "value": 7.8431, "unit": "x", "samples": [], "note": "median total tps LFM2.5-24B-A2B / Qwen3.8-27B" }, "LFM2.5-24B-A2B_vs_Qwen3.8-27B.b4.total_tps_ratio": { "value": 8.242, "unit": "x", "samples": [], "note": "median total tps LFM2.5-24B-A2B / Qwen3.8-27B" }, "LFM2.5-24B-A2B_vs_Qwen3.8-27B.b8.total_tps_ratio": { "value": 7.9413, "unit": "x", "samples": [], "note": "median total tps LFM2.5-24B-A2B / Qwen3.8-27B" }, "LFM2.5-24B-A2B_vs_Qwen3.8-27B.b12.total_tps_ratio": { "value": 5.2179, "unit": "x", "samples": [], "note": "median total tps LFM2.5-24B-A2B / Qwen3.8-27B" }, "LFM2.5-24B-A2B_vs_Qwen3.8-27B.b16.total_tps_ratio": { "value": 5.3243, "unit": "x", "samples": [], "note": "median total tps LFM2.5-24B-A2B / Qwen3.8-27B" }, "server.LFM2.5-24B-A2B.c1.end_to_end_tps": { "value": 88.6244, "unit": "tokens/s", "samples": [ 88.5438, 88.705 ], "note": "mlx_lm.server, c concurrent streaming requests: completion tokens / wall time" }, "server.LFM2.5-24B-A2B.c1.completion_tokens": { "value": 256, "unit": "tokens", "samples": [ 256, 256 ], "note": "min over requests" }, "server.LFM2.5-24B-A2B.c4.end_to_end_tps": { "value": 138.7964, "unit": "tokens/s", "samples": [ 136.2319, 141.3608 ], "note": "mlx_lm.server, c concurrent streaming requests: completion tokens / wall time" }, "server.LFM2.5-24B-A2B.c4.completion_tokens": { "value": 256, "unit": "tokens", "samples": [ 256, 256, 256, 256, 256, 256, 256, 256 ], "note": "min over requests" } }, "observations": [ "Qwen3.6-35B-A3B vs Qwen3.8-27B: total decode throughput ratio 7.20x at batch 1 and 4.44x at batch 16; no crossover within batch 1-16.", "LFM2.5-24B-A2B vs Qwen3.8-27B: total decode throughput ratio 9.98x at batch 1 and 5.32x at batch 16; no crossover within batch 1-16.", "Qwen3.8-27B (dense): median total decode throughput 12.0 tok/s at batch 1 and 53.1 tok/s at batch 16 (4.43x); per-request 3.3 tok/s at batch 16; knee at batch 16, maximum at batch 16.", "Qwen3.8-27B: share of request outputs identical to batch-1 greedy output: batch 1 100%, batch 2 50%, batch 4 0%, batch 8 0%, batch 12 0%, batch 16 0%.", "Qwen3.6-35B-A3B (moe): median total decode throughput 86.3 tok/s at batch 1 and 235.8 tok/s at batch 16 (2.73x); per-request 14.7 tok/s at batch 16; knee at batch 12, maximum at batch 16.", "Qwen3.6-35B-A3B: share of request outputs identical to batch-1 greedy output: batch 1 100%, batch 2 0%, batch 4 0%, batch 8 0%, batch 12 0%, batch 16 0%.", "LFM2.5-24B-A2B (moe): median total decode throughput 119.7 tok/s at batch 1 and 282.9 tok/s at batch 16 (2.36x); per-request 17.7 tok/s at batch 16; knee at batch 16, maximum at batch 16.", "LFM2.5-24B-A2B: share of request outputs identical to batch-1 greedy output: batch 1 100%, batch 2 0%, batch 4 0%, batch 8 0%, batch 12 0%, batch 16 0%.", "mlx_lm.server with 1 concurrent requests (LFM2.5-24B-A2B): 88.6 tok/s end-to-end vs 103.7 tok/s for batch_generate-style batch 1 (same metric).", "mlx_lm.server with 4 concurrent requests (LFM2.5-24B-A2B): 138.8 tok/s end-to-end vs 157.1 tok/s for batch_generate-style batch 4 (same metric)." ], "caveats": [ "Qwen3.8-27B: skipped {'rep': 1, 'batch': 16, 'reason': 'time budget'} because of the time budget.", "Qwen3.8-27B: skipped {'rep': 2, 'batch': 16, 'reason': 'time budget'} because of the time budget.", "Qwen3.8-27B: skipped {'rep': 2, 'batch': 12, 'reason': 'time budget'} because of the time budget.", "Qwen3.8-27B: skipped {'rep': 2, 'batch': 8, 'reason': 'time budget'} because of the time budget.", "Qwen3.8-27B: skipped {'rep': 2, 'batch': 4, 'reason': 'time budget'} because of the time budget.", "The three 4-bit quantisations differ (group size 64 affine for all; Qwen3.6 MoE keeps router gates at 8-bit, LFM2.5 keeps embeddings at 6-bit). Compare scaling (speedup vs batch 1) as well as absolute speed; no quality ranking is implied.", "Static batches: all requests start together and all have the same length (EOS disabled, 256 new tokens). Real agents arrive at different times and stop at different lengths, which lowers the effective batch.", "Decode throughput excludes prefill: decode time runs from the moment every request has its first token to the last token.", "Prompts are about 290 tokens; with long agent contexts the KV cache and attention cost per step grow and the curves will differ.", "Greedy outputs after EOS are forced continuations; they are used only for timing and the divergence check.", "Single machine, one session; repeats are back to back in the same process.", "All three models are hybrids: the Qwen3.5-family models (Qwen3.8-27B, Qwen3.6-35B-A3B) mix gated linear-attention layers with full attention, LFM2.5 mixes short convolutions with attention. Only the attention layers keep a growing KV cache, so 'dense' here means dense FFN/weights, not a classic all-attention transformer.", "Batched prompts of different lengths are padded by mlx_lm; any divergence from batch-1 output reflects batched kernels and padding, not sampling (greedy everywhere)." ] }