Multi-Size Open-Source LLMs: A Capability Matrix and Hands-On Evaluation

    A growing trend in open-source AI is releasing a model family that spans from edge-scale small models to large cloud models under a permissive license. This article examines, from a vendor-neutral technical perspective, the design trade-offs, real-world usage experience, evaluation methodology, and deployment recommendations for multi-size open-source model families—covering ~2B–4B edge models, a ~26B-total/~4B-active sparse MoE model, and a ~31B dense model—plus practical routing strategies, task-level metrics, and safety governance.

    1. What a Multi-Size Matrix Really Means: From “Single Best Point” to “Scenario Coverage”

    The first problem a multi-size release solves is the deployment boundary. Edge devices, on-device inference, single-machine services, and high-concurrency online services differ greatly in memory, compute, latency, and context-length requirements. When one family ships a ~2B model, a ~4B model, a sparse mixture-of-experts (MoE) model with ~26B total parameters but only ~4B activated per token, and a dense model with ~31B parameters, developers can build tiered deployments under the same prompt templates, structured-output conventions, and safety policies—reducing the cost of migrating between models.

    Second, a permissive open-source license significantly lowers integration barriers. Teams can more freely deploy locally, redistribute, and integrate commercially. But “open” does not mean “risk-free.” Open weights mean the integrator bears more responsibility for safety alignment, jailbreak resistance, output moderation, and tool-calling permission control. Public discussion has noted that jailbreak cases for such models appeared quickly after release. This is not surprising: the safety of an open model is never solved once and for all; it must be reinforced with system-level protections.

    2. Small-Model Experience: The First Choice for Lightweight Edge Tasks and Structured Output

    The ~2B and ~4B small models are the most noteworthy part of this multi-size matrix. Their goal is not to replace large models for complex reasoning, but to handle intent recognition, slot extraction, short dialogue, structured output, and lightweight tool calling in low-memory, low-latency, offline, or weak-network environments.

    Data published under specific conditions shows that the small models can run in roughly 1.5 GB of memory, and a lightweight workflow of about 4,000 input tokens spanning two tool calls can complete within a few seconds. On devices with around 6 GB of VRAM, the small models deliver friendly response speed and experience in structured-output and dialogue scenarios. Note that these numbers are affected by quantization, inference runtime, context length, batch size, and device thermal state, and should not be treated as stable performance across all environments.

    From an engineering perspective, small models are best suited to tasks that are “short-context, strongly formatted, and verifiable.” For example, converting user input into a fixed JSON structure that a business system then validates. We recommend a three-layer mechanism—constrained decoding, schema validation, and retry on failure—rather than fully trusting natural-language output. Pseudocode:

    1. function structured_call(input, schema):
    2. for attempt in 1..3:
    3. raw = small_model.generate(input, format_hint=schema)
    4. obj = parse_and_validate(raw, schema)
    5. if obj is valid:
    6. return obj
    7. return fallback_to_human_or_larger_model(input)

    The experience advantage of small models is that they are “fast enough, cheap enough, and offline-capable.” Their weaknesses are complex reasoning, long context, and open-domain knowledge. So do not treat an on-device small model as a general-purpose large model; instead, unlock its value through task decomposition, tool calling, and result verification.

    3. Sparse MoE vs. Dense Large Models: The Speed–Quality–Cost Triangle

    The sparse MoE model with ~26B total parameters and ~4B active is the most cost-effective form in the matrix. It retains knowledge capacity through large total parameters while reducing per-token compute through small activated parameters, striking a balance between speed and quality. Public tests show that under a long context of about 20,000 tokens, this class of model can reach roughly 1,000 tokens/s prefill and about 60 tokens/s decoding on high-end workstations with general-purpose inference runtimes. In standalone code-generation tasks it reaches about 135 tokens/s—close to a comparable sparse model with ~35B total and ~3B active parameters. However, subjective code-quality evaluation was relatively weak, showing that “fast generation” does not equal “high code correctness”; unit tests and static checks are still needed as a safety net.

    The dense model with ~31B parameters represents the quality ceiling: public preference scores are about 10 points higher than the sparse version, math benchmarks improve by about 1%, code generation by about 2–3%, and hard reasoning by about 1–2%. But the dense model computes all parameters per token, so generation is slower, long-chain thinking is less stable, context memory usage is higher, and hallucination risk is relatively greater. It is therefore better suited to offline hard reasoning, batch evaluation, or quality-critical and cost-insensitive tasks—not as the default online serving model.

    A practical routing strategy:

    1. function route(task):
    2. if task.is_structured or task.is_light_agent:
    3. return small_model
    4. if task.cost_sensitive and task.context_is_long:
    5. return sparse_model
    6. if task.is_hard_reasoning and task.offline_batch:
    7. return dense_model
    8. return sparse_model_with_fallback

    4. Don’t Rely on Leaderboards Alone: Build Task-Level Metrics

    When evaluating a multi-size model family, avoid relying solely on public preference leaderboards. A more reliable approach is to build a task set aligned with your business, fix prompt templates, quantization, temperature, and random seeds, and report the following metrics: structured-output success rate, tool-calling success rate, long-context recall, P50/P95 latency, throughput, peak memory, safety refusal rate, and jailbreak success rate. For code tasks, add compile pass rate, unit-test pass rate, and manual spot checks. For agent tasks, count cross-tool call steps, failure retries, and timeout rates.

    5. Deployment Recommendations and Safety Governance

    For lightweight edge agents, prefer the ~2B–4B small models combined with schema validation and a local tool whitelist. For general-purpose online services, prefer the sparse MoE model to achieve good throughput with low activated parameters. For hard reasoning, call the large dense model offline, but evaluate memory and latency costs. On the safety side, apply input/output filtering, least-privilege tool calling, audit logging, and secondary confirmation for sensitive operations. If you choose to deploy on Baidu AI Cloud, you can combine general service categories such as container platforms, object storage, logging, and monitoring/alerting to handle hosting, artifact management, and observability; refer to the official product documentation for specific configurations and billing.

    Overall, the greatest value of multi-size open-source models is “broad coverage, a friendly license, and edge usability”—but not every size leads across the board. Developers should treat model selection as a systems-engineering problem: use small models for high-frequency lightweight tasks, sparse models for general-purpose services, and dense models for offline hard problems, while ensuring a stable experience through reproducible evaluation and safety governance.