{ "question": "On a 64 GB M3 Max, how much do time-to-first-token and decode speed drop as the prompt grows from 512 to 16k tokens? Does MLX or llama.cpp (via ollama) handle long context better for the same Qwen3.8 27B model? Does a 3B-active MoE (Qwen3.6-35B-A3B) keep its speed lead once the prompt gets long?", "environment": { "machine": { "model": null, "model_id": null, "chip": null, "memory": null, "cpu_cores": null, "gpu_cores": null, "hw_memsize_bytes": "unavailable: [Errno 2] No such file or directory: 'sysctl'" }, "os": { "product_version": "27.0.1", "build": "26A434", "uname": { "system": "Darwin", "release": "27.0.0", "version": "Darwin Kernel Version 27.0.0: Tue Aug 11 21:05:42 PDT 2026; root:xnu-13432.1.9~1/RELEASE_ARM64_T6031", "machine": "arm64", "processor": "arm" } }, "power": { "source": "Now drawing from 'AC Power'", "powermode_lines": [ "powermode 0" ], "therm_idle": "Note: No thermal warning level has been recorded\nNote: No performance warning level has been recorded\nNote: No CPU power status has been recorded" }, "software": { "python": "3.13.5", "python_executable": "~/vibe/hackbig/.state/blog/2026-10-18/deep-m3-max-long-context-speed-curve/run/.venv/bin/python", "mlx": "0.31.2", "mlx-metal": "0.31.2", "mlx-lm": "0.31.3", "transformers": "5.12.1", "numpy": "2.4.2", "ollama_client": "Warning: could not connect to a running Ollama instance\nWarning: client version is 0.40.5" }, "ollama_server_env": { "OLLAMA_FLASH_ATTENTION": "1", "OLLAMA_KV_CACHE_TYPE": "f16", "OLLAMA_NUM_PARALLEL": "1", "OLLAMA_MAX_LOADED_MODELS": "1", "OLLAMA_CONTEXT_LENGTH": "20480", "OLLAMA_KEEP_ALIVE": "30m", "OLLAMA_NOPRUNE": "1" }, "ollama_server_log_lines": [ "time=2026-10-18T11:29:01.909+05:30 level=INFO source=routes.go:2439 msg=\"server config\" env=\"map[HTTPS_PROXY: HTTP_PROXY: LLAMA_ARG_FIT: LLAMA_ARG_FIT_TARGET: NO_PROXY: OLLAMA_CONTEXT_LENGTH:20480 OLLAMA_CREATE_REMOTE:false OLLAMA_DEBUG:INFO OLLAMA_DEBUG_LOG_REQUESTS:false OLLAMA_EDITOR: OLLAMA_FLASH_ATTENTION:true OLLAMA_GO_TEMPLATE:true OLLAMA_GPU_OVERHEAD:0 OLLAMA_HOST:http://127.0.0.1:11545 OLLAMA_IGPU_ENABLE: OLLAMA_KEEP_ALIVE:30m0s OLLAMA_KV_CACHE_TYPE:f16 OLLAMA_LLM_LIBRARY: OLLAMA_LOAD_TIMEOUT:5m0s OLLAMA_MAX_LOADED_MODELS:1 OLLAMA_MAX_QUEUE:512 OLLAMA_MAX_TRANSFER_STREAMS:4 OLLAMA_MODELS:~/vibe/hackbig/.state/blog/2026-10-18/deep-m3-max-long-context-speed-curve/run/ollama_models OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:true OLLAMA_NO_CLOUD:false OLLAMA_NUM_PARALLEL:1 OLLAMA_ORIGINS:[http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://* vscode-webview://* vscode-file://*] OLLAMA_REMOTES:[ollama.com] OLLAMA_SCHED_SPREAD:false http_proxy: https_proxy: no_proxy:]\"", "time=2026-10-18T11:29:01.909+05:30 level=INFO source=routes.go:2501 msg=\"Listening on 127.0.0.1:11545 (version 0.40.5)\"", "time=2026-10-18T11:29:01.910+05:30 level=INFO source=runner.go:60 msg=\"discovering available GPUs...\"", "[GIN] 2026/10/18 - 11:29:05 | 200 | 56.25\u00b5s | 127.0.0.1 | GET \"/api/version\"", "[GIN] 2026/10/18 - 11:29:05 | 200 | 12.791\u00b5s | 127.0.0.1 | GET \"/api/version\"", "[GIN] 2026/10/18 - 11:29:05 | 200 | 17.666\u00b5s | 127.0.0.1 | GET \"/api/version\"", "time=2026-10-18T11:29:06.486+05:30 level=INFO source=llama_server.go:457 msg=\"starting llama-server\" cmd=\"/Applications/Ollama.app/Contents/Resources/llama-server --model ~/vibe/hackbig/.state/blog/2026-10-18/deep-m3-max-long-context-speed-curve/run/ollama_models/blobs/sha256-3f227079003add2511437e5b1e94812e363385225bf6a9b47b0054a72bc8b01e --port 53427 --host 127.0.0.1 --no-webui --offline -c 20480 -np 1 --log-verbosity 4 --no-log-prefix --no-log-timestamps --cache-type-k f16 --cache-type-v f16 --flash-attn on -b 1024 -ub 1024 --context-shift --keep 4\"", "srv llama_server: security: no API key is set and CORS allows all origins (see https://github.com/ggml-org/llama.cpp/pull/25655)", "llama_model_loader: loaded meta data with 50 key-value pairs and 866 tensors from ~/vibe/hackbig/.state/blog/2026-10-18/deep-m3-max-long-context-speed-curve/run/ollama_models/blobs/sha256-3f227079003add2511437e5b1e94812e363385225bf6a9b47b0054a72bc8b01e (version GGUF V3 (latest))", "llama_model_loader: - kv 0: general.architecture str = qwen35", "llama_model_loader: - kv 44: general.quantization_version u32 = 2", "load_tensors: offloading output layer to GPU", "load_tensors: offloading 64 repeating layers to GPU", "load_tensors: offloaded 66/66 layers to GPU", "llama_context: flash_attn = enabled", "cmn common_init_: KV cache shifting is not supported for this context, disabling KV cache shifting", "srv load_model: for more info see https://github.com/ggml-org/llama.cpp/pull/16391", "time=2026-10-18T11:29:15.072+05:30 level=INFO source=sched.go:788 msg=\"loaded runners\" count=1", "slot operator(): id 0 | task 208 | forcing full prompt re-processing due to lack of cache data (likely due to SWA or hybrid/recurrent memory, see https://github.com/ggml-org/llama.cpp/pull/13194#issuecomment-2868343055)", "slot operator(): id 0 | task 403 | forcing full prompt re-processing due to lack of cache data (likely due to SWA or hybrid/recurrent memory, see https://github.com/ggml-org/llama.cpp/pull/13194#issuecomment-2868343055)", "slot operator(): id 0 | task 676 | forcing full prompt re-processing due to lack of cache data (likely due to SWA or hybrid/recurrent memory, see https://github.com/ggml-org/llama.cpp/pull/13194#issuecomment-2868343055)", "slot operator(): id 0 | task 937 | forcing full prompt re-processing due to lack of cache data (likely due to SWA or hybrid/recurrent memory, see https://github.com/ggml-org/llama.cpp/pull/13194#issuecomment-2868343055)", "slot operator(): id 0 | task 1198 | forcing full prompt re-processing due to lack of cache data (likely due to SWA or hybrid/recurrent memory, see https://github.com/ggml-org/llama.cpp/pull/13194#issuecomment-2868343055)", "slot operator(): id 0 | task 1667 | forcing full prompt re-processing due to lack of cache data (likely due to SWA or hybrid/recurrent memory, see https://github.com/ggml-org/llama.cpp/pull/13194#issuecomment-2868343055)", "slot operator(): id 0 | task 1940 | forcing full prompt re-processing due to lack of cache data (likely due to SWA or hybrid/recurrent memory, see https://github.com/ggml-org/llama.cpp/pull/13194#issuecomment-2868343055)", "slot operator(): id 0 | task 2201 | forcing full prompt re-processing due to lack of cache data (likely due to SWA or hybrid/recurrent memory, see https://github.com/ggml-org/llama.cpp/pull/13194#issuecomment-2868343055)" ], "configs": { "A": { "key": "A_mlx_qwen3.8-27b-dense", "description": "MLX (mlx_lm), Qwen3.8-27B dense, mlx-community 4-bit", "backend_version": "0.31.3", "settings": { "prefill_step_size": 2048, "sampler": "argmax (temperature 0)", "eos": "banned via logits processor (forced 256 tokens)", "kv_cache": "mlx_lm default (fresh per run, not quantized)" }, "thermal_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", "thermal_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" }, "B": { "key": "B_ollama_qwen3.8-27b-dense", "description": "ollama/llama.cpp, Qwen3.8-27B dense, unsloth UD-Q4_K_XL GGUF", "backend_version": "0.40.5", "settings": { "options": { "temperature": 0, "top_k": 1, "seed": 42, "num_predict": 256, "num_ctx": 20480 }, "server_env": { "OLLAMA_HOST": "127.0.0.1:11545", "OLLAMA_FLASH_ATTENTION": "1", "OLLAMA_KV_CACHE_TYPE": "f16", "OLLAMA_NUM_PARALLEL": "1", "OLLAMA_MAX_LOADED_MODELS": "1", "OLLAMA_CONTEXT_LENGTH": "20480", "OLLAMA_KEEP_ALIVE": "30m", "OLLAMA_NOPRUNE": "1" }, "eos": "not suppressible in ollama API; actual decode_tokens recorded per run", "create": { "method": "api/create", "digest": "3f227079003add2511437e5b1e94812e363385225bf6a9b47b0054a72bc8b01e" } }, "thermal_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", "thermal_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" }, "C": { "key": "C_mlx_qwen3.6-35b-a3b-moe", "description": "MLX (mlx_lm), Qwen3.6-35B-A3B MoE (3B active), 4-bit", "backend_version": "0.31.3", "settings": { "prefill_step_size": 2048, "sampler": "argmax (temperature 0)", "eos": "banned via logits processor (forced 256 tokens)", "kv_cache": "mlx_lm default (fresh per run, not quantized)" }, "thermal_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", "thermal_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" }, "D": { "key": "D_mlx_lfm2.5-24b-a2b-moe", "description": "MLX (mlx_lm), LFM2.5-24B-A2B MoE (2B active), 4-bit", "backend_version": "0.31.3", "settings": { "prefill_step_size": 2048, "sampler": "argmax (temperature 0)", "eos": "banned via logits processor (forced 256 tokens)", "kv_cache": "mlx_lm default (fresh per run, not quantized)" }, "thermal_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", "thermal_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" } } }, "runs": 3, "metrics": { "ttft_s.A_mlx_qwen3.8-27b-dense.ctx512": { "value": 3.291, "unit": "s", "samples": [ 2.5782, 3.291, 3.5181 ], "min": 2.5782, "max": 3.5181, "n": 3, "note": "wall-clock from request to first streamed token (prefill + 1st token)" }, "prefill_tps.A_mlx_qwen3.8-27b-dense.ctx512": { "value": 155.5746, "unit": "tokens/s", "samples": [ 198.5861, 155.5746, 145.5343 ], "min": 145.5343, "max": 198.5861, "n": 3, "note": "prompt tokens / TTFT (MLX); prompt_eval_count / prompt_eval_duration (ollama)" }, "decode_tps.A_mlx_qwen3.8-27b-dense.ctx512": { "value": 14.7679, "unit": "tokens/s", "samples": [ 22.7349, 14.7679, 14.18 ], "min": 14.18, "max": 22.7349, "n": 3, "note": "(tokens-1)/(t_last-t_first) (MLX); eval_count/eval_duration (ollama)" }, "e2e_256_s.A_mlx_qwen3.8-27b-dense.ctx512": { "value": 20.5942, "unit": "s", "samples": [ 13.8154, 20.5942, 21.5399 ], "min": 13.8154, "max": 21.5399, "n": 3, "note": "time to a 256-token answer; measured wall time" }, "decode_tokens.A_mlx_qwen3.8-27b-dense.ctx512": { "value": 256, "unit": "tokens", "samples": [ 256, 256, 256 ], "min": 256, "max": 256, "n": 3, "note": "tokens actually generated (MLX bans EOS, so always 256)" }, "prompt_tokens_evaluated.A_mlx_qwen3.8-27b-dense.ctx512": { "value": 512, "unit": "tokens", "samples": [ 512, 512, 512 ], "min": 512, "max": 512, "n": 3, "note": "prompt tokens the backend reports it processed" }, "peak_mem_gb.A_mlx_qwen3.8-27b-dense.ctx512": { "value": 16.3897, "unit": "GB", "samples": [ 16.3897, 16.3897, 16.3897 ], "min": 16.3897, "max": 16.3897, "n": 3, "note": "mx.get_peak_memory() per run (weights + KV/state + activations)" }, "ttft_s.A_mlx_qwen3.8-27b-dense.ctx4096": { "value": 28.7138, "unit": "s", "samples": [ 43.2583, 25.8016, 28.7138 ], "min": 25.8016, "max": 43.2583, "n": 3, "note": "wall-clock from request to first streamed token (prefill + 1st token)" }, "prefill_tps.A_mlx_qwen3.8-27b-dense.ctx4096": { "value": 142.6493, "unit": "tokens/s", "samples": [ 94.6871, 158.7498, 142.6493 ], "min": 94.6871, "max": 158.7498, "n": 3, "note": "prompt tokens / TTFT (MLX); prompt_eval_count / prompt_eval_duration (ollama)" }, "decode_tps.A_mlx_qwen3.8-27b-dense.ctx4096": { "value": 13.4224, "unit": "tokens/s", "samples": [ 11.6756, 14.3517, 13.4224 ], "min": 11.6756, "max": 14.3517, "n": 3, "note": "(tokens-1)/(t_last-t_first) (MLX); eval_count/eval_duration (ollama)" }, "e2e_256_s.A_mlx_qwen3.8-27b-dense.ctx4096": { "value": 47.744, "unit": "s", "samples": [ 65.1455, 43.6085, 47.744 ], "min": 43.6085, "max": 65.1455, "n": 3, "note": "time to a 256-token answer; measured wall time" }, "decode_tokens.A_mlx_qwen3.8-27b-dense.ctx4096": { "value": 256, "unit": "tokens", "samples": [ 256, 256, 256 ], "min": 256, "max": 256, "n": 3, "note": "tokens actually generated (MLX bans EOS, so always 256)" }, "prompt_tokens_evaluated.A_mlx_qwen3.8-27b-dense.ctx4096": { "value": 4096, "unit": "tokens", "samples": [ 4096, 4096, 4096 ], "min": 4096, "max": 4096, "n": 3, "note": "prompt tokens the backend reports it processed" }, "peak_mem_gb.A_mlx_qwen3.8-27b-dense.ctx4096": { "value": 18.5487, "unit": "GB", "samples": [ 18.5487, 18.5484, 18.5487 ], "min": 18.5484, "max": 18.5487, "n": 3, "note": "mx.get_peak_memory() per run (weights + KV/state + activations)" }, "ttft_s.A_mlx_qwen3.8-27b-dense.ctx16384": { "value": 116.3485, "unit": "s", "samples": [ 171.1089, 110.9376, 116.3485 ], "min": 110.9376, "max": 171.1089, "n": 3, "note": "wall-clock from request to first streamed token (prefill + 1st token)" }, "prefill_tps.A_mlx_qwen3.8-27b-dense.ctx16384": { "value": 140.8183, "unit": "tokens/s", "samples": [ 95.7519, 147.6867, 140.8183 ], "min": 95.7519, "max": 147.6867, "n": 3, "note": "prompt tokens / TTFT (MLX); prompt_eval_count / prompt_eval_duration (ollama)" }, "decode_tps.A_mlx_qwen3.8-27b-dense.ctx16384": { "value": 11.9405, "unit": "tokens/s", "samples": [ 8.4679, 11.9405, 12.4631 ], "min": 8.4679, "max": 12.4631, "n": 3, "note": "(tokens-1)/(t_last-t_first) (MLX); eval_count/eval_duration (ollama)" }, "e2e_256_s.A_mlx_qwen3.8-27b-dense.ctx16384": { "value": 136.8496, "unit": "s", "samples": [ 201.2616, 132.3123, 136.8496 ], "min": 132.3123, "max": 201.2616, "n": 3, "note": "time to a 256-token answer; measured wall time" }, "decode_tokens.A_mlx_qwen3.8-27b-dense.ctx16384": { "value": 256, "unit": "tokens", "samples": [ 256, 256, 256 ], "min": 256, "max": 256, "n": 3, "note": "tokens actually generated (MLX bans EOS, so always 256)" }, "prompt_tokens_evaluated.A_mlx_qwen3.8-27b-dense.ctx16384": { "value": 16384, "unit": "tokens", "samples": [ 16384, 16384, 16384 ], "min": 16384, "max": 16384, "n": 3, "note": "prompt tokens the backend reports it processed" }, "peak_mem_gb.A_mlx_qwen3.8-27b-dense.ctx16384": { "value": 20.5614, "unit": "GB", "samples": [ 20.5614, 20.5607, 20.5614 ], "min": 20.5607, "max": 20.5614, "n": 3, "note": "mx.get_peak_memory() per run (weights + KV/state + activations)" }, "decode_drop_pct_16k_vs_512.A_mlx_qwen3.8-27b-dense": { "value": 19.15, "unit": "%", "samples": [], "note": "1 - median decode tok/s @16384 / median @512" }, "prefill_tps_drop_pct_16k_vs_512.A_mlx_qwen3.8-27b-dense": { "value": 9.49, "unit": "%", "samples": [], "note": "1 - median prefill tok/s @16384 / median @512" }, "ttft_ratio_16k_vs_512.A_mlx_qwen3.8-27b-dense": { "value": 35.35, "unit": "x", "samples": [], "note": "median TTFT @16384 / median TTFT @512 (prompt is 32x longer)" }, "load_s.A_mlx_qwen3.8-27b-dense": { "value": 4.01, "unit": "s", "samples": [], "note": "model load (MLX: mlx_lm.load; ollama: load_duration of warm-up)" }, "file_size_gb.A_mlx_qwen3.8-27b-dense": { "value": 16.055, "unit": "GB", "samples": [], "note": "on-disk weights (mlx safetensors)" }, "bpw.A_mlx_qwen3.8-27b-dense": { "value": 4.695, "unit": "bits/weight", "samples": [], "note": "file bytes*8 / logical params (incl. scales/biases)" }, "bpw_text_only.A_mlx_qwen3.8-27b-dense": { "value": 4.501, "unit": "bits/weight", "samples": [], "note": "excluding vision-tower tensors" }, "params_b.A_mlx_qwen3.8-27b-dense": { "value": 27.357, "unit": "billion", "samples": [], "note": "logical parameters in the file" }, "ttft_s.B_ollama_qwen3.8-27b-dense.ctx512": { "value": 3.8362, "unit": "s", "samples": [ 3.1956, 3.9549, 3.8362 ], "min": 3.1956, "max": 3.9549, "n": 3, "note": "wall-clock from request to first streamed token (prefill + 1st token)" }, "prefill_tps.B_ollama_qwen3.8-27b-dense.ctx512": { "value": 134.6587, "unit": "tokens/s", "samples": [ 161.4056, 131.4158, 134.6587 ], "min": 131.4158, "max": 161.4056, "n": 3, "note": "prompt tokens / TTFT (MLX); prompt_eval_count / prompt_eval_duration (ollama)" }, "decode_tps.B_ollama_qwen3.8-27b-dense.ctx512": { "value": 8.3932, "unit": "tokens/s", "samples": [ 11.0435, 8.1861, 8.3932 ], "min": 8.1861, "max": 11.0435, "n": 3, "note": "(tokens-1)/(t_last-t_first) (MLX); eval_count/eval_duration (ollama)" }, "e2e_256_s.B_ollama_qwen3.8-27b-dense.ctx512": { "value": 34.2179, "unit": "s", "samples": [ 26.2861, 35.1054, 34.2179 ], "min": 26.2861, "max": 35.1054, "n": 3, "note": "time to a 256-token answer; measured wall time; 3/3 runs stopped early (EOS) and are projected as TTFT + 255/decode tok/s" }, "decode_tokens.B_ollama_qwen3.8-27b-dense.ctx512": { "value": 197, "unit": "tokens", "samples": [ 193, 197, 197 ], "min": 193, "max": 197, "n": 3, "note": "tokens actually generated (MLX bans EOS, so always 256)" }, "prompt_tokens_evaluated.B_ollama_qwen3.8-27b-dense.ctx512": { "value": 512, "unit": "tokens", "samples": [ 512, 512, 512 ], "min": 512, "max": 512, "n": 3, "note": "prompt tokens the backend reports it processed" }, "ttft_s.B_ollama_qwen3.8-27b-dense.ctx4096": { "value": 31.0425, "unit": "s", "samples": [ 31.1493, 30.9539, 31.0425 ], "min": 30.9539, "max": 31.1493, "n": 3, "note": "wall-clock from request to first streamed token (prefill + 1st token)" }, "prefill_tps.B_ollama_qwen3.8-27b-dense.ctx4096": { "value": 132.5694, "unit": "tokens/s", "samples": [ 131.9471, 132.5829, 132.5694 ], "min": 131.9471, "max": 132.5829, "n": 3, "note": "prompt tokens / TTFT (MLX); prompt_eval_count / prompt_eval_duration (ollama)" }, "decode_tps.B_ollama_qwen3.8-27b-dense.ctx4096": { "value": 7.7229, "unit": "tokens/s", "samples": [ 7.6187, 7.7229, 7.9441 ], "min": 7.6187, "max": 7.9441, "n": 3, "note": "(tokens-1)/(t_last-t_first) (MLX); eval_count/eval_duration (ollama)" }, "e2e_256_s.B_ollama_qwen3.8-27b-dense.ctx4096": { "value": 64.1019, "unit": "s", "samples": [ 64.7504, 64.1019, 63.2673 ], "min": 63.2673, "max": 64.7504, "n": 3, "note": "time to a 256-token answer; measured wall time" }, "decode_tokens.B_ollama_qwen3.8-27b-dense.ctx4096": { "value": 256, "unit": "tokens", "samples": [ 256, 256, 256 ], "min": 256, "max": 256, "n": 3, "note": "tokens actually generated (MLX bans EOS, so always 256)" }, "prompt_tokens_evaluated.B_ollama_qwen3.8-27b-dense.ctx4096": { "value": 4096, "unit": "tokens", "samples": [ 4096, 4096, 4096 ], "min": 4096, "max": 4096, "n": 3, "note": "prompt tokens the backend reports it processed" }, "ttft_s.B_ollama_qwen3.8-27b-dense.ctx16384": { "value": 110.9983, "unit": "s", "samples": [ 110.9983, 104.5907, 133.6423 ], "min": 104.5907, "max": 133.6423, "n": 3, "note": "wall-clock from request to first streamed token (prefill + 1st token)" }, "prefill_tps.B_ollama_qwen3.8-27b-dense.ctx16384": { "value": 147.6729, "unit": "tokens/s", "samples": [ 147.6729, 156.7378, 122.7938 ], "min": 122.7938, "max": 156.7378, "n": 3, "note": "prompt tokens / TTFT (MLX); prompt_eval_count / prompt_eval_duration (ollama)" }, "decode_tps.B_ollama_qwen3.8-27b-dense.ctx16384": { "value": 7.4372, "unit": "tokens/s", "samples": [ 7.7367, 7.4372, 7.1378 ], "min": 7.1378, "max": 7.7367, "n": 3, "note": "(tokens-1)/(t_last-t_first) (MLX); eval_count/eval_duration (ollama)" }, "e2e_256_s.B_ollama_qwen3.8-27b-dense.ctx16384": { "value": 144.0878, "unit": "s", "samples": [ 144.0878, 139.0129, 169.5081 ], "min": 139.0129, "max": 169.5081, "n": 3, "note": "time to a 256-token answer; measured wall time" }, "decode_tokens.B_ollama_qwen3.8-27b-dense.ctx16384": { "value": 256, "unit": "tokens", "samples": [ 256, 256, 256 ], "min": 256, "max": 256, "n": 3, "note": "tokens actually generated (MLX bans EOS, so always 256)" }, "prompt_tokens_evaluated.B_ollama_qwen3.8-27b-dense.ctx16384": { "value": 16384, "unit": "tokens", "samples": [ 16384, 16384, 16384 ], "min": 16384, "max": 16384, "n": 3, "note": "prompt tokens the backend reports it processed" }, "decode_drop_pct_16k_vs_512.B_ollama_qwen3.8-27b-dense": { "value": 11.39, "unit": "%", "samples": [], "note": "1 - median decode tok/s @16384 / median @512" }, "prefill_tps_drop_pct_16k_vs_512.B_ollama_qwen3.8-27b-dense": { "value": -9.66, "unit": "%", "samples": [], "note": "1 - median prefill tok/s @16384 / median @512" }, "ttft_ratio_16k_vs_512.B_ollama_qwen3.8-27b-dense": { "value": 28.93, "unit": "x", "samples": [], "note": "median TTFT @16384 / median TTFT @512 (prompt is 32x longer)" }, "load_s.B_ollama_qwen3.8-27b-dense": { "value": 8.62, "unit": "s", "samples": [], "note": "model load (MLX: mlx_lm.load; ollama: load_duration of warm-up)" }, "file_size_gb.B_ollama_qwen3.8-27b-dense": { "value": 17.559, "unit": "GB", "samples": [], "note": "on-disk weights (gguf)" }, "bpw.B_ollama_qwen3.8-27b-dense": { "value": 5.138, "unit": "bits/weight", "samples": [], "note": "file bytes*8 / logical params (incl. scales/biases)" }, "params_b.B_ollama_qwen3.8-27b-dense": { "value": 27.321, "unit": "billion", "samples": [], "note": "logical parameters in the file" }, "ttft_s.C_mlx_qwen3.6-35b-a3b-moe.ctx512": { "value": 0.5844, "unit": "s", "samples": [ 0.6056, 0.5756, 0.5844 ], "min": 0.5756, "max": 0.6056, "n": 3, "note": "wall-clock from request to first streamed token (prefill + 1st token)" }, "prefill_tps.C_mlx_qwen3.6-35b-a3b-moe.ctx512": { "value": 876.0902, "unit": "tokens/s", "samples": [ 845.4588, 889.4729, 876.0902 ], "min": 845.4588, "max": 889.4729, "n": 3, "note": "prompt tokens / TTFT (MLX); prompt_eval_count / prompt_eval_duration (ollama)" }, "decode_tps.C_mlx_qwen3.6-35b-a3b-moe.ctx512": { "value": 96.5054, "unit": "tokens/s", "samples": [ 95.187, 98.6562, 96.5054 ], "min": 95.187, "max": 98.6562, "n": 3, "note": "(tokens-1)/(t_last-t_first) (MLX); eval_count/eval_duration (ollama)" }, "e2e_256_s.C_mlx_qwen3.6-35b-a3b-moe.ctx512": { "value": 3.2359, "unit": "s", "samples": [ 3.2929, 3.1694, 3.2359 ], "min": 3.1694, "max": 3.2929, "n": 3, "note": "time to a 256-token answer; measured wall time" }, "decode_tokens.C_mlx_qwen3.6-35b-a3b-moe.ctx512": { "value": 256, "unit": "tokens", "samples": [ 256, 256, 256 ], "min": 256, "max": 256, "n": 3, "note": "tokens actually generated (MLX bans EOS, so always 256)" }, "prompt_tokens_evaluated.C_mlx_qwen3.6-35b-a3b-moe.ctx512": { "value": 512, "unit": "tokens", "samples": [ 512, 512, 512 ], "min": 512, "max": 512, "n": 3, "note": "prompt tokens the backend reports it processed" }, "peak_mem_gb.C_mlx_qwen3.6-35b-a3b-moe.ctx512": { "value": 20.1766, "unit": "GB", "samples": [ 20.1766, 20.1766, 20.1766 ], "min": 20.1766, "max": 20.1766, "n": 3, "note": "mx.get_peak_memory() per run (weights + KV/state + activations)" }, "ttft_s.C_mlx_qwen3.6-35b-a3b-moe.ctx4096": { "value": 3.3608, "unit": "s", "samples": [ 3.3734, 3.3355, 3.3608 ], "min": 3.3355, "max": 3.3734, "n": 3, "note": "wall-clock from request to first streamed token (prefill + 1st token)" }, "prefill_tps.C_mlx_qwen3.6-35b-a3b-moe.ctx4096": { "value": 1218.7681, "unit": "tokens/s", "samples": [ 1214.2066, 1227.9847, 1218.7681 ], "min": 1214.2066, "max": 1227.9847, "n": 3, "note": "prompt tokens / TTFT (MLX); prompt_eval_count / prompt_eval_duration (ollama)" }, "decode_tps.C_mlx_qwen3.6-35b-a3b-moe.ctx4096": { "value": 93.2914, "unit": "tokens/s", "samples": [ 90.9598, 93.5755, 93.2914 ], "min": 90.9598, "max": 93.5755, "n": 3, "note": "(tokens-1)/(t_last-t_first) (MLX); eval_count/eval_duration (ollama)" }, "e2e_256_s.C_mlx_qwen3.6-35b-a3b-moe.ctx4096": { "value": 6.1035, "unit": "s", "samples": [ 6.1866, 6.0698, 6.1035 ], "min": 6.0698, "max": 6.1866, "n": 3, "note": "time to a 256-token answer; measured wall time" }, "decode_tokens.C_mlx_qwen3.6-35b-a3b-moe.ctx4096": { "value": 256, "unit": "tokens", "samples": [ 256, 256, 256 ], "min": 256, "max": 256, "n": 3, "note": "tokens actually generated (MLX bans EOS, so always 256)" }, "prompt_tokens_evaluated.C_mlx_qwen3.6-35b-a3b-moe.ctx4096": { "value": 4096, "unit": "tokens", "samples": [ 4096, 4096, 4096 ], "min": 4096, "max": 4096, "n": 3, "note": "prompt tokens the backend reports it processed" }, "peak_mem_gb.C_mlx_qwen3.6-35b-a3b-moe.ctx4096": { "value": 21.523, "unit": "GB", "samples": [ 21.523, 21.523, 21.5229 ], "min": 21.5229, "max": 21.523, "n": 3, "note": "mx.get_peak_memory() per run (weights + KV/state + activations)" }, "ttft_s.C_mlx_qwen3.6-35b-a3b-moe.ctx16384": { "value": 14.7435, "unit": "s", "samples": [ 15.5496, 14.7435, 14.6236 ], "min": 14.6236, "max": 15.5496, "n": 3, "note": "wall-clock from request to first streamed token (prefill + 1st token)" }, "prefill_tps.C_mlx_qwen3.6-35b-a3b-moe.ctx16384": { "value": 1111.2701, "unit": "tokens/s", "samples": [ 1053.6628, 1111.2701, 1120.3838 ], "min": 1053.6628, "max": 1120.3838, "n": 3, "note": "prompt tokens / TTFT (MLX); prompt_eval_count / prompt_eval_duration (ollama)" }, "decode_tps.C_mlx_qwen3.6-35b-a3b-moe.ctx16384": { "value": 81.9178, "unit": "tokens/s", "samples": [ 81.1242, 82.7563, 81.9178 ], "min": 81.1242, "max": 82.7563, "n": 3, "note": "(tokens-1)/(t_last-t_first) (MLX); eval_count/eval_duration (ollama)" }, "e2e_256_s.C_mlx_qwen3.6-35b-a3b-moe.ctx16384": { "value": 17.834, "unit": "s", "samples": [ 18.7019, 17.834, 17.7451 ], "min": 17.7451, "max": 18.7019, "n": 3, "note": "time to a 256-token answer; measured wall time" }, "decode_tokens.C_mlx_qwen3.6-35b-a3b-moe.ctx16384": { "value": 256, "unit": "tokens", "samples": [ 256, 256, 256 ], "min": 256, "max": 256, "n": 3, "note": "tokens actually generated (MLX bans EOS, so always 256)" }, "prompt_tokens_evaluated.C_mlx_qwen3.6-35b-a3b-moe.ctx16384": { "value": 16384, "unit": "tokens", "samples": [ 16384, 16384, 16384 ], "min": 16384, "max": 16384, "n": 3, "note": "prompt tokens the backend reports it processed" }, "peak_mem_gb.C_mlx_qwen3.6-35b-a3b-moe.ctx16384": { "value": 22.5624, "unit": "GB", "samples": [ 22.5628, 22.5623, 22.5624 ], "min": 22.5623, "max": 22.5628, "n": 3, "note": "mx.get_peak_memory() per run (weights + KV/state + activations)" }, "decode_drop_pct_16k_vs_512.C_mlx_qwen3.6-35b-a3b-moe": { "value": 15.12, "unit": "%", "samples": [], "note": "1 - median decode tok/s @16384 / median @512" }, "prefill_tps_drop_pct_16k_vs_512.C_mlx_qwen3.6-35b-a3b-moe": { "value": -26.84, "unit": "%", "samples": [], "note": "1 - median prefill tok/s @16384 / median @512" }, "ttft_ratio_16k_vs_512.C_mlx_qwen3.6-35b-a3b-moe": { "value": 25.23, "unit": "x", "samples": [], "note": "median TTFT @16384 / median TTFT @512 (prompt is 32x longer)" }, "load_s.C_mlx_qwen3.6-35b-a3b-moe": { "value": 4.07, "unit": "s", "samples": [], "note": "model load (MLX: mlx_lm.load; ollama: load_duration of warm-up)" }, "file_size_gb.C_mlx_qwen3.6-35b-a3b-moe": { "value": 20.402, "unit": "GB", "samples": [], "note": "on-disk weights (mlx safetensors)" }, "bpw.C_mlx_qwen3.6-35b-a3b-moe": { "value": 4.649, "unit": "bits/weight", "samples": [], "note": "file bytes*8 / logical params (incl. scales/biases)" }, "bpw_text_only.C_mlx_qwen3.6-35b-a3b-moe": { "value": 4.503, "unit": "bits/weight", "samples": [], "note": "excluding vision-tower tensors" }, "params_b.C_mlx_qwen3.6-35b-a3b-moe": { "value": 35.107, "unit": "billion", "samples": [], "note": "logical parameters in the file" }, "ttft_s.D_mlx_lfm2.5-24b-a2b-moe.ctx512": { "value": 0.438, "unit": "s", "samples": [ 0.438, 0.4337, 0.442 ], "min": 0.4337, "max": 0.442, "n": 3, "note": "wall-clock from request to first streamed token (prefill + 1st token)" }, "prefill_tps.D_mlx_lfm2.5-24b-a2b-moe.ctx512": { "value": 1168.8821, "unit": "tokens/s", "samples": [ 1168.8821, 1180.5335, 1158.4262 ], "min": 1158.4262, "max": 1180.5335, "n": 3, "note": "prompt tokens / TTFT (MLX); prompt_eval_count / prompt_eval_duration (ollama)" }, "decode_tps.D_mlx_lfm2.5-24b-a2b-moe.ctx512": { "value": 132.0219, "unit": "tokens/s", "samples": [ 125.233, 132.4654, 132.0219 ], "min": 125.233, "max": 132.4654, "n": 3, "note": "(tokens-1)/(t_last-t_first) (MLX); eval_count/eval_duration (ollama)" }, "e2e_256_s.D_mlx_lfm2.5-24b-a2b-moe.ctx512": { "value": 2.3783, "unit": "s", "samples": [ 2.48, 2.3637, 2.3783 ], "min": 2.3637, "max": 2.48, "n": 3, "note": "time to a 256-token answer; measured wall time" }, "decode_tokens.D_mlx_lfm2.5-24b-a2b-moe.ctx512": { "value": 256, "unit": "tokens", "samples": [ 256, 256, 256 ], "min": 256, "max": 256, "n": 3, "note": "tokens actually generated (MLX bans EOS, so always 256)" }, "prompt_tokens_evaluated.D_mlx_lfm2.5-24b-a2b-moe.ctx512": { "value": 512, "unit": "tokens", "samples": [ 512, 512, 512 ], "min": 512, "max": 512, "n": 3, "note": "prompt tokens the backend reports it processed" }, "peak_mem_gb.D_mlx_lfm2.5-24b-a2b-moe.ctx512": { "value": 14.0041, "unit": "GB", "samples": [ 14.0041, 14.0041, 14.0041 ], "min": 14.0041, "max": 14.0041, "n": 3, "note": "mx.get_peak_memory() per run (weights + KV/state + activations)" }, "ttft_s.D_mlx_lfm2.5-24b-a2b-moe.ctx4096": { "value": 2.46, "unit": "s", "samples": [ 2.46, 2.4539, 2.4628 ], "min": 2.4539, "max": 2.4628, "n": 3, "note": "wall-clock from request to first streamed token (prefill + 1st token)" }, "prefill_tps.D_mlx_lfm2.5-24b-a2b-moe.ctx4096": { "value": 1665.0077, "unit": "tokens/s", "samples": [ 1665.0077, 1669.2007, 1663.1607 ], "min": 1663.1607, "max": 1669.2007, "n": 3, "note": "prompt tokens / TTFT (MLX); prompt_eval_count / prompt_eval_duration (ollama)" }, "decode_tps.D_mlx_lfm2.5-24b-a2b-moe.ctx4096": { "value": 127.986, "unit": "tokens/s", "samples": [ 128.2146, 127.986, 127.5266 ], "min": 127.5266, "max": 128.2146, "n": 3, "note": "(tokens-1)/(t_last-t_first) (MLX); eval_count/eval_duration (ollama)" }, "e2e_256_s.D_mlx_lfm2.5-24b-a2b-moe.ctx4096": { "value": 4.4537, "unit": "s", "samples": [ 4.4537, 4.4511, 4.4669 ], "min": 4.4511, "max": 4.4669, "n": 3, "note": "time to a 256-token answer; measured wall time" }, "decode_tokens.D_mlx_lfm2.5-24b-a2b-moe.ctx4096": { "value": 256, "unit": "tokens", "samples": [ 256, 256, 256 ], "min": 256, "max": 256, "n": 3, "note": "tokens actually generated (MLX bans EOS, so always 256)" }, "prompt_tokens_evaluated.D_mlx_lfm2.5-24b-a2b-moe.ctx4096": { "value": 4096, "unit": "tokens", "samples": [ 4096, 4096, 4096 ], "min": 4096, "max": 4096, "n": 3, "note": "prompt tokens the backend reports it processed" }, "peak_mem_gb.D_mlx_lfm2.5-24b-a2b-moe.ctx4096": { "value": 14.6962, "unit": "GB", "samples": [ 14.6962, 14.6962, 14.6962 ], "min": 14.6962, "max": 14.6962, "n": 3, "note": "mx.get_peak_memory() per run (weights + KV/state + activations)" }, "ttft_s.D_mlx_lfm2.5-24b-a2b-moe.ctx16384": { "value": 10.3594, "unit": "s", "samples": [ 10.6226, 10.3299, 10.3594 ], "min": 10.3299, "max": 10.6226, "n": 3, "note": "wall-clock from request to first streamed token (prefill + 1st token)" }, "prefill_tps.D_mlx_lfm2.5-24b-a2b-moe.ctx16384": { "value": 1581.553, "unit": "tokens/s", "samples": [ 1542.3753, 1586.0721, 1581.553 ], "min": 1542.3753, "max": 1586.0721, "n": 3, "note": "prompt tokens / TTFT (MLX); prompt_eval_count / prompt_eval_duration (ollama)" }, "decode_tps.D_mlx_lfm2.5-24b-a2b-moe.ctx16384": { "value": 110.906, "unit": "tokens/s", "samples": [ 110.906, 110.9734, 109.9786 ], "min": 109.9786, "max": 110.9734, "n": 3, "note": "(tokens-1)/(t_last-t_first) (MLX); eval_count/eval_duration (ollama)" }, "e2e_256_s.D_mlx_lfm2.5-24b-a2b-moe.ctx16384": { "value": 12.6833, "unit": "s", "samples": [ 12.9267, 12.633, 12.6833 ], "min": 12.633, "max": 12.9267, "n": 3, "note": "time to a 256-token answer; measured wall time" }, "decode_tokens.D_mlx_lfm2.5-24b-a2b-moe.ctx16384": { "value": 256, "unit": "tokens", "samples": [ 256, 256, 256 ], "min": 256, "max": 256, "n": 3, "note": "tokens actually generated (MLX bans EOS, so always 256)" }, "prompt_tokens_evaluated.D_mlx_lfm2.5-24b-a2b-moe.ctx16384": { "value": 16384, "unit": "tokens", "samples": [ 16384, 16384, 16384 ], "min": 16384, "max": 16384, "n": 3, "note": "prompt tokens the backend reports it processed" }, "peak_mem_gb.D_mlx_lfm2.5-24b-a2b-moe.ctx16384": { "value": 14.948, "unit": "GB", "samples": [ 14.948, 14.948, 14.948 ], "min": 14.948, "max": 14.948, "n": 3, "note": "mx.get_peak_memory() per run (weights + KV/state + activations)" }, "decode_drop_pct_16k_vs_512.D_mlx_lfm2.5-24b-a2b-moe": { "value": 15.99, "unit": "%", "samples": [], "note": "1 - median decode tok/s @16384 / median @512" }, "prefill_tps_drop_pct_16k_vs_512.D_mlx_lfm2.5-24b-a2b-moe": { "value": -35.3, "unit": "%", "samples": [], "note": "1 - median prefill tok/s @16384 / median @512" }, "ttft_ratio_16k_vs_512.D_mlx_lfm2.5-24b-a2b-moe": { "value": 23.65, "unit": "x", "samples": [], "note": "median TTFT @16384 / median TTFT @512 (prompt is 32x longer)" }, "load_s.D_mlx_lfm2.5-24b-a2b-moe": { "value": 2.81, "unit": "s", "samples": [], "note": "model load (MLX: mlx_lm.load; ollama: load_duration of warm-up)" }, "file_size_gb.D_mlx_lfm2.5-24b-a2b-moe": { "value": 13.567, "unit": "GB", "samples": [], "note": "on-disk weights (mlx safetensors)" }, "bpw.D_mlx_lfm2.5-24b-a2b-moe": { "value": 4.528, "unit": "bits/weight", "samples": [], "note": "file bytes*8 / logical params (incl. scales/biases)" }, "bpw_text_only.D_mlx_lfm2.5-24b-a2b-moe": { "value": 4.528, "unit": "bits/weight", "samples": [], "note": "excluding vision-tower tensors" }, "params_b.D_mlx_lfm2.5-24b-a2b-moe": { "value": 23.972, "unit": "billion", "samples": [], "note": "logical parameters in the file" }, "ollama_ps_size_gb.B": { "value": 17.278, "unit": "GB", "samples": [], "note": "ollama /api/ps 'size' after warm-up (ollama's allocation estimate at num_ctx 20480, not a measured peak)" }, "ollama_ps_size_vram_gb.B": { "value": 17.278, "unit": "GB", "samples": [], "note": "ollama /api/ps 'size_vram'" }, "ttft_s_ratio_ollama_over_mlx.ctx512": { "value": 1.166, "unit": "x", "samples": [], "note": "median ttft_s B (ollama GGUF) / A (MLX 4-bit), same Qwen3.8-27B" }, "ttft_s_ratio_moe35b_over_dense27b.ctx512": { "value": 0.178, "unit": "x", "samples": [], "note": "median ttft_s C (Qwen3.6-35B-A3B MoE) / A (Qwen3.8-27B dense), both MLX" }, "ttft_s_ratio_lfm24b_over_dense27b.ctx512": { "value": 0.133, "unit": "x", "samples": [], "note": "median ttft_s D (LFM2.5-24B-A2B) / A (Qwen3.8-27B dense), both MLX" }, "decode_tps_ratio_ollama_over_mlx.ctx512": { "value": 0.568, "unit": "x", "samples": [], "note": "median decode_tps B (ollama GGUF) / A (MLX 4-bit), same Qwen3.8-27B" }, "decode_tps_ratio_moe35b_over_dense27b.ctx512": { "value": 6.535, "unit": "x", "samples": [], "note": "median decode_tps C (Qwen3.6-35B-A3B MoE) / A (Qwen3.8-27B dense), both MLX" }, "decode_tps_ratio_lfm24b_over_dense27b.ctx512": { "value": 8.94, "unit": "x", "samples": [], "note": "median decode_tps D (LFM2.5-24B-A2B) / A (Qwen3.8-27B dense), both MLX" }, "e2e_256_s_ratio_ollama_over_mlx.ctx512": { "value": 1.662, "unit": "x", "samples": [], "note": "median e2e_256_s B (ollama GGUF) / A (MLX 4-bit), same Qwen3.8-27B" }, "e2e_256_s_ratio_moe35b_over_dense27b.ctx512": { "value": 0.157, "unit": "x", "samples": [], "note": "median e2e_256_s C (Qwen3.6-35B-A3B MoE) / A (Qwen3.8-27B dense), both MLX" }, "e2e_256_s_ratio_lfm24b_over_dense27b.ctx512": { "value": 0.115, "unit": "x", "samples": [], "note": "median e2e_256_s D (LFM2.5-24B-A2B) / A (Qwen3.8-27B dense), both MLX" }, "prefill_tps_ratio_ollama_over_mlx.ctx512": { "value": 0.866, "unit": "x", "samples": [], "note": "median prefill_tps B (ollama GGUF) / A (MLX 4-bit), same Qwen3.8-27B" }, "prefill_tps_ratio_moe35b_over_dense27b.ctx512": { "value": 5.631, "unit": "x", "samples": [], "note": "median prefill_tps C (Qwen3.6-35B-A3B MoE) / A (Qwen3.8-27B dense), both MLX" }, "prefill_tps_ratio_lfm24b_over_dense27b.ctx512": { "value": 7.513, "unit": "x", "samples": [], "note": "median prefill_tps D (LFM2.5-24B-A2B) / A (Qwen3.8-27B dense), both MLX" }, "ttft_s_ratio_ollama_over_mlx.ctx4096": { "value": 1.081, "unit": "x", "samples": [], "note": "median ttft_s B (ollama GGUF) / A (MLX 4-bit), same Qwen3.8-27B" }, "ttft_s_ratio_moe35b_over_dense27b.ctx4096": { "value": 0.117, "unit": "x", "samples": [], "note": "median ttft_s C (Qwen3.6-35B-A3B MoE) / A (Qwen3.8-27B dense), both MLX" }, "ttft_s_ratio_lfm24b_over_dense27b.ctx4096": { "value": 0.086, "unit": "x", "samples": [], "note": "median ttft_s D (LFM2.5-24B-A2B) / A (Qwen3.8-27B dense), both MLX" }, "decode_tps_ratio_ollama_over_mlx.ctx4096": { "value": 0.575, "unit": "x", "samples": [], "note": "median decode_tps B (ollama GGUF) / A (MLX 4-bit), same Qwen3.8-27B" }, "decode_tps_ratio_moe35b_over_dense27b.ctx4096": { "value": 6.95, "unit": "x", "samples": [], "note": "median decode_tps C (Qwen3.6-35B-A3B MoE) / A (Qwen3.8-27B dense), both MLX" }, "decode_tps_ratio_lfm24b_over_dense27b.ctx4096": { "value": 9.535, "unit": "x", "samples": [], "note": "median decode_tps D (LFM2.5-24B-A2B) / A (Qwen3.8-27B dense), both MLX" }, "e2e_256_s_ratio_ollama_over_mlx.ctx4096": { "value": 1.343, "unit": "x", "samples": [], "note": "median e2e_256_s B (ollama GGUF) / A (MLX 4-bit), same Qwen3.8-27B" }, "e2e_256_s_ratio_moe35b_over_dense27b.ctx4096": { "value": 0.128, "unit": "x", "samples": [], "note": "median e2e_256_s C (Qwen3.6-35B-A3B MoE) / A (Qwen3.8-27B dense), both MLX" }, "e2e_256_s_ratio_lfm24b_over_dense27b.ctx4096": { "value": 0.093, "unit": "x", "samples": [], "note": "median e2e_256_s D (LFM2.5-24B-A2B) / A (Qwen3.8-27B dense), both MLX" }, "prefill_tps_ratio_ollama_over_mlx.ctx4096": { "value": 0.929, "unit": "x", "samples": [], "note": "median prefill_tps B (ollama GGUF) / A (MLX 4-bit), same Qwen3.8-27B" }, "prefill_tps_ratio_moe35b_over_dense27b.ctx4096": { "value": 8.544, "unit": "x", "samples": [], "note": "median prefill_tps C (Qwen3.6-35B-A3B MoE) / A (Qwen3.8-27B dense), both MLX" }, "prefill_tps_ratio_lfm24b_over_dense27b.ctx4096": { "value": 11.672, "unit": "x", "samples": [], "note": "median prefill_tps D (LFM2.5-24B-A2B) / A (Qwen3.8-27B dense), both MLX" }, "ttft_s_ratio_ollama_over_mlx.ctx16384": { "value": 0.954, "unit": "x", "samples": [], "note": "median ttft_s B (ollama GGUF) / A (MLX 4-bit), same Qwen3.8-27B" }, "ttft_s_ratio_moe35b_over_dense27b.ctx16384": { "value": 0.127, "unit": "x", "samples": [], "note": "median ttft_s C (Qwen3.6-35B-A3B MoE) / A (Qwen3.8-27B dense), both MLX" }, "ttft_s_ratio_lfm24b_over_dense27b.ctx16384": { "value": 0.089, "unit": "x", "samples": [], "note": "median ttft_s D (LFM2.5-24B-A2B) / A (Qwen3.8-27B dense), both MLX" }, "decode_tps_ratio_ollama_over_mlx.ctx16384": { "value": 0.623, "unit": "x", "samples": [], "note": "median decode_tps B (ollama GGUF) / A (MLX 4-bit), same Qwen3.8-27B" }, "decode_tps_ratio_moe35b_over_dense27b.ctx16384": { "value": 6.86, "unit": "x", "samples": [], "note": "median decode_tps C (Qwen3.6-35B-A3B MoE) / A (Qwen3.8-27B dense), both MLX" }, "decode_tps_ratio_lfm24b_over_dense27b.ctx16384": { "value": 9.288, "unit": "x", "samples": [], "note": "median decode_tps D (LFM2.5-24B-A2B) / A (Qwen3.8-27B dense), both MLX" }, "e2e_256_s_ratio_ollama_over_mlx.ctx16384": { "value": 1.053, "unit": "x", "samples": [], "note": "median e2e_256_s B (ollama GGUF) / A (MLX 4-bit), same Qwen3.8-27B" }, "e2e_256_s_ratio_moe35b_over_dense27b.ctx16384": { "value": 0.13, "unit": "x", "samples": [], "note": "median e2e_256_s C (Qwen3.6-35B-A3B MoE) / A (Qwen3.8-27B dense), both MLX" }, "e2e_256_s_ratio_lfm24b_over_dense27b.ctx16384": { "value": 0.093, "unit": "x", "samples": [], "note": "median e2e_256_s D (LFM2.5-24B-A2B) / A (Qwen3.8-27B dense), both MLX" }, "prefill_tps_ratio_ollama_over_mlx.ctx16384": { "value": 1.049, "unit": "x", "samples": [], "note": "median prefill_tps B (ollama GGUF) / A (MLX 4-bit), same Qwen3.8-27B" }, "prefill_tps_ratio_moe35b_over_dense27b.ctx16384": { "value": 7.892, "unit": "x", "samples": [], "note": "median prefill_tps C (Qwen3.6-35B-A3B MoE) / A (Qwen3.8-27B dense), both MLX" }, "prefill_tps_ratio_lfm24b_over_dense27b.ctx16384": { "value": 11.231, "unit": "x", "samples": [], "note": "median prefill_tps D (LFM2.5-24B-A2B) / A (Qwen3.8-27B dense), both MLX" }, "completions_with_bullets_frac": { "value": 0.972, "unit": "fraction", "samples": [], "note": ">=3 lines starting with -, *, \u2022 or 1. across all timed runs" }, "completions_degenerate_count": { "value": 1, "unit": "runs", "samples": [], "note": "distinct-word ratio < 0.2 or >20 repeated 8-grams" }, "a_vs_b_text_similarity.ctx512": { "value": 0.2258, "unit": "ratio", "samples": [ 0.2317, 0.2258, 0.2258 ], "min": 0.2258, "max": 0.2317, "n": 3, "note": "difflib ratio between A and B completions (same prompt/nonce), compared over the shorter length; 1.0 = identical" } }, "observations": [ "A (MLX (mlx_lm), Qwen3.8-27B dense, mlx-community 4-bit): median TTFT 3.29 s @512 -> 28.71 s @4096 -> 116.35 s @16384 tokens; decode 14.8 -> 13.4 -> 11.9 tok/s (19.1% drop 512->16k).", "B (ollama/llama.cpp, Qwen3.8-27B dense, unsloth UD-Q4_K_XL GGUF): median TTFT 3.84 s @512 -> 31.04 s @4096 -> 111.00 s @16384 tokens; decode 8.4 -> 7.7 -> 7.4 tok/s (11.4% drop 512->16k).", "C (MLX (mlx_lm), Qwen3.6-35B-A3B MoE (3B active), 4-bit): median TTFT 0.58 s @512 -> 3.36 s @4096 -> 14.74 s @16384 tokens; decode 96.5 -> 93.3 -> 81.9 tok/s (15.1% drop 512->16k).", "D (MLX (mlx_lm), LFM2.5-24B-A2B MoE (2B active), 4-bit): median TTFT 0.44 s @512 -> 2.46 s @4096 -> 10.36 s @16384 tokens; decode 132.0 -> 128.0 -> 110.9 tok/s (16.0% drop 512->16k).", "@512 tokens, ollama/MLX median ratio: TTFT 1.17x, decode tok/s 0.57x (>1 TTFT = ollama slower; >1 decode = ollama faster).", "@4096 tokens, ollama/MLX median ratio: TTFT 1.08x, decode tok/s 0.57x (>1 TTFT = ollama slower; >1 decode = ollama faster).", "@16384 tokens, ollama/MLX median ratio: TTFT 0.95x, decode tok/s 0.62x (>1 TTFT = ollama slower; >1 decode = ollama faster).", "@512 tokens, MoE C vs dense A: TTFT 0.18x, decode tok/s 6.54x, 256-token answer time 0.16x.", "@4096 tokens, MoE C vs dense A: TTFT 0.12x, decode tok/s 6.95x, 256-token answer time 0.13x.", "@16384 tokens, MoE C vs dense A: TTFT 0.13x, decode tok/s 6.86x, 256-token answer time 0.13x.", "A: MLX peak memory 16.4 GB @512, 20.6 GB @16384.", "C: MLX peak memory 20.2 GB @512, 22.6 GB @16384.", "D: MLX peak memory 14.0 GB @512, 14.9 GB @16384." ], "caveats": [ "B: 3/9 ollama runs stopped before 256 tokens (EOS can't be disabled via the API); decode tok/s is per-token so still comparable, e2e is projected.", "1 completions failed the bullet/degeneracy check: D rep2@16384", "Single machine (one M3 Max 64 GB laptop); numbers will differ on other chips, RAM sizes and macOS builds.", "A vs B is a 'closest available 4-bit' comparison, not a pure engine-vs-engine result: the MLX file is affine 4-bit, group size 64 (~4.5 bpw on text weights) while the only local GGUF is unsloth UD-Q4_K_XL (mixed Q4_K/Q5_K/Q6_K/IQ4, ~5.1 bpw), so llama.cpp reads more bytes per decoded token.", "Qwen3.8-27B and Qwen3.6-35B-A3B are hybrid models (3 of every 4 layers are linear-attention/DeltaNet with fixed-size state; only every 4th layer has a growing KV cache), so their long-context slowdown is not representative of pure full-attention models. LFM2.5 similarly uses conv layers with 10/40 attention layers.", "n=3 timed runs per point (after one discarded 512-token warm-up per config); medians with min-max are reported, no significance testing.", "MLX runs ban EOS to force exactly 256 decoded tokens; ollama cannot, so its token counts are reported per run.", "Each prompt starts with a unique 4-digit nonce, so at most the first ~3 template tokens could ever be reused from a previous request's cache; MLX uses a fresh cache per call.", "Thinking disabled: Qwen via enable_thinking=False (empty block); LFM2.5 has no switch, so an empty think block is appended after its template's opening .", "High Power mode cannot be set from a script; the recorded pmset power-mode lines show what was active.", "mlx_lm prefill uses prefill_step_size=2048; ollama uses its default batch size. Both are defaults, not tuned.", "Config B is labelled ollama/llama.cpp, but ollama runs some newer architectures on its own ggml-based Go engine rather than the llama.cpp runner; environment.ollama_server_log_lines records which runner loaded the model, and the post should name it accordingly." ] }