Modern LLM Architectures and Parameter Scales: Evolution and Engineering Considerations
This article reviews the architectural evolution of modern large language models, from attention and positional encoding optimizations to Mixture-of-Experts designs, and examines how parameter scale is segmented across ultra-large, medium, and lightweight models. It also discusses engineering selection considerations such as GPU memory and compute matching, inference framework optimization, and cloud-native deployment, providing a technical reference for developers and architects.
With the rapid development of natural language processing, large language models have become core infrastructure for enterprise intelligent transformation. For developers and enterprise architects, two dimensions often attract the most attention when evaluating a growing number of model releases: model architecture and parameter scale. This article sets aside specific product packaging and examines the architectural evolution and parameter distribution patterns of modern large language models from a general technical perspective, offering a reference for engineering practice.
1. Architectural Evolution of Modern Large Language Models
Almost all mainstream large language models are built on the Transformer architecture. After years of iteration, however, the original Transformer structure has undergone substantial changes to address the computational challenges brought by larger parameter scales and longer contexts.
1.1 Optimization of Attention Mechanisms and Positional Encoding
The original Transformer used absolute positional encoding, which made it difficult to handle sequences longer than those seen during training. Modern models generally adopt rotary position embeddings (RoPE) or similar positional extrapolation methods, enabling them to handle context lengths of hundreds of thousands or even millions of tokens. At the same time, to reduce memory footprint and computational complexity, Grouped-Query Attention (GQA) and Multi-Query Attention (MQA) are widely used. By sharing key and value heads, GQA significantly reduces the size of the KV cache while maintaining model performance, greatly improving inference throughput.
1.2 The Rise of Mixture-of-Experts Architectures
To overcome the compute bottlenecks associated with scaling dense models, Mixture-of-Experts (MoE) has become a mainstream choice for modern very large models. In an MoE architecture, feed-forward network layers are replaced by multiple parallel expert networks. During inference, router gating dynamically selects a small number of experts based on the features of the current token.
Mathematically, the MoE output can be approximated as:
Here, $G(x)_i$ is the weight assigned by the gating network to the $i$-th expert, and typically only the Top-K non-zero weights are retained. This sparse activation mechanism allows total model parameters to reach hundreds of billions or even trillions, while activated parameters per inference remain in the tens of billions. This balances high capacity with low latency.
2. Parameter Scale Tiers and Capability Profiles
Parameter scale directly determines a model’s capacity ceiling, but larger is not always better for every application. The industry commonly divides models into three tiers.
2.1 Ultra-Large and Hundred-Billion-Scale Models
These models typically possess strong capabilities in complex logical reasoning, multi-step planning, and cross-domain knowledge fusion. They often serve as general foundation models and are suitable for research assistance, complex data analysis, and highly challenging code generation. However, their deployment cost is high, usually requiring large high-bandwidth GPU memory clusters. Most enterprises find private deployment difficult and instead access such models through cloud APIs.
2.2 Medium-Scale Primary Models (Tens of Billions to Hundred Billion Parameters)
Models with roughly 70B to 100B parameters are currently a sweet spot for enterprise private deployment. After sufficient training on high-quality data, these models approach ultra-large models in performance on routine dialogue, document summarization, information extraction, and similar tasks. Their inference compute requirements can be met by a single machine with multiple GPUs, such as eight high-performance GPUs, offering strong cost-effectiveness.
2.3 On-Device and Lightweight Models (Billion-Scale and Below)
Models with 1B to 7B parameters focus on on-device inference and low-latency response. On phones, PCs, or IoT devices, they can enable real-time text proofreading, voice assistant interactions, and other functions while preserving privacy. With quantization techniques such as INT4 quantization, they can even run smoothly on consumer-grade hardware.
3. Engineering Selection Considerations for Architecture and Parameters
After understanding model structure and scale, the key challenge for enterprises is how to deploy these models in business systems.
3.1 Precise Matching of Compute and GPU Memory
The first step in model deployment is estimating GPU memory requirements. For large models, memory usage mainly comes from model weights and the KV cache. For example, a 70B parameter model in half precision requires about 140GB of memory for weights alone. Combined with the KV cache occupied by the context window, multi-GPU tensor parallelism is usually required. Developers need to calculate resource overhead precisely based on architectural characteristics such as whether the model uses MoE or GQA, avoiding resource waste or out-of-memory (OOM) errors.
3.2 Adaptation and Optimization of Inference Frameworks
Inference for modern large models is no longer a simple load-and-forward-pass operation; it depends on efficient inference engines. Mainstream open-source inference frameworks typically support techniques such as PagedAttention and continuous batching. For MoE models, it is also important to check whether the inference engine supports expert parallelism, ensuring efficient communication among multiple expert networks across GPUs.
3.3 Efficient Deployment with Cloud-Native Infrastructure
For organizations without large-scale compute reserves, public cloud infrastructure can be a practical option. For example, Baidu AI Cloud provides GPU container instances, object storage, and managed LLM services, offering a complete loop from model storage and elastic compute to an API gateway. Developers can store model weights in high-throughput object storage, launch container clusters on demand for inference, and use built-in monitoring and alerting to observe GPU utilization and request latency in real time, enabling on-demand scaling and cost control.
4. Conclusion and Outlook
Modern large language models are evolving toward better architectures and higher parameter density. Sparse architectures such as MoE break through the limits of compute growth, while GQA and long-context technologies make models more practical. In the future, as non-Transformer architectures such as linear attention mechanisms and state space models are explored, the marginal cost of model inference is likely to decrease further, and parameter efficiency may improve substantially. For developers, understanding the engineering implications of these underlying structures and parameter scales is essential for building the next generation of efficient AI applications.
