LLM Selection Guide: From Architecture and Context to Deployment
This article presents a practical workflow for selecting large language models by comparing dense and Mixture-of-Experts architectures, separating total from activated parameters, evaluating multimodal and long-context costs such as KV cache, interpreting benchmark scores correctly, and reviewing deployment compatibility including licenses and data compliance. It emphasizes validating vendor claims through real deployment measurements and task-specific test sets.
Introduction
Large language models are evolving quickly. Early mainstream models mostly used dense architectures, in which every parameter is invoked for each inference. In the past two years, Mixture-of-Experts (MoE) architectures, reasoning-specialized models, and multimodal models have emerged, making model selection more complex. Developers and enterprises now face questions beyond “which model is strongest”: inference cost, response latency, context handling capability, data compliance, and whether the team can maintain the system.
This article breaks down these differences along technical dimensions and concludes with a selection workflow that can be followed directly. It does not recommend specific vendors. All numbers are illustrative only; actual decisions should be based on vendor technical reports and your own measurements.
1. Mixture-of-Experts Architecture: Look at Total and Activated Parameters Separately
The core idea of MoE is parameter sparsity. The model contains many expert subnetworks, and each input activates only a subset of them. This allows the model to retain a very large total parameter count, and therefore greater knowledge capacity, while controlling the compute required for a single inference.
When selecting a model, distinguish between two numbers. The total parameter count determines storage footprint and the lower bound of VRAM requirements. The activated parameter count is closer to the compute cost of a single inference. In public materials, some leading models have total parameters at the trillion level and activate several billion parameters per inference. Other mid-to-large MoE models range from tens of billions to hundreds of billions of total parameters, with several billion activated. These are only common ranges; refer to vendor technical reports for specific figures.
Two points require attention. First, fewer activated parameters do not necessarily mean faster inference. Expert routing, cross-GPU communication, and memory movement can all become bottlenecks, so actual throughput must be measured in the deployment environment. Second, a large total parameter count still means sufficient VRAM must be provisioned, or techniques such as quantization and offloading must be used.
By contrast, distilled models in the 7B to 14B range have fewer parameters and can be deployed on a single GPU, making them suitable for scenarios sensitive to latency and hardware cost. Distilled models may approach the performance of larger models on specific tasks, but the gap is usually more obvious in open-ended knowledge, complex multi-step reasoning, and unfamiliar tasks. This should be validated with a test set.
2. Multimodal and Ultra-Long Context: Capability Boundaries and Memory Costs
1. Multimodal Input
Current models differ clearly in input modalities. Some models process text only and are usually specifically optimized for text understanding and generation. Others support text, images, and even video input. Multimodal capabilities have practical value in cross-media retrieval, video content understanding, and automated annotation, but two caveats apply. Different models vary greatly in supported modality types, resolution, and video length. Multimodal inference also places higher demands on scheduling heterogeneous compute resources, and latency and cost are usually higher. Before selection, confirm the input specifications of the exact model and version.
2. Context Length and KV Cache
The context window determines how much content a model can process at once. Many mainstream models currently have context windows between 128K and 256K, and some models support up to the million-token level through techniques such as position encoding extension. A larger window does not mean it must be filled every time.
The cost of long context comes mainly from two areas. The first is the VRAM used by the KV cache. With batch size, data precision, layer count, and attention head configuration fixed, KV cache VRAM is roughly linear with sequence length and can be estimated with the following rough formula:
Memory ≈ 2 × layers × KV heads × head dimension × sequence length × batch size × bytes per element
The second is attention computation. In the prefill phase, standard attention computation grows approximately quadratically with sequence length, so first-token latency for ultra-long input increases significantly. Optimizations such as sparse attention can reduce this overhead, but the actual benefit depends on the specific implementation and hardware and must be measured.
Deploying ultra-long context usually requires memory management, paged cache, or distributed cache solutions. For large numbers of long documents, you can also store the original text in object storage and use retrieval methods to send only relevant chunks to the model, reducing the length of one-time input.
3. Evaluation Benchmarks: Prerequisites for Reading Scores
Models cannot be evaluated by parameter count alone, nor by leaderboard ranking alone. Common evaluation types include:
- General knowledge and understanding: multi-subject multiple-choice benchmarks such as MMLU, used to measure basic common-sense question answering and reading comprehension.
- Mathematical reasoning: GSM8K, MATH, and harder competition problem sets, used to measure multi-step reasoning. Reasoning-specialized models using chain-of-thought usually perform better on such tasks because explicit reasoning steps are easier to inspect, but this does not fully eliminate hallucinations.
- Software engineering: benchmarks such as SWE-bench, based on repair tasks in real code repositories, used to evaluate multi-file editing and test-fixing capabilities.
When reading scores, verify several details: the benchmark version, whether the evaluation set was deduplicated or cleaned, the prompt template, sampling temperature, whether tool calls are allowed, and the source of the evaluation script. The same model can score very differently under different settings. If a report only states that a model “exceeds a certain percentage” without this information, the score should be treated as reference only and should not be used directly for procurement decisions.
Leaderboard scores also do not fully correspond to business outcomes. The quality of customer service Q&A depends on knowledge base coverage and response guidelines, while the quality of code generation depends on the team’s coding style and test coverage. The most reliable approach is to evaluate models on your own sample set.
