Local Hardware Labs & Serving Physics · M4 Max, Jetson AGX Thor & Ollama Archives

Local Models &
Hardware Labs

Live measurements from The-Focus-AI/local-model-labs-m4-max (Apple M4 Max 64 GB), The-Focus-AI/local-model-labs-thor (NVIDIA Jetson AGX Thor 122.8 GB), and the generic local-model-lab harness (synced via pnpm run site:sync-local-labs), paired with our historical llama-swap vs. ollama concurrency archives.

80.6
Peak M4 Max Decode
tok/s (inkling-2-mini mtplx)
3,306
Peak Thor 32K Prefill
tok/s (inkling-2-mini vLLM @ 221.7K)
17
Active Lab Recipes
6 M4 Max · 11 Jetson AGX Thor
1,014.3
Peak c=4 Batching
gemma-4-E2B on llama-swap (6.8×)
01 — Live Hardware Labs (2026-11-26 Snapshot via pnpm run site:sync-local-labs)

Apple M4 Max (64 GB) vs. NVIDIA Jetson AGX Thor (122.8 GB)

Synced directly from the two machine-specific The-Focus-AI/local-model-labs-* repositories built on our reusable local-model-lab harness. M4 Max leads single-stream decode via 546 GB/s unified Metal bandwidth, while Jetson AGX Thor delivers 4.5× faster cold prefill and fits full 223K contexts in 122.8 GB unified memory.

Machine Lab 01 · Apple Silicon

Apple M4 Max (64 GB Unified)

6 recipes · 3 tuned/qualified
GPU / AcceleratorApple M4 Max — 48.0 GB shared (546 GB/s spec)
Unified Memory64.0 GB unified (memory cap: 44 GiB)
CPUApple M4 Max (16 cores)
OS / Runtimedarwin
Peak decode 80.6 t/s · Peak prefill 721 t/s The-Focus-AI/local-model-labs-m4-max (private) ↗
Machine Lab 02 · NVIDIA Jetson

NVIDIA Jetson AGX Thor (122.8 GB Unified)

