Progressive Model Scaling: A Practical Guide to Staged LLM Training
This guide explains how to grow a large language model in stages under a fixed compute budget. It covers the scaling trade-off between model size and training tokens, why a single fixed-size build wastes compute, and how one team trained a roughly 209B-parameter MoE base model on about 13.36T tokens through four structural changes. You will learn how model capacity, data difficulty, and parallelism layout must evolve together, how to judge the right moment to scale by marginal returns rather than step counts, which three types of state must be migrated at each stage, and common pitfalls to avoid. The staged configurations and code example are illustrative rather than tied to a specific implementation.
1. The Starting Problem: How Large Should the Model Be Under a Fixed Compute Budget?
Given a limited training compute budget, there is a trade-off between model size and the amount of training data. Widely accepted scaling laws indicate that, under compute constraints, there is a near-optimal combination of parameter count and training tokens, and that the optimal model size shifts upward as cumulative compute grows.
The conventional approach is to build the model at its final size from the first training step. The cost of this approach shows up clearly in the training curve: early on, model capacity far exceeds what the data complexity requires, and most of the effort goes into memorizing basic statistical regularities, so the marginal return from large capacity is limited. Later, the size is locked in, and feeding in more tokens often yields only a smaller reduction in error, while the compute cost of every step is still paid in full.
An intuitive analogy is buying shoes for a child. Buying adult sizes outright does save the trouble of replacing them later, but every step is awkward for the first few years; replacing them periodically as the foot grows makes walking comfortable right away. Model training works the same way: when to “change shoes” depends on how much additional benefit continued training at the current capacity still brings, and what you plan to have it learn in the next stage.
It is worth emphasizing that public industry material does not provide a universal answer for “which step to scale at.” Any claim that a fixed step count exists lacks support; what is genuinely transferable is the method for making the judgment.
2. The Core Method: Put Three Things on the Same Schedule
One team completed training of a base model with about 209B total parameters under a budget of roughly 13.36T tokens, adjusting the model structure four times during the process, and called this approach progressive training. Its key feature is not “changing the structure” itself, but that each structural change is accompanied by simultaneous adjustments to two other things: what data to learn next, and how data is sharded and moved across multiple cards.
The coupling among the three can be understood this way:
- Model capacity determines “how much knowledge can be held”;
- Data difficulty determines “what level of knowledge is held”;
- The parallelism and communication layout determines “the speed and cost of holding it.”
Early on, a smaller model learns general regularities first; once it starts to struggle, compute is directed toward more parameters, harder data, and a more suitable communication approach. If only one of the three is changed, the gains are usually eaten by the bottlenecks of the other two.
3. What Each of the Four Adjustments Changed
From the public description, the order of the four adjustments is deliberate: the first and the last did not increase total parameters, but only made each token invoke more experts; the second increased the number of layers; the third increased the number of experts.
The final form is a Mixture-of-Experts (MoE) architecture: about 42 layers, about 209B total parameters, about 14B activated parameters per token, an activation ratio of about 6.7%; 288 routed experts, with 13 selected per token, plus 1 shared expert.
Two numbers here must be distinguished: total parameters determine the storage and GPU memory footprint of the full set of weights, while activated parameters determine the compute per token. The value of MoE lies precisely in decoupling the two — pairing a larger “knowledge base” with a smaller “per-invocation amount.”
The logic behind the ordering is increasing risk: first change the activation level (which does not change memory usage or the sharding scheme, and has the smallest change surface), then change the depth (which affects pipeline parallelism and residual paths), and finally change the number of experts (which affects routing load and all-to-all communication). From easy to hard, each step is rollback-able.
Illustrative stage configurations (expressing the idea only, not a specific implementation):
stages = [{"depth": 24, "experts": 64, "top_k": 4, "data": "mostly general corpus"},{"depth": 42, "experts": 64, "top_k": 4, "data": "mostly general corpus"},{"depth": 42, "experts": 288, "top_k": 8, "data": "higher difficulty and quality"},{"depth": 42, "experts": 288, "top_k": 13, "data": "high difficulty and long context"},]
4. Judging the Timing to Scale: Watch Marginal Returns, Not Step Counts
What engineering should track is not the absolute error value, but “how much further the error can drop when the same amount of compute is invested again.” Only when the curve keeps flattening does scaling have a reason to enter the agenda. Actionable criteria include:
- Whether the error reduction within a fixed compute window keeps narrowing;
- Whether training loss and validation loss diverge, indicating a mismatch between capacity and data difficulty;
- Whether the load distribution of expert routing stays skewed over the long term, indicating that the number of experts has become a bottleneck;
- Whether per-step time and the communication share rise significantly because of the current layout.
5. Three Types of State That Must Be Migrated at Each Scale-Up
When the structure changes, training cannot start from scratch. At minimum, you must handle:
- Parameter mapping: increasing depth requires inserting and initializing new layers; increasing the number of experts requires copying and perturbing the routing and expert weights;
- Optimizer state: momentum and second moments must be sharded or interpolated to the new shapes, otherwise the early phase will oscillate violently;
- Data and scheduling: data mixture, sequence length, parallel sharding, and learning rate must be recalibrated, and rollback checkpoints must be kept.
6. Implementation Advice and Common Pitfalls
- Do not aim for “one-shot completion,” and do not treat scaling as a hyperparameter-tuning trick; it is a compute allocation strategy;
- Before each scale-up, validate mapping correctness at small scale to avoid wasting a long training run;
- Track error curves, routing load, and communication share throughout using monitoring, alerting, and logging services;
- Training and checkpoint data can be stored on object storage, elastic compute and container platforms can handle the resource needs of different stages, and the general capabilities of Baidu AI Cloud can serve as the underlying foundation.
In one sentence: the essence of progressive scaling is to let model size, data difficulty, and communication layout evolve together at the pace of marginal returns, thereby lowering the compute threshold and trial-and-error cost of building your own large model.
