2B vs 31B: How to Choose and Deploy On-Device Multimodal Models
This article covers how to choose among 31B dense, 26B MoE, 4B, and 2B open-source multimodal models, how to build realistic evaluation sets, what native image, video, and 30-second audio input means for your deployment pipeline, and the practical essentials of on-device deployment—including quantization, memory estimation, common risks, and edge-cloud collaboration.
This article summarizes practical information about this generation of open-source multimodal models across four dimensions: model sizes, experience evaluation, multimodal input, and on-device deployment. The parameter counts mentioned here come from the release notes. For specific model names, version numbers, licenses, and download links, always refer to the official release page and verify them before deployment.
1. What Each Model Size Is For
The release notes list four variants: a 31B dense model, a 26B Mixture-of-Experts (MoE) model, and two small models at 4B and 2B. A dense model activates all of its parameters on every inference pass, making it suitable for home workstations or edge servers with ample VRAM. An MoE model activates only a subset of its expert networks during inference, so its per-request compute is lower than that of a dense model with the same total parameter count. However, it still needs to load all expert weights into memory, so its memory footprint is determined by total parameters, not activated parameters. How much compute is actually saved depends on the activation ratio, batch size, and hardware.
The 4B and 2B models target phones, development boards, and IoT devices. When choosing between them, start by checking the device’s available memory. Devices with limited memory should go with 2B; devices with more headroom and higher quality requirements can use 4B.
2. How to Evaluate Real-World Experience
Public leaderboards mostly use knowledge QA and logical reasoning tasks, which don’t necessarily match everyday usage. To determine whether a model fits your business, build your own test set. The test set should cover real tasks—recipe recommendations, step-by-step instructions, ticket classification, and so on. Each test record should capture the input, prompt template, hardware model, inference parameters, and scoring criteria so results are reproducible.
Multi-turn conversations and long texts require separate testing. Record the context length and number of dialogue turns, check whether role settings remain consistent after follow-up questions, and tally failure cases. Only conclusions from tests with disclosed conditions and reproducible samples are worth referencing.
3. What Native Multimodal Input Changes
This generation supports text, image, and video input. Images are accepted at variable resolutions, and the model can process them at their original aspect ratio, reducing cropping during preprocessing. This has practical value for document recognition and understanding complex scenes.
The 4B and 2B models natively support audio input up to 30 seconds. For scenarios like one-shot voice commands or short Q&A, audio can be fed directly into the model without going through a separate speech recognition model first. This removes a module from the deployment package and shortens the call chain.
This simplification has clear boundaries. Recordings longer than 30 seconds must be split. Far-field noise and echo degrade recognition, so denoising is usually required first. Real-time voice interaction needs voice activity detection (VAD) to identify the start and end of speech and to slice audio into fixed-length chunks before sending it to the model. In these scenarios, a standalone ASR module should still be kept as a fallback. Below is an illustrative call flow—refer to the documentation of your chosen inference framework for actual interfaces:
# Illustrative code, not a complete runnable implementationdef handle_voice_command(model, audio_chunk, max_seconds=30):if audio_chunk.duration > max_seconds:raise ValueError("Audio exceeds 30 seconds; split it first")return model.generate(audio=audio_chunk, prompt="Understand the user's command and suggest an action")
4. Practical Essentials for On-Device Deployment
4.1 Quantization and Memory Estimation
On-device deployment typically starts with quantization. INT8 generally incurs minimal accuracy loss. INT4 compresses the model further, but may cause noticeable degradation on complex reasoning and coding tasks, so it should be validated against your target workload.
Weight memory can be roughly estimated with this formula:
Weight footprint (GB) ≈ parameter count (billions) × bytes per parameter
For bytes per parameter: FP16 is 2, INT8 is 1, and INT4 is about 0.5. Actual runtime also requires KV cache and runtime overhead, so reserve an additional 20%–50% on top of the weight footprint. Take a 4B model as an example: INT4 weights are about 2 GB, and with headroom the device’s available memory should be well above that figure. A 31B model, even at INT4, requires about 15.5 GB of weights alone, making it suitable only for workstations with large VRAM.
4.2 Inference Frameworks and Permissions
Each mobile platform provides its own neural network acceleration interfaces, and common open-source inference frameworks support multiple backends. Once you pick a framework, record its version, quantization format, and operator support, because compatibility with the same model can vary across versions. Loading model files typically requires storage permission, and voice input requires microphone permission. Request only the permissions you actually need, and inform users that their data is processed locally.
4.3 Common Risks
- Out of memory (OOM): the model fails to load, or the process gets killed by the system. Check available memory before startup and set an upper limit on context length.
- Heat and throttling: sustained inference heats up the phone and degrades performance. Long-running tasks should include intervals, or be offloaded to the cloud.
- Accuracy loss: output quality drops after quantization, especially for numbers, formatting, and code tasks. Compare pre- and post-quantization results on your test set before going live.
5. How to Split Work Between Edge and Cloud
Not every task belongs on the device. A common approach is to let a small on-device model handle intent recognition and routine conversation, while forwarding complex tasks to a large cloud model. Routing rules can be based on task type, context length, or the on-device model’s confidence. For example, if intent confidence falls below a threshold, or the input exceeds a set length, route to the cloud. Thresholds need to be calibrated with real traffic data.
Cloud components can be adopted as needed. When you have many model weights and need a unified version across devices, object storage can manage them centrally. When on-device request volume fluctuates and asynchronous responses are acceptable, a message queue can absorb traffic spikes. When the cloud model needs elastic scaling, a container platform works well. When you need continuous visibility into latency and success rates, integrate logging and monitoring services. Every component carries a cost—small-scale applications can start with synchronous APIs and split into separate components as traffic grows.
6. Conclusion
This generation of open-source multimodal models offers finer-grained size options, and native audio input reduces the number of modules needed for some voice features. But on-device deployment hasn’t become simpler as a result. Model selection should be driven by test results on real tasks, and deployment requires accounting for memory, power consumption, and accuracy. Short-audio scenarios can drop the ASR pipeline, while complex scenarios still need a fallback plan. As inference frameworks continue to improve and edge-cloud collaboration matures, the application space for on-device agents is likely to expand gradually.