11 recipes · 4 tuned/qualified
GPU / AcceleratorNVIDIA Jetson AGX Thor (compute capability 11.0, `sm_110`), memory shared with the CPU; measured 256 GB/s read bandwidth and 110 TFLOPS BF16
Unified Memory122.8 GB unified (memory cap: 111 GiB)
CPUNVIDIA Jetson AGX Thor Developer Kit (14 cores, aarch64)
OS / Runtimelinux (JetPack 7.1, CUDA 13.0), power mode MAXN
Peak decode 43.0 t/s · Peak prefill 3,306 t/s The-Focus-AI/local-model-labs-thor (private) ↗
M4 Max mtplx 2.13.1 (4-bit) · 24.9 GiB
decode
80.6 t/s
prefill
721 / 700
qualified
3/3 @ 30.5K (61.6 tok/s)
M4 Max mtplx 2.13.1 · 28.7 GiB
decode
64.2 t/s
prefill
698 / 698
qualified
3/3 @ 30.5K (43.1 tok/s)
M4 Max ollama 0.40.17 · 27.0 GiB
decode
65.4 / 28.6* t/s
prefill
505 / 417
baselined
3/3 (base) / 0/3*
M4 Max llama.cpp PrismML (PQ2_0-mtp) · 21.4 GiB
decode
39.5 t/s
prefill
203 / 174
baselined
3/3 @ 10.8K (39.4 tok/s)
M4 Max mlx-vlm 0.8.0 (36565bc1) · 24.1 GiB
decode
34.0 t/s
prefill
696 / 605
qualified
3/3 @ 12.8K (31.3 tok/s)†
M4 Max mlx-vlm 0.8.0 / mlx 0.32.4 · 16.4 GiB
decode
32.5 t/s
prefill
206 / 171
baselined
3/3 @ 10.8K (157K prior)
Thor vllm · 77.4 GiB
decode
43.0 t/s
prefill
3216 / 3306
tuned
3/3 @ 221.7K (37.5 tok/s)
Thor vllm · 98.6 GiB
decode
35.0 t/s
prefill
756 / 707
tuned
3/3 @ 223.0K (19.5 tok/s)
Thor vllm · 107.9 GiB
decode
34.6 t/s
prefill
1958 / 1388
tuned
3/3 @ 223.0K (20.4 tok/s)
Thor sglang · 57.7 GiB
decode
29.2 t/s
prefill
2444 / 2679
baselined
3/3 @ 221.7K (17.7 tok/s)
Thor vllm · 107.2 GiB
decode
28.9 t/s
prefill
1806 / 1999
baselined
3/3 @ 223.0K (20.0 tok/s)
Thor llama.cpp · 28.4 GiB
decode
26.2 t/s
prefill
552 / 289
gated
—
Thor vllm · 97.2 GiB
decode
21.4 t/s
prefill
578 / 564
baselined
3/3 @ 223.0K (16.3 tok/s)
Thor tensorfold · 107.3 GiB
decode
17.4 t/s
prefill
179 / 723
tuned
3/3 @ 221.8K (16.7 tok/s)
Thor exllamav3 · 22.2 GiB
decode
28.6 / 15.5* t/s
prefill
583 / 428
new
—
Thor vllm · 104.4 GiB
decode
26.8 / 10.7* t/s
prefill
2750 / 1936
baselined
3/3 @ 223.0K (9.2 tok/s)
Thor vllm · 99.8 GiB
decode
24.7 / 9.4* t/s
prefill
828 / 794
baselined
3/3 @ 146.2K (8.2 tok/s)
Machine Recipe (PLAN.md) Engine Status Decode (tok/s) Prefill 4K / 32K Long Retrieval Peak RAM Notes
M4 Max inkling-2-mini-mtplx-bare-speed ↗ mtplx 2.13.1 (4-bit) qualified 80.6 721 / 700 3/3 @ 30.5K (61.6 tok/s) 24.9 GiB Default fastest model (mise run serve -- start): 80.6 tok/s decode, 61.6 tok/s @ 30.5K, 24.9 GiB peak
M4 Max inkling-2-mini-mtplx-quality ↗ mtplx 2.13.1 qualified 64.2 698 / 698 3/3 @ 30.5K (43.1 tok/s) 28.7 GiB Fastest lossless Inkling: 64.2 tok/s decode without 4-bit dense/output quantization (28.7 GiB peak)
M4 Max inkling-2-mini-ollama ↗ ollama 0.40.17 baselined 65.4 / 28.6* 505 / 417 3/3 (base) / 0/3* 27.0 GiB Zero-build convenience if running via Ollama CLI; fast at 65.4 tok/s short with reasoning_effort: "none" (note long retrieval failed 0/3 with effort none)
M4 Max bonsai-2.5-27b-llamacpp ↗ llama.cpp PrismML (PQ2_0-mtp) baselined 39.5 203 / 174 3/3 @ 10.8K (39.4 tok/s) 21.4 GiB Fastest dense 27B & agentic tool calling: 39.5 tok/s short & 39.4 tok/s @ 10.8K, 21.4 GiB peak
M4 Max inkling-2-mini-mlx-nvfp4 ↗ mlx-vlm 0.8.0 (36565bc1) qualified 34.0 696 / 605 3/3 @ 12.8K (31.3 tok/s)† 24.1 GiB Clean reference Python/MLX stack with upstream checkpoint: 34.0 tok/s decode, 24.1 GiB peak
M4 Max qwen3.8-27b-mlx-4bit ↗ mlx-vlm 0.8.0 / mlx 0.32.4 baselined 32.5 206 / 171 3/3 @ 10.8K (157K prior) 16.4 GiB Lowest-RAM 27B & ultra-long 4-bit KV: 32.5 tok/s decode, 16.4 GiB peak, previously tested to 157K @ 20.9 GiB
Thor inkling-2-mini-nvfp4-vllm ↗ vllm tuned 43.0 3216 / 3306 3/3 @ 221.7K (37.5 tok/s) 77.4 GiB Fastest here: 43.0 tok/s, bit-identical to the no-draft server. The default for mise run serve
Thor qwen3.8-27b-awq-int4-full-vllm ↗ vllm tuned 35.0 756 / 707 3/3 @ 223.0K (19.5 tok/s) 98.6 GiB Fastest Qwen decode (35.0)
Thor qwen3.8-27b-nvfp4-full-vllm ↗ vllm tuned 34.6 1958 / 1388 3/3 @ 223.0K (20.4 tok/s) 107.9 GiB Same decode (34.6), prefill 2.6× faster than INT4
Thor inkling-2-mini-nvfp4-sglang ↗ sglang baselined 29.2 2444 / 2679 3/3 @ 221.7K (17.7 tok/s) 57.7 GiB Works, including vision; slower than vLLM (29.2)
Thor qwen3.8-27b-pi-merged-nvfp4-vllm ↗ vllm baselined 28.9 1806 / 1999 3/3 @ 223.0K (20.0 tok/s) 107.2 GiB Recovers most of the speed (28.9)
Thor inkling-2-mini-q4kxl-llamacpp ↗ llama.cpp gated 26.2 552 / 289 — 28.4 GiB Small footprint (28 GiB); prefill too slow for long context
Thor qwen3.8-27b-pi-awq-int4-vllm ↗ vllm baselined 21.4 578 / 564 3/3 @ 223.0K (16.3 tok/s) 97.2 GiB The run-time LoRA costs about a third of decode speed
Thor deepseek-v4.1-flash-1017-exl3-tensorfold ↗ tensorfold tuned 17.4 179 / 723 3/3 @ 221.8K (16.7 tok/s) 107.3 GiB The largest model tried here; 17.4 tok/s
Thor qwen3.8-27b-exl3-3.5bpw-exllamav3 ↗ exllamav3 new 28.6 / 15.5* 583 / 428 — 22.2 GiB Runs; slower than vLLM on every metric
Thor qwen3.8-27b-nvfp4-vllm ↗ vllm baselined 26.8 / 10.7* 2750 / 1936 3/3 @ 223.0K (9.2 tok/s) 104.4 GiB Slower decode than its sibling; stopped at baseline
Thor qwen3.8-27b-awq-int4-vllm ↗ vllm baselined 24.7 / 9.4* 828 / 794 3/3 @ 146.2K (8.2 tok/s) 99.8 GiB Superseded; weights deleted
M4 Max notes: Ollama hit 65.4 tok/s with reasoning_effort: "none" (failed long retrieval 0/3) vs. 28.6 tok/s with thinking on (3/3).
Jetson AGX Thor notes: Lossy int8 Inkling DSpark reached 50.0 tok/s single-stream (85.3 c=4); DGX Spark images (sm_120) do not run on Thor (sm_110).

