Choosing and Deploying Open-Source LLMs in Multiple Sizes: A Practical Evaluation Guide
This guide explains how to evaluate and deploy open-source large language models released in multiple sizes. It covers five evaluation dimensions, the design differences between dense, mixture-of-experts, and on-device models, capability consistency across sizes, routing and deployment practices, and a three-layer testing approach based on latency, cost, and token efficiency.
1. Build the Right Framework Before Evaluating Multi-Size Open Models
When a family of open-source LLMs is released in multiple sizes, the most common mistake is judging it by a single benchmark score or by marketing claims about the largest variant. A more rigorous approach treats each model as a capability component that engineering systems will consume. Assess it along five dimensions:
- Parameter efficiency: Whether the parameter count matches the effective capability, how many parameters are actually activated during inference, and whether techniques such as sparse activation, layered embeddings, or quantization reduce the cost per request.
- Size coverage: Whether the family covers high-precision server deployment, low-latency interactive use, and on-device or edge hardware. This avoids maintaining several technology stacks for different scenarios.
- Capability consistency: Whether different sizes share key capabilities such as multimodal input, long context, function calling, structured output, multilingual support, and code generation, or whether only the largest model has full capability.
- Deployment cost: Whether memory use, throughput, latency, batching efficiency, quantization loss, and long-context cost are under control.
- Evaluation credibility: Whether public leaderboards, third-party evaluations, internal regression sets, and real business A/B tests corroborate each other. Pay particular attention to token efficiency and cost per task.
Only by evaluating “can it run” separately from “does it run economically, stably, and maintainably” can you reach a conclusion that reflects real-world use.
2. Design Logic of Multi-Size Families: Dense, Mixture-of-Experts, and Effective Parameters
Multi-size open models are usually not simply shrunken versions of the same model. Each size makes different structural trade-offs for its deployment boundary. Common approaches include:
- Dense architecture: All parameters are activated for each inference. Behavior is stable and the implementation is simple, which suits high-precision tasks, offline batch processing, code generation, and complex reasoning. The cost is higher memory and compute use.
- Mixture-of-experts (MoE) architecture: The total parameter count is large, but each inference activates only some experts. This can lower latency and raise throughput in interactive scenarios. The engineering challenges are routing stability, load balancing, batching efficiency, and memory management.
- Small on-device models: Smaller effective parameter counts, layered embedding tables, or lookup-style embedding designs reduce memory and power use on phones, IoT devices, and edge boards. Effective parameters are not the same as total parameters. Evaluate the actual activated parameters, resident memory, time to first token, and sustained inference power draw.
A key concept is “effective parameters.” A small model may keep a large embedding table for fast lookup, while its decoder layers use far fewer parameters in computation. For developers, what affects the experience is the activated parameter count, memory bandwidth, and operator support, not the total parameter count on a product page. When selecting a model, ask the publisher or evaluator for quantized figures on memory use, throughput, latency, and accuracy retention.
3. Capability Assessment: Unified Capabilities Matter More Than Single-Point Strengths
How well a multi-size model works in practice depends largely on whether its smaller variants can handle the same types of tasks. Check these capabilities:
- Multimodal input: Confirm native image and video understanding, and whether smaller variants also support audio and speech recognition. For on-device visual inspection, video summarization, or voice interaction, validate the preprocessing pipeline, frame sampling strategy, and cost of long videos.
- Long context: A longer context window is not automatically better. Focus on effective recall, position extrapolation stability, KV cache memory use, and cost per token. Build separate regression sets for long-document question answering, codebase understanding, and log analysis.
- Agent workflows: Native function calling, structured JSON output, and system instruction following are the foundation for deploying AI agents. Test multi-turn tool calls, retries after parameter validation failures, the cost of repairing malformed JSON, and the risk of unauthorized calls.
- Multilingual support: Native multilingual ability affects translation, customer support, and cross-lingual retrieval. Do not judge by the number of languages alone. Check factual consistency and terminology stability in low-resource languages.
- Code generation: Offline coding assistants need attention to completion latency, repository-level context, unit test pass rates, and license compliance. On-device code models should also be evaluated for completion quality after quantization.
From a usage standpoint, unified capabilities substantially reduce maintenance cost. The same prompts, tool protocols, and evaluation sets can be reused across sizes, and the routing layer only needs to switch models based on device, latency, and cost.
4. Deployment and Usage: Route by Scenario Instead of Using One Model for Everything
When deploying, treat model sizes as service tiers rather than hardcoding model names into business code. An illustrative routing logic looks like this:
# Pseudocode: select a model variant based on request characteristicsdef choose_variant(req):if req.device == "edge" and req.latency_budget_ms < 200:return "small-effective-param"if req.batch_size >= 8 and req.task in {"batch summarization", "offline code generation"}:return "dense-high-accuracy"if req.mode == "interactive" and req.cost_sensitive:return "moe-sparse-activation"return "balanced-default"
In real use, focus on the following:
- Time to first token and throughput: Interactive scenarios depend on time to first token, while offline workloads depend on total throughput. For MoE models, check whether expert load stays balanced under batching.
- Quantization strategy: On-device and cost-sensitive deployments often use low-bit quantization, but monitor accuracy regression, especially for structured output and function calling.
- Long-context cost: As the context window grows, the KV cache and attention computation add significant memory pressure. Use summarization, retrieval, or segmented caching to manage it.
- Service delivery and observability: On general-purpose cloud platforms such as Baidu AI Cloud, you can combine container platforms, object storage, logging, and monitoring and alerting services to publish model services, roll out versions gradually, trace requests, and track costs. Keep sampled inputs and outputs, latency distributions, error codes, and token consumption metrics.
- Security and compliance: Apply parameter allowlists and permission checks to function calls, validate structured output against a schema, and remove sensitive data from offline datasets used with on-device models.
5. Evaluation Methods: Public Leaderboards Are Only a Starting Point
Public leaderboards are useful for initial screening, but they cannot replace evaluation on your own workloads. Build three layers of evaluation:
- General capability layer: Scientific reasoning, mathematics, code, multilingual, and multimodal understanding. Focus on token efficiency, not just accuracy.
- Task regression layer: Build fixed regression sets from real business samples that cover edge cases such as empty inputs, very long inputs, tool call failures, and malformed JSON.
- Cost and experience layer: Track cost per successful task, P95 latency, manual review rate, retry rate, and cache hit rate.
Be especially cautious of conclusions that a smaller model scores close to a larger one. Compare output token counts, reasoning steps, tool call counts, and the cost of failed retries. A model with slightly higher accuracy that consumes significantly more tokens may not be cheaper in practice.
6. Conclusion: Worth Watching, but Judge by Engineering Metrics
The value of a multi-size open-source LLM family lies not in one size posting a high score, but in whether a unified capability set covers server, interactive, and on-device scenarios. Sparse activation, layered embeddings, and quantization must turn parameter efficiency into measurable cost advantages. For developers and organizations, a sound evaluation approach is to first define boundaries for latency, throughput, accuracy, context length, and compliance. Then validate the routing strategy, quantization loss, and long-context cost through a small-scale, gradual rollout. If these metrics hold up on real business regression sets, the model family has strong selection value. Otherwise, decisions based only on release announcements or public leaderboards tend to underestimate engineering costs.
