Full-Stack Open-Source LLM Design Highlights and Training Practices
This article analyzes a newly released full-stack open-source large language model family, covering model architecture, data composition strategies, mid-stage training insights, post-training recipes for reasoning enhancement, and the engineering implications of releasing complete training pipelines—from pre-training data to checkpoints and logs.
As large language model technology continues to evolve, the open-source community increasingly demands greater model transparency. Traditional open-sourcing often stops at releasing final model weights, leaving developers and researchers unable to trace the full path of capability emergence. Recently, a research team disclosed its latest generation of full-stack open-source large language models, spanning parameter scales from 10 billion to 30 billion, with multiple versions including base models, reasoning-enhanced models, instruction-following models, and reinforcement-learning-tuned models. More importantly, the team open-sourced the complete “model flow”—not only final weights but also datasets from pre-training, mid-training, and post-training stages, core training code, intermediate checkpoints, and detailed training logs. This article provides an in-depth analysis of the design highlights and key technical practices of this model family.
1. Base Model Training: The Trade-off Between Data Distribution and Quality Awareness
The base model is the cornerstone of LLM capabilities. This model family was pre-trained on nearly 6 trillion tokens of large-scale corpora, with a core highlight being innovations in data processing and distribution optimization.
1.1 Quality-Aware Upsampling Strategy
When handling massive pre-training data, the industry commonly uses flat filtering—setting a quality score threshold and directly discarding data below it. However, this crude truncation can easily lead to loss of data diversity and loss of useful information. This model introduces a quality-aware upsampling strategy that builds a smooth upsampling curve, dynamically adjusting the sampling probability of each data point based on its quality score. High-quality data receives higher sampling weight, while low-quality data is not completely eliminated but participates with a lower probability. Experiments show that in scenarios where data is limited or fine-grained control over data proportion is needed, this quality-aware strategy significantly improves model generalization.
1.2 Deep Mining and Injection of Scientific Literature
To strengthen the model’s knowledge in specialized domains, the research team incorporated a large volume of scientific research PDF documents. Because PDFs contain complex layouts, figures, and formulas, direct extraction is extremely difficult. The team used advanced OCR (optical character recognition) extraction and structured reconstruction techniques to convert these difficult-to-parse scientific documents into high-quality plain text or Markdown corpora. This deep mining of long-tail high-quality data injects rich scientific knowledge and logical reasoning foundations into the model.
1.3 Mid-Training Reinforcement with Tens of Billions of Tokens
After general pre-training, the model introduces a mid-training phase with a scale of tens of billions of tokens. This phase is not simply continued pre-training; rather, it deliberately injects code, mathematics, and question-answering (QA) domain data in a reinforcement-like manner. Through this domain-focused mid-training, the model achieves significant capability improvements in logical deduction and structured output.
2. Deeper Insights from Mid-Training: Domain Trade-offs and Data Pre-positioning
The mid-training phase is not only a capability reinforcement period but also a tuning period for trade-offs between different abilities. The technical report reveals several key findings with high reference value for future LLM training.
2.1 Domain Capability Trade-offs
In the mid-training data mix, increasing the weight of mathematics and code data can immediately improve performance on corresponding benchmark tests. However, this does not come without cost—overly skewed ratios cause performance degradation on general question answering (GenQA) and multiple-choice question answering (MCQA). The final data mix is designed to find the optimal balance between these two extremes, using fine-grained domain blending ratios to ensure the model maintains high standards in both specialized fields and general capabilities.
2.2 Pre-positioning Benefits of Post-Training Data
A surprising finding is that if instruction-following and chain-of-thought data are introduced early during the mid-training phase, even without subsequent supervised fine-tuning (SFT), the base model shows improved performance across various evaluation benchmarks. This suggests that early adaptation to instruction formats and reasoning steps helps optimize the model’s internal feature representations, making it more adaptable for downstream tasks.
2.3 Complexity of Data Decontamination
Benchmark data leakage is a persistent challenge in open-source datasets. The study points out that several well-known open-source instruction fine-tuning datasets contain widespread benchmark contamination. This not only inflates model evaluation scores but may also cause overfitting. This indicates that developers must adopt stricter and more sophisticated deduplication and decontamination processes when building their own training sets.
3. Reasoning-Enhanced Model: Three-Stage Post-Training Recipe and Algorithm Optimization
The flagship reasoning model of this family adopts a three-stage post-training recipe: SFT (supervised fine-tuning) → DPO (direct preference optimization) → RLVR (reinforcement learning with verifiable rewards), achieving a qualitative leap in reasoning capability.
3.1 Building Preference Data with Delta Learning
In the DPO stage, constructing high-quality preference data is critical. The team disclosed a technique called “Delta Learning” to build preference data pairs. This method avoids manual annotation. Instead, it combines the model’s own generation capability with rule-based verifiers to automatically select correct reasoning paths as positive preferences and incorrect paths as negative preferences, thereby efficiently constructing a large-scale, high-quality preference dataset.
3.2 Infrastructure and Algorithm Improvements in the RL Framework
During the RLVR stage, the research team carried out deep low-level restructuring of the reinforcement learning framework.
- Removing the KL divergence term: Traditional RL training typically introduces KL divergence to constrain the policy network from drifting too far from the reference model. However, the team found that for reasoning tasks with verifiable rewards, removing the KL term allows the model to explore better reasoning paths more freely, avoiding conservative policies caused by over-constraint.
- Introducing token-level loss: Traditional sequence-level loss can cause uneven gradient assignment in long-text reasoning. By adopting token-level loss, the model can more precisely assess the contribution of each generated token to the final result, significantly improving training stability and convergence efficiency.
4. Full-Stack Data Open-Sourcing and Enterprise Engineering Insights
One of the most notable highlights of this model is the complete open-sourcing of its full pipeline data, covering pre-training data, mid-training data, long-context data, and post-training data. This transparency provides a valuable resource for the industry to reproduce and improve large models.
For enterprise-level developers, adopting practices from this “complete model flow” requires robust infrastructure support. When processing and pre-training on trillions of tokens, developers can rely on high-throughput object storage services to manage massive datasets; use distributed container platforms to schedule large GPU clusters for efficient parallel training; and combine professional log services with monitoring and alerting systems to track metric changes at intermediate checkpoints in real time. By building a closed-loop system that covers data storage, cleaning, model training, and log monitoring, enterprises can more steadily advance their own LLM research and iteration.
Conclusion
The next-generation full-stack open-source LLM family not only demonstrates outstanding performance at the 10B–30B parameter scale but also provides deep insight into LLM training mechanisms by publicly releasing the complete training pipeline, data mixing strategies, and algorithm improvements. From quality-aware upsampling to domain trade-offs in mid-training, and from KL-free reinforcement learning to token-level loss, these technical highlights will profoundly influence future LLM development paradigms, offering highly valuable practical references for both the open-source community and the industry.
