Evaluating and Using Large Language Models: A Practical Guide to Capabilities, MoE Architecture, and Deployment

    This article explains why the capabilities of large language models are hard to summarize in a single answer, and how to evaluate them systematically instead. It covers the Mixture of Experts (MoE) architecture, the distinction between total and activated parameters, a capability evaluation matrix spanning knowledge, reasoning, code, long context, structured output, safety, and engineering metrics, a four-layer optimization path from prompt engineering to RAG, fine-tuning, and inference deployment, and practical advice on model selection and production rollout.

    1. Why “How Good Is It?” Is Hard to Answer in One Sentence

    Questions like “How capable are the latest large language models, really?” show up constantly in developer communities. The reason they resist a one-sentence answer is that “capability” is not a single dimension. It is determined by several coupled subsystems:

    • The underlying network architecture sets the ceiling for parameter scale and compute efficiency.
    • Data quality and data mixture determine knowledge and language performance.
    • The training strategy (pretraining, supervised fine-tuning, preference alignment) determines instruction following and safety boundaries.
    • Inference-side factors such as context length, concurrent scheduling, and quantization determine engineering usability.
    • Peripheral capabilities such as tool calling, structured output, and long-document understanding determine which business workflows a model can fit into.

    So the right way to assess a model is not to ask “Is it strong?” but to break the question into verifiable sub-questions: How does it perform on your target language and domain corpus? Does it stay stable under long context? Is structured output (such as JSON) reliable? Do per-token cost and latency meet business requirements? Is private or dedicated deployment feasible? Only at this level of granularity does model selection become an engineering decision.

    2. The Technical Foundation: Mixture of Experts and Total vs. Activated Parameters

    Leading large models built in China commonly adopt the Mixture of Experts (MoE) architecture. The core idea: the network contains multiple parallel “expert” subnetworks, and a routing (gating) module dynamically selects a few experts to participate in computation for each token. The figures mentioned in the source material—roughly 671 billion total parameters with about 37 billion activated per token—are a typical signature of this architecture and the key to understanding both cost and capability.

    Two common misconceptions need clearing up:

    • Total parameters do not equal compute. MoE compute cost is driven mainly by activated parameters, so a very large total parameter count does not necessarily make inference expensive.
    • Activated parameters do not equal memory footprint. All expert weights must reside in (or be swapped into) GPU memory or system memory, so memory capacity planning should be based on total parameters, while compute and latency planning track activated parameters more closely.

    The routing logic can be abstracted schematically as:

    1. # Illustrates only the "sparse activation" idea of MoE; not any specific implementation
    2. def moe_forward(x, experts, router, top_k=2):
    3. logits = router(x) # score each expert
    4. idx = topk(logits, k=top_k) # select a few experts
    5. out = 0
    6. for i, gate in idx:
    7. out += gate * experts[i](x) # forward only through selected experts
    8. return out

    The engineering implication is direct: MoE decouples “parameter capacity” from “per-token compute cost,” at the price of higher memory pressure, uneven routing load, and increased communication complexity in distributed deployment.

    3. Breaking Down Capability: What to Test and How

    To answer “how capable is it,” build your own evaluation matrix rather than relying on scattered impressions.

    1. Knowledge and language: cover bilingual Chinese-English content, technical terminology, and knowledge cutoff boundaries. Note that every model’s parametric knowledge has a cutoff, so strongly time-sensitive scenarios must be backed by retrieval.
    2. Reasoning and math: chained reasoning, multi-step calculation, unit conversion, and logic-trap questions.
    3. Code capability: code completion, cross-file understanding, unit test generation, and defect localization. The industry typically optimizes code models as a separate branch, so they tend to be more reliable than general models in IDE-style scenarios.
    4. Long context: feed in a long document or a large block of logs, then check key-information retrieval and cross-section reasoning, watching for “lost in the middle” behavior.
    5. Structured output: whether it can reliably produce program-parseable JSON, and what the field-missing rate and format-validity rate are.
    6. Instruction following and safety: compliance rate under multi-constraint instructions, and refusal behavior for unauthorized or harmful requests.
    7. Engineering metrics: time to first token, throughput (tokens/s), jitter under concurrency, and per-token cost.

    A minimal reusable evaluation skeleton:

    1. cases = [
    2. {"name": "json_schema", "prompt": "Output strict JSON with name/age fields"},
    3. {"name": "long_ctx", "prompt": long_doc + "State the core conclusion of section 3"},
    4. {"name": "code_fix", "prompt": buggy_code + "Locate and fix the null pointer risk"},
    5. ]
    6. def run_eval(model_client, cases):
    7. report = {}
    8. for c in cases:
    9. r = model_client(c["prompt"])
    10. report[c["name"]] = {
    11. "latency_ms": r.latency_ms,
    12. "json_valid": is_valid_json(r.text), # applies to structured cases only
    13. }
    14. return report

    4. Four Layers of Optimization: From Usable to Good

    The first layer is prompt engineering. Specify the role, output format, and boundary conditions, turning vague requirements into decidable constraints; for structured scenarios, define the fields first and then provide examples.

    The second layer is retrieval-augmented generation (RAG). Chunk enterprise documents, tickets, and logs into a store, retrieve relevant pieces, and splice them into the context; this significantly mitigates stale knowledge and hallucination. The engineering focus is chunking granularity, hybrid retrieval (keyword plus vector), reranking, and citation traceability.

    The third layer is fine-tuning and preference alignment. When prompting and RAG still cannot reliably meet business definitions, use supervised fine-tuning to inject style and format, and preference alignment to converge toward output that better matches human expectations. The principle: if retrieval can solve it, do not fine-tune; if a small model can solve it, do not reach for a large one.

    The fourth layer is inference and deployment optimization. This includes quantization (reducing memory and bandwidth pressure), batching and continuous batch scheduling (improving throughput), KV cache reuse (cutting repeated-prefix overhead), and elastic autoscaling. If the business is sensitive to data leaving its environment, evaluate dedicated or private deployment, composing general cloud categories such as object storage, message queues, container platforms, logging services, and monitoring and alerting into a complete inference service chain.

    5. Selection and Production Recommendations

    • Start with a small blind test: use real business samples and double-blind comparison so demo effects do not mislead you.
    • Focus on total cost, not unit price: factor in retry rate, human review cost, and experience loss caused by latency.
    • Design a fallback strategy: fall back to a backup model or a rules engine when the primary model times out or errors.
    • Build observability: log prompts and responses, latency, and failure reasons to form a data loop for continuous iteration.
    • Define compliance boundaries: data classification, masking, and audit trails should be in place at the architecture design stage.

    Overall, the technical path represented by large-scale MoE models has already reached engineering usability in bilingual understanding, code generation, long context, and structured output. But real capability depends on whether you have built a quantified evaluation and continuous optimization mechanism around your business scenario. Make the evaluation solid and the retrieval and deployment chain stable, and model selection shifts from “heard it is strong” to “data proves it works.”