LLM Selection Guide: How to Choose Architecture, Capabilities, and Deployment

    This guide provides a practical framework for narrowing down large language model candidates based on business requirements, budget, and deployment constraints. It explains the tradeoffs between dense models and MoE sparse activation, distinguishes general-purpose, reasoning-specialized, and distilled models, and covers multimodal input, long-context serving costs, open-source licensing, inference frameworks, and enterprise deployment concerns such as Kubernetes resource allocation, storage, and monitoring. It also highlights where benchmark scores can be misleading and why final validation must use your own business data.

    1. Introduction

    There are three common pitfalls in large language model selection. The first is treating parameter count as direct proof of capability. The second is treating leaderboard scores as business results. The third is ignoring deployment conditions and discovering only at launch that GPU memory is insufficient.

    This article does not recommend specific brands. It explains the technical principles, costs, and evaluation methods involved. After reading it, you should be able to narrow the candidate range according to business requirements, budget, and deployment environment, and understand which parts must be tested with your own data.

    2. Architecture: Dense Models vs. MoE Sparse Activation

    Many open-source large models use a Mixture of Experts (MoE) architecture. The model contains multiple expert subnetworks, and a gating network selects only a few experts to participate in computation for each token. As a result, the total parameter count of the model is much larger than the number of parameters actually activated during a single inference pass.

    This design has two benefits:

    1. Higher computational efficiency. A single forward pass involves only the activated parameters, so higher concurrent throughput can be supported under the same compute budget.
    2. Larger knowledge capacity. With more total parameters, experts can specialize and carry more knowledge, while inference cost remains lower than that of a dense model with the same total scale.

    The costs are also clear. The weights of all experts must remain resident in GPU memory, even though only a subset is used at a time. A MoE model with a large total parameter count usually cannot fit its full weights on a single machine, requiring tensor parallelism or pipeline parallelism, and cross-GPU communication also adds latency. When selecting a model, look at both “total parameters” and “activated parameters”; neither alone represents the real cost.

    Weight memory can be roughly estimated with the following formula:

    Weight memory (GB) ≈ parameter count (B) × bytes per parameter

    For example, BF16 uses 2 bytes per parameter. A model with 671B total parameters has about 1342 GB of weights. After INT8 quantization, this is about 671 GB; after INT4 quantization, about 336 GB. Actual usage also includes activations, framework overhead, and KV cache, so it is usually necessary to reserve at least 20% headroom. This estimate is only a starting point; final judgment should be based on actual measurements.

    3. Capability Differentiation: General Models, Reasoning-Specialized Models, and Distilled Models

    By design goal, models can be roughly divided into three categories.

    General foundation models aim for balanced performance on tasks such as common-sense question answering, text summarization, and translation. They respond relatively quickly, are suitable for everyday conversation, and can also serve as the base for retrieval-augmented generation (RAG) systems.

    Reasoning-specialized models use Chain of Thought (CoT) to improve performance on math competition problems, complex code, and multi-step planning tasks. However, CoT greatly increases the number of output tokens, and time to first token (TTFT) and total latency rise accordingly. Using a reasoning model for simple question answering is usually a waste of cost.

    On-device distilled models transfer the capabilities of larger models to smaller models such as 7B or 14B. They have lower deployment barriers and can run on consumer-grade GPUs, but they are usually weaker than large models on complex reasoning and long-tail knowledge.

    When looking at model evaluation scores, first check the evaluation setup. Question versions, sampling temperature, and whether tool calls are allowed can all significantly affect results. Numbers from different sources cannot be compared directly. The most reliable approach is to evaluate with a sample set from your own business.

    4. Modality Expansion and Long Context

    Multimodal input: More models now support combined input of text, images, and video. The model uses a visual encoder to convert images or video frames into vectors, then aligns them with the language model. This capability applies to scenarios such as image understanding, video content moderation, and industrial quality inspection. Video input produces a large number of visual tokens, and cost and latency grow quickly, so frame extraction or resolution reduction is usually needed first.

    Long context: Context windows have expanded from early 8K and 32K to 128K, and some models support even longer windows. Long windows are suitable for analyzing lengthy financial reports, large codebases, or long meeting transcripts, but there are two things to note.

    First, KV cache memory grows approximately linearly with context length. It also depends on batch size, number of layers, and number of KV heads, and is a major source of memory pressure in long-context serving.

    Second, the complexity of attention computation depends on the specific implementation. Sparse attention can reduce the computation required for long sequences, but the speedup varies greatly across implementations. Supporting long context does not mean inference speed is unaffected.

    In addition, window length does not equal understanding quality. Model recall for information in the middle of long text is often lower than for the beginning and end. Key information should be placed in prominent positions in the prompt, and retrieval should be used to narrow the input range where possible.

    5. Open-Source Licenses and Deployment Frameworks

    Licenses: Common open-source licenses include MIT, Apache 2.0, and various custom model licenses. MIT and Apache 2.0 generally allow commercial use, modification, and distribution, but model licenses may include additional terms, such as user-count limits, prohibitions on specific uses, or attribution requirements. Before commercial use, read the license text clause by clause rather than relying only on the license name.

    Deployment frameworks:

    • Large MoE models usually use high-throughput inference frameworks that support features such as PagedAttention, continuous batching, and tensor parallelism.
    • 7B and 14B distilled models can run on laptops or consumer-grade GPUs with lightweight inference tools, making them suitable for individual development and offline scenarios.
    • Some top-tier reasoning models are available only through API calls and do not support private deployment. If the business requires data not to leave its domain, “can it be privately deployed” should be a hard requirement.

    Inference framework versions and model versions need to be matched. Before upgrading, validate in a test environment.

    6. Enterprise Deployment: Containers, Storage, and Monitoring

    Container orchestration: You can use managed Kubernetes from major cloud providers or a self-built cluster, allocate GPUs through GPU device plugins, and combine this with autoscaling to handle traffic fluctuations. GPU count should be requested precisely according to the model’s memory requirements, not estimated by rule of thumb.

    Storage and data flow: Model weights often reach hundreds of GB, requiring high-bandwidth object storage and local caching to avoid the network becoming a bottleneck when multiple nodes pull the same weights at the same time. Intermediate images and videos generated during multimodal processing can be handled asynchronously through message queues, decoupling inference from frontend requests.

    End-to-end monitoring: Reasoning-specialized models may generate very long chains of thought, and latency can vary widely between requests. Focus on monitoring GPU utilization, memory usage, KV cache usage, request queue time, time to first token, and P99 latency. When long-tail latency appears, check batching configuration and maximum generation length first.

    The following is an illustrative Kubernetes Deployment fragment to show the structure of resource declarations. It is not directly usable in production; the image address, model path, GPU count, and parameter names all need to be replaced according to the actual framework and hardware.

    1. apiVersion: apps/v1
    2. kind: Deployment
    3. metadata:
    4. name: llm-inference
    5. labels:
    6. app: llm-inference
    7. spec:
    8. replicas: 1
    9. selector:
    10. matchLabels:
    11. app: llm-inference
    12. template:
    13. metadata:
    14. labels:
    15. app: llm-inference
    16. spec:
    17. containers:
    18. - name: inference-engine
    19. image: registry.example.com/llm-serving:<pinned-version>
    20. command: ["serve"]
    21. args:
    22. - "--model"
    23. - "/models/your-model"
    24. - "--quantization"
    25. - "int4"
    26. - "--tensor-parallel-size"
    27. - "8"
    28. - "--max-model-len"
    29. - "32768"
    30. ports:
    31. - containerPort: 8000
    32. resources:
    33. limits:
    34. nvidia.com/