An Overview of Mainstream Large Language Model Architectures and Parameter Scales
This article provides a comprehensive overview of mainstream Large Language Model (LLM) architectures and their parameter scales. It explores the industry's shift toward a "one architecture, multiple specifications" approach, delving into the foundational Decoder-only Transformer structure, the differences between dense and Mixture of Experts (MoE) models, and the tiered logic behind parameter scaling. Additionally, it offers practical estimation examples and deployment selection guidelines for developers and engineers.
1. The Industry Landscape: From Monolithic Models to Systematic Variants
Recent technical surveys of the industry reveal that mainstream LLMs can be broadly categorized by vendor families, with each series further divided into base, lite, and flagship versions. This indicates that modern LLMs have entered a systematic era of “one architecture, multiple specifications.” Vendors no longer release just a single model; instead, they derive variants with different parameter scales, context lengths, and inference costs from the same foundational technology to cover deployment scenarios ranging from edge devices to massive cloud clusters.
This article strips away specific product information to answer two questions from a general technical perspective: What exactly is the structure of modern LLMs, and what is the scale of their parameters?
2. Foundation Architecture: The Dominance of the Transformer
Almost all current LLMs are based on the Decoder-only Transformer structure. Its core components include:
- Token Embedding and Output Projection Layers: Map tokens to high-dimensional vectors. The dimensionality typically ranges from 2048 to 16384, with deeper models utilizing larger dimensions.
- Stacked Transformer Blocks: Mainstream models feature 30 to over 100 layers. Each layer consists of an attention module and a Feed-Forward Network (FFN), combined with residual connections and normalization (currently, RMSNorm and Pre-Norm structures are widely adopted to stabilize deep training).
- Positional Encoding: Evolved from early absolute positional encodings to Rotary Positional Embeddings (RoPE). Extrapolation or interpolation techniques are used to extend the context window to tens of thousands or even millions of tokens.
- Attention Mechanism Variants:
- Multi-Query Attention (MQA) / Grouped-Query Attention (GQA): Significantly compresses the memory footprint of the KV Cache during inference, becoming the mainstream choice for large-scale models.
- Hybrid Design of Sliding Window and Global Attention: Balances performance and efficiency in long-context scenarios. Some models also introduce linear or sparse attention mechanisms to reduce the quadratic complexity of long sequences.
3. Dense vs. Sparse: Two Parameter Organization Paradigms
3.1 Dense Models
In dense models, every token passes through all parameters. Their advantages include training stability, structural simplicity, and strong ecosystem compatibility; the trade-off is that inference cost correlates linearly with the total parameter count. Typical parameter scales for dense models include:
- Lightweight (1B–10B): Suitable for edge and on-device deployment.
- Mid-size (10B–70B): The primary choice for open-source ecosystems and enterprise private deployments.
- Heavyweight (70B–200B+): Generally requires multi-GPU or even multi-node inference.
3.2 Mixture of Experts (MoE) Models
MoE has been a leading trend among top-tier LLMs in recent years. Its core idea is to replace the FFN with multiple “expert” subnetworks, with a router dynamically activating only a few experts for each token. This introduces two key concepts:
- Total Parameters: Determines the model’s knowledge capacity. Leading models have reached hundreds of billions to over a trillion (T) parameters.
- Activated Parameters: The parameters actually involved in computation for each token, typically accounting for only 5%–15% of the total. For example, a model with a trillion total parameters may only activate tens of billions of parameters.
This “large capacity, low activation” design allows the model to absorb vast amounts of knowledge during training while keeping the computational cost of a single inference at the level of a mid-to-small dense model. The trade-offs include high memory consumption and engineering complexity related to expert load balancing and routing stability, which is why MoE is primarily seen in flagship and sub-flagship models from top vendors.
4. The Evolution Logic of Parameter Scales
From the cataloged model matrix, a clear tiering strategy can be summarized:
- Flagship Tier (Hundreds of billions to T-level total params, predominantly MoE): Aims for maximum capability, handling complex reasoning, code generation, and agentic tasks. Deployed on large-scale cloud clusters.
- Mainstream Tier (70B–300B): Balances performance and cost, carrying the vast majority of API calls and private deployment needs.
- Lightweight Tier (1B–30B): Focuses on low latency and cost, often featuring naming conventions like “Flash / Lite / Mini.” Used for high-concurrency online services, edge devices, and real-time interaction scenarios.
It is worth noting that activated parameters, rather than total parameters, determine inference FLOPs. Meanwhile, the KV Cache size is determined by the number of layers, heads, and context length, which explains the widespread adoption of GQA and hybrid attention.
5. A Simple Scale Estimation Example
Taking a dense Transformer as an example, the parameter count can be roughly estimated as:
Total parameters ≈ 12 × layers × hidden_dimension²For example: layers=80, hidden_dimension=8192Total parameters ≈ 12 × 80 × 8192² ≈ 64B
The memory required for training (accounting for mixed precision and optimizer states) is typically 16 to 20 times the byte size of the parameter count. That is, fully training a 64B model requires over 1TB of memory. This explains why large-scale training universally relies on distributed strategies like ZeRO partitioning, pipeline parallelism, and tensor parallelism.
6. Model Selection and Practical Recommendations
- Evaluate inference costs based on activated parameters rather than total parameters.
- Pay attention to context windows and attention mechanisms. For long documents or codebase scenarios, prioritize architectures that support efficient long contexts.
- Confirm deployment resources: MoE models require a larger memory pool, while mid-to-small dense models are better suited for single-node or single-GPU scenarios.
- Utilize quantization techniques (INT8/INT4) to further compress deployment costs with controllable precision loss.
7. Conclusion
Structurally, modern LLMs have highly converged on the Decoder-only Transformer. Differentiation primarily lies in the combination of attention variants, MoE designs, and tiered parameter scales. Understanding the mapping between “total parameters—activated parameters—memory—latency” is a core competency for developers in model selection, cost evaluation, and architectural evolution, and will continue to accompany the advancement of LLM technologies.
