Choosing Small Models for On-Device Use: Benchmarking Vision and Reasoning Performance
This article explains how to pick a small language model for local, on-device deployment when "it runs on my laptop" is no longer a differentiator. It covers why total parameter count is the wrong proxy for effective compute (dense vs. sparse mixture-of-experts architectures), which three numbers actually matter locally — weight size, activated parameters, and KV cache growth — and how to build a task-based evaluation set with 30-50 samples per group. It includes a five-level vision benchmark ladder (from object presence to cross-modal reasoning), a minimal scoring script that records accuracy, format compliance, latency, and throughput in one table, and practical findings on why vision quality and language reasoning scores do not move together. It also explains prefill vs. decode bottlenecks, how image tokens inflate prefill cost, a memory estimation function with worked examples, quantization guidance, a hardware-first selection framework, and where on-device processing should hand off to cloud models.
1. The question has shifted: from “can it run” to “which one should I choose”
Over the past year, small models that run on-device have improved quickly. Plenty of models in the single-digit-to-tens-of-billions parameter range now run smoothly on an ordinary laptop once quantized. That creates a new problem: when “it runs” is no longer the barrier, the basis for selection has to move from memory footprint to fit with the task.
Many benchmarks still rank models by an aggregate score, but the constraints of real deployment are completely different. A local machine typically has one discrete GPU with limited VRAM plus integrated graphics; system RAM determines whether the weights fit at all, while memory and VRAM bandwidth determine how many tokens per second you actually get. The same model can feel several times faster or slower depending on the hardware it lands on.
So the position of this article is: don’t ask “which model is the strongest,” ask “under my task distribution and my hardware budget, which model has the highest marginal return.”
2. First, correct an intuition: total parameters are not effective compute
Current small-model architectures fall into two broad families, and understanding the difference is the first step in selection:
- Dense architectures: every token passes through all parameters. Small parameter counts, simple implementation, VRAM usage roughly linear in parameter count — but inference cost climbs quickly at large parameter scales.
- Sparse activation (mixture-of-experts) architectures: total parameter count is large, but each token activates only a small fraction of it. This creates a critical mismatch — all weights must stay resident in memory/VRAM, while compute cost scales only with the activated parameters.
That mismatch explains a pattern commonly seen in local deployment: a model with a very large total parameter count but very few activated parameters loads its weights more slowly and consumes more memory, yet decoding speed is not slow — it can even beat a dense model with a comparable parameter count. Conversely, small dense models start fast and are memory-friendly, but they struggle more on tasks that need multi-step reasoning.
So for local deployment you should look at at least three numbers at once:
- Weight size: determines whether it fits at all, and how long a cold start takes;
- Activated parameter count: determines per-token compute intensity, and is strongly correlated with decode speed;
- KV cache growth rate: determines whether VRAM gets exhausted during long contexts and multi-turn conversations.
Comparing only “parameter count” or an aggregate benchmark score makes it easy to get an experience on real hardware that is the opposite of what you expected.
3. Turning subjective impressions into comparable conclusions: how to build the evaluation set
A credible self-run evaluation report has to translate “this one feels more detailed to me” into scorable dimensions. The recommended approach is to group the set by task type; 30-50 samples per group is enough to produce directional conclusions.
For the vision side, five progressive levels work well:
| Level | Task | What it tests |
|---|---|---|
| L1 | Is the subject present, how many, what color | Basic grounding |
| L2 | Material, shape, period/style inference | Medium-granularity recognition |
| L3 | Naming domain terminology (vessel types, decorative patterns, rock strata) | Language-side knowledge |
| L4 | Fine-detail description: cracks, corrosion layers, direction of carved marks | Fine-grained vision |
| L5 | Relations and reasoning: function inference, preservation-state judgment | Cross-modal reasoning |
The language side should cover five categories: arithmetic, multi-step logic, debugging code snippets, cross-paragraph question answering over long documents, and structured output (JSON) compliance rate.
A minimal scoring script for turning results into a comparable table:
from collections import defaultdictdef score_run(samples, predict):"""samples: [{"id", "group", "prompt", "images", "gt_key", "expect_format"}]predict: fn(sample) -> dict(text=..., latency_ms=..., tps=...)"""agg = defaultdict(lambda: {"n": 0, "hit": 0, "fmt_ok": 0, "lat": 0.0, "tps": 0.0})for s in samples:out = predict(s)a = agg[s["group"]]a["n"] += 1a["hit"] += int(s["gt_key"] in out["text"]) # key-element hit ratea["fmt_ok"] += int(out.get("format_ok", False)) # format compliancea["lat"] += out["latency_ms"]a["tps"] += out["tps"]return {g: {"hit_rate": round(v["hit"] / v["n"], 3),"format_ok_rate": round(v["fmt_ok"] / v["n"], 3),"avg_ttft_ms": round(v["lat"] / v["n"], 1),"avg_tps": round(v["tps"] / v["n"], 1),}for g, v in agg.items()}
Two design decisions matter here. First, hit rate should be measured by matching key elements rather than comparing whole passages of text, so a model isn’t marked wrong just for phrasing things differently. Second, latency and throughput must be recorded in the same table as accuracy, otherwise you end up concluding that “the best model is actually the worst one to use.”
4. Vision recognition: capability does not track language reasoning
Testing on real photographs — stone inscriptions and rubbings, stone carvings, paleontological fossils, pottery, bronze artifacts — is a genuinely difficult class of task, for several reasons:
- Low contrast and weak texture: stone and fossil surfaces scatter light heavily and have blurry feature boundaries, so the model has to rely on very fine local gradients;
- High terminology density: naming vessel types, decorative patterns, and stratigraphic positions requires language-side knowledge, so even when the vision side “sees it right” it can “name it wrong”;
- Sparse information distribution: the informative part of a bronze artifact may be concentrated in a few square centimeters of patina or inscription, which requires the model to actively attend to small regions.
The most consistent pattern in testing: visual recognition quality is not linearly correlated with language reasoning scores. Some small models that do quite well on language reasoning and math are clearly weaker at fine-grained image description; meanwhile, models with more total or activated parameters can still be steadier at L4/L5 (detail and relational reasoning) even without an obvious advantage on the language side.
So if image understanding is your core requirement, selection should start from an independent evaluation of vision capability, not from inference based on text leaderboards. Two engineering measures also improve small and mid-sized models substantially:
- Raise the input resolution or switch to a tiling strategy, enlarging small targets into the model’s effective receptive field;
- Turn open-ended questions into structured ones — for example, instead of “what is this,” ask “please determine in order: ① material ② surface treatment ③ direction of visible carved marks ④ probable date range” — so the model outputs step by step and produces fewer hallucinations than in one long description.
5. Math and logic reasoning: why everyday impressions converge
A common puzzle is that several models from clearly different capability tiers feel about the same on math and logic questions. There are two main reasons.
The first is saturation. Most everyday problems are already well covered by training data, so pattern matching alone gets the right answer and discriminative power disappears. The second is insufficient difficulty: the questions lack conditions that require multi-step verification or run counter to intuition.
To make differences reappear, you need to raise the process complexity of the questions rather than their surface difficulty:
- combinatorial counting, and probability problems that require case-by-case analysis;
- long logic chains with implicit premises, requiring derivation steps rather than only an answer;
- code debugging with boundary conditions, requiring the specific erroneous line to be identified;
- reasoning across many paragraphs of a long document, which tests attention allocation.
The scoring criteria should also separate correct results from verifiable process: a model that only produces an answer may contradict itself in its reasoning, and that becomes a risk the moment it is used in a setting that requires auditing.
6. Deployment conditions: budget the hardware properly
Local inference has two phases with completely different resource bottlenecks:
- Prefill: processes all input tokens, affected jointly by compute and memory bandwidth; image tasks are most expensive here.
- Decode: generates tokens one at a time, mainly limited by memory bandwidth — which is why a machine with low VRAM bandwidth still produces unsmooth output even when compute is sufficient.
Vision tasks carry one more easily overlooked cost: images are encoded into a large number of visual tokens. A single high-resolution image can be equivalent to hundreds or even thousands of text tokens, which directly inflates prefill time and KV cache usage. The standard engineering practice is to cap maximum resolution, chunk on demand, and explicitly limit the number of images when multiple images are provided.
A practical function for estimating VRAM and memory requirements:
def estimate_memory_gb(n_params_b, ctx_len, n_layers, kv_heads, head_dim,bits=4, kv_bits=16, overhead=1.15):"""n_params_b: total parameters (B) ctx_len: context lengthbits: weight quantization bit width kv_bits: KV cache bit width (commonly 16)overhead: runtime and vision encoder headroom"""weight_gb = n_params_b * bits / 8 # 1e9 params * bit/8 -> GBkv_bytes = 2 * ctx_len * n_layers * kv_heads * head_dim * kv_bits / 8return round((weight_gb + kv_bytes / 1e9) * overhead, 2)# Example: order-of-magnitude comparison under 4-bit quantizationfor name, p in [("dense-4B", 4), ("sparse-26B-total", 26)]:print(name, estimate_memory_gb(p, ctx_len=8192,n_layers=32, kv_heads=8, head_dim=128))
On quantization tiers, the rule of thumb is that a middle tier — 4-bit weights, with higher precision retained for critical layers (attention output, near the token embeddings) — is usually the best compromise between accuracy and size. Pushing to lower bit widths mainly buys memory, and the cost tends to show up on long-text and numeric tasks. For vision tasks, the vision encoder is generally not something to quantize aggressively, or fine-grained recognition degrades noticeably.
7. A selection decision framework
Collecting the above into an executable decision path:
- Set the hardware ceiling first: the weight size you can fit → candidate set; the throughput you can accept → filter again.
- Then look at the main task: if vision dominates, prioritize the tiered vision evaluation; if text reasoning dominates, look at multi-step reasoning and structured output.
- Finally, check engineering constraints: cold-start time, whether long context is needed, whether multiple concurrent streams are required, whether it must work offline.
Three rules of thumb:
- A large-weight model that doesn’t fit in memory is meaningless no matter how high its benchmark score, including sparse models with a very large total parameter count but few activated parameters;
- Evaluate vision tasks separately; don’t reuse conclusions from text leaderboards;
- Distinguish one-off Q&A from routine use: the former can trade slower speed for higher accuracy, while the latter must count throughput and power into total cost.
Three common mistakes: drawing conclusions from a single test run (fix temperature and random seed, and repeat over multiple rounds); drawing all samples from your own most familiar domain (which leaves long-tail weaknesses undiscovered); and ignoring batching strategy under concurrency (smooth single-stream performance does not mean multi-stream usability).
8. Dividing work between device and cloud
Even when the local model is good enough, the boundary stays clear. On-device strengths are low latency, privacy, offline availability, and zero marginal cost; its weaknesses are knowledge freshness, very long context, complex multi-step tasks, and consistently formatted output.
Mature engineering practice is layered design — the device handles the high-frequency, simple, privacy-sensitive first pass (initial classification, structured extraction, redaction), while difficult requests are forwarded upward to a cloud model service. Inputs, outputs, latency, and failure rates should be wired into logging, monitoring, and alerting to form an observable evaluation loop. If model weights and datasets are large, object storage can hold versioned copies, and a container platform can standardize deployment and elastic scaling of inference services, with a cloud platform’s general-purpose model service — such as Baidu AI Cloud — taking the hardest requests.
Ultimately, the goal of selection is not to find the “strongest model” but to align model capability with task distribution, hardware budget, and latency requirements. Turn impressions into data with a tiered evaluation set, and lock down feasibility early with a memory estimate, and you can keep making correct decisions in an ecosystem that iterates this fast.
