Training Pipeline and Key Designs of Full-Stack Open Language Models
This article analyzes the training pipeline and key architectural designs of a recently released family of full-stack open language models. Unlike projects that only share final model weights, this family emphasizes complete transparency across the entire development lifecycle, from data preparation and pre-training to mid-training and post-training reinforcement learning. We explore how different model variants—including base, reasoning, instruction-following, and from-scratch RL—are structured to meet specific capability goals. The article also examines strategies for pre-training data quality control, mid-training capability enhancement, and a multi-stage reasoning post-training approach using supervised fine-tuning, preference optimization, and verifiable reward reinforcement learning. Finally, we provide practical recommendations for developers looking to reproduce or adapt this training methodology for their own applications.
Introduction: From “Open Weights” to “Full-Process Open”
Recently, several research institutions jointly released a family of open language models, covering approximately 7 billion and 32 billion parameter scales. These models are available in different versions, including base, reasoning, instruction-following, and from-scratch reinforcement learning (RL). Unlike many projects that only publish final model weights, this series emphasizes providing full transparency into the model development process, covering data preparation, pre-training, mid-training, post-training, and reinforcement learning.
This “full-process openness” is highly significant. Developers can not only download the models for inference but also observe how the model’s capabilities are formed step-by-step: how training data is filtered, how data mixtures are adjusted, how intermediate checkpoints change across different capabilities, and how post-training affects reasoning style and safety boundaries. For teams looking to reproduce training processes, conduct model analysis, or build vertical domain models, this information is far more valuable than simple weight files.
I. How the Model Family Divides Capability Layers
Instead of adopting a “one-size-fits-all” approach, this model family categorizes versions based on the capability goals of different training stages.
1. Base Model
The base model is primarily responsible for general language understanding, knowledge representation, and basic generation capabilities. It is not designed for direct conversational experiences but serves as the foundation for subsequent instruction fine-tuning and reasoning training. These models are typically better suited for continued domain adaptation, such as supplementing professional knowledge for legal, financial, manufacturing, or educational scenarios.
The ~7 billion parameter version emphasizes deployment cost and iteration efficiency, making it suitable for teams with limited resources to experiment. The ~32 billion parameter version provides a higher capacity ceiling, making it more suitable for complex reasoning, knowledge-intensive Q&A, and high-quality generation tasks.
2. Reasoning Model
The reasoning version targets mathematics, coding, logical analysis, and multi-step problem-solving. The key is not just to have the model output an answer, but to enable it to form a longer intermediate derivation process. It progressively improves reasoning quality through supervised fine-tuning (SFT), preference optimization, and verifiable reward reinforcement learning.
Evaluating these models cannot rely solely on whether the final answer is correct. It is also necessary to monitor the stability of the reasoning chain, the verifiability of intermediate steps, and whether the model generates plausible but incorrect explanations when lacking supporting evidence.
3. Instruction-Following Model
The instruction version focuses on user intent comprehension, format control, multi-turn dialogue, and semantic parsing before tool usage. Compared to the base model, it is better suited for direct application in scenarios such as Q&A, content generation, task decomposition, and enterprise knowledge retrieval.
However, strong instruction-following does not mean the model inherently possesses reliable reasoning capabilities. In practical applications, it is still necessary to combine business constraints, retrieval result verification, and output review mechanisms to prevent the model from fabricating facts when information is insufficient.
4. From-Scratch RL Version
The from-scratch RL version is primarily used to study the impact of reinforcement learning on model behavior. It helps researchers observe whether reward signals can independently shape the model’s reasoning patterns when reliance on traditional supervised fine-tuning is reduced, and what capability gains or behavioral degradation occur during training.
The value of this version is not merely to achieve higher benchmark scores, but more importantly, to provide a controlled experimental subject for training methodology research.
II. Pre-training Stage: Data Quality is More Critical Than Scale Alone
Public information indicates that the base model was pre-trained using approximately 5.9 trillion tokens. In terms of scale alone, this is a massive engineering effort, but the data organization method is more noteworthy than the simple “more data is better” philosophy.
1. Using Token Budgets to Constrain Data Sources
Large model training data usually comes from web pages, books, code, papers, Q&A content, and various document types. The quality, repetition rate, and knowledge density of different sources vary significantly. If mixed directly by proportion, low-quality but voluminous data may consume too much of the training budget.
This model employs a token-constrained data mixture approach, setting explicit training proportions for different data categories and performing moderate upsampling for high-value content based on data quality assessments. The core goal is to ensure that limited training compute serves the formation of effective capabilities, rather than being consumed by repetitive, templated, or low-density text.
From an engineering perspective, data mixture ratios are not set in stone. A more reasonable approach involves establishing small-scale validation experiments to observe model changes in language understanding, knowledge Q&A, coding, and math tasks under different ratios, before deciding whether to scale up training.
2. Introducing High-Quality Scientific Documents
Scientific papers, technical reports, and professional documents typically contain more rigorous concept definitions, formula expressions, chart explanations, and argumentation structures, offering high value for models learning long-chain knowledge. However, much of this content exists in documents with complex layouts, and direct text extraction often leads to disordered titles, lost formulas, broken tables, and confused reading sequences.
Therefore, the training pipeline incorporates large-scale document recognition and parsing processes to transform complex layouts into structured text better suited for training. This is significant not just for increasing data volume, but for improving the usability of professional knowledge.
When reproducing a similar pipeline, focus on the following metrics:
- Whether text extraction preserves title hierarchy and paragraph order;
- Whether tables, formulas, and footnotes are mistakenly mixed into the main text;
- Whether the recognition accuracy of scanned documents meets training requirements;
- Whether multiple versions of the same content remain after deduplication;
- Whether there is a proportion imbalance between professional and general data.
3. Establishing Continuous Data Quality Feedback
High-quality pre-training is not just about “cleaning the data once.” A more robust approach connects data processing, model evaluation, and data tracing into a closed loop. For example, if a model consistently makes errors on a certain type of task, it is necessary to determine whether the issue stems from missing knowledge, confusing text expression, or a large number of incorrect examples in the training data.
This mechanism can be summarized as:
Raw data collection-> Format parsing and noise cleaning-> Deduplication and safety filtering-> Quality scoring and source stratification-> Small-scale training validation-> Evaluation result tracing-> Adjusting data mixture
III. Mid-Training: Directionally Enhancing Key Capabilities on a Smaller Budget
After completing the main pre-training phase, the model underwent mid-training using approximately 100 billion tokens, focusing on strengthening coding, math, and Q&A capabilities. The value of mid-training lies in its ability to intensively bolster specific capabilities without completely retraining the base model.
Unlike instruction fine-tuning, mid-training is closer to “continued pre-training.” It still emphasizes knowledge distribution and capability foundations, rather than merely teaching the model to follow a specific answer format. This stage is particularly valuable for enterprises: if you want the model to better understand industry documents, you can add high-quality domain corpora on top of a general base model for controlled continued training, rather than jumping directly to conversational fine-tuning.
However, targeted enhancement also brings the risk of capability shift. For example, adding too much code data might improve program generation but affect open-ended writing performance; overemphasizing math problems might cause the model to form rigid solution templates. Therefore, mid-training must retain a certain proportion of general data and monitor capability changes through multi-task evaluation.
IV. Reasoning Post-Training: A Combination of Supervision, Preference, and Rewards
The reasoning version utilizes three main stages: supervised fine-tuning, preference optimization, and reinforcement learning based on verifiable rewards. This combination reflects a typical layered approach in current reasoning model training.
1. Establishing Basic Reasoning Formats via SFT
The first stage uses high-quality reasoning examples to teach the model how to decompose problems, organize intermediate steps, and draw conclusions. The key here is not simply adding long-form text, but ensuring that the reasoning process is authentic, verifiable, and consistent with the answer.
If training samples only contain “seemingly complete” reasoning chains but have logical jumps in the middle steps, the model might learn to mimic the form without actually improving its problem-solving ability. Therefore, sample construction requires reviewing both the process and the result.
2. Improving Answer Selection via Preference Optimization
The second stage compares the quality of different responses to help the model learn reasoning styles that better align with human expectations. Public materials mention a preference data construction method based on differential learning, whose core idea is to focus on the key differences between closely related responses, rather than simply scoring the final answers.
For example, two responses might both achieve the correct result, but one process is rigorous while the other relies on guessing; or both might fail, but one made a calculation error in the final step while the other misunderstood the problem from the start. These fine-grained differences help the model learn more stable behavioral boundaries.
3. Verifying Reasoning Results via Reinforcement Learning
The third stage uses automatically verifiable reward signals for reinforcement learning, which is particularly suitable for math, coding, and structured Q&A tasks. The basic process can be represented as:
Model generates candidate answers-> Verifier checks results-> Provides rewards based on correctness-> Updates model policy
Related materials also note that the training framework adjusted algorithmic details, such as weakening or removing traditional policy constraint terms and adopting more fine-grained token-level loss calculations. The purpose is to allow reward signals to act more accurately on the generated content, preventing key steps in long responses from being averaged out.
It is important to note that reinforcement learning does not automatically solve reasoning reliability issues. If reward design only focuses on the final answer, the model might achieve high scores through coincidence, memorization, or unexplainable paths. Therefore, the verifier should cover process constraints, boundary conditions, and abnormal samples as much as possible, rather than just string matching.
V. Long Context Training: Reading Far and Accurately
The model pipeline also includes dedicated long-context training data. Long-context capability is not just about expanding the input window; more importantly, it enables the model to accurately locate, compare, and synthesize content within a large volume of information.
During actual training, three types of issues need attention:
- Position Generalization: Whether the model can stably process inputs that exceed common training lengths;
- Information Retrieval: Whether the model’s performance remains consistent when key information is located at the beginning, middle, or end;
- Multi-Document Synthesis: Whether the model can distinguish between different sources and avoid mixing facts from multiple documents.
For enterprise applications, long context can be used in conjunction with Retrieval-Augmented Generation (RAG), but the two are not interchangeable. Retrieval is responsible for reducing input scale and improving material relevance, while long context handles cross-paragraph dependencies and global structure. A more rational system typically retrieves first, then provides highly relevant content to the model in a logical order.
VI. Practical Value of Full-Process Openness for Developers and Enterprises
The most direct value of full-process openness is improving the interpretability and reproducibility of the training pipeline. Developers can compare capability changes across different stage checkpoints to determine whether a specific capability originates from pre-training, mid-training, or post-training.
For research teams, intermediate checkpoints can be used to analyze capability emergence, forgetting phenomena, and the impact of data mixtures. For engineering teams, public data processing and training code lower the barrier to reproduction. For application teams, training logs help understand the boundaries of tasks the model excels at and struggles with.
However, openness does not mean the model is ready for production out of the box. Enterprises still need to complete safety evaluations, domain adaptation, permission isolation, log auditing, and output validation. Especially in knowledge-intensive businesses, model outputs should be compared against authoritative data sources, and manual review should be retained for high-risk scenarios.
VII. Practical Recommendations for Reproducing Similar Model Pipelines
If developers wish to leverage this design without replicating its exact scale, they can start from the following aspects:
First, define the target capabilities before deciding on the training stages. General Q&A may not require large-scale reasoning reinforcement, and a coding assistant should not rely solely on standard web text.
Second, establish a unified data quality system. Every corpus should record its source, license, cleaning method, deduplication results, and quality score to ensure issues can be traced after training.
Third, save stage checkpoints. Even with limited resources, preserve model states at key training nodes to analyze capability changes and allow for rollback in case of training anomalies.
Fourth, build a layered evaluation set. Evaluation should cover basic knowledge, domain understanding, instruction following, long context, and complex reasoning, avoiding being misled by a single benchmark score.
Fifth, treat training and deployment as a whole. Model capabilities, inference costs, response latency, and safety controls must be weighed together. A smaller but stable model is sometimes better suited for production environments than a larger parameter model.
Conclusion
The core highlight of this open model family is not just providing multiple parameter scales and capability versions, but pushing model training from “result demonstration” to “process transparency.” The ~5.9 trillion token pre-training, ~100 billion token mid-training capability enhancement, and the combination of SFT, preference optimization, and verifiable reward RL demonstrate a relatively complete modern pathway for building language models.
For developers, what is truly worth borrowing is not a specific configuration, but the underlying methodology: using data governance to control input quality, using staged training to split capability goals, using verifiable rewards to improve reasoning, and using complete logs and checkpoints to support reviews. As model training gradually shifts towards engineering and systemization, this type of full-process open practice will provide crucial references for model research, secondary training, and enterprise-level applications.
