How to Choose an On-Device Multimodal Open-Source LLM: A Practical Evaluation Guide
This guide explains how to evaluate and select open-source large language models that run on phones, edge boxes, single-board computers, and home workstations. It covers the difference between dense and mixture-of-experts (MoE) parameter matrices, the multimodal input capabilities that matter most for on-device use (text, variable-resolution images, video, and native audio), the three hard constraints of memory, compute, and latency, and the role of quantization in fitting a model onto constrained hardware. You will also find principles for building an evaluation that reflects real workloads instead of public leaderboard scores, framework-agnostic benchmarking pseudocode for measuring latency distributions, and a five-step decision framework for narrowing down a model on your own target device.
1. Why on-device LLMs are becoming the focus
For the past two years, the competition in large models has been almost entirely about ever-larger parameter counts in the cloud. Yet what actually drives “AI everywhere” into production is the class of lightweight models that can run on phones, edge boxes, Raspberry Pi–style development boards, and even home workstations. On-device deployment delivers value on four fronts:
- Privacy and compliance: data never leaves the device, and sensitive inputs such as speech and images do not need to be uploaded, which fits heavily regulated industries naturally.
- Low latency and high responsiveness: removing the network round trip brings interaction latency down to the millisecond range, which suits real-time conversation and voice assistants.
- Offline availability: the model keeps working with no connectivity, which matters for in-vehicle systems, industrial sites, and remote locations.
- Predictable cost: there is no recurring cloud inference bill, and the marginal cost approaches the power draw of the device itself.
For exactly these reasons, judging whether an open-source model is “good” cannot rely on its score on a general-purpose leaderboard. What matters more is whether it actually runs, runs fast, and runs accurately on the hardware you have. This article proposes an evaluation perspective that is closer to engineering practice.
2. Reading the parameter matrix: dense vs. mixture of experts
A mature open-source model family usually ships several sizes to cover different hardware tiers. The typical shape is “one dense model, plus a few efficient small sizes, plus an optional mixture-of-experts (MoE) model.” Understanding the differences between them is the first step in selection.
Dense models run all parameters in every layer for every token. The structure is simple, the inference path is fixed, and the model is friendly to operators and kernels. The biggest advantage of a dense model is that performance is predictable: at the same parameter count, it tends to deliver more stable quality and latency, which makes it well suited to on-device scenarios where compute is rigidly constrained.
Mixture-of-experts (MoE) models split the feed-forward layers into multiple “expert” subnetworks, and each token activates only a subset of them. The defining characteristic is a large total parameter count but a small number of activated parameters per token, so the model can hold more “knowledge capacity” at a comparable inference compute cost. The trade-off is that memory or VRAM must hold all expert weights, and the routing logic places higher demands on the inference engine implementation.
For on-device deployment, the key trade-off looks like this:
| Dimension | Dense model | Mixture-of-experts (MoE) |
|---|---|---|
| Compute cost | Scales with parameter count | Depends on the number of activated experts |
| Memory footprint | Relatively controllable | All experts must be resident |
| Quality ceiling | Stable and predictable | Higher ceiling at comparable compute |
| Inference engine support | Mature | Depends on good optimization |
Efficient small sizes, such as the 2B and 4B parameter classes, are usually the workhorses built for phones and embedded devices. They are specifically trimmed for memory and compute so that they remain usable for interactive workloads on low-power chips.
3. Multimodal input: from text-only to image, video, and audio
A clear trend in the current generation of on-device models is the move from “reads text only” to natively understanding multiple modalities. When evaluating a model, confirm the following capabilities:
- Text input: as the baseline capability, look at the context window length and instruction-following ability.
- Image input (with support for variable resolution): whether the model can handle images of different sizes and aspect ratios, which directly affects document understanding, OCR, and scene recognition tasks.
- Video input: multi-frame temporal understanding, applicable to surveillance analysis, instructional walkthroughs, and action recognition.
- Audio input (native): this one is especially important on-device.
If a model supports audio input natively (for example, accepting audio clips of up to roughly 30 seconds directly), then the device no longer needs a separate speech recognition (ASR) model bolted on the side. That means:
- fewer components and a lower overall memory footprint;
- less error accumulation from the two-stage “audio → text → LLM” pipeline;
- a substantially lower barrier to shipping on-device voice assistants and simple voice-command AI agents.
For phone-oriented and on-device agent scenarios built around simple tasks, this kind of end-to-end multimodal capability is often the dividing line that decides whether the experience succeeds.
4. The three constraints of on-device deployment: memory, compute, latency
In the end, whether a model is good comes down to whether it runs on your target hardware. Check the three constraints one by one:
- Memory (RAM/VRAM): it must hold not only the model weights but also space for the KV cache and intermediate tensors from multimodal encoders. Devices with a large model but little usable memory often fail to start at all.
- Compute (TOPS / clock frequency): this determines generation speed in tokens/s. An MoE model can have a large total parameter count yet activate few parameters per token, so its generation speed may beat a dense model of the same scale. This is worth verifying by measurement.
- Latency (TTFT and TPOT): time to first token (TTFT) shapes the perception of “I tapped and nothing happened,” while time per output token (TPOT) affects how smoothly the text streams.
Quantization is the core optimization technique for on-device deployment. Compressing weights from FP16 down to INT8, INT4, or lower can significantly reduce memory usage and increase throughput, but you need to assess whether the quality loss on your task is acceptable. In practice, compare the original-precision model and the quantized model on the same task set.
5. How to evaluate properly: don’t just read the leaderboards
Public leaderboards are typically run on specific evaluation sets under ideal configurations, and the gap to real on-device usage is obvious. A more reliable evaluation should follow these principles:
- Use a private task set close to your business: real use cases such as “simple instruction following,” “image question answering,” and “short speech understanding,” rather than general exam-style questions.
- Separate the three dimensions of quality, latency, and memory: quantify each one instead of hiding weak spots behind a single composite score.
- Control variables: compare models on the same hardware, with the same quantization precision and the same input distribution.
- Watch the tail of the latency distribution: look beyond the average at P95 and P99. Occasional stalls on-device hurt the experience more than a slightly slower average.
- Measurements beat marketing: architecture and parameter specs are only a starting point. The final word comes from what you measure on your own target device.
6. Benchmarking method and sample code
Below is framework-agnostic benchmarking pseudocode for measuring the on-device inference latency distribution. It can serve as a starting point for your own evaluation script:
import timedef benchmark_inference(model, sample_inputs):"""Generic on-device inference benchmark: measures the latency distribution (independent of any inference engine)."""# Warm-up: exclude bias from the first weight load and operator compilationfor _ in range(3):model.run(sample_inputs[0])latencies = []for payload in sample_inputs:start = time.perf_counter()output = model.run(payload) # unified inference call interfacelatencies.append((time.perf_counter() - start) * 1000) # millisecondslatencies.sort()return {"p50_ms": latencies[len(latencies) // 2],"p95_ms": latencies[int(len(latencies) * 0.95)],"avg_ms": sum(latencies) / len(latencies),}
Alongside this script, three additional measurements are worth adding:
- Peak memory: monitor resident process memory on the device and verify it stays within the hardware limit.
- Generation throughput: count tokens generated per unit of time to gauge how fluid the interaction feels.
- Quality scoring: score results on your private task set manually or with rules, and compare before and after quantization.
If you want to move evaluation and deployment testing into the cloud for batch validation, general-purpose cloud capabilities can help. For example, a container platform can spin up inference services for different model sizes in bulk, object storage can archive test samples and results, monitoring and alerting can track P95 latency and memory usage over time, and a logging service can accumulate evaluation data. Baidu AI Cloud is one such provider. The product categories used here are standard across the industry, and the specific implementation should follow the official documentation.
7. Selection recommendations and summary
Pulling the dimensions above together, here is a decision framework for choosing an on-device open-source LLM:
- Fix the hardware first: pin down the target device’s memory, compute, and power budget, and use that to narrow the viable parameter range. The 2B–4B efficient small sizes are usually where to start looking.
- Pick the architecture to match the task: for simple tasks where quality and latency stability matter most, prefer a dense model. If you want to push the ceiling higher at comparable compute, evaluate an MoE model.
- Confirm the multimodal requirements: decide whether you need image, video, or native audio input. For on-device voice scenarios, verify audio input capability specifically, since it determines whether you can drop the external ASR model.
- Quantize before finalizing: run INT8/INT4 quantization on the target hardware, measure the quality loss, and compare candidates on your private task set.
- Let measurements make the final call: treat leaderboards as reference only. The real conclusion comes from “your own device + your own tasks + your own latency and memory measurements.”
The value of an on-device model does not come from how large its parameter count is, but from whether it can complete the target task stably, quickly, and accurately on specific hardware. With a firm grasp of the parameter matrix, multimodal capabilities, the three constraints, and a disciplined evaluation method, you can make engineering decisions that are grounded and reproducible when faced with a steady stream of new open-source models, rather than being led around by parameter counts and leaderboard rankings.
