MoE LLM Selection Guide: Parameters, Long Context, and Licensing
Selecting a Mixture of Experts (MoE) large language model requires looking beyond public leaderboards. This guide explores the critical factors for successful deployment, including differentiating total versus activated parameters, managing long context memory costs, interpreting evaluation scores, testing latency and instruction following, understanding licensing terms, and verifying hardware compatibility.
MoE LLM Selection Guide: Parameters, Long Context, and Licensing
When selecting a large language model (LLM), the most common approach is checking public leaderboards. However, leaderboards only reflect performance on public test sets and do not guarantee stable operation in your specific business scenario. What truly impacts deployment are parameter structure, context capability, licensing terms, and hardware adaptation.
This article uses a hypothetical MoE model to explain these metrics and how to verify them before going live. The numbers used are illustrative; always refer to official technical reports and model cards during actual selection.
1. Differentiating Total and Activated Parameters
MoE (Mixture of Experts) splits traditional dense feedforward networks into multiple parallel expert subnetworks. A gating network (router) selects only a few experts to participate in computation based on the features of each input token.
Consequently, MoE models feature two different parameter counts. The total parameter count determines the model’s knowledge capacity and how much weight memory is required for deployment. The activated parameter count determines the computation required per token, directly affecting inference speed and compute cost per call.
Suppose a model has 700B total parameters and about 35B activated parameters. The computation for a single token is close to a 35B dense model, but deployment still requires memory for 700B weights. Calculating weights alone, BF16 requires about 1400GB, INT8 about 700GB, and INT4 about 350GB. These figures do not include KV Cache, activations, or framework overhead. Thus, the deployment cost of an MoE model is typically dictated by memory, not by activated parameters.
When selecting a model, also verify the following engineering parameters:
- Capacity factor: Limits the number of tokens an expert can process in a single batch. Setting it too low drops tokens, while setting it too high wastes memory and compute.
- Load balancing strategy: Prevents a few experts from being frequently called while others sit idle. Strategy details affect model stability across different tasks.
- Expert parallelism communication overhead: When experts are distributed across multiple GPUs, tokens must be passed between cards. Insufficient inter-node bandwidth can make communication a latency bottleneck.
2. Long Context: Capability and Memory Cost
Million-level context windows allow models to ingest long financial reports, complete code repositories, or multiple contracts at once. Standard self-attention computation grows quadratically with sequence length, so long-context models typically employ sparse attention, linear attention, or information compression. Check official technical reports for specific implementations and precision loss.
The memory cost of long context mainly comes from the KV Cache. The KV Cache for a single sequence can be estimated using the following formula:
KV Cache bytes = 2 * num_layers * num_kv_heads * head_dim * context_length * bytes_per_value
The coefficient 2 represents the two caches for Key and Value. Using an example configuration: 80 layers, 8 KV heads, 128 head dimension, 128K context length, and BF16 precision (2 bytes per value), the calculation is 2 * 80 * 8 * 128 * 131072 * 2, resulting in about 43GB. This number only illustrates the formula’s usage and does not represent any real model. During actual selection, recalculate using the model’s published layers, KV heads, and dimensions, then multiply by the concurrency level to get total memory requirements.
Whether the context can fit into memory and whether the model can accurately use the information within it are two different things. A common recall testing method is “needle in a haystack”: placing a fact at different depths within texts of varying lengths, asking the model to extract it, and measuring accuracy across different length and depth combinations. Many models perform weaker on middle-segment information than at the beginning or end, so tests must cover the middle section.
Long context is suitable for global understanding tasks, such as cross-file code analysis or comprehensive Q&A over long documents. If a task only requires locating a specific paragraph, Retrieval-Augmented Generation (RAG) is usually cheaper and easier to control.
3. How to Read Evaluation Scores
When reading leaderboards, first record the following information: evaluation name and version, evaluation date, baseline models compared, score calculation methodology, and original links. Rankings missing this information should not serve as a basis for selection.
Public leaderboards have another limitation: what enterprises truly need is the model’s performance on their own business data. It is recommended to compile at least 200 real samples covering main task types and typical failure cases to build an internal evaluation set, then test all candidate models using the same method. For each sample, record the following fields: task type, input source, ground truth or judgment rule, pass criteria, and failure reason.
4. Focus on Testing Latency and Instruction Following
Inference latency: During long text generation, decoding speed is affected by memory bandwidth and expert communication. Tests should fix input and output lengths, recording Time To First Token (TTFT) and tokens per second (tokens/s) separately, and repeat measurements under different concurrency levels. Reports should provide percentiles of multiple results rather than a single best score.
Multi-step instruction following: Models may skip intermediate steps or misunderstand constraints. Test sets can be designed with multi-step instructions, such as “extract data, organize in a specified format, and respond with a fixed tone,” then track whether all steps are satisfied. If the pass rate falls below acceptable business levels, you can break down steps in the system prompt or add a result validation phase.
Common acceleration and compression techniques also have applicable conditions. Quantization reduces memory usage but causes precision loss, which needs to be confirmed against the internal evaluation set. The speedup effect of Speculative Decoding depends on the acceptance rate between the draft model and the target model. If the acceptance rate is low, the speedup ratio may approach 1, and extra overhead might even slow it down. Any acceleration multiplier must specify the model version, batch size, sequence length, hardware, and framework version, otherwise it cannot be reproduced.
5. Licensing: Code and Weights Should Be Reviewed Separately
The MIT license allows the use, copying, modification, merging, publishing, distribution, sublicensing, and selling of software. It requires retaining copyright and license notices but does not require open-sourcing derivative code.
This license usually applies to code repositories. Whether model weights are subject to the same terms depends on the model card and the LICENSE file in the repository, and there may be additional clauses. Before going live, check the following:
- Whether the license for the weight files is MIT, or if there are additional restrictions.
- Training data sources and usage restrictions, and whether output content might involve third-party copyrights.
- Whether there are labeling or notification obligations when providing API services externally.
- If using LoRA fine-tuning, whether the fine-tuning data contains sensitive customer information, and whether storage and processing comply with internal policies and local regulations.
Doing LoRA fine-tuning locally with your own data can reduce data transmission. However, this does not automatically satisfy compliance requirements; legal and security teams still need to review it.
When replacing an existing model, migration costs must also be evaluated. Different models may have different prompt formats, Tokenizers, tool-calling formats, and output structures, requiring corresponding adjustments to business code. It is recommended to evaluate the new model as a candidate solution in parallel rather than replacing it directly.
6. Verification Checklist for Alternative Hardware Platforms
When a vendor claims a model supports a specific alternative computing chip, it only means the model can run on that platform. Whether performance, stability, and precision match the reference platform requires separate verification. Before going live, test each item according to the table below and obtain written confirmation from both the model vendor and the hardware platform regarding the adaptation scope.
| Check Item | Verification Method | Reference Pass Standard |
|---|---|---|
| Operator coverage | Run the full inference process, record errors and operators falling back to CPU | No CPU fallback on the critical path |
| Compute precision | Compare outputs of the same batch of samples on the reference platform and the target platform | Business metric degradation is within acceptable limits |
