How to Evaluate and Select Open-Source Multimodal Models: A Practical Methodology

    The assumption that "parameter count equals capability" is breaking down. New-generation open-source multimodal models ship as a family of sizes and architectures, from on-device small models to ~30B dense models and Mixture-of-Experts (MoE) variants. This article presents a practical framework for reading a model lineup, designing trustworthy evaluations, and turning evaluation results into deployment decisions. It covers memory and compute estimation for dense versus MoE architectures, how to read cross-generation benchmark gains, common pitfalls when comparing public scores, building a self-owned evaluation loop, and engineering concerns such as quantization, serving, and cloud deployment.

    Introduction: The Era of “Parameter Count = Capability” Is Ending

    When a new generation of open-source multimodal models (models that accept text, images, audio, and other input types) is released, it usually arrives as a family: small models for on-device and edge hardware, ~30B-parameter dense models, models built on a Mixture-of-Experts (MoE) architecture, and two weight variants (pre-trained and instruction-tuned).

    A common first instinct is to “pick the one with the most parameters” or “check which model tops the leaderboard.” Both approaches fail today. Dense models and MoE models mean different things by “parameter count,” and leaderboard scores are heavily influenced by the evaluation protocol. This article lays out a practical evaluation framework centered on three questions: how to read a new-generation model lineup, how to design a trustworthy evaluation, and how to turn evaluation results into deployment decisions.

    1. Reading the Model Lineup: From “Comparing Sizes” to “Reading Architecture”

    1.1 Typical tiers: each size maps to a deployment boundary

    New-generation open-source multimodal model families can be roughly split into three tiers:

    Tier Size characteristics Typical deployment boundary Selection focus
    Edge / on-device Sub-billion small models (e.g., 2B, 4B) On-device inference on phones, PCs, dev boards Memory footprint, power draw, accuracy loss after quantization
    Dense workhorse ~30B parameters Single- or multi-GPU private deployment VRAM needs, ecosystem maturity, fine-tuning cost
    MoE Total params similar to or even lower than the dense workhorse; only a small subset activated per token Latency-sensitive, high-concurrency services Balance of VRAM and compute, engineering complexity of expert parallelism

    One detail worth noting in this generation: MoE models’ total parameter count does not exceed that of the dense workhorse; it is actually slightly lower. This shows that MoE’s value proposition has shifted from “stacking parameters for performance” to “using sparse activation to reduce per-token inference compute.”

    The release format is also standardizing: pre-trained weights suit continued pre-training or domain adaptation, while instruction-tuned weights suit direct dialogue and downstream fine-tuning; multilingual support commonly spans over a hundred languages; and context windows commonly reach the hundreds of thousands of tokens.

    1.2 Dispelling a myth: why aggregate leaderboards can’t replace evaluation

    Some new-generation models have reached the global top three among open-source models on aggregate arena leaderboards, behind another open-source model from a Chinese team. Some evaluations also show that certain flagship open-source models can already match or exceed systems with more than ten times their parameter count on a range of tasks. This means the linear assumption that “parameter scale determines capability” is breaking down, driven mainly by three changes:

    • Data quality and training methods: stricter corpus filtering, rejection-sampling fine-tuning, and reinforcement-learning post-training aimed at reasoning let the same parameter count deliver more capability.
    • Sparse activation: MoE expands knowledge capacity while keeping the compute per token under control.
    • Inference optimization: quantization, speculative decoding, KV Cache (key-value cache) reuse, and similar techniques are gradually decoupling nominal parameter count from “effective serving capacity.”

    But leaderboard rankings also can’t be treated directly as a selection decision. Arena leaderboards based on human preference voting are typically influenced by answer style, formatting, and prompt differences, and they barely reflect real multimodal performance on images, video, and documents. Rankings are good for gauging trends, not for making the final call.

    2. Choosing the Architecture: Dense or MoE? Run the Numbers on Three Costs First

    The industry generally agrees that a model’s core compute is roughly proportional to the number of parameters involved in computing each token. For a dense model, that value is the full parameter count; for MoE, it is only the activated portion of the experts. So selection requires accounting for three costs at once: compute, memory bandwidth, and memory capacity.

    2.1 Memory estimation: weights and KV Cache must be counted together

    1. def weight_mem_gb(total_params_b: float, bits_per_weight: int) -> float:
    2. """Estimate weight memory (GiB): total params × bytes per weight"""
    3. return total_params_b * bits_per_weight / 8 / 1024
    4. def kv_cache_gb(layers: int, kv_heads: int, head_dim: int,
    5. seq_len: int, batch: int, bytes_per_elem: int = 2) -> float:
    6. """Estimate KV Cache (GiB). General form:
    7. An MoE model's KV Cache structure is similar to a dense model of the same size;
    8. its memory advantage comes mainly from the weights, not from the cache.
    9. Low-rank compression schemes like MLA change this formula.
    10. KV Cache ≈ 2 × layers × KV heads × head dim × seq_len × batch × bytes per element
    11. """
    12. return 2 * layers * kv_heads * head_dim * seq_len * batch * bytes_per_elem / (1024 ** 3)
    13. # A 30B dense model and a MoE model with 26B total params have nearly equal weight size at INT4
    14. print(f"Dense 30B (INT4): {weight_mem_gb(30, 4):.1f} GiB")
    15. print(f"MoE 26B (INT4): {weight_mem_gb(26, 4):.1f} GiB")
    16. # Output: Dense 30B (INT4): 14.6 GiB; MoE 26B (INT4): 12.7 GiB
    17. # Example: 48 layers, 8 KV heads per query group (GQA), head dim 128
    18. print(f"32K context, 8 concurrent (BF16): {kv_cache_gb(48, 8, 128, 32768, 8):.1f} GiB")
    19. # Output: 32K context, 8 concurrent (BF16): 48.0 GiB

    A few takeaways:

    1. Limited weight difference: at 4-bit quantization, a ~30B dense model and a MoE model with 26B total parameters differ in weight size by only about 2 GiB, so their memory thresholds are close.
    2. Long context amplifies cache overhead: under a standard, uncompressed multi-head attention implementation, a 48-layer model at 32K context and 8 concurrent requests can reach roughly 48 GiB of KV Cache, clearly exceeding the weights themselves. In real deployments, grouped-query attention (GQA), paged KV cache management, and KV Cache quantization can greatly shrink this overhead.
    3. MoE’s advantage must be seen as a pair: MoE activates few parameters per token, so compute cost is low, but all expert weights must still reside in VRAM or main memory. At small batch sizes, inference is often bound by memory bandwidth, and the bandwidth needed to read weights is determined by total parameter count, so MoE’s bandwidth pressure is not small. At large batch sizes, compute becomes the bottleneck, and that is where sparse activation pays off. In addition, multi-GPU deployment using expert parallelism requires frequent all-to-all communication, which places higher demands on inter-GPU and inter-node networks.

    Selection conclusion: if you want controllable single-instance memory, a mature ecosystem, and simple fine-tuning, prioritize dense models; if you want a low per-token cost under high concurrency and have the engineering capability, evaluate MoE.

    3. Reading Benchmark Scores: “Cross-Generation Leaps” Are More Informative Than Absolute Numbers

    3.1 Benchmark composition: four capabilities, four rulers

    To measure this generation of flagship open-source models, people typically look at four general benchmark categories:

    • General knowledge and reasoning benchmarks: test breadth and overall reasoning.
    • Competition-level math benchmarks: presented as proof problems with dynamically updated questions, offering strong resistance to contamination and mainly testing multi-step reasoning.
    • Code benchmarks: automatically generate tests from real repository issues, testing engineering-grade coding ability.
    • Graduate-level science QA benchmarks: multiple-choice questions written by experts, testing depth of understanding in specialized fields.

    Add multimodal benchmarks aimed at image understanding, document parsing, and similar tasks, and you get five dimensions: “knowledge, math, code, science, and multimodal.” A typical result for this generation’s workhorse size is scoring around the 80-point mark across general knowledge, math, code, and science QA. This shows capability gains are structural, not driven by a single category.

    3.2 The real signal: the leap relative to the previous generation

    More informative than absolute scores is the cross-generation comparison within the same model family. Using the ~30B dense model from the previous generation as a reference, the two generations line up as follows:

    Benchmark dimension Previous gen (~27B dense) New gen dense (~31B) New gen MoE (26B total / 4B active)
    General knowledge & reasoning 67.6% 85.2% 82.6%
    Competition-level math 20.8% 89.2% 88.3%
    Real-repo code 29.1% 80.0% 77.1%
    Graduate-level science QA 42.4% 84.3% 82.3%

    (Data taken from the original evaluation material, used only to illustrate the trend; refer to the corresponding model card and your own test results for actual values.)

    Three takeaways:

    • Gaps closed: the previous generation, despite having more parameters, was clearly weaker in math and code; the new generation is balanced across the board, showing that the post-training stage (instruction tuning, RL for reasoning, and so on) contributes a great deal to reasoning ability.
    • MoE closely approaches dense: with only ~4B active, MoE trails the dense version by only about 2 points on general knowledge and science QA, and by just 1 to 3 points on math and code. MoE’s “capability discount” is now small.
    • Parameters are no longer sufficient: the new-gen MoE has fewer total parameters yet substantially surpasses the previous-gen model with larger scale.

    3.3 The coordinate-chart view: evaluation is fundamentally about finding the Pareto frontier

    Official charts often plot an “effectiveness vs. size” coordinate chart, where closer to the top-left is better. Once you plot different models on the same chart, you typically find that:

    • the previous generation’s flagship models are comprehensively outperformed by the new generation’s workhorse models;
    • a “crossover point” appears between the new-gen flagship and the previous-gen models with more parameters.

    That crossover point changes the decision logic: in the past, you only settled for a smaller model when memory or cost was constrained; now the new-generation workhorse models are already “good enough and cheaper” on mainstream tasks. So when you draw your own coordinate chart, replace the horizontal axis with a metric that carries more business meaning, such as “cost per thousand calls” or “P95 first-token latency,” use your own evaluation-set score on the vertical axis, mark the Pareto frontier directly, and then make the decision.

    4. Evaluation Credibility: Making Data Reproducible

    4.1 Two big pitfalls in horizontal comparison

    • Evaluation protocol differences: model cards vary in prompt templates, number of examples, sampling parameters, answer-extraction rules, and whether a “thinking mode” is enabled, so directly comparing public scores easily distorts results. A model allowed a longer reasoning process usually gains a clear advantage on math and code benchmarks. Before cross-model comparison, you must fix the thinking budget and decoding parameters, or report them separately.
    • Benchmark contamination and saturation: public benchmarks may have leaked into training sets through corpus scraping, synthetic data, and similar means. At the same time, commonly used benchmarks are gradually approaching saturation, where fluctuations on a few questions can change the rankings. The response is to introduce dynamically updated, harder new-version benchmarks, backed by manual spot checks.

    4.2 Must-test dimensions: long context and multilingual, often overlooked

    • Long context is about “effective length”: a nominal 256K context does not mean information at any position is effectively used. A common industry “needle in a haystack” test embeds key information at random positions in long text to see whether the model can accurately recall it. It’s recommended to also design “cross-passage synthesis” tasks, such as aggregating data scattered across multiple parts of a long document.
    • Multilingual is about “quality per unit cost”: multilingual scores in mainstream evaluations often come from machine-translated questions and differ from real business corpora. It’s recommended to evaluate content quality, average output length, and cost per thousand tokens separately per target language.

    5. From Evaluation to Deployment: Building Your Own Evaluation Loop

    Public scores can only narrow down the candidate set; the final decision must rely on a self-built evaluation system. It’s recommended to proceed in three layers:

    1. Offline regression: run a fixed evaluation set every time you switch models or inference configurations, to prevent capability regression.
    2. Scenario evaluation: sample 200 to 1000 questions built from real business, covering typical tasks like visual QA, document extraction, and multi-turn dialogue, and report stratified statistics by difficulty, language, and input modality.
    3. Online canary and A/B experiments: use task success rate, human or automatic scoring, P95 latency, cost per call, and refusal rate as decision metrics.

    Below is an illustrative evaluation framework. Both the inference interface and the scoring logic are injected as functions, making it easy to adapt to different inference services and judge models:

    1. import time
    2. from concurrent.futures import ThreadPoolExecutor, as_completed
    3. from dataclasses import dataclass, field
    4. @dataclass
    5. class Case:
    6. id: str
    7. kind: str # image / doc / dialogue / multilingual
    8. prompt: str
    9. assets: list[str] = field(default_factory=list) # paths to images or docs in object storage
    10. reference: str = "" # if non-empty, use rule-based scoring
    11. difficulty: str = "normal" # easy / normal / hard, for stratified stats
    12. def eval_one(case: Case, infer, judge) -> dict:
    13. started = time.perf_counter()
    14. output = infer(case) # adapter layer: calls your own inference service
    15. latency = time.perf_counter() - started
    16. if case.reference:
    17. # Rule-based scoring: for tasks with a standard answer, such as extraction or classification
    18. score = float(case.reference.strip() in output)
    19. else:
    20. # Judge-model scoring: fix the rubric, and de-bias for irrelevant factors like output length or formatting
    21. score = judge(case, output)
    22. return {"id": case.id, "kind": case.kind, "difficulty": case.difficulty,
    23. "score": score, "latency": latency}
    24. def eval_batch(cases: list[Case], infer, judge, workers: int = 8) -> dict:
    25. records = []
    26. with ThreadPoolExecutor(max_workers=workers) as pool:
    27. futures = [pool.submit(eval_one, c, infer, judge) for c in cases]
    28. for fut in as_completed(futures):
    29. records.append(fut.result())
    30. # Aggregate by task type and difficulty so the overall average doesn't hide local weak spots
    31. report = {}
    32. for r in records:
    33. for key in (f"kind={r['kind']}", f"difficulty={r['difficulty']}", "overall"):
    34. bucket = report.setdefault(key, {"n": 0, "score": 0.0, "latencies": []})
    35. bucket["n"] += 1
    36. bucket["score"] += r["score"]
    37. bucket["latencies"].append(r["latency"])
    38. for bucket in report.values():
    39. bucket["score"] /= bucket["n"]
    40. bucket["latencies"].sort()
    41. p95_idx = int(len(bucket["latencies"]) * 0.95)
    42. bucket["p95_latency"] = bucket["latencies"][min(p95_idx, len(bucket["latencies"]) - 1)]
    43. del bucket["latencies"]
    44. return report

    Supporting mechanisms:

    • Dataset versioning and anti-contamination: the evaluation set never enters any training corpus, and some questions are rotated regularly.
    • Inference observability: track input and output token counts, first-token latency, throughput, and error rate as the basis for capacity planning.
    • Cost model: convert both token cost and hardware-amortized cost into a unified “cost per thousand successful calls.”

    6. Engineering Deployment: Quantization, Serving, and Cloud Deployment

    6.1 Quantization route and accuracy regression

    On-device and edge scenarios usually choose quantization at 4 bits or below to trade accuracy for smaller memory footprint and faster inference. But multimodal models are more sensitive to quantization: changes in input characteristics such as image resolution, number of tiles, and audio duration can all amplify accuracy loss, especially on tasks like OCR (optical character recognition), chart understanding, and fine-grained visual QA.

    The recommended approach is “quantize first, then regress”: compare the score gap before and after quantization on your own evaluation set, set an acceptable threshold (for example, no more than a 1-to-2-point drop on core tasks), and evaluate separately by task type.

    6.2 Serving and elasticity

    Multimodal inference has highly variable resource consumption; within a single request, text, images, and audio are intertwined, making compute demand hard to predict. It’s recommended to deploy inference services as containers, set a reasonable batching window based on VRAM usage and request length, and then use autoscaling to handle peaks. Meanwhile, non-real-time tasks (such as batch document parsing) can be made asynchronous via a message queue, using compute in staggered windows alongside online requests.

    6.3 Cloud component division

    Cloud capability (general category) Use in evaluation and deployment
    Object storage Store pre-trained / instruction-tuned weights, evaluation images and docs, archive results
    Container platform Deploy inference services and evaluation jobs with on-demand autoscaling
    Message queue Decouple batch multimodal parsing jobs from online inference
    Logging service Record requests, model versions, and scoring details to support issue tracing
    Monitoring & alerting Track latency, error rate, GPU utilization, and token consumption

    When deploying on Baidu AI Cloud, this division of labor can be carried by the general product capabilities above: object storage suits storing model weights and evaluation data, the container platform suits elastic deployment of inference services, and the logging service plus monitoring and alerting are used to continuously track inference quality and resource usage.

    6.4 Security and compliance

    Bidirectional input/output filtering, sensitive-information masking, inference-chain auditing, and encryption plus access control for data such as images and audio in storage and transmission should all be completed before going live.

    Conclusion: The Selection Decision Checklist

    1. Look at architecture, not total parameters: first determine the compute demand from active parameters and the memory demand from total parameters, then choose dense or MoE.
    2. Do the full accounting: weight memory and KV Cache must be counted together, especially for long-context scenarios.
    3. Read the generational curve: cross-generation comparison within the same family reflects the capability trend better than a single-point score.
    4. Don’t trust a single leaderboard: fix the evaluation protocol, watch for benchmark saturation and contamination, and use an “effectiveness vs. cost” chart to locate the Pareto frontier.
    5. Build your own loop: progress in three layers — offline regression, scenario evaluation, and online canary — turning conclusions into reproducible evaluation assets.