On-Device Multimodal Model Selection: From Use Cases to Evaluation

    This article provides a general technical framework for selecting on-device multimodal models under limited hardware. It compares lightweight models on routine reasoning and visual recognition, explains how VRAM, memory bandwidth, and quantization affect deployment, discusses hybrid local-cloud deployment, and outlines a standardized private evaluation workflow with metrics, annotation rules, sample code, and failure review.

    On-device multimodal large models are evolving quickly. Numerous lightweight and mid-sized models have been released one after another, and benchmark leaderboards are updated accordingly. But benchmark scores do not equal real-world experience. For teams that want to deploy models locally or on-premises, the real challenge is how to choose under limited hardware conditions based on specific business requirements.

    This article does not discuss a specific product. Instead, it explains evaluation methods and selection criteria from a general technical perspective. The conclusions here are based on the author’s observations under specific test conditions, and readers should verify them against their own data.

    1. Logical Reasoning and Math: Gaps Are Narrowing on Routine Tasks

    In the current open-source ecosystem, lightweight models in the 4B to 9B parameter range already have solid natural language understanding and generation capabilities. In initial local deployment tests, mainstream lightweight multimodal models were mostly able to give accurate and self-consistent answers to routine logical reasoning questions and moderately difficult math problems.

    This suggests that for pure text reasoning, the perceived gap between models of different sizes is shrinking. The main reasons are improvements in pretraining data quality and the maturity of instruction tuning. Therefore, if the business scenario is concentrated on text summarization, routine code assistance, and basic logical Q&A, there is no need to blindly pursue large parameter counts. A 4B-class model, after appropriate quantization, can usually provide smooth responses on consumer-grade hardware and achieve a good balance between performance and compute cost.

    However, for harder tasks such as multi-step mathematical proofs and long-chain reasoning, this article has relatively few test samples, and the conclusions should not be extrapolated. Such tasks should be verified separately in a private evaluation set.

    2. Visual Recognition: Cross-Modal Alignment Is the Main Divide

    When the evaluation scope expands from pure text to visual tasks, differences between models increase noticeably. Visual tasks test not only image feature extraction but also cross-modal alignment and fine-grained description. A model must not only “see” the image but also accurately “describe” its content.

    Take cultural relic recognition as an example. The test set covered detail-rich images such as steles, stone carvings, paleontological fossils, pottery, and bronze artifacts. In this type of test, models roughly showed three levels of performance.

    Level 1: 9B-class models performed best in accuracy and description detail. Larger parameter counts allow the model to accommodate richer visual-language mappings. For details such as bronze ornamentation and fossil structures, these models were better able to provide accurate object categories and evidence-based background descriptions. If the business requires high-precision image-text retrieval or professional image analysis, this level deserves priority consideration.

    Level 2: 4B-class models performed close to a sparsely activated 26B-class model. The sparse activation architecture has a larger total parameter count, but the number of parameters actually activated per inference is close to that of a 4B model. Under the test conditions in this article, the two were close on the main metrics for cultural relic recognition. This suggests that visual encoder quality and alignment training may matter no less than total parameter count. The scope of this conclusion is limited, and different results may be obtained with other datasets.

    Level 3: Some base 4B models were clearly insufficient in detailed description. These models can roughly identify the main subject but are prone to hallucination or missing information when describing details and generating professional terminology. If the output will be used directly for records or retrieval, such errors should be specifically checked before deployment.

    3. How VRAM, Memory Bandwidth, and Quantization Affect Model Selection

    Whether a model can be deployed depends on hardware resources. The main bottlenecks for local deployment are VRAM capacity and memory bandwidth, with VRAM more directly determining whether the model can be loaded.

    VRAM Estimation Method

    The VRAM occupied by model weights can be roughly estimated with the following formula:

    Weight VRAM ≈ parameter count × bytes per parameter

    FP16 uses 2 bytes per parameter, INT8 uses 1 byte, and INT4 uses about 0.5 bytes. Taking a 9B model as an example, weights require about 18 GB under FP16 and about 4.5 GB under INT4. The “12 GB to 16 GB or more” figure mentioned earlier actually corresponds to lower quantization levels or additional overhead and should be understood together with the quantization method.

    In addition to weights, actual VRAM usage also includes the following parts:

    • KV cache: Usage is related to context length, batch size, number of layers, and hidden dimensions. In long-context scenarios, it may exceed the weights themselves.
    • Activations and framework overhead: Inference frameworks, operator implementations, and temporary buffers all occupy VRAM.

    The table below provides a rough estimate of the weight portion only. It excludes KV cache and framework overhead and is intended only for initial screening:

    Model size Quantization Estimated weight footprint Typical use case
    4B INT4 About 2 GB Consumer-grade GPU or edge device, interactive Q&A
    4B INT8 About 4 GB Lightweight scenarios with slightly higher accuracy requirements
    9B INT4 About 4.5 GB High-accuracy image-text understanding, workstation deployment
    9B INT8 About 9 GB Accuracy-sensitive private data processing
    26B (sparse activation, A4B) INT4 About 13 GB Environments with sufficient memory and relatively limited compute

    The 26B model in the table requires all parameters to reside in memory or VRAM. Therefore, even if its inference speed is close to that of a 4B model, its resource threshold is clearly higher.

    Deployment Recommendations by Model Size

    4B-class models are suitable for consumer-grade GPUs with less VRAM or edge devices. After INT4 or INT8 quantization, memory usage is significantly reduced. Time to first token is usually lower, making them suitable for interactive scenarios that require fast responses. Specific latency should be measured on the target hardware.

    9B-class models can run on workstations or internal servers in R&D departments after quantization and are suitable for private data with higher accuracy requirements. If FP16 precision is used without quantization, more VRAM space is required.

    Sparse architecture models have their core cost at the loading stage. They have higher requirements for system memory capacity, while the compute load during inference is similar to the number of activated parameters. If the server has sufficient memory but limited compute, this type of model can be a compromise option.

    Possibility of Hybrid Deployment

    For businesses with high concurrency and widely varying request complexity, a combination of edge and cloud can be considered. The approach is to route high-frequency, simple image-text recognition requests to a local lightweight model and forward complex long-tail visual Q&A requests to a general cloud model service. This can control costs while ensuring the processing quality of complex requests.

    When using hybrid deployment, the following mechanisms should be designed at the same time:

    • Data masking: Before uploading to the cloud, remove sensitive information from images, such as faces, ID numbers, and internal identifiers.
    • Access isolation: Set separate access credentials for the local model and the cloud API, following the principle of least privilege.
    • Compliance review: Confirm whether cross-border data transfer, retention periods, and third-party service terms comply with applicable industry and regional regulations.
    • Log management: Record routing decisions and call logs, but avoid storing raw sensitive data in logs.

    4. Building a Standardized Private Evaluation Workflow

    Benchmark scores detached from business scenarios have limited reference value. Developers should build a repeatable private evaluation process based on their own data.

    Define Metrics First

    Before evaluation, the calculation rules for each metric should be clarified so that conclusions do not become incomparable due to different definitions:

    • Accuracy: The proportion of model outputs that match annotated answers under agreed rules. For open-ended descriptions, matching rules should be defined in advance, such as recall of key entities.
    • Hallucination rate: The proportion of samples whose output contains objects, attributes, or text that do not exist in the image.
    • Detail richness: Can be measured by coverage of key terms; a glossary should be established in advance.
    • Time to first token and throughput: Record the time to return the first token and the number of requests completed per unit time separately.
    • Peak VRAM: Record peak VRAM usage during the entire inference process, not only static usage after loading.

    Standardize Data Annotation

    Test samples need a unified annotation specification. Annotators should work according to the same instruction document and mark uncertain samples. It is recommended that at least two people annotate independently and review disputed samples. Samples should cover various target scenarios, including images with poor lighting, unusual shooting angles, and blurred details, so that the test set does not contain only easily recognizable samples.

    Evaluation Script Example

    The pseudocode below shows the basic structure of an evaluation workflow. In actual use, it should be replaced with the specific interface of the inference engine being used.

    1. # Dependencies: Python 3.10+; pin the inference framework and its version in requirements.txt.
    2. # Store model files in an access-controlled directory to avoid exposing sensitive data in plaintext.
    3. import logging
    4. from dataclasses import dataclass
    5. logger = logging.getLogger("private_eval")
    6. @dataclass
    7. class Sample:
    8. image_path: str
    9. prompt: str
    10. reference: str
    11. def run_inference(engine, sample: Sample) -> str:
    12. """Call the local inference engine; on failure, raise an exception for the caller to handle."""
    13. with open(sample.image_path, "rb") as f:
    14. image_bytes = f.read()
    15. return engine.generate(image=image_bytes, prompt=sample.prompt)
    16. def evaluate(engine, dataset: list[Sample]) -> dict:
    17. results, failures = [], []
    18. for sample in dataset:
    19. try:
    20. prediction = run_inference(engine, sample)
    21. except (OSError, RuntimeError) as exc:
    22. # Record failed samples without interrupting the overall evaluation
    23. logger.warning("Sample failed: %s, error: %s", sample.image_path, exc)
    24. failures.append(sample.image_path)
    25. continue
    26. results.append({
    27. "accuracy": check_accuracy(prediction, sample.reference),
    28. "detail_richness": calc_term_coverage(prediction),
    29. "hallucination": detect_hallucination(prediction, sample.image_path),
    30. })
    31. return {
    32. "metrics": aggregate(results),
    33. "failed_count": len(failures),
    34. "failed_samples": failures,
    35. }

    The check_accuracy, calc_term_coverage, detect_hallucination, and aggregate functions in the example need to be implemented according to the metric definitions above. Images and annotations in the evaluation set are business data; access should be restricted, and they should be handled according to data management policies after evaluation.

    Review Failed Samples

    Each evaluation should retain failed samples and low-scoring samples, and a review table should be filled in with the following information: sample ID, failure type (recognition error, hallucination, timeout, or crash), possible cause (image quality, prompt design, quantization loss, or framework issue), and action taken. Review results can guide subsequent prompt optimization, quantization adjustments, and test set expansion.

    5. Common Mistakes and Precautions

    • Quantization accuracy loss: INT4 quantization can significantly save VRAM but may cause accuracy degradation on fine-grained recognition tasks. Before selection, compare results before and after quantization on the same test set.
    • Long context causing VRAM spikes: As context length grows, KV cache grows quickly. If the business involves long documents or multi-image input, peak VRAM should be measured separately.
    • Visual hallucination: Models may describe details that do not exist in the image, especially in professional scenarios such as cultural relic recognition. Manual review or validation rules should be set for professional terminology output.
    • Data compliance: When private data is processed locally, internal data classification policies still apply. When cloud calls are involved, data masking and compliance review should be completed first.
    • Mismatch between benchmarks and real tests: Leaderboard scores are usually based on specific datasets and settings and differ from business scenarios. Selection conclusions should be based on private evaluation results.

    6. Conclusion

    Selecting on-device multimodal models should not rely only on parameter count or leaderboard scores. Based on the tests and analysis in this article, lightweight models can already meet most everyday needs for routine logical reasoning and math tasks. In complex visual recognition scenarios, cross-modal alignment quality and visual encoder design often affect results more than parameter scale alone.

    For practical selection, proceed in the following order: first clarify the business priority between visual accuracy and response speed, then estimate the feasible model size and quantization method based on VRAM and memory bandwidth, and finally verify the conclusion with a standardized private evaluation workflow. A model selected this way is more likely to run stably on the target hardware and business data.