LLM Architecture: Six Years of Evolution from Early Open-Source Models to Modern Open-Weight Models

    This article examines how large language model architecture has evolved over the past six years, using a recent pair of open-weight models as a reference point. It compares early open-source models with modern designs across overall architecture (MoE, RoPE, GQA, sliding window attention, RMSNorm), deployment optimization through 4-bit quantization that enables hundred-billion-parameter models to run on a single high-end GPU, and the trade-offs between wide-shallow and narrow-deep design philosophies. Developers will gain practical guidance on evaluating active parameters, managing KV cache, applying quantization, and selecting architectures for different scenarios.

    LLM Architecture: Six Years of Evolution from Early Open-Source Models to Modern Open-Weight Models

    1. Why This Evolution Path Is Worth Revisiting

    An international research organization recently released two open-weight large language models (with parameter scales of roughly one hundred billion and twenty billion), marking the first time it has reopened model weights since releasing an early open-source language model six years ago. These two models embody nearly every major technical breakthrough in the LLM field over the past six years, and thanks to clever quantization techniques, the larger one can even run on a single high-end consumer or data center GPU.

    Comparing the classic open-source model from six years ago with today’s open-weight models is like taking apart two generations of engines: the外壳 looks similar, but the internals have been completely redesigned. This article proceeds in the order of overall architecture, key components, deployment optimization, and design trade-offs.

    2. Overall Architecture: From Dense Transformers to Mixture-of-Experts

    2.1 Same Skeleton, New Internals

    The classic open-source model from six years ago established the basic paradigm of nearly all modern LLMs: stacked Transformer decoder layers plus autoregressive generation. That skeleton remains unchanged, but every core component has been iterated upon.

    Component Early Classic Model Modern Open-Weight Model
    Feed-forward network Dense MLP Mixture-of-Experts (MoE)
    Positional encoding Learned absolute positions Rotary Position Embedding (RoPE)
    Attention mechanism Multi-Head Attention (MHA) Grouped-Query Attention (GQA) + sliding window
    Normalization LayerNorm (post-norm) RMSNorm (pre-norm)
    Activation function GELU SwiGLU-style variants

    2.2 Mixture-of-Experts (MoE): Trading Sparse Activation for Capacity

    The biggest structural change in modern open-weight models is replacing each layer’s dense feed-forward network with a mixture-of-experts layer. Taking the roughly 20B-parameter model as an example, each layer contains dozens of expert networks, but each token is routed to only a few of them (e.g., Top-4). This means:

    • Large total parameter count: high model capacity, able to store more knowledge;
    • Small active parameter count: each forward pass only engages a small fraction of parameters (e.g., around two billion), yielding fast inference and low compute overhead in memory.

    This “large total, small active” sparse design is now the standard way mainstream LLMs balance capability against cost. Routing is typically handled by a small linear gating network that independently selects experts per token and then produces a weighted sum of expert outputs.

    2.3 Positional Encoding and Context Length

    Early models used learned absolute position embeddings, with context length hard-coded into the model structure and difficult to extrapolate. Modern models generally adopt Rotary Position Embedding (RoPE), which applies position-dependent rotational transformations to the query and key vectors in attention, so attention scores naturally carry relative position information. Combined with techniques like interpolation or base frequency adjustment, context windows can be extended to tens of thousands or even over one hundred thousand tokens.

    2.4 Attention Efficiency Optimizations

    Modern architectures make two key improvements to attention:

    1. Grouped-Query Attention (GQA): multiple query heads share the same set of key-value heads, significantly shrinking the KV cache and directly reducing memory usage and bandwidth pressure during long-context inference.
    2. Sliding window attention: some layers attend only to a limited number of nearby tokens (e.g., 128), alternating with global attention layers. This saves further memory with almost no quality loss, continuing the sparse attention ideas from long-sequence research.

    3. Deployment Optimization: Low-Precision Quantization Puts a 100B Model on a Single GPU

    Another notable technique in the new generation of open-weight models is 4-bit microscaling floating-point quantization applied to the MoE layer weights. The core idea of this format is to pair a shared scaling factor with an extremely low bit width per value, dramatically compressing storage while preserving the ability to represent the numerical distribution.

    Its engineering value includes:

    • Dramatically lower memory footprint: after quantizing the expert weights of a hundred-billion-parameter model, the overall size can be compressed to roughly the 60–80 GB range, fitting into a single accelerator card with 80 GB of memory;
    • Inference bandwidth gains: LLM inference is typically memory-bandwidth-bound, so halving weight size can theoretically nearly double throughput;
    • Controllable accuracy loss: quantization is applied only to the expert weights, which account for the largest parameter share, while sensitive modules like attention remain at higher precision, keeping overall capability loss minimal.

    For developers, this means a model that once belonged in data centers can now be experimented with, fine-tuned, and extended on a local workstation or even a high-end personal device, greatly lowering the barrier to research and deployment. For private enterprise deployments, teams can also combine general-purpose cloud infrastructure capabilities—container platforms, monitoring and alerting—to build low-cost inference services.

    4. Width vs. Depth: Two Mainstream Design Philosophies

    Comparing the newly released open-weight models with another mainstream open-source model in the industry reveals two sharply different architectural philosophies:

    • Wide and shallow: fewer layers (e.g., around thirty), but wider hidden dimensions per layer and more experts. Advantages include higher parallelism and lower per-step inference latency, making it better suited for high-concurrency online services;
    • Narrow and deep: more layers (e.g., nearly one hundred), with relatively narrower hidden dimensions. Deeper stacking is believed to favor complex reasoning and multi-step compositional abilities, but the increased number of sequential compute steps raises inference latency.

    From a training perspective, deep models have longer gradient propagation paths and place higher demands on the stability of normalization and residual connections; wide models demand more memory capacity and per-step compute. There is currently no consensus on an optimal design—the two approaches trade wins in public benchmarks, and the practical choice often depends on target hardware, concurrency scenarios, and latency budgets.

    5. Practical Takeaways for Developers

    1. Focus on active parameters, not total parameters: when evaluating deployment cost, an MoE model’s per-forward-pass compute is determined by its active parameters. Don’t treat total parameter count as a direct measure of inference cost.
    2. KV cache is the first bottleneck for long context: prefer architectures with GQA and sliding window mechanisms, and enable paged KV cache management in your inference framework.
    3. Quantization is the key to localization: 4-bit-level quantization has become the standard approach for running large-weight models locally. Prioritize quantizing feed-forward/expert weights while protecting attention layer precision.
    4. Architecture selection should serve the scenario: high-concurrency online services favor wide and shallow designs, while complex reasoning tasks may benefit from deeper models. Engineering delivery can then build on general-purpose cloud platform capabilities such as object storage, elastic compute, and logging services.

    6. Conclusion

    From the classic open-source model of six years ago to today’s open-weight models, LLM evolution has not been a disruptive revolution but a stack of solid engineering improvements: sparsity for capacity, rotary encoding for length, grouped attention for efficiency, and low-bit quantization for accessibility. Understanding these “key building blocks” has more long-term value than chasing any single model release—because the next generation of models will, in all likelihood, still be assembled from these same pieces.