Selecting Open-Source Multimodal Large Models: Capability Evaluation and Deployment Strategies

    This article explores a systematic approach to selecting open-source multimodal large models for real-world business applications. It covers five core capabilities—multimodal input, long context, function calling, structured output, and deployment efficiency—alongside architecture selection (Dense vs. MoE), evaluation data interpretation, custom evaluation pipeline setup, and deployment paths. By following this framework, developers and technical teams can make informed decisions based on their specific business requirements and hardware constraints rather than relying solely on general benchmark rankings.

    1. Background: Model Competition Enters the Usability Phase

    In the past, evaluating a large language model primarily meant looking at its ranking on comprehensive leaderboards. As models transition into real-world business applications, a single score is no longer sufficient to support decision-making. Teams are more concerned with whether the model can comprehend images and documents, retrieve key information from long texts, stably call external tools, output formats required by downstream programs, and how fast and cost-effective it is on target hardware.

    Therefore, the release of open-source models typically covers several categories of capabilities simultaneously: multimodal input, long context windows, function calling, structured output, adaptation for agentic workflows, and local/edge deployment. These capabilities collectively determine whether a model can be truly implemented. This article uses these categories as the main thread to provide a selection methodology ranging from capability understanding to deployment verification.

    2. Five Core Capabilities Determining Usability

    2.1 Multimodal Input

    Multimodal models can simultaneously process text and images, with some also supporting video frames or audio. For businesses, the key question is the actual coverage of image inputs. Common scenarios include receipt recognition, screenshot Q&A, chart comprehension, and UI analysis.

    When selecting a model, pay attention to three points. First, images are converted into a certain number of visual tokens; higher resolution consumes more context and computational resources. Second, text-dense images (such as tables and small-font documents) require higher visual encoding capabilities from the model and should be tested separately. Third, whether the order and reference relationships of multi-image inputs are correctly understood needs to be verified with real-world samples.

    2.2 Long Context

    Long context refers to the input length a model can process at one time. As the window expands, the model can directly read entire contracts, long technical documents, or multi-turn historical conversations. However, window size does not equate to effective utilization capability. The information recall for positions in the middle of a long text is typically weaker than at the beginning and end, a phenomenon widely discussed in the industry.

    In practice, you can verify this using a “needle in a haystack” test: embed a fact at different positions in a long text and then ask the model to retrieve it. Additionally, you must calculate the cost; as input length grows, the time-to-first-token latency and VRAM usage will significantly increase.

    2.3 Function Calling and Tool Usage

    Function calling allows the model to select tools based on user intent and generate call requests according to predefined parameter structures. After the program executes the tool, it returns the result to the model for continued reasoning. This is the foundation for building agentic workflows.

    During implementation, note: tool descriptions must be clear, and parameter types strictly constrained; parameters generated by the model must be programmatically validated and not executed directly; irreversible operations like deletions, transfers, or sending messages should include a human-in-the-loop confirmation step.

    2.4 Structured Output

    Downstream systems typically require data in JSON or fixed fields. If the model outputs natural language, the program requires additional parsing, leading to higher error rates. A more reliable approach is to provide explicit field definitions in the prompt and use JSON Schema to validate the model output. If validation fails, you can prompt the model to retry with the error information, setting a maximum retry limit before routing to a manual processing queue.

    2.5 Deployment Form and Inference Cost

    The deployment form directly dictates the cost structure. Edge deployment requires no network and keeps data on-device but is constrained by memory and compute power. Server-side deployment offers high throughput and unified management but requires bearing GPU and operational costs. During model selection, the deployment environment must be a prerequisite, not an afterthought.

    3. Architecture Selection: Dense vs. Mixture of Experts (MoE)

    Open-source models commonly feature two architectures.

    Dimension Dense Model Mixture of Experts (MoE) Model
    Computation Method Every token passes through all parameters Each token activates only a subset of experts
    Single Inference Compute Proportional to total parameter count Related to activated parameters, typically lower
    VRAM Usage Only needs to hold all parameters Needs to hold all expert parameters
    Deployment Complexity Lower Higher, requires attention to routing and load balancing
    Suitable Scenarios Small to medium scale, latency-sensitive, simple deployment High-throughput services, balancing quality and cost

    Note that while MoE models may have a large total parameter count, they only compute a fraction during each inference. This means lower computational cost, but it does not mean lower VRAM requirements. You should estimate computational and VRAM resources separately during selection.

    3.1 VRAM Estimation Method

    The VRAM usage for model weights can be estimated using the following empirical formula:

    VRAM (weights) ≈ Parameter count × Bytes per parameter

    At common precisions, FP16 or BF16 takes 2 bytes per parameter, INT8 takes 1 byte, and INT4 takes approximately 0.5 bytes. Taking a 7-billion parameter model as an example, FP16 weights require about 14 GB, while INT4 quantization requires about 3.5 GB. Actual runtime also requires KV cache and operational overhead; the more concurrent requests, the larger the KV cache footprint.

    4. How to Read Model Evaluation Data

    Evaluation scores in model cards are important references, but direct cross-comparisons can be error-prone. Common evaluations can be divided into four categories: general knowledge, mathematical reasoning, code generation, and scientific Q&A. Each category reflects different capabilities and cannot be replaced by a single total score.

    When using evaluation data, note the following points:

    1. Consistency of evaluation settings. The number of few-shot examples, prompt templates, decoding temperature, and whether tool calling is allowed will significantly affect scores. Use identical settings when comparing.
    2. Potential data leakage. If training data includes evaluation questions, scores will be artificially inflated. A more reliable approach is to use an additional private or recently generated test set.
    3. Versions and time. Different versions of the same model, quantization versions, and inference framework versions may perform differently. Record version numbers to reproduce conclusions.
    4. Meaning of generational comparison. A large score gap between old and new models usually indicates an overall capability improvement, but you cannot directly infer the magnitude of improvement on your own business tasks.

    Conclusions should be based on your own data. Public scores are suitable for narrowing down candidates, but final decisions require validation on real tasks.

    5. Establishing a Custom Evaluation Pipeline

    A reusable evaluation pipeline typically includes four steps: collecting samples, defining standards, executing tests, and analyzing results.

    5.1 Samples and Standards

    Samples should cover the main types of real business scenarios while retaining some edge cases. Each sample requires clear judging criteria. For open-ended answers, you can design scoring rubrics; for structured outputs, programs can automatically determine if the format and fields are correct.

    5.2 Core Metrics

    It is recommended to record at least the following metrics:

    • Task accuracy: Whether the output meets business requirements.
    • Format compliance rate: Whether structured outputs pass validation.
    • Latency: Time to first token and overall response time; P50 and P95 statistics are recommended.
    • Cost: Input/output token count and corresponding cost per request.
    • Rejection and error rate: The proportion of model refusals or timeout failures.

    5.3 Example Code

    The following code demonstrates a general evaluation framework. The generation function can be replaced with any model’s calling method, making it easy to reuse the same test set across different models.

    1. import time
    2. from dataclasses import dataclass
    3. from typing import Callable
    4. @dataclass
    5. class EvalCase:
    6. prompt: str
    7. expected: str
    8. def run_eval(
    9. generate: Callable[[str], str],
    10. cases: list[EvalCase],
    11. checker: Callable[[str, str], bool],
    12. ) -> dict:
    13. passed = 0
    14. latencies = []
    15. for case in cases:
    16. start = time.perf_counter()
    17. output = generate(case.prompt)
    18. latencies.append(time.perf_counter() - start)
    19. if checker(output, case.expected):
    20. passed += 1
    21. latencies.sort()
    22. p95_index = min(len(latencies) - 1, int(len(latencies) * 0.95))
    23. return {
    24. "accuracy": passed / len(cases),
    25. "p50_latency_s": round(latencies[len(latencies) // 2], 3),
    26. "p95_latency_s": round(latencies[p95_index], 3),
    27. }

    For structured outputs, you can use the following validation function to determine if the model’s returned content is valid JSON and contains required fields:

    1. import json
    2. def check_json_fields(output: str, required_fields: list[str]) -> bool:
    3. try:
    4. data = json.loads(output)
    5. except json.JSONDecodeError:
    6. return False
    7. if not isinstance(data, dict):
    8. return False
    9. return all(field in data for field in required_fields)

    6. Implementation Key Points for Multimodal and Structured Output

    The key to multimodal tasks lies in input control. Images should be uniformly scaled to an appropriate resolution before entering the model to avoid wasting costs on excessive resolution. For text-dense images, you can first perform regional cropping and then feed them into the model separately to improve recognition accuracy.

    The key to structured output is closing the loop. The recommended workflow is: generate, validate, retry on failure, log. Logs should save the original input, model output, validation results, and retry count to facilitate subsequent analysis of which sample types the model struggles with.

    The key to function calling is permission boundaries. The tool layer should perform parameter whitelist validation, rate limiting, and permission checks. The model can suggest calls, but the final execution right should be controlled by program logic or a human.

    7. Deployment Path Selection

    7.1 Edge and Local Deployment

    Models with parameter scales in the billions can run on newer smartphones, laptops, or small workstations after quantization. Edge deployment offers low latency and keeps data on-device, making it suitable for privacy-sensitive scenarios. The main limitations are memory capacity and power consumption. During selection, first confirm the available memory of the target device, then choose the corresponding parameter scale and quantization precision.

    7.2 Server-Side Deployment

    Server-side deployment requires attention to the following issues:

    • Batching and concurrency: A reasonable batch size can improve throughput but will increase the wait time for individual requests.
    • KV cache management: Long contexts and high concurrency rapidly consume VRAM, requiring limits on maximum context length and concurrency.
    • Elastic scaling: Adjust instance numbers based on request volume to avoid idle waste.
    • Monitoring and alerting: Set alert thresholds for latency, error rates, VRAM utilization, and queue length.

    Infrastructure can be implemented using general-purpose components, such as container platforms for deployment orchestration, object storage for evaluation datasets and logs, and logging/monitoring services for observability and alerting.

    7.3 Security and Compliance

    Regardless of where it is deployed, several basic principles should be followed. User input requires length limits and basic filtering; model outputs need validation before entering downstream systems; sensitive data should be kept within the intranet based on compliance requirements; to mitigate prompt injection risks, external document content should be treated as data rather than instructions, and the range of tools the model can call should be restricted.

    8. Model Selection Decision Process

    It is recommended to make decisions in the following order:

    1. Clarify business tasks and input types, such as pure text, mixed text and images, or long documents.
    2. Determine the deployment environment and hardware budget, calculating acceptable VRAM and latency limits.
    3. Filter candidate models based on these limits, prioritizing versions that match parameter scale and architecture type.
    4. Test candidate models with your custom evaluation set for accuracy, format compliance rate, latency, and cost.
    5. Select the most cost-effective model and perform canary testing in a low-traffic environment.
    6. Continuously monitor post-launch and periodically conduct regression testing with new samples.

    9. Common Pitfalls

    • Only looking at comprehensive rankings. Comprehensive scores cannot reflect performance on specific business tasks; task-level metrics should be the standard.
    • Ignoring long context costs. As the window lengthens, latency and VRAM consumption increase simultaneously; input length should be controlled during actual use.
    • Ignoring the impact of quantization. Quantization significantly reduces VRAM requirements but may affect mathematical reasoning and long text comprehension; re-evaluate after quantization.
    • Treating MoE as a VRAM-saving solution. MoE reduces per-inference computation, but weights still need to be fully loaded.
    • Skipping the validation step. Letting model outputs directly enter business systems easily causes data errors or security risks.

    Conclusion

    The selection of open-source large models should start from business needs—first defining capability requirements and deployment constraints, then validating with your own data. Public evaluation scores can help narrow the scope, but they cannot replace actual testing. Establishing a stable evaluation pipeline and validation mechanisms is far more effective for ensuring long-term model usability than chasing leaderboard rankings.