The Anti-Consensus: Why Your Local LLM Should Never Be the "Brain" of Your System A developer argues that on-device small language models should never sit in the control loop of desktop apps, citing memory-bandwidth limits that cap a 4-bit 7B model at roughly 8–14 tok/s on a thin laptop and 30–60 tok/s on mid-tier unified memory, well below the sub-100ms budget for direct-manipulation UI. The proposed architecture routes every spec-bearing task through deterministic, testable code and confines the model to leaf operators with schema-checked parsing, a rules-based fallback, and per-call time and token budgets. Originally published on Medium: https://medium.com/@dqj1998/desktop-apps-keep-wiring-a-7b-model-into-every-control-path-115063626c2f https://medium.com/@dqj1998/desktop-apps-keep-wiring-a-7b-model-into-every-control-path-115063626c2f Desktop apps keep wiring a 7B model into every control path. Here is the physics — and the 10% AI / 90% deterministic code architecture that survives production. Every new desktop app pitch this year ships the same diagram: a small language model in the center, arrows fanning out to every feature — parsing, planning, formatting, error recovery — all routed through the same few billion parameters. It demos beautifully. It ships badly. This is the first article in a six-part series on 10% AI, 90% deterministic code : how to use on-device models hard, but held small. No product tour, no trend forecast — just the engineering constraints that force the architecture, and the architecture that survives contact with real users. The first thing to internalize: token throughput on the edge is a memory-bandwidth problem, not a model-quality problem. Every decoded token streams the active weights plus the KV cache from memory once. The back-of-envelope: theoretical tok/s ≈ memory bandwidth GB/s ÷ active weights GB A 7B model at 4-bit quantization is roughly 4 GB of active weights. Back-of-envelope numbers, measured against hardware classes rather than lab queens: | Hardware class | Bandwidth | Theoretical | Realistic sustained | |---|---|---|---| | Thin laptop, shared LPDDR | 68–100 GB/s | 17–25 tok/s | 8–14 tok/s while the UI composites | | Mid-tier unified memory | 200–400 GB/s | 50–100 tok/s | 30–60 tok/s | | 12 GB discrete GPU | 270–500 GB/s | 65–125 tok/s | 45–90 tok/s | Three multipliers turn those numbers into a wall: Meanwhile, direct manipulation UI has a hard budget: under ~100 ms feels instant, under ~1 s keeps flow, beyond that users reach for the window close button. A model call lives at 500 ms to 5 s. That is not a gap you close with prompt engineering. It is a gap you design around: the model cannot sit inside the interaction loop, and it certainly cannot sit inside the control loop. The fix is not "use the model less." It is to decide, before writing code, which tasks carry a specification — and give every spec-bearing task to deterministic code. Tasks that must be owned by code, because a spec exists and a machine can check compliance: Tasks where the model earns its 10%, because no spec exists and variance is acceptable: The boundary as code: // Spec-bearing stages stay deterministic: pure, testable. interface DeterministicStage