File size: 22,837 Bytes
221ca5c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 | # Complete Multi-Axis Analysis β Agent Model Selection on Mac Mini M4 16GB
**Date:** 2026-04-08 | **Tests:** 6 agent tasks Γ 15+ configurations | **Vision:** Falcon Perception v2
---
## Axis Overview
```
5 axes tested across 15+ model configurations:
Axis 1: Model Family βββ Qwen3.5-9B vs Gemma4-E4B vs Qwen3VL-8B vs Bonsai vs others
Axis 2: Censoring ββββββ Base (censored) vs Uncensored (Balanced vs Aggressive)
Axis 3: Quantization βββ Q4 vs Q5 vs Q6 vs Q8 vs 1-bit vs BF16/4bit-MLX
Axis 4: Backend ββββββββ llama.cpp (GGUF) vs mlx_vlm (MLX) vs Ollama vs PrismML
Axis 5: Vision ββββββββ with mmproj vs without vs Falcon Perception detector
```
---
## AXIS 1: Model Family
```
Score Speed Multi-step Form Fill Vision Min Params
(/6) (tok/s) Chains? Works? Detect? for Agent
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Qwen3.5-9B (9B dense) 5.0 13.5 β
Yes β
Yes β
FP 9B
Gemma4 E4B (4B MoE) 5.0 24.5 β
Yes β
Yes β
FP 4B active
Qwen3VL-8B (8B dense) 3.0 16.2 β οΈ Crashes β Crashed β
FP 8B
Bonsai-8B (8B 1-bit) 1.0 48.8 β 1 turn β No β No 8B (degraded)
LFM2.5-Nova (1.2B) 0.0 118.4 β 1 turn β No β No 1.2B
FunctionGemma (270M) 0.0 197.0 β Loops β No β No 270M
Qwopus-27B Q3 (27B) OOM OOM β OOM β OOM β OOM 27B (too big)
INSIGHT: The agent capability cliff is at ~4B active params.
Below 4B: can format tool calls but cannot chain them.
Above 4B: can navigate, search, fill forms, use vision.
Model FAMILY matters less than active parameter count.
Gemma4 (4B active MoE) matches Qwen3.5 (9B dense).
```
### Family Comparison (best variant of each)
```
Score vs Speed:
5.0 β β
Qwen3.5 Unc Q6K β
Gemma4 Unc Q5KP
β (13.5 tok/s) (24.5 tok/s)
4.0 β
β
3.0 β β
Qwen3VL Bal Q6K
β (16.2 tok/s)
2.0 β
β
1.0 β β
Bonsai
β (48.8 tok/s)
0.0 β β
LFM2.5 β
FuncGemma
ββββββββ¬βββββββββββ¬βββββββββββ¬βββββββββββ¬βββββββββββ¬βββββββββββ¬
10 20 30 50 118 197
Speed (tok/s)
```
---
## AXIS 2: Censoring (Base vs Uncensored)
```
ββββββββββββββββββββββββββ¬ββββββββββββ¬ββββββββββββ¬ββββββββββββ
β β Base βUncensored βUncensored β
β β (censor) β Balanced β Aggressiveβ
ββββββββββββββββββββββββββΌββββββββββββΌββββββββββββΌββββββββββββ€
β Qwen3.5-9B Q4 score β 4.5/6 β β β 3.5/6 β β
β Qwen3.5-9B Q6 score β β β β β 5.0/6 β
β
β Gemma4 E4B Q6 score β β β β β 4.5/6 β
β Gemma4 E4B Q5 score β β β β β 5.0/6 β
β
β Qwen3VL-8B Q6 score β β β 3.0/6 β β β
β β β β β
β Tool call reliability β Good β Similar β Better β
β Refusal rate β Some β Zero β Zero β
β Stop discipline β Good β Similar β Better β
β Form fill success β β
β β β β
β
ββββββββββββββββββββββββββ΄ββββββββββββ΄ββββββββββββ΄ββββββββββββ
INSIGHT: Uncensoring does NOT directly improve agent tasks.
The improvement we see (3.5β5.0 for Qwen Q4βQ6) is
from QUANTIZATION, not censoring.
Base Qwen3.5-9B Q4_K_XL (4.5/6) vs
Uncensored Q4_K_M (3.5/6) β uncensored is WORSE at Q4.
The uncensored Q6_K (5.0/6) wins because Q6 > Q4,
not because uncensored > censored.
Uncensoring helps with: content generation, creative tasks.
Uncensoring neutral for: tool calling, agent planning.
Uncensoring harmful at: Q4 level (less reliable stops).
```
---
## AXIS 3: Quantization
### Gemma4 E4B Uncensored β Quant Ladder
```
βββββββββββ¬βββββββββ¬βββββββββ¬ββββββββ¬ββββββββ¬ββββββββ¬ββββββββ
β Quant β Size β Memory βSpeed βScore βStops βTools β
β β (GB) β (GB) βtok/s β (/6) β (/6) β total β
βββββββββββΌβββββββββΌβββββββββΌββββββββΌββββββββΌββββββββΌββββββββ€
β Q5_K_P β 5.4 β 6.3 β 24.5 β 5.0 β
β 3 β
β 50 β
β Q6_K_P β 5.8 β 6.7 β 23.1 β 4.5 β 2 β 52 β
β
β Q8_K_P β 7.6 β 8.5 β 19.0 β 4.0 β 2 β 41 β
β 4bit MLXβ ~5.0 β 5.4 β 35.0β
β 4.5 β 1 β 29 β
βββββββββββ΄βββββββββ΄βββββββββ΄ββββββββ΄ββββββββ΄ββββββββ΄ββββββββ
Speed vs Score:
Score 5.0 β β
Q5_K_P
β
4.5 β β
Q6_K_P β
4bit-MLX
β
4.0 β β
Q8_K_P
β
3.5 β
ββββ¬βββββββββ¬βββββββββ¬βββββββββ¬ββββ
19 23 25 35
Speed (tok/s)
INSIGHT: Higher quantization β better agent performance!
Q5 > Q6 > Q8 for agent tasks. Why?
1. Q5 is FASTER β more turns per timeout β more work done
2. Q5 has enough precision for tool call JSON formatting
3. Q8 wastes memory on precision the model can't use for reasoning
4. The bottleneck is REASONING DEPTH (4B params), not PRECISION
SWEET SPOT: Q5_K_P β best score, fastest, smallest
```
### Qwen3.5-9B Uncensored β Quant Ladder
```
βββββββββββ¬βββββββββ¬βββββββββ¬ββββββββ¬ββββββββ¬ββββββββ
β Quant β Size β Memory βSpeed βScore βStops β
βββββββββββΌβββββββββΌβββββββββΌββββββββΌββββββββΌββββββββ€
β Q4_K_M β 5.2 β 6.1 β 16.7 β 3.5 β 0 β
β Q6_K β 6.9 β 7.8 β 13.5 β 5.0 β
β 2 β
β
β Q8_0 β 8.9 β ~10 β ~10 β N/A β N/A β
β Base Q4 β 5.6 β 6.5 β 10.0 β 4.5 β 2 β
βββββββββββ΄βββββββββ΄βββββββββ΄ββββββββ΄ββββββββ΄ββββββββ
INSIGHT: For Qwen (9B dense), HIGHER quant IS better.
Q4 (3.5) β Q6 (5.0) = massive improvement.
The 9B dense model has more capacity that benefits
from higher precision. Unlike the 4B MoE Gemma4 where
the bottleneck is active params not precision.
SWEET SPOT: Q6_K β best score, fits 16GB
```
### Cross-Model Quant Pattern
```
FINDING: Optimal quantization depends on active parameter count.
Dense 9B (Qwen): Q4 < Q6 β
(precision limited, higher=better)
MoE 4B (Gemma4): Q5 β
> Q6 > Q8 (speed limited, faster=better)
1-bit 8B (Bonsai): Degraded regardless (1-bit destroys reasoning)
Rule of thumb:
β’ Dense models: use highest quant that fits
β’ MoE models: use mid quant (Q5) for best speed/quality
β’ Ultra-small quant (<Q4): breaks multi-step reasoning
```
---
## AXIS 4: Backend
```
ββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Backend β Characteristics β
ββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β llama.cpp (GGUF) β β
Native tool calling for Qwen + Gemma4 β
β (stock homebrew) β β
No proxy needed β
β β β
mmproj vision support β
β β β
Best compatibility with LlmTornado β
β β β οΈ Slower than MLX for MoE models β
β β Speed: 10-25 tok/s depending on model β
ββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β mlx_vlm (MLX) β β
Fastest for Gemma4 MoE (35 tok/s) β
β β β Needs proxy for LlmTornado (7 fixes!) β
β β β Streaming tool calls broken β
β β β Content array format incompatible β
β β β Screenshot images break chat format β
β β Speed: 35 tok/s (but proxy overhead) β
ββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Ollama β β
Easy model management β
β β β
Native Gemma4 tool calling via /api/chat β
β β β OpenAI compat layer drops tool calls for Gemma4 β
β β β Message format issues with LlmTornado β
β β Speed: ~35 tok/s (Gemma4 E4B) β
ββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β PrismML fork β β
Required for Bonsai 1-bit GGUF β
β (llama.cpp) β β Older version, missing Qwen3.5 mmproj support β
β β Speed: 49 tok/s (Bonsai) β
ββββββββββββββββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Backend Decision Tree:
Is model Qwen3.5 or Gemma4 GGUF?
YES β llama.cpp (stock) β
BEST β native everything, no proxy
NO β
Is model Gemma4 MLX and speed critical?
YES β mlx_vlm + proxy (35 tok/s but complex)
NO β
Is model Bonsai 1-bit?
YES β PrismML llama.cpp fork
NO β Ollama (easiest but compatibility issues)
INSIGHT: llama.cpp (stock GGUF) is the clear winner for agent tasks.
Native tool calling, no proxy, best LlmTornado compat.
The 35 tok/s MLX advantage isn't worth the proxy complexity.
Gemma4 GGUF on llama.cpp (23 tok/s) > Gemma4 MLX (35 tok/s)
because reliability > raw speed for agent tasks.
```
---
## AXIS 5: Vision Configuration
```
βββββββββββββββββββββββββββ¬βββββββββββ¬βββββββββββββββββββββββββββββββββββββββ
β Configuration β Score β How vision works β
βββββββββββββββββββββββββββΌβββββββββββΌβββββββββββββββββββββββββββββββββββββββ€
β mmproj only (VLM sees β 4.5/6 β LLM sees screenshots directly. β
β screenshots directly) β β Slow: 30-40s to process each image. β
β β β Inaccurate: misidentifies objects. β
β β β Uses all context for image tokens. β
βββββββββββββββββββββββββββΌβββββββββββΌβββββββββββββββββββββββββββββββββββββββ€
β Falcon Perception only β 4.5/6 β Dedicated 0.6B detector. β
β (no mmproj, text-only β β Fast: 2s per detection. β
β LLM + vision_detect) β β Returns pixel coordinates. β
β β β LLM never sees images β saves ctx. β
βββββββββββββββββββββββββββΌβββββββββββΌβββββββββββββββββββββββββββββββββββββββ€
β mmproj + Falcon (both) β 5.0/6 β
β Best of both worlds: β
β β β β’ LLM sees screenshots (understands β
β β β page layout, text, context) β
β β β β’ Falcon detects objects precisely β
β β β (captcha grids, UI elements) β
β β β β’ 3-layer adaptive pipeline routes β
β β β to best method per task β
βββββββββββββββββββββββββββΌβββββββββββΌβββββββββββββββββββββββββββββββββββββββ€
β No vision at all β 1-2/6 β Model can only navigate + extract β
β (text-only, no images) β β text. Can't interact with visual UI. β
βββββββββββββββββββββββββββ΄βββββββββββ΄βββββββββββββββββββββββββββββββββββββββ
Falcon Perception 3-Layer Pipeline:
Layer 1 (Router): "captcha" β detection (2s)
"measure" β segmentation (5-9s)
Layer 2 (Present): default β coordinates text (fastest)
verify β cropped images for VLM
spatial β Set-of-Marks overlay
Layer 3 (Extract): coords: "[1] center=(211,155)"
crops: 3 JPEG images per detection
overlay: annotated full image
INSIGHT: mmproj + Falcon together > either alone.
mmproj lets the LLM understand page context.
Falcon gives pixel-accurate object detection.
The combination scores 5.0/6 vs 4.5/6 for either alone.
Memory cost: Falcon = 1.5GB always loaded.
Speed cost: 2s per vision_detect call (negligible vs LLM).
```
---
## THE COMPLETE PICTURE
### All Tested Configurations Ranked
```
Rank Model + Config Score Speed Memory Proxy Backend
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1. Gemma4 Unc Q5_K_P +mm +FP 5.0/6 24.5 6.3G No llama.cpp
2. Qwen3.5 Unc Q6_K +mm +FP 5.0/6 13.5 7.8G No llama.cpp
3. Gemma4 Unc Q6_K_P +mm +FP 4.5/6 23.1 6.7G No llama.cpp
4. Gemma4 Base 4bit +FP 4.5/6 35.0 5.4G YES mlx_vlm
5. Qwen3.5 Base Q4_K_XL +mm +FP 4.5/6 10.0 6.5G No llama.cpp
6. Gemma4 Unc Q8_K_P +mm +FP 4.0/6 19.0 8.5G No llama.cpp
7. Qwen3.5 Unc Q4_K_M +mm +FP 3.5/6 16.7 6.1G No llama.cpp
8. Qwen3VL Bal Q6_K +mm +FP 3.0/6 16.2 7.4G No llama.cpp
9. Bonsai-8B 1-bit +FP 1.0/6 48.8 1.5G No PrismML
10. LFM2.5-Nova 1.2B Q4 0.0/6 118.4 0.8G No llama.cpp
11. FunctionGemma 270M Q8 0.0/6 197.0 0.3G No llama.cpp
12. Qwopus-27B Q3_K_S OOM OOM 14.0G No llama.cpp
+mm = with mmproj | +FP = with Falcon Perception
```
### Key Decisions
```
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β DECISION FRAMEWORK β
β β
β Q: Which model? β
β A: Gemma4 E4B Uncensored Q5_K_P β
β β’ Tied #1 at 5.0/6, fastest winner (24.5 tok/s) β
β β’ 1.5GB smaller than Qwen alternative β
β β’ No proxy needed (GGUF on llama.cpp) β
β β’ Form filling works (the Gemma4 MLX version couldn't) β
β β
β Q: Which quantization? β
β A: For MoE (Gemma4): Q5_K_P (speed > precision) β
β For Dense (Qwen): Q6_K (precision > speed) β
β Never Q8+ (wastes memory, slower, no quality gain) β
β Never Q4 or below (breaks multi-step reasoning) β
β β
β Q: Which backend? β
β A: llama.cpp (stock homebrew) for everything β
β MLX only if you need 35 tok/s AND accept proxy complexity β
β β
β Q: Censored or uncensored? β
β A: Doesn't matter for agent tasks. Quality comes from quant. β
β Uncensored helps if tasks involve restricted content. β
β β
β Q: What about vision? β
β A: Always use mmproj + Falcon Perception together (5.0/6) β
β Either alone = 4.5/6. Both = synergy. β
β β
β Q: Can we get 6/6? β
β A: T2 (DDG) and T6 (CAPTCHA) timeout β model works but β
β doesn't stop in time. Improving stop_loop instructions β
β or extending timeouts would push to 5.5-6.0/6. β
β The model DOES the work β it just keeps going. β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
```
### Counter-Intuitive Findings
```
1. BFCL β Agent Capability
Bonsai: 73% BFCL but 1.0/6 agents (single-turn β multi-turn)
2. Bigger Quant β Better Agent (for MoE)
Gemma4: Q5 (5.0) > Q6 (4.5) > Q8 (4.0) β speed wins over precision
3. Bigger Quant = Better Agent (for Dense)
Qwen: Q4 (3.5) < Q6 (5.0) β precision matters for 9B dense
4. Uncensored β Better Agent
Same model, same quant: uncensored doesn't improve tool calling
5. Faster Backend β Better Results
Gemma4 MLX (35 tok/s, 4.5) < Gemma4 GGUF (24 tok/s, 5.0)
Proxy complexity and message format issues hurt more than speed helps
6. 270M β 9B Speed Inversion
FunctionGemma (197 tok/s, 0/6) < Gemma4 (24 tok/s, 5/6)
10x faster but completely useless for the actual task
7. 4B Active Params = 9B Dense
Gemma4 MoE (4B active) matches Qwen (9B dense) on agent tasks
MoE architecture is incredibly efficient for tool calling
```
---
## Memory & Disk Reference
```
16GB Mac Mini M4 β Memory Budget:
Gemma4 Q5_K_P (winner):
Model: 5.4 GB ββββββββββββββββββββββββββββ
mmproj: 0.9 GB βββββ
Falcon: 1.5 GB ββββββββ
GUA+Brwsr: 0.8 GB ββββ
OS: 3.0 GB ββββββββββββββββ
KV Cache: ~1.5 GB ββββββββ
βββββββββββββββββββββββββββββββββ
Total: 13.1 GB Free: 2.9 GB β
Qwen Q6_K (runner-up):
Model: 6.9 GB ββββββββββββββββββββββββββββββββββββ
mmproj: 0.9 GB βββββ
Falcon: 1.5 GB ββββββββ
GUA+Brwsr: 0.8 GB ββββ
OS: 3.0 GB ββββββββββββββββ
KV Cache: ~1.5 GB ββββββββ
βββββββββββββββββββββββββββββββββ
Total: 14.6 GB Free: 1.4 GB β οΈ tight
```
---
*15+ configurations tested across 5 axes, 90+ individual test runs.*
*Mac Mini M4 16GB (Dyson), April 3-8 2026.*
|