Model Size Selection and On-Device Deployment for Multimodal Models
This article explains how to choose a model size from the options a model family offers, from small models that run on phones to large models for data centers. It covers gaps between size tiers, cost differences between dense and mixture-of-experts (MoE) models, a simple method for estimating weight memory, fair evaluation of small models, and the trade-off between native audio input and a cascaded speech pipeline.
1. Why Gaps in Model Sizes Matter
A model family usually ships several sizes, each matched to a compute budget. The range runs from small models that run on edge devices such as phones to large models built for data centers. Ideally, the capability and cost of adjacent sizes rise smoothly. In practice, developers often find that a certain range has no suitable model.
The impact is most direct for users of mid-range consumer GPUs. Small models lack the capability they need, and large models do not fit in video memory. These users have to compromise between the two. Most of them are independent developers or small teams with limited hardware budgets, yet they need stronger inference than an edge model can provide.
So when judging whether a model family is complete, do not look only at its largest and smallest variants. Check whether it covers the usable range of mainstream hardware.
2. General Logic for Size Tiers
Model sizes are usually determined by three constraints: memory capacity (VRAM or RAM), latency per inference, and cost per request. Based on these constraints, common deployment scenarios fall roughly into three tiers:
- Edge tier: Roughly hundreds of millions to about 2 billion parameters (effective parameter count). The goals are low latency, low power consumption, and offline availability. Suitable tasks include voice command recognition, simple text understanding, and image classification.
- Mid-range consumer tier: Roughly 1 billion to 3 billion parameters. After quantization, these models can run on a single mid-range GPU. Suitable tasks include local assistants, code completion, and document question answering.
- High-end tier: Tens of billions of parameters or more. Suited to complex reasoning, long-context processing, and high-concurrency services.
Each tier needs a clear purpose. If a tier’s capability differs too much from the tiers on either side, the scenarios in between have no suitable option.
3. Cost Differences Between Dense and Mixture-of-Experts Models
A dense model uses all of its parameters in every forward pass. A mixture-of-experts (MoE) model splits the feed-forward layers into multiple expert subnetworks. A routing network selects only a few experts for each token. This design lets the total model capacity grow large while keeping the compute per token under control.
When selecting an MoE model, distinguish between two numbers:
- Total parameter count: Determines weight storage and video memory usage.
- Active parameter count: Determines the compute per token, which roughly sets inference speed and compute cost.
An MoE model with a large total parameter count and a small active parameter count is close to a small dense model in compute, but close to a large dense model in memory. If you select a model based only on its active parameter count, you can easily underestimate the deployment requirements.
| Dimension | Dense model | MoE model |
|---|---|---|
| Memory usage | Determined by total parameters | Determined by total parameters |
| Compute per token | Determined by total parameters | Determined by active parameters |
| Routing overhead | None | Yes, expert load balancing needs attention |
| Deployment complexity | Lower | Higher |
When you deploy an MoE model, video memory must hold the weights of all experts. If video memory is insufficient, weights must be swapped repeatedly between system memory and video memory, and latency rises noticeably.
4. Estimating Video Memory
You can estimate the video memory needed for model weights with this formula:
Memory (GB) ≈ parameter count (billions) × bytes per parameter × overhead factor
Bytes per parameter depend on numerical precision. 16-bit floating point (FP16) uses 2 bytes, 8-bit integers use 1 byte, and 4-bit quantization uses 0.5 bytes. The overhead factor covers runtime buffers, activations, and the KV cache. Its actual value changes with context length and batch size. A common starting point is 1.1 to 1.3.
The following illustrative code helps you quickly check whether a model fits on a target device:
def estimate_weight_memory_gb(total_params_b: float, bits: int, overhead: float = 1.2) -> float:"""Estimate the memory needed for model weights, in GB. total_params_b is the total parameter count in billions."""bytes_per_param = bits / 8return total_params_b * bytes_per_param * overheaddef fits_on_device(total_params_b: float, bits: int, device_mem_gb: float,reserve_gb: float = 2.0) -> bool:"""Reserve part of the device memory for the system and context, then check whether the model can be deployed."""need = estimate_weight_memory_gb(total_params_b, bits)return need + reserve_gb <= device_mem_gb# Example: an MoE model with 26B total parameters, 4-bit quantizationprint(round(estimate_weight_memory_gb(26, 4), 1)) # About 15.6 GBprint(fits_on_device(26, 4, device_mem_gb=24)) # False, not enough memory after the reserve
This calculation is only an estimate. It does not include the KV cache, which grows with context length. With long contexts, actual memory usage can be much higher than the estimate, so run a benchmark with a real workload before you release the model.
5. Can Small Models Approach Large Models? How to Evaluate Fairly
When you assess a claim that a small model outperforms a large one, watch for these common problems:
- Whether the baseline is the best-performing version from the same generation;
- Whether the test set overlaps with the training data;
- Whether the prompt templates, decoding parameters, and quantization methods are consistent;
- Whether a single benchmark score reflects real business performance.
A reproducible evaluation process usually includes these steps:
- Use the same test set, covering typical inputs and edge cases for the target business;
- Fix the prompt template, temperature, and maximum output length;
- Run multiple trials and record the variance, so random fluctuation is not mistaken for a real gap;
- Validate on your own business data and group the failure cases by type;
- Record latency, memory, and cost per request together with quality, so capability and resources appear in one comparison.
Knowledge distillation is a common way to improve a small model. The small model learns to reproduce the output distribution of a large model, which can produce clear gains on specific tasks. However, the gains usually stay within the tasks used for training, and the general capability of the small model is often still below that of the large model. Distilled models suit specialized tasks. They should not directly replace a general-purpose large model.
6. Audio Input: Native and Cascaded Approaches
There are two main ways to implement on-device voice interaction:
- Cascaded approach: Speech recognition converts audio to text, a language model processes the text, and speech synthesis produces the spoken output. Each module can be replaced and optimized independently.
- Native audio input: The model encodes the audio signal directly, which removes the transcription step.
The trade-offs between the two approaches are summarized below:
| Dimension | Cascaded approach | Native audio input |
|---|---|---|
| Latency | Modules run in sequence, so cumulative latency is higher | Removes one transcription step, but the result depends on the implementation |
| Information retention | Paralinguistic information such as intonation and pauses is easily lost | Can retain some paralinguistic information |
| Resource usage | Each module uses resources separately | The audio encoder adds parameters and memory use |
| Maintainability | Modules can be upgraded separately | Tightly coupled with the language model |
Not every model size needs the same input modalities. For small models that handle voice interaction on the device, native audio input is especially valuable. Large models usually run on servers, where they can pair with a dedicated speech recognition module for higher transcription accuracy. Assign modality support based on the deployment scenario, not by default.
If your core use case is local voice interaction and the device has limited resources, evaluate native audio input first. If your business depends on high-accuracy transcription, such as meeting notes or subtitle generation, a dedicated speech recognition module remains the safer choice.
7. Practical Guidelines for Model Selection
Based on the analysis above, you can select a model with the following process:
- Define the hardware limits: Record the video memory, system memory, and power limits of the target device.
- Set the minimum capability: Define an acceptable quality floor using samples from your business, rather than choosing by feel.
- Distinguish parameter counts: For MoE models, calculate both total and active parameters, and assess storage and compute costs separately.
- Run a small-scale validation: Run a real workload on the target hardware, and record latency, throughput, and peak memory usage.
- Plan a fallback path: Define the conditions under which a local model is switched to a larger model or a server-based solution when its capability is insufficient.
8. Conclusion
Complete size coverage determines whether developers can find a suitable model for each type of hardware. When selecting a model, consider total and active parameters, the memory budget, the fairness of the evaluation method, and whether the audio or other modality capabilities match the deployment scenario. Decisions based on a unified test process and real hardware data are more reliable than decisions based on a single leaderboard score or marketing claims.
