Skip to content

Apple M6 Mac mini 24 GB

Inkling Q3_K_XL fits on the Mac at 64K, but prompt reading is slow: 24.44 t/s at a 5,028-token prompt, against 450.44 t/s on the RTX 4060 Ti 16 GB reference at 5,015 tokens (caveats). Qwen3-8B Q4_K_M prefilled at 501.36–783.67 t/s on the same Mac. No purchase conclusion is made here: the seeded Polyglot coding tasks have not yet run against this Mac's endpoint.

What fits

On macOS 27.2.1, llama.cpp b12651 used the Metal backend with the default unified-memory limit unchanged. The exact model revision used on the CUDA reference machine, unsloth/Inkling-2-Mini-GGUF Inkling Q3_K_XL revision 8078d149286eec7193795413b9e0643da6d11fa1, loaded at 64K with q8 K/V cache and one slot. Its peak process physical footprint was about 14 GB. A 256K context and a 512K context also loaded with q4 K/V cache; 512K reached about 17 GB and was the largest successful context. A 1M-context load failed during Metal warmup with Insufficient Memory. These larger loads were capacity checks, not speed runs.

Qwen3-8B Q4_K_M fit comfortably at 32K q8 K/V, with about 7.8 GB peak process physical footprint. Both models were stored on an external APFS PCIe volume. The model cache and Hugging Face cache stayed on that volume.

Direct HTTP speeds

Model / setting Prompt Cold prefill t/s Cold generation t/s Cold TTFT s* Warm prefill t/s Warm generation t/s
Inkling Q3_K_XL, ubatch 64 (before) 1,028 25.02 14.04 41.16 14.84 14.02
Inkling Q3_K_XL, ubatch 256 (after) 1,028 26.03 14.58 39.56 16.02 14.21
Inkling Q3_K_XL, ubatch 64 (before) 5,028 23.77 13.91 211.59 15.36 13.97
Inkling Q3_K_XL, ubatch 256 (after) 5,028 24.44 13.04 205.82 14.86 13.78
Inkling Q3_K_XL, ubatch 64 (before) 15,028 22.74 13.14 661.02 13.92 13.64
Inkling Q3_K_XL, ubatch 256 (after) 15,028 23.94 13.14 627.86 13.40 12.81
Qwen3-8B Q4_K_M 1,032 783.67 28.23 1.43 26.19 27.62
Qwen3-8B Q4_K_M 5,032 678.76 24.17 7.54 21.30 24.01
Qwen3-8B Q4_K_M 15,033 501.36 19.64 30.01 19.65 19.14

* Inkling TTFT values are server-timing estimates because reasoning-budget 0 produced no observable content-token SSE frame. Qwen TTFT values are stream-measured after an incremental-read fix.

How the speeds were measured

The Metal measurements used about 1K, 5K and 15K prompt tokens, three cold and three warm requests per size, 256-token maximum output, temperature 0, and server --reasoning-budget 0. Cold means the model was already loaded but the request disabled prompt caching with cache_prompt: false; each cold request was followed immediately by the same prompt with cache_prompt: true. It does not include loading the model from disk. The table summarizes the raw-run evidence stored in the repository's results/reference/ directory.

For Inkling, warm requests cached all but four prompt tokens. For Qwen, warm requests cached all but one. Warm prefill rates therefore describe only the small uncached suffix and should not be compared as whole-prompt throughput.

Ubatch sweep: small ubatch is not the cause

The ubatch sweep used q8 K/V, batch 2048, one llama-bench repetition, 512- and 4096-token prompts, 128 generated tokens, and the same b12651 Metal build. It tested whether the CUDA-sized microbatch was constraining the Mac. It did not: the 4096-token rate stayed between 23.57 and 24.61 t/s across ubatch 64–2048, far below 100 t/s. Ubatch 256 led that one-repetition sweep, and real-server 64K loads at ubatch 256, 512 and 1024 all fit at 14 GB peak physical footprint. The selected ubatch-256 process reached 15 GB after the full 15K matrix. A post-matrix memory_pressure reading reported 61% system-wide memory free on the 24 GB host, exceeding the about-4-GB headroom floor under that measured metric.

Ubatch Flash K/V 512 prefill t/s 4096 prefill t/s 128-token generation t/s
64 on q8_0 25.43 23.73 15.14
128 on q8_0 25.66 23.57 11.40
256 on q8_0 25.77 24.61 13.95
512 on q8_0 25.61 24.50 14.38
1024 on q8_0 24.87 24.41 15.01
2048 on q8_0 21.56 24.24 13.38
64 off f16 22.75 22.52 14.70

