LLM Evolution: From Base Model Pretraining to AI Agents

    This article traces how large language models have evolved as a continuously improving series rather than isolated single products, moving through four stages: the foundational algorithm framework (2020–2021), 100B-class open-source base models (2022), instruction-tuned chat models and lightweight releases (2023), and long context, multimodality, and agents (2024 onward). It explains what each stage contributed technically, the real cost of long context windows, how to serve models reliably on general cloud infrastructure, and why a reproducible evaluation suite should drive model upgrades instead of chasing parameter counts.

    1. Why the “Series” View of LLMs Matters

    Large models rarely appear as isolated single products. The more common form is a continuously evolving series: the same algorithm framework and training paradigm are reused repeatedly, parameter counts scale up stage by stage, and capability boundaries expand from language understanding to multimodality and tool use. Observing at the series level makes three things visible: how the technical stack is reused, what triggers each capability jump, and how engineering cost changes with scale.

    From the public technical record, this evolution falls into roughly four stages.

    2. Stage One: Laying the Algorithmic Foundation (2020–2021)

    Early work was not about “bigger” but about establishing a reusable training paradigm. The core contributions of this stage cluster in three areas:

    • Autoregressive fill-in pretraining objective: unifying generation and understanding under a single objective, so one model can handle text completion, question answering, summarization, and more;
    • Position encoding and long-sequence modeling changes: leaving structural room for later context-length expansion;
    • Standardization of the training engineering stack: combinations of mixed precision, gradient accumulation, tensor parallelism, and pipeline parallelism made 10B-parameter-scale training a repeatable engineering process.

    Around 2021, 10B-class base models completed training, marking the point where mid-scale models could cover most general language tasks and became the direct foundation for later chat models.

    3. Stage Two: 100B-Class Base Models and Open Source (2022)

    Once scale crossed into the 100B-parameter range, capabilities changed qualitatively: few-shot learning, cross-lingual transfer, and the stability of complex reasoning all improved markedly. The defining event of this stage was the open-sourcing of a bilingual pretrained base model. The technical difficulty lay not in the parameter count itself but in:

    1. Corpus composition: the ratio of Chinese to English data, deduplication strategy, and quality tiering directly determine whether bilingual ability is balanced;
    2. Training stability: at 100B scale, loss spikes and attention logit overflow require systematic countermeasures;
    3. Inference cost: a 100B model cannot run on a single machine and GPU, so quantization, parallel sharding, and memory optimization are necessary.

    That same year, this class of models entered the mainstream large-model comparative evaluation reports organized by authoritative international institutions, becoming one of the few non-English-centric models selected, with accuracy and other key metrics approaching those of the world’s top models. This shows that public evaluation has become an important component of model credibility.

    4. Stage Three: Chat Model Iteration and Lightweight Distribution (2023)

    A base model can “continue text” but cannot “hold a conversation,” so the second stage inevitably moved toward instruction tuning and human feedback alignment:

    • First-generation chat model: supervised fine-tuning on the 100B base model, establishing an instruction-to-response mapping;
    • Lightweight open-source versions: compressing capability down to a scale that runs on consumer GPUs (such as the 6B-parameter class), reaching tens of millions of downloads worldwide and greatly lowering the barrier for research and teaching;
    • Two generational updates within half a year: by expanding instruction data diversity, improving alignment strategies, and strengthening long-text and code ability, a stable iteration rhythm was established.

    The engineering value of the lightweight route is that it made “reproducibility” real. Developers can complete inference validation, prompt engineering, and fine-tuning experiments locally, then decide whether to move to the cloud.

    5. Stage Four: Long Context, Multimodality, and Agents (2024 to Present)

    The capability focus of the new generation of base models has shifted in three directions:

    • Long context: context windows extended to the 128K level, so an entire manual or a full slice of a code repository can be provided in one pass;
    • Multimodal understanding: mixed text-and-image input has become a standard capability;
    • Agents: the model can autonomously call external tools such as web browsing and code interpreters, forming a “plan–call–observe–revise” loop.

    The following is a schematic tool-calling orchestration logic:

    1. def agent_loop(query, model, tools, max_steps=6):
    2. history = [{"role": "user", "content": query}]
    3. for _ in range(max_steps):
    4. resp = model.chat(history, tools=tools) # the model decides whether a tool is needed
    5. if resp.tool_calls is None:
    6. return resp.content # converged; return the final answer
    7. for call in resp.tool_calls:
    8. result = tools[call.name](**call.args) # execute the external tool
    9. history.append({"role": "tool",
    10. "content": str(result)[:4000]}) # truncate to control context
    11. history.append({"role": "assistant", "content": resp.content})
    12. return "Maximum steps reached; returning intermediate conclusions"

    This pseudocode highlights two engineering constraints that are often overlooked: the step limit prevents infinite loops, and tool result truncation prevents the context from being blown out by a single call.

    6. The Real Cost of Long Context

    A 128K window is not “free memory.” Attention computation grows quadratically with sequence length, while KV cache usage grows linearly. Common strategies in practice include:

    • Combining retrieval augmentation with long context, feeding only the necessary segments in full;
    • Hierarchical summarization, compressing history into structured key points;
    • Chunked parallel inference followed by merging the results.

    7. Deployment Essentials on General Cloud Resources

    Beyond model capability, stable service depends on a combination of general cloud capabilities: object storage for model weights and corpora, a container platform for elastic inference replicas and canary releases, a message queue to smooth out spikes and process batch requests, a logging service to retain call traces, and monitoring and alerting to track latency, failure rate, and GPU memory levels.

    For evaluation, it is advisable to maintain a fixed regression set covering four categories of metrics: accuracy, long-text recall, tool-call success rate, and refusal safety. Run it after every model or prompt change to avoid “upgrading by feel.”

    8. Conclusion

    From the algorithmic framework to 10B-class base models, from 100B open source to chat model iteration, and then to long context and agents, the evolution of the LLM series is essentially a dynamic balancing curve of capability, cost, and controllability. For developers, the rational approach is to first define task boundaries and a cost budget, then choose an appropriate model scale and context strategy, and drive iteration with a reproducible evaluation system rather than blindly chasing parameter counts.