Cross-Machine Engineering Takeaways

M4 Max · #01 2026-11-25

Fastest overall — inkling-2-mini-mtplx-bare-speed: mtplx 2.13.1 with 4-bit dense/unembed + L20–23 weights (Youssofal/Inkling-2-Mini-MTPLX-Bare-Speed) and adaptive DSpark reached 80.6 tok/s short decode (81.1 tok/s speed gate @ 0.433 acceptance), 721 / 700 tok/s prefill, 3/3 @ 30.5K (61.6 tok/s), and 24.9 GiB peak RAM (-3.8 GiB vs lossless quality). This is the default server launched by mise run serve.

M4 Max · #02 2026-11-25

Lossless Inkling — inkling-2-mini-mtplx-quality: Native NVFP4/MXFP8 weights on mtplx 2.13.1 reached 64.2 tok/s decode (84% of the 4K no-draft bandwidth ceiling) and 3/3 @ 30.5K (43.1 tok/s) at 28.7 GiB. Upgrading to mtplx 2.13.2 boosted 16K long-context decode on both packs (78.4 and 41.4 tok/s) while regressing short-context c1_decode (61.1 and 60.0 tok/s), so best-config.json remains on 2.13.1.

M4 Max · #03 2026-11-25

Inkling on mlx-vlm — inkling-2-mini-mlx-nvfp4: Upgrading to mlx-vlm 36565bc1 (PR #2798 grouped-expert matvec) lifted decode from 33.0 → 34.0 tok/s short and 27.3 → 31.3 tok/s @ 12.8K (24.1 GiB peak). Pure autoregressive decode beat DSpark (7.4 @ block 8, 28.6 @ block 2, 29.5 adaptive) because multi-token verification widens top-8/128 MoE expert union faster than acceptance amortizes.

Thor · #01 2026-11-25

Inkling 2 Mini on vLLM went from 33.8 to 43.0 tok/s with no change in output. Three changes did it: adaptive verification (after fixing a rounding-order difference in the attention split plan that made it look wrong), restricting the draft's recurrent correction to the top 64 candidates, and a 46,788-token draft vocabulary.

Thor · #02 2026-11-25

Decode here is bound by memory bandwidth. A no-draft Inkling token reads 5.65 GB and takes 30.2 ms against a 22.0 ms floor at 256 GB/s. The big kernels already run at 75–83% of bandwidth.

Thor · #03 2026-11-25

Halving the bytes of the BF16 weights buys 17%. Int8 copies read by a modified decode kernel give 50.0 tok/s. This is a quality trade and is labelled as one.

02 — Generic Test Harness (The-Focus-AI/local-model-lab ↗)

The 5-Stage Reproducible Local Model Lab Pipeline

Reproducible workbench for finding, running, benchmarking, and publishing local LLM recipes — one checkout per machine. Every machine forks this upstream template, runs mise run init, and accumulates immutable ledger.jsonl measurements without committing multi-gigabyte model weights.

Five-Stage Qualification Protocol
  1. Preflight: Confirms AC power, a quiet GPU, and LAB_MEM_CAP_GIB from mise run init.
  2. Gates (scripts/gates.py): Seven pass/fail checks (load, chat, reasoning, tools round-trip, context needle at ~85% of window, speed, and optional vision).
  3. Baseline (mise run bench): Measures median single-stream decode (c1_decode across 6 fixed 512-token prompts), cold 4K/32K prefill, verified 3/3 long-context needle retrieval, and peak physical RAM.
  4. Ceilings (mise run ceiling): Derives memory-bandwidth and FLOP limits from measured hardware probes.
  5. Hill-climb & Stability (mise run ab): Interleaved ctl-a cand ctl-b comparisons and full-context checks before promoting best-config.json.
mise quickstart (one checkout per machine)
mise trust && mise run init       # detect hardware with whichllm, set memory cap, update README.md
mise run hardware                 # print what whichllm detects here
mise run find                     # rank models for this machine
mise run new -- <slug>            # create models/<slug>/ for one of them
mise run serve -- start           # start DEFAULT_MODEL (or MODEL=<slug> mise run serve -- start)
mise run chat                     # start the local HTML/JS chat client on http://127.0.0.1:8088/
mise run report                   # generate SVG benchmark charts in docs/charts/
Upstream Dependencies
inference-optimisation-skill ↗ — The tuning method and benchmark scripts. Copied into .claude/skills/inference-optimisation/; UPSTREAM there records the commit, and mise run skill-update refreshes it.
whichllm ↗ — Detects this machine and ranks models for it. mise run hardware prints the detection; mise run find ranks. Nothing is copied in.
local-ai-registry ↗ — Published recipes to start from. mise run registry clones it into .registry/, which git ignores.
03 — Concurrency Headroom (reports/2026-07-26-headroom-ollama-does-not-batch.md)

All 14 measured M4 Max rows: llama-swap vs. ollama

Note on gemma-4-31B under llama-swap: recorded as — because four concurrent requests against 31B triggered an intermittent Compute error under unified-memory pressure — preserved transparently rather than omitted.

gemma4:e2b
ollama · decode 148.5 → 148.6 t/s
c = 1
139.7 t/s
c = 4
145.3 t/s
1.04× (queueing)
TTFT 292ms → 7,374ms
gemma4:12b
ollama · decode 49.5 → 49.1 t/s
c = 1
48.0 t/s
c = 4
48.6 t/s
1.01× (queueing)
TTFT 457ms → 21,422ms
gemma4:26b
ollama · decode 101.5 → 101.4 t/s
c = 1
96.3 t/s
c = 4
99.7 t/s
1.04× (queueing)
TTFT 367ms → 10,654ms
gemma4:31b
ollama · decode 21.9 → 21.3 t/s
c = 1
21.4 t/s
c = 4
20.8 t/s
0.97× (queueing)
TTFT 772ms → 48,767ms
gemma4:e4b
ollama · decode 93.1 → 93.0 t/s
c = 1
89.0 t/s
c = 4
91.7 t/s
1.03× (queueing)
TTFT 344ms → 11,537ms
gpt-oss:latest
ollama · decode 109.9 → 114.9 t/s
c = 1
85.4 t/s
c = 4
89.3 t/s
1.05× (queueing)
TTFT 1,263ms → 9,919ms
nemotron-3-nano:4b
ollama · decode 92.4 → 92.4 t/s
c = 1
90.2 t/s
c = 4
86.4 t/s
0.96× (queueing)
TTFT 235ms → 2,115ms
nemotron-cascade-2:30b
ollama · decode 92.4 → 92.3 t/s
c = 1
88.9 t/s
c = 4
91.5 t/s
1.03× (queueing)
TTFT 301ms → 11,491ms
Runtime Model agg c=1 agg c=4 Scaling decode c=1 decode c=4 TTFT c=1 TTFT c=4
ollama gemma4:e2b 139.7 145.3 1.04× 148.5 148.6 292ms 7,374ms
ollama gemma4:12b 48.0 48.6 1.01× 49.5 49.1 457ms 21,422ms
ollama gemma4:26b 96.3 99.7 1.04× 101.5 101.4 367ms 10,654ms
ollama gemma4:31b 21.4 20.8 0.97× 21.9 21.3 772ms 48,767ms
ollama gemma4:e4b 89.0 91.7 1.03× 93.1 93.0 344ms 11,537ms
ollama gpt-oss:latest 85.4 89.3 1.05× 109.9 114.9 1,263ms 9,919ms
ollama nemotron-3-nano:4b 90.2 86.4 0.96× 92.4 92.4 235ms 2,115ms
ollama nemotron-cascade-2:30b 88.9 91.5 1.03× 92.4 92.3 301ms 11,491ms
ollama qwen3.6:27b 22.8 22.1 0.97× 23.3 22.3 642ms 46,117ms
llama-swap gemma-4-E2B 148.7 1014.3 6.8× 151.6 275.2 88ms 195ms
llama-swap nemotron-3-nano-4B 89.0 389.1 4.4× 96.6 188.6 658ms 2,644ms
llama-swap gpt-oss-20b 115.4 332.8 2.9× 140.4 201.1 713ms 2,892ms
llama-swap gemma-4-26B 94.1 288.5 3.1× 113.9 279.3 1,511ms 6,346ms
llama-swap gemma-4-31B — — — — — — —
04 — All 13 Local Ollama Models (docs-archive/walkthroughs/model-showdown-results.md)

Verbatim 4-dimension scores on local weights

Overall Rank Model Combined Reasoning (/20) Knowledge (/30) Instruction (/30) Coding (/126) Wall Time
#21 gpt-oss:latest 93.3% 20/20 (100%) 28/30 (93.3%) 29/30 (96.7%) 105/126 (83.3%) 1h11m
#25 nemotron-3-nano:latest 89.4% 20/20 (100%) 30/30 (100%) 27/30 (90%) 85/126 (67.5%) 36m
#32 qwen3:32b 86.7% 17/20 (85%) 29/30 (96.7%) 25/30 (83.3%) 103/126 (81.7%) 59m
#35 phi4:latest 84.6% 16/20 (80%) 27/30 (90%) 27/30 (90%) 99/126 (78.6%) 25m
#36 mistral-small:latest 84.4% 17/20 (85%) 29/30 (96.7%) 23/30 (76.7%) 100/126 (79.4%) 49m
#37 glm-4.7-flash:latest 84.1% 17/20 (85%) 29/30 (96.7%) 26/30 (86.7%) 86/126 (68.3%) 54m
#38 devstral:latest 84.0% 16/20 (80%) 28/30 (93.3%) 26/30 (86.7%) 96/126 (76.2%) 44m
#39 deepseek-r1:32b 84.0% 17/20 (85%) 28/30 (93.3%) 28/30 (93.3%) 81/126 (64.3%) 1h5m
#42 gemma3n:e4b 79.7% 17/20 (85%) 29/30 (96.7%) 24/30 (80%) 72/126 (57.1%) 54m
#43 deepseek-r1:14b 78.2% 17/20 (85%) 24/30 (80%) 26/30 (86.7%) 77/126 (61.1%) 57m
#44 deepseek-r1:latest 78.1% 15/20 (75%) 26/30 (86.7%) 30/30 (100%) 64/126 (50.8%) 33m
#46 qwen3:30b-a3b 77.5% 20/20 (100%) 29/30 (96.7%) 4/30 (13.3%) 126/126 (100%) 1h14m
#48 nemotron-3-nano:4b 73.8% 19/20 (95%) 25/30 (83.3%) 25/30 (83.3%) 42/126 (33.3%) 42m