The q8 flash-off cell could not run: b12651 stopped during context creation with quantized V cache requires flash_attn to be enabled. The bounded follow-up used f16 K/V to turn flash attention off without changing the model or build; it was slower, not an alternative speed setting. The observed cause is therefore not small ubatch on this Mac, and flash-off did not implicate the flash-attention path. The remaining model-architecture/quantization cause is inferred from the contrast with Qwen and the CUDA reference, not isolated by these allowed measurements.

Comparison with the CUDA reference

The CUDA reference is the earlier RTX 4060 Ti 16 GB run. Its closest same-quantization, directly measured point is the 5,015-token Q3 fit probe in results/reference/20261201T025000Z-q3-k-xl-64k-config.json: a request that verified a usable load by recording both speed and memory allocation. It is comparable in prompt size to the Metal 5,028-token cold point, although the CUDA probe generated 64 tokens and the Metal probe was capped at 256.

System Runtime Prompt Prefill t/s Generation t/s
RTX 4060 Ti 16 GB CUDA, llama.cpp b12652 5,015 450.44 25.29
Apple M6 Mac mini 24 GB Metal, llama.cpp b12651, ubatch 64 5,028 23.77 13.91
Apple M6 Mac mini 24 GB Metal, llama.cpp b12651, ubatch 256 5,028 24.44 13.04

The CUDA reference did not publish a matching three-run direct probe at the Mac's 1K and 15K points, so this write-up does not substitute prompt sizes taken from full coding-agent payloads, whose prompts include instructions and tools, for these direct HTTP requests.

Runtime and configuration differences

Build, host, offload, cache, reasoning and network differences between the two systems
  • Build: CUDA b12652 (212c547fe); Metal b12651 (f5e6915c2). b12652 had no published prebuilt release with a macOS arm64 asset.
  • Host: CUDA used an RTX 4060 Ti 16 GB under WSL2; Metal used an Apple M6 with 24 GB unified memory.
  • Inkling weights: identical repository revision and file name, Q3_K_XL.
  • Offload: CUDA had 12,685 MiB of model allocation on GPU and 303.7 MiB on host; Metal reported all 999 requested layers through the Metal backend and 14 GB process physical footprint.
  • K/V cache: both speed comparisons used q8 K/V at 64K. The CUDA ubatch was 128. The original Metal run used ubatch 64; the selected rerun and retained server use ubatch 256 after the measured sweep. The Mac's 512K capacity check used q4 K/V and ubatch 16.
  • Batch: both used batch 2048 for the 64K Inkling runs.
  • Reasoning: Metal speed probes used --reasoning-budget 0. The CUDA Q3 fit probe used the loopback server command recorded in machines/personal-4060ti/README.md, with 999 GPU layers, no CPU-resident MoE experts, 64K q8 K/V, batch 2048, ubatch 128, flash attention, one slot, Jinja, and no explicit --reasoning-budget flag. This is an output-workload difference because separate reasoning-token counts were unavailable; the measured rate is the server's reported generated-token rate without a reasoning-token split.
  • Network: CUDA reference commands were loopback-only. The Mac's retained endpoint is running Inkling Q3_K_XL at 64K with q8 K/V, ubatch 256, one slot, and reasoning budget 0 on port 8080. It is bound to its Tailscale IPv4 address only and does not answer loopback.

What Metal does not expose

macOS does not provide CUDA-style dedicated-VRAM accounting through nvidia-smi. The non-admin measurement available here is process physical footprint from footprint, which includes unified-memory and GPU mappings, plus memory_pressure for system pressure. Exact process RSS peak, GPU-only peak allocation, and NVIDIA-specific offload counters were not measurable, so the corresponding fields in the raw JSON evidence listed below are null rather than inferred. Metal also does not provide CUDA kernels, CUDA layer offload metrics, or the reference machine's host/GPU split.

No purchase conclusion is made here. A separate Linux evaluation host still needs to run Localgauge's seeded Polyglot coding tasks through the agent workflow against the retained Tailscale endpoint before a hardware decision can be made.

Raw evidence

  • results/reference/20261203T062304Z-apple-m6-inkling-q3-k-xl-speed.json
  • results/reference/20261203T062304Z-apple-m6-inkling-q3-k-xl-speed-summary.md
  • results/reference/20261203T150402Z-45743faa-apple-m6-qwen3-8b-q4-k-m-speed.json
  • results/reference/20261203T150402Z-45743faa-apple-m6-qwen3-8b-q4-k-m-speed-summary.md
  • results/reference/20261203T072000Z-apple-m6-inkling-q3-k-xl-capacity.json
  • results/reference/20261203T163208Z-apple-m6-inkling-q3-k-xl-ubatch-sweep.json
  • results/reference/20261203T163208Z-apple-m6-inkling-q3-k-xl-ubatch-sweep-summary.md
  • results/reference/20261203T180433Z-10947014-speed-probe.json
  • results/reference/20261203T180433Z-10947014-speed-probe-summary.md
  • scripts/mac/README.md