Paper · Open models · Version 1
PCMind-2.1-Kaiyuan-2B Technical Report
First published: arXiv, . Original
Copyright the authors. Licensed under Creative Commons Attribution-ShareAlike 4.0 International.
This page holds the text of the paper, converted to HTML; figures may be left out.
A university team releases a fully open 2-billion-parameter model, including its data and training recipe. The report explains how they compared public datasets, reused scarce high-quality data, and ordered training data by quality to get good results on a small compute budget.
Abstract
The rapid advancement of Large Language Models (LLMs) has resulted in a significant knowledge gap between the open-source community and industry, primarily because the latter relies on closed-source, high-quality data and training recipes. To address this, we introduce PCMind-2.1-Kaiyuan-2B, a fully open-source 2-billion-parameter model focused on improving training efficiency and effectiveness under resource constraints. Our methodology includes three key innovations: a Quantile Data Benchmarking method for systematically comparing heterogeneous open-source datasets and providing insights on data mixing strategies; a Strategic Selective Repetition scheme within a multi-phase paradigm to effectively leverage sparse, high-quality data; and a Multi-Domain Curriculum Training policy that orders samples by quality. Supported by a highly optimized data preprocessing pipeline and architectural modifications for stability, Kaiyuan-2B achieves performance competitive with state-of-the-art fully open-source models, demonstrating practical and scalable solutions for resource-limited pretraining. We release all assets (including model weights, data, and code) under Apache 2.0 license at https://huggingface.co/thu-pacman/PCMind-2.1-Kaiyuan-2B.
1 Introduction
Figure 1: Model Performance Comparison. Kaiyuan-2B surpasses the frontier of fully open-source models at a similar scale, and approaches open-weight models such as Qwen2-1.5B [Yang et al., 2024a] and Llama3.2-3B [Meta AI, 2024]. A full version of the corresponding benchmark scores is detailed in Table 16.
The field of Large Language Models (LLMs) has seen remarkable advancements, demonstrating comprehensive capabilities across a wide spectrum of tasks. The performance of these models fundamentally depends on the quality and scale of their pretraining [Yue et al., 2025, Hernandez et al., 2021]. However, the core science and engineering behind large-scale LLM pretraining remain underexplored by the academic and open-source communities due to two main industry practices: (1) Closed-source pretraining of leading models [OpenAI, 2023, Team, 2025]. (2) Release of open model weights but with closed-source training recipes [DeepSeek-AI et al., 2024, DeepSeek-AI, 2025, Yang et al., 2025].
Fully open-source models, which publish both weights, datasets, and detailed pretraining procedures, are essential to bridge this knowledge gap and facilitate academic exploration. Pioneer works in this direction include the OLMo series [Groeneveld et al., 2024, OLMo et al., 2025, Muennighoff et al., 2025], SmolLM series [Allal et al., 2025a, Bakouch et al., 2025], and Yulan series [Zhu et al., 2024, Hu et al., 2024b]. Furthermore, the increasing availability of high-quality, open-source pretraining datasets, spanning English, multilingual, code, and math domains [Penedo et al., 2024, Li et al., 2024c, Lozhkov et al., 2024b, Kydlíček et al., 2025, Computer, 2023, Yu et al., 2025a, Zhou et al., 2025], lays a crucial foundation for more open pretraining attempts.
Despite these advancements, significant challenges persist in open-source pretraining, particularly when attempting to match the performance of state-of-the-art open-weight models under resource constraints. In this technical report, we introduce the PCMind-2.1-Kaiyuan-2B (Kaiyuan-2B in short), a fully open-source model, and detail its pretraining methodology. Our work focuses on two critical challenges faced by resource-limited communities:
Heterogeneous Open-Source Data: While many pretraining-scale datasets are available, their sources and preprocessing pipelines vary significantly [Li et al., 2024c, Penedo et al., 2024, Lozhkov et al., 2024b]. This leads to vast differences in data features, posing a challenge for the effective comparison, selection, and mixing of these heterogeneous datasets [Su et al., 2025].
Limited Compute Resources: The academic community typically cannot afford to train on the scale of tokens (e.g., tens of trillions) used by industry leaders [Yang et al., 2025]. This necessitates novel strategies to improve training efficiency with limited data and computational resources.
Our primary goal is to push the frontier of open-source pretraining by directly addressing these two questions:
How can one properly compare, select, and effectively mix heterogeneous open-source datasets?
How to improve the training efficiency, especially when dealing with the inherent sparsity of high-quality data?
In the pretraining of the Kaiyuan-2B model, we propose and implement practical solutions to these challenges, centered on data management and training efficiency. Given the domains of accessible open-source datasets, we focus on improving the model’s Chinese, coding, and math capabilities, in addition to its general knowledge and reasoning capabilities. As shown in Figure 1, through these practices, our Kaiyuan-2B model demonstrates competitive performance within the fully open-source category and narrows the gap to open-weight models. Our contributions include the following aspects:
Deduplication and Quantile Data Benchmarking.
We propose a novel quantile benchmarking method to systematically evaluate and compare leading open-source datasets (e.g., DCLM-Baseline [Li et al., 2024c], Fineweb-Edu [Penedo et al., 2024]). The rationale is twofold: (1) Open-source datasets often include rule-based or model-based quality metrics, which have proven effective in filtering and can be used to inform the importance of samples during comparison [Penedo et al., 2024, Li et al., 2024c]. (2) By selecting a data subset around a target quality score quantile and training a small reference model over it, we can measure the subset’s characteristics via the reference model’s downstream performance. This method allows us to understand how different datasets or distinct partitions within a single dataset perform across various capabilities. The approach enables systematic benchmarking across heterogeneous collections, especially for the leading datasets that account for the majority of training tokens. Crucially, deduplication is performed before the quantile benchmarking process. (§ 3.1)
System Infrastructure and Training Stability.
To support these data-centric efforts, we built a high-performance and scalable data preprocessing pipeline based on Spark [Zaharia et al., 2012] and optimized with the Chukonu framework [Yu et al., 2021]. This optimized framework efficiently supports deduplication and leverages Spark’s native sorting for curriculum implementation. Finally, our pretraining experiments were conducted on Ascend 910A clusters. Ascend 910A is comparable to V100 hardware and supports only . To ensure training stability under these conditions, we modify the model architecture based on Qwen3-1.7B by incorporating sandwich normalization and soft capping, in addition to standard QK normalization. (§§ 2 and 3.2)
Strategic Selective Repetition for Sparse High-Quality Data.
Our data benchmarking confirms that high-quality data is extremely useful but sparse. To exploit this utility without excessive resource expenditure, we adopt a multi-phase training paradigm that implements selective repetition. Without specification, each data sample appears exactly once within each phase, but high-quality samples may appear in multiple phases. This ensures that higher-quality data samples are repeated more frequently. We employ a five-phase training pipeline, which limits repetition such that the overall benefit remains similar to that observed in one-pass training regimes [Muennighoff et al., 2023, Yan et al., 2025]. (§ 4.1)
Multi-Domain Curriculum Training.
In addition to strategic repetition, we integrate a data curriculum within training phases 3, 4, and 5. This curriculum ensures a stable data mixture across different datasets while sorting data samples in ascending order of their quality metrics within each dataset. Datasets without explicit quality labels are simply shuffled. This means that more important and high-quality samples are presented to the model in the latter training steps. To make full use of the benefit of the data curriculum, we adopt a moderate Learning Rate (LR) decay and apply model averaging over the last several checkpoints, following recent findings [Luo et al., 2025]. (§ 4.2)
Pushing the Frontier of Fully Open-Source Models.
Kaiyuan-2B lies in the frontier of fully open-source models, achieving superior performance at comparable model scales. Most notably, our model demonstrates remarkable capabilities in three focused domains: Chinese language understanding, mathematical reasoning, and code generation. As illustrated in Table 2, Kaiyuan-2B substantially outperforms Gemma2-2B despite operating at a similar parameter scale. Beyond these targeted capabilities, our model also exhibits competitive performance in reasoning and knowledge-intensive tasks, approaching or matching the performance of larger models such as Gemma2-2B and Yulan-Mini-2.4B. When accounting for non-embedding parameters alone (only 1.4B), our model’s efficiency advantages become even more pronounced, as demonstrated in Figure 8. (§ 5)
The rest of this report is organized as follows: In Section 2, we will discuss how to stabilize training on FP16-only hardware through architecture design. In Section 3, we will introduce our quantile benchmarking approach to deepen our understanding of how various score metrics reflect the data inherent in different feature dimensions. In Section 4, we will discuss two approaches to leverage high-quality data in our training: selective repetition and quality-based curriculum. Then in Section 5, we will report our evaluation settings and results, positioning Kaiyuan-2B in the fully-open and open-weight models. Additionally, Section 5.3 shows model performance comparison relative to non-embedding parameters; Appendix A lists quantile benchmarking results; Appendix B lists all used datasets along with license details; Appendix C lists dataset mixture details in all phases; Appendix D presents the implementation details and experiment settings in our training and small-scale experiments. Appendix E shows the full table for model performance comparison.
2 Architecture Design and Training Stability
(a) Activation statistics of the baseline architecture
(b) Activation statistics after applying Sandwich Normalization and Logits Soft-capping
Figure 2 (not shown): Comparison of internal activation magnitudes before and after architectural optimization. The experiment is conducted with a 3B model.
Kaiyuan-2B is trained on Huawei Ascend 910A accelerators, which are similar to NVIDIA V100s in supporting only FP16 precision. However, FP16 has a limited dynamic numerical range, which introduces overflow risks when model parameters or activations grow too large. To keep training stable, we first identify the activations that are most likely to overflow and then introduce structural changes that keep their values within safe bounds.
Following the standard Llama architecture, the model uses SwiGLU Dauphin et al. [2017], RMSNorm Zhang and Sennrich [2019], and RoPE Su et al. [2024]. We adopt mixed precision training, where operators that need higher precision, such as Softmax and RMSNorm, run in FP32, and the remaining computations run in FP16. Despite this setup, training on large and diverse datasets, including code and mathematics, still leads to strong numerical instability. As shown in Figure 2(a), most instability comes from two places: the attention logits and the activations after the SwiGLU function in the MLP layers. In practice, the maximum activation values grow without control. They exceed after processing one trillion tokens, which is close to the FP16 upper limit. As a result, the dynamic loss scaler decreases its scaling factor to avoid overflow. This drop pushes many gradients below the FP16 minimum representable value, which causes underflow. The gradients then become inaccurate, harming convergence and sometimes causing training to fail.
To solve these issues, we use Logits Soft-Capping Bello et al. [2017] and Sandwich Normalization Ding et al. [2021]. This follows the design choices of Gemma 2 Rivière et al. [2024]. These techniques place strict bounds on activation values. As shown in Figure 2(b), soft-capping reduces the L1 norm of attention logits by about an order of magnitude. At the same time, sandwich normalization reduces the accumulation of large values in residual connections and keeps the L1 norm of MLP activations within a safe range. To further improve stability, we set the weight decay to , apply soft-capping to the final output logits, and replace the soft-capping inside each attention layer with QK-Norm Henry et al. [2020]. The full configuration of Kaiyuan-2B is listed in Table 10 and the implementation details are discussed in Section D.1.
3 Data Benchmarking and Preprocessing
There are many open-source pretraining datasets across various data domains, especially for English, Code, and Math OLMo et al. [2025], Allal et al. [2025a], Yiwen et al. [2025], Li et al. [2024c], Su et al. [2025], Lozhkov et al. [2024b], Zhou et al. [2025]. However, constructing a high-quality pretraining corpus remains a non-trivial task due to two primary challenges. First, it is challenging to measure the quality of diverse datasets and determine the optimal strategy for selecting and mixing data from heterogeneous sources. Second, preprocessing these datasets is both resource-intensive and technically complex. Given the large scale of pretraining data and complex operations like deduplication, the preprocessing pipeline incurs substantial computational overhead and engineering complexity.
To mitigate these issues, (1) we propose to benchmark primary datasets (e.g., DCLM-Baseline Li et al. [2024c], Fineweb-Edu Penedo et al. [2024]) by quantiles of quality scores. We train reference models over the data subsets around a series of quantiles of quality scores, and then analyze how the resulting benchmark performance varies with data distribution, which is reflected by quality scores. (2) We develop a user-friendly Spark-based data preprocessing framework to efficiently process large-scale pretraining datasets. Moreover, we exploit the Chukonu Yu et al. [2021] framework to reduce the preprocess overhead. These explorations on data dimensions lay a solid foundation for our training and future work.
3.1 Benchmarking Dataset By Quality-Score Quantiles
Figure 3: Illustration of the Quantile Benchmarking Process. (1) Given a series of target quantiles (e.g., 0%, 20%, 40%, 60%, 80%), we select a data chunk around each target quantile as a probing dataset. (2) A small-scale reference model is then evaluated on each probing dataset under two settings: training from scratch, or resuming from a checkpoint for continual training.
Background and Motivation.
Most open-source datasets have been through a preprocessing pipeline, which primarily incorporates steps of quality scoring and data filtering by score. These score labels are typically released for these open-source datasets. Therefore, we can select a subset hypothesized to be of high quality based on sample quality scores. However, samples between different datasets are hard to compare, considering heterogeneous quality metrics. When scorers are available, it is possible to score both datasets. But as more datasets and quality metrics are included, it is hard to scale up and judge by multiple quality metrics. DCLM Li et al. [2024c] proposes to benchmark datasets or quality scores by filtering and feeding datasets into a standard series of models across scales. However, when facing a practical pretraining setup, the top-k filtering and multi-scale benchmarking can be challenging: the cost of full benchmarking is prohibitive, and we need to ablate over different filtering ratios to balance quality and quantity of the filtered dataset.
3.1.1 Quantile Benchmarking Methodology
Quantile Data Benchmarking refers to the systematic evaluation of dataset quality by training reference models on data subsets stratified by quality score percentiles, enabling empirical comparison of dataset characteristics across different quality ranges. Instead of relying solely on top- filtering, we design a small-scale evaluation process across a range of quality score quantiles to benchmark dataset quality. In practice, preprocessed open-source datasets typically provide a quality metric for each data sample. These quality scores reflect specific characteristics of the data and can vary significantly. It is commonly expected that using higher-quality data samples in training should lead to better model performance. Motivated by this intuition, we propose a straightforward approach, which has not been systematically explored in prior work.
For a target dataset, we first determine a series of quality score quantiles, such as top 0%, 10%, 20%, , 80%. At each quantile, we select a fixed-size subset of the dataset. In our implementation, starting from the data sample ranked at the top 10% in terms of quality score, we expand the subset by including the next 10B tokens of lower-quality samples to form the probing dataset. We then train a small-scale reference model (e.g., 0.5B parameters) on each of these probing datasets. Finally, we evaluate the resulting models on a set of target benchmarks to record their performances. We refer to this process of evaluating datasets across different quality quantiles as quantile benchmarking.
Given the computational cost of training multiple reference models on different probing datasets, we typically apply quantile benchmarking to dominant datasets, such as DCLM-Baseline Li et al. [2024c] and FineWeb-Edu Penedo et al. [2024] in the English domain, and FineWeb-Edu-Chinese-V2.1 Yu et al. [2025a] in the Chinese domain. Moreover, we measure the utility of each probing dataset in two scenarios: (1) training the reference model from scratch, and (2) continuing training from pretrained checkpoints. Evaluating both scenarios provides a more comprehensive understanding of the target dataset. Figure 3 illustrates the overall quantile benchmarking process, including quantile data selection and benchmarking experiments under both scenarios.
While quantile benchmarking introduces additional computational overhead, this cost is marginal compared to the resources required for full pretraining. For instance, as illustrated in Figure 4, we benchmark the DCLM-Baseline across 5 quantiles, ranging from 0% to 60% at 15% intervals. Although the entire deduplicated DCLM-Baseline comprises 609B tokens (as reported in Table 5), our benchmarking process consumes only 8.4B tokens per run, totaling 42B tokens (approximately 6.9% of the dataset). Furthermore, because we utilize a reference model of at most 0.6B parameters, the total computational budget constitutes only 2% of the cost required to train a 2B target model over the full DCLM-Baseline in a single pass, and represents less than 0.6% of the total pretraining budget of Kaiyuan-2B (Explained in Section D.4). Given that quantile benchmarking is performed only once per target dataset to guide all subsequent selection decisions, the actual amortized cost is negligible. Beyond efficiency, these experiments offer significantly higher granularity than training a reference model over a subset via top- filtering, which merely reflects the average quality of data above a specific threshold rather than the distribution within specific bands. Consequently, we strategically target this benchmarking at leading datasets, such as DCLM-Baseline, Fineweb-Edu, and Fineweb-Edu-Chinese-V2.1, where the approach exhibits the most favorable benefit-cost ratio.
3.1.2 Benchmarking Results and Analysis
Based on our quantile experiment results, we compare models trained on different dataset partitions across various benchmarks. These quantile-based comparisons provide deeper insights into the characteristics of target datasets and offer guidance for data selection and mixing strategies.
Figure 4 (not shown): Representative results showing task-dependent dataset characteristics: FineWeb-Edu excels on knowledge-intensive tasks (MMLU) while DCLM-Baseline performs better on commonsense reasoning (WinoGrande).
As an illustrative example, we present quantile experiments on both Fineweb-Edu and DCLM-Baseline, offering a complementary perspective to previous analyses Su et al. [2025], Wettig et al. [2025]. The representative comparison sees Figure 4 and full comparison results can refer to Figures 9 and 10. Our investigation aims to deepen the understanding of these representative open-source datasets and identify their key differences and commonalities, which we summarize as follows:
(1) Task-dependent dataset superiority. Fineweb-Edu generally demonstrates superior performance on academic and encyclopedic benchmarks, including MMLU Hendrycks et al. [2021b] and Common Sense QA (CSQA) Talmor et al. [2019], as well as reading comprehension tasks like BoolQ Clark et al. [2019]. In contrast, DCLM-Baseline exhibits slight advantages on situated commonsense reasoning, such as PIQA Bisk et al. [2020], Social IQa Sap et al. [2019], HellaSwag Zellers et al. [2019], and WinoGrande Sakaguchi et al. [2020]. This divergence suggests that FineWeb-Edu excels in tasks requiring more structural knowledge and formal semantics, while DCLM may benefit tasks relying on intuitive scenario-based reasoning. Representative comparisons are illustrated in Figure 4 where Fineweb-Edu induces better results on MMLU while DCLM-Baseline outperforms on WinoGrande. More comprehensive results are presented in Figures 10 and 9, which respectively highlight academic knowledge and formal reasoning, and situated commonsense reasoning.
(2) Substantial within-dataset heterogeneity. Data quality varies considerably within individual datasets. For instance, in the continual training (resume) scenario, DCLM-Baseline exhibits a 2% performance difference on MMLU between the top 0% and top 60% quantiles, while showing an even more pronounced 8% variation on ARC-Easy across the same quality range, as shown in Table 3. This substantial heterogeneity underscores the importance of quality-aware data selection and training strategies.
(3) Consistency across training scenarios. The relative superiority relationships between datasets remain largely consistent across both continual training (resume) and from-scratch (run) scenarios, as demonstrated in Figures 9 and 10. However, we observe occasional deviations in specific quantile ranges, suggesting that training dynamics may influence relative dataset effectiveness.
(4) Non-monotonic quality-performance relationships. Benchmark performance does not necessarily increase monotonically with quality scores. As shown in Figures 9 and 10, increasing quality scores, measured by the fineweb-edu classifier for Fineweb-Edu and the FastText score for DCLM-Baseline, can paradoxically lead to decreased performance on HellaSwag and PIQA. This finding calls into question the universal applicability of quality metrics employed in current leading open-source datasets, and highlights the task-specific nature of data quality assessment.
In summary, our quantile experiments reveal that (i) datasets exhibit substantial internal heterogeneity, and (ii) the relative superiority of both datasets and their quality partitions is highly dependent on the target capability of interest. Quality assessment is task-dependent and context-specific, necessitating careful consideration when comparing datasets across different capability dimensions. More details of implementation and discussions are presented in Section D.4.
3.1.3 Implications for Data Selection
These findings inform our data mixing and training strategies in the following ways:
(1) Curriculum learning with selective repetition. Beyond the conventional practice of filtering low-quality data, we propose strategically scheduling high-quality data partitions toward later training stages (curriculum learning) while applying higher repetition rates to these partitions compared to lower-quality data (selective multi-epoch training). This approach leverages within-dataset quality variation to enhance training efficiency (details in Section 4).
(2) Benchmark-guided mixing ratios. Given a representative benchmark aligned with a target capability, such as MMLU for knowledge-intensive tasks, quantile comparisons can guide inter-dataset mixing ratios. For example, as illustrated in the left panel of Figure 4, the entire Fineweb-Edu dataset exhibits performance roughly comparable to the top 30% partition of DCLM-Baseline on MMLU, suggesting appropriate relative sampling rates for knowledge-focused pretraining. Concretely, in Phase 2 (Table 6), we use the whole Fineweb-Edu dataset while using only the top 33.4% DCLM-Baseline dataset. In the latter phase, the relative ratio of DCLM-Baseline is further pulled down, shown in Tables 7, 8 and 9. The heuristic mixing ratio design lays a foundation for more strategies introduced in Section 4.
We acknowledge that the current analysis remains primarily qualitative and coarse-grained. More fine-grained, quantitative frameworks for dataset comparison and mixing ratio optimization represent promising directions for future research.
3.2 Data Processing Framework
To address the challenges of data processing, our data processing framework is designed to satisfy three critical requirements:
Reproducibility: Given that the training dataset of Kaiyuan-2B is composed of various open-source datasets, the framework should be able to reconstruct the exact dataset from these original sources with a configuration file.
Usability and Scalability: The framework should support various operations like filtering, deduplication and mixing. Furthermore, this framework should scale to large clusters without additional engineer efforts.
High Performance: To handle hundreds of terabytes of data, the framework must be optimized to reduce computation overhead.
To meet these demands, we developed Kaiyuan-Spark, a distributed data processing framework built on Spark Zaharia et al. [2012]. Kaiyuan-Spark adopts a tree-structured processing pipeline design. The leaf nodes represent the raw open-source datasets, while internal nodes represent processing operators like filters and samplers. The root node generates the final mixed training dataset. With this design, the entire processing pipeline, including dataset sources and operator parameters, can be defined with a YAML configuration file. This ensures strict reproducibility, enabling researchers to reconstruct the exact training corpus from raw datasets simply by applying the configuration.
As Kaiyuan-Spark is built on Spark, it inherits the programming flexibility and scalability. We utilize the powerful Spark RDD API to develop complex data processing operators, and rely on the Spark Engine for distributed processing, resource management, and fault tolerance. This design allows Kaiyuan-Spark to process over 100 TB of data across large-scale clusters with minimal engineering efforts.
Despite Spark’s scalability, the overhead of JVM-based execution can become a bottleneck for compute-intensive tasks. To address this, we integrated the Chukonu Yu et al. [2021] framework, utilizing its C++ interface to refactor certain performance-critical operators. By conducting computations with native C++, we accelerates the processing procedure. For instance, the optimized MinHash deduplication operator is approximately faster than the Spark implementation.
4 Multi-Phase Multi-Dataset Curriculum Training
Data quality heterogeneity within datasets, as revealed in Section 3, presents both opportunities and challenges for model training. High-quality samples can significantly enhance model capabilities more efficiently than average-quality data, yet they typically constitute only a small fraction of the overall dataset. To leverage this heterogeneity, we propose two principles: (1) progressive exposure, where higher-quality data appears in later training phases, and (2) strategic repetition, where high-quality partitions will be repeated more. In implementation, we design data curriculum at both phase and instance levels, and repeat data across different phases, thereby amplifying the impact of valuable training samples and improving overall data utilization efficiency. The multi-phase training practice is also adopted in other open-source model training pipelines [Allal et al., 2025a, Hu et al., 2024b].
Table 1: Performance Comparison: Selective Repetition and Curriculum Learning Strategies.
| Method | Retain | MMLU | ARC-c | ARC-e | CSQA | OBQA | PIQA | SIQA | Wino. | Avg. | Core |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Uniform | 100% | 30.77 | 42.14 | 61.05 | 50.86 | 45.20 | 72.42 | 45.75 | 56.27 | 50.56 | 46.21 |
| CMA | 100% | 31.68 | 41.47 | 61.93 | 52.50 | 46.00 | 71.71 | 45.39 | 57.22 | 50.99 | 46.89 |
| Filter&Repeat | 13.8% | 32.99 | 35.79 | 61.75 | 46.03 | 42.00 | 71.71 | 44.37 | 56.35 | 48.87 | 44.14 |
| Filter&Repeat | 33.4% | 32.44 | 41.14 | 61.93 | 51.11 | 43.80 | 72.09 | 45.34 | 58.80 | 50.83 | 46.65 |
| Filter&Repeat | 77.4% | 31.68 | 38.46 | 60.70 | 52.50 | 45.00 | 72.52 | 45.80 | 57.22 | 50.49 | 45.83 |
4.1 Multi-Phase Domain Mixture and Quality-Based Selective Repetition
(a) Phase-wise data mixture transitions
(b) Phase-wise top-k ratio for Fineweb-Edu
Figure 5 (not shown): Five training phases of Kaiyuan-2B. Latter phases keep more refined data samples.
We structure the training process into five distinct phases with progressive data mixtures, as illustrated in Figure 5. This phased approach incorporates two perspectives of curriculum strategies: domain-level progression and quality-based selection and repetition.
First, we implement a domain-level curriculum by gradually increasing the proportion of Chinese, code, and mathematical datasets in later phases, while introducing supervised fine-tuning data in the final two phases. The phase-wise mixture transitions are visualized in Figure 5. To keep training stability, we maintain English content above 30% while limiting Chinese, code, and mathematical content each below 30%. The specific domain mixtures are detailed in Tables 5, 6, 7, 8 and 9.
Second, we apply quality-based filtering within each domain during later phases, retaining only high-scoring partitions based on available quality metrics. Specifically, one dataset can occur in multiple phases rather than appear only once in the whole training process. However, in each phase, each data sample mostly occurs only once. Moreover, instead of repeating the whole dataset, we mostly keep only the high-quality partition and progressively decrease top-k retention ratios across phases, effectively increasing average data quality, for datasets with a quality metric. For example, as shown in Figure 5, we use the entire Fineweb-Edu dataset in phase two, then retain only 50%, 30%, and 10% of top-quality samples in subsequent phases. This selective repetition strategy ensures that the top 10% samples are exposed to the model four times throughout training, while lower-quality samples appear only once.
This selective repetition serves two primary purposes. On the one hand, we experimentally find that mildly repeating a high-quality portion can attain better training efficiency than one-pass training. We validate this approach using a 1.5B Qwen2.5 model trained on 30B tokens from a DCLM-Baseline shard. As shown in Table 1, retaining 33.4% of top-quality samples for three epochs outperforms one-pass training, demonstrating the efficacy of strategic repetition. More repetition on the aggressive filtered subset can improve even more on benchmarks like MMLU, but can impede other general capabilities. Experimental details are in Section D.5. A similar experiment is conducted in D4 [Tirumala et al., 2023] while we step forward to explore the effect of filtering and repetition on different capability dimensions, rather than on merely PPL or loss perspective. On the other hand, repetition compensates for aggressive deduplication, as high-quality content naturally occurs more frequently in the internet and can also serve as an indicator of data quality. Prior research indicates that mild multi-epoch training (under four repetitions) preserves sample utility, with larger datasets tolerating more repetition [Yan et al., 2025, Muennighoff et al., 2023].
4.2 Multi-Dataset Data Curriculum
Beyond phase-level adjustments, we construct instance-level curriculum learning within each phase. To fully take advantage of the data curriculum, we adopt the technique of Curriculum Model Average (CMA) [Luo et al., 2025], which adopts appropriate learning rate scheduling and model averaging in curriculum-based pretraining. As demonstrated in Table 1, CMA outperforms uniform sampling in our 1.5B model experiments. We discuss the small-scale reference experiment in Section D.5 in detail.
However, the pretraining dataset mostly consists of data samples from various source corpora and constructing a multi-dataset curriculum will present new challenges. Different datasets may employ distinct quality metrics or lack them entirely. To address this, we propose the three-step procedure outlined in Algorithm 1 and Figure 6:
Within-Dataset Ranking: Samples within each dataset are independently sorted using dataset-specific quality metrics in ascending order. For datasets without quality labels, we assign random scores uniformly distributed in to enable shuffling within the curriculum framework.
Rank Rescaling: Dataset-specific ranks are normalized to a global scale using:
where is the within-dataset rank, is the dataset sample count, and is the total sample count.
Global Interleaving: All samples are merged and sorted by their rescaled global ranks.
This algorithm ensures: (1) preservation of within-dataset quality ordering or shuffling the dataset without quality labels, (2) proportional interleaving across datasets according to mixture ratios, and (3) maintenance of stable dataset mixtures throughout training. The mixture of datasets is heuristically designed with reference to the quantile benchmarking results in Section 3.
Algorithm 1 Multi-Dataset Curriculum Construction
Datasets D1,D2,…,DkD_{1},D_{2},\dots,D_{k} with their specific quality metrics
Multi-dataset curriculum dataset
Ntotal←∑i=1k|Di|\displaystyle N_{\text{total}}\leftarrow\sum_{i=1}^{k}|D_{i}| ⊳\triangleright Compute total sample count
for each dataset DiD_{i} do
(Optionally) Add a random number for the dataset without a quality label
Sort DiD_{i} by dataset-specific quality metric (ascending) ⊳\triangleright Within-dataset ranking
Assign ordinal ranks ri(x)∈[1,|Di|]r_{i}(x)\in[1,|D_{i}|] to each sample x∈Dix\in D_{i}
Compute rescaled ranks: R(x)←ri(x)×Ntotal|Di|R(x)\leftarrow r_{i}(x)\times\frac{N_{\text{total}}}{|D_{i}|} for all x∈Dix\in D_{i}
end for
U←⋃i=1kDi\displaystyle U\leftarrow\bigcup_{i=1}^{k}D_{i} ⊳\triangleright Combine all datasets
Sort UU by rescaled rank R(x)R(x) in ascending order ⊳\triangleright Global interleaving
return sorted UU
In practice, we implement this multi-dataset curriculum in the final three training phases to avoid low-quality samples being sorted together and fed to an immature model, which can result in instability. We set the final learning rate to and average the last six checkpoints, as detailed in Section 4.3.
Figure 6: Multi-Dataset Curriculum Construction Process.
4.3 Pretraining Configuration and Implementation
Model Architecture.
Our 2B-parameter model architecture primarily refers to Qwen3-1.7B [Yang et al., 2025] with modifications for training stability. We untie word embeddings to reduce communication overhead, resulting in 1.4B non-embedding parameters and 0.6B embedding parameters. To ensure FP16 training stability, we incorporate QK-norm, sandwich norm, and soft capping (detailed in Section 2). Complete architectural specifications are provided in Table 10.
Training Hyperparameters.
We train with a context length of 4096 and a batch size of 2048. We run small-scale experiments with a 1.5B model on 30B tokens at a batch size of 512, and then extrapolate roughly an optimal peak learning rate of via square-root scaling [Malladi et al., 2022]. We employ a Warmup-Stable-Decay schedule [Hu et al., 2024a] and reduce the peak learning rate from to after the first phase to mitigate the instability caused by data distribution shift effects. The learning rate remains constant through phases 2–4, then decays to in phase 5 to accommodate the multi-dataset curriculum [Luo et al., 2025]. We average the final eight checkpoints (saved every 3.36B tokens) to reduce variance from insufficient learning rate decay, with model averaging details provided in Section D.3.
Training Curve Analysis.
Figure 7 presents learning rate, training loss, and validation loss trajectories. Two key observations emerge:
Training loss exhibits non-standard decay patterns due to three factors: (1) the learning rate reductions between phase 1 and phase 2 induce abrupt loss drop at the phase transition, (2) in later phases, we introduce increased low-perplexity code and mathematical content, which results in continually decreasing loss, and (3) the quality-based curricula import more high-quality data in latter steps within phases 3–5, which accelerates convergence of loss, followed by slight increases at phase transitions.
Validation loss on a DCLM-Baseline subset shows similar phase-transition drops but anomalous increases during phases 3–4. These increases likely reflect domain misalignment between the validation set (primarily English text) and training data (increasing code and mathematical content). Each phase ends with accelerated validation loss decay (benefiting from high-quality data) followed by sharp increases (probably from distribution shifts by curriculum).
These patterns suggest that more diverse validation sets would better track training progress. Future work should consider more gradual domain transitions and increased phase counts for improved training stability.
Figure 7: Learning Rate Schedule, Training Loss, and Validation Loss Curves.
5 Evaluation
We conduct extensive evaluations on Kaiyuan-2B and compare it against both open-weight and fully open models. Our Kaiyuan-2B advances the frontier of fully open models and further narrows the gap between fully open models and leading open-weight models.
5.1 Evaluation Setup
5.1.1 Baseline Models
We evaluate Kaiyuan-2B against a comprehensive set of state-of-the-art baseline models with comparable parameter counts. These baselines are categorized into two distinct groups: open-weight models, where model weights are public but training data or details may remain proprietary, and fully-open models, where the architecture, weights, training code, and datasets are all publicly released.1
Open-weight models.
Qwen2-1.5B Yang et al. [2024a]: A 1.5B-parameter decoder-only transformer trained on large-scale multilingual and code data. It delivers robust performance in general language understanding, coding, and reasoning while facilitating efficient deployment.
Qwen2.5 series Yang et al. [2024b]: We select Qwen2.5-1.5B and Qwen2.5-3B, dense foundation models that refine the Qwen2.5 architecture. These models feature an improved tokenizer and offer enhanced capabilities in knowledge, coding, and mathematics within a compact form factor suitable for edge applications.
Qwen3 series Yang et al. [2025]: We include Qwen3-0.6B, Qwen3-1.7B, and Qwen3-4B. These are small-scale base models that support long contexts and “thinking” modes, providing competitive abilities in general tasks, mathematics, and coding.
Gemma2-2B Rivière et al. [2024]: The smallest member of Google’s Gemma 2 family, this model is distilled from larger counterparts. It was trained on 2 trillion tokens from diverse sources, including web documents, code, and scientific articles.
Llama3.2 series Meta AI [2024]: We utilize Llama-3.2-1B and Llama-3.2-3B, multilingual text-only models distilled and pruned from larger Llama variants. They support extended context windows (128k) and tool-calling, targeting privacy-preserving on-device inference.
Fully-open models.
SmolLM2-1.7B Allal et al. [2025a]: Developed by Hugging Face, this model utilizes the Llama 2 architecture with a GPT-2 tokenizer (vocabulary size 49,152). It was trained on 256 H100 GPUs.
SmolLM3-3B Bakouch et al. [2025]: A compact, fully-open model trained on 11T tokens using data-centric recipes. It features a 128k context window utilizing NoPE and YaRN, offering state-of-the-art performance for its size class with multilingual support.
OLMo2-1B OLMo et al. [2025]: The smallest model in the OLMo2 family (specifically OLMo2-0425-1B), trained on the OLMo-mix corpus. Its full release of code, checkpoints, logs, and training details enables rigorous scientific inquiry into compute-efficient training at the 1B-parameter scale.
YuLan-Mini Yiwen et al. [2025]: A 2.4B-parameter model pre-trained on approximately 1.08T tokens. By combining curated data pipelines with robust optimization and annealing strategies, it achieves top-tier performance among similarly sized models, particularly in mathematics and coding.
5.1.2 Benchmarks
Our evaluation encompasses four primary domains: mathematics, coding, Chinese language processing, and general reasoning & knowledge. We selected representative benchmarks for each domain as follows:
Math: We utilize GSM8K Cobbe et al. [2021] and MATH Hendrycks et al. [2021c]. Together, these datasets cover the spectrum from grade-school arithmetic to advanced competition-style problems, providing a comprehensive assessment of symbolic and multi-step reasoning.
Coding: We adopt MBPP Austin et al. [2021] and HumanEval Chen et al. [2021] to evaluate code generation via unit testing. This approach directly measures the model’s ability to synthesize executable and logically coherent programs. Specifically, we use the sanitized subset of MBPP, which refines problem descriptions and test cases to minimize ambiguity.
Chinese: To assess knowledge and reasoning within a Chinese linguistic context, we employ CMMLU Li et al. [2024a] and C-Eval Huang et al. [2023], widely adopted benchmarks spanning diverse academic and professional subjects.
Reasoning & Knowledge: For general English-language knowledge and reasoning, we include a suite of eight datasets: MMLU Hendrycks et al. [2021b], HellaSwag Zellers et al. [2019], Common Sense QA (CSQA) Talmor et al. [2019], BoolQ Clark et al. [2019], PIQA Bisk et al. [2020], SocialIQA Sap et al. [2019], WinoGrande Sakaguchi et al. [2020], and ARC Clark et al. [2018]. These benchmarks cover a broad range of expert knowledge, reading comprehension, and commonsense reasoning scenarios.
5.1.3 Implementation Details
We conduct our evaluation using the OpenCompass framework Contributors [2023], a comprehensive platform for large model evaluation. For mathematics and coding benchmarks, which typically require open-ended generation, we evaluate models in generation mode. Conversely, for benchmarks in other domains, we employ perplexity-based (PPL) evaluation. Following the OLMES protocol Gu et al. [2025], PPL tasks are assessed under both multiple-choice formulation (MCF) and completion formulation (CF), with the superior score reported as the final result.
5.2 Evaluation Results
The performance of Kaiyuan-2B and baseline models is summarized in Tables 2 and 3, with a comprehensive comparison provided in Table 16.
Table 2: Core Capabilities: Chinese, Math, and Code.
| Model Name | Params | Chinese | Math | Code | Avg | |||
|---|---|---|---|---|---|---|---|---|
| C-Eval | CMMLU | GSM8K | MATH | sanitized-MBPP | HumanEval | |||
| 5 shot | 5 shot | 4 shot | 4 shot | 3 shot | 3 shot | |||
| Open-Weight SOTA | ||||||||
| Qwen2-1.5B | 1.5B | 71.29 | 70.62 | 58.50*∗* | 21.70*∗* | 50.58 | 31.10*∗* | 50.63 |
| Qwen2.5-1.5B | 1.5B | 68.63 | 68.01 | 68.50*∗* | 35.00*∗* | 58.37 | 37.20*∗* | 55.95 |
| Qwen2.5-3B | 3B | 74.65 | 73.92 | 79.10*∗* | 42.60*∗* | 66.54 | 42.10*∗* | 63.15 |
| Qwen3-0.6B | 0.6B | 57.03 | 52.36 | 59.59*∗* | 32.44*∗* | 51.75 | 29.88 | 47.18 |
| Qwen3-1.7B | 1.7B | 66.70 | 66.55 | 75.44*∗* | 43.5*∗* | 64.20 | 52.44 | 61.47 |
| Qwen3-4B | 4B | 78.5 | 77.01 | 87.79*∗* | 54.10*∗* | 74.32 | 62.20 | 72.32 |
| Gemma2-2B | 2B | 41.35 | 39.63 | 23.90*∗* | 15.00*∗* | 38.91 | 17.70*∗* | 29.42 |
| Llama-3.2-1B | 1B | 29.82 | 31.03 | 44.40*∗* | 30.60*∗* | 34.63 | 18.90 | 31.56 |
| Llama-3.2-3B | 3B | 45.67 | 44.33 | 77.70*∗* | 48.00*∗* | 49.42 | 29.88 | 49.17 |
| Fully-Open SOTA | ||||||||
| SmolLM2-1.7B | 1.7B | 35.06 | 34.03 | 31.10*∗* | 11.60*∗* | 49.42 | 22.60*∗* | 30.64 |
| OLMo-2-0425-1B | 1B | 30.53 | 28.62 | 68.30*∗* | 20.70*∗* | 15.56 | 6.71 | 28.40 |
| YuLan-Mini-2.4B | 2.4B | 52.32 | 48.14 | 66.65*∗* | 27.12 | 62.26 | 61.60*∗* | 53.02 |
| SmolLM3-3B | 3B | 50.84 | 49.35 | 67.63*∗* | 46.10*∗* | 62.26 | 39.63 | 52.64 |
| Ours | ||||||||
| PCMind-2.1-Kaiyuan-2B | 2B | 46.30 | 49.25 | 51.33 | 30.34 | 56.42 | 42.68 | 46.05 |
*
This score is cited from the corresponding official report or paper.
Core Capabilities: Math, Code, and Chinese. In Table 2, we focus on three specialized capabilities of the model: mathematics, coding, and Chinese language2. Kaiyuan-2B achieves an average score of 46.05 across these seven benchmarks. It outperforms fully-open models of similar scale, such as SmolLM2-1.7B and OLMo-2-0425-1B, and remains competitive with larger models like YuLan-Mini-2.4B and SmolLM3-3B, despite a smaller parameter count. Specifically, on Chinese benchmarks (C-Eval and CMMLU), Kaiyuan-2B scores 46.30 and 49.25, respectively—markedly higher than SmolLM2-1.7B and OLMo-2-0425-1B, and approaching the performance of the larger SmolLM3-3B. On mathematics, Kaiyuan-2B achieves 51.33 on GSM8K, substantially surpassing SmolLM2-1.7B, and scores 30.34 on MATH, outperforming YuLan-Mini-2.4B (27.12). Similarly, in code generation, our model reaches 42.68 on HumanEval, exceeding both SmolLM3-3B (39.63) and Qwen2.5-3B (42.10). The results demonstrate Kaiyuan-2B offers a superior trade-off between accuracy and model size in critical domains.
Reasoning and Knowledge. Table 3 presents performance on nine reasoning and knowledge benchmarks. Kaiyuan-2B achieves an average score of 67.74, placing it firmly within the competitive range for its size class. Within the fully-open category, our model surpasses SmolLM2-1.7B (+1.69 average) and OLMo-2-0425-1B (+5.68 average), while effectively matching the larger YuLan-Mini-2.4B (67.50). Although the larger SmolLM3-3B attains a higher average (72.60), Kaiyuan-2B significantly narrows the gap to the state-of-the-art for fully-open models at this scale. When compared to open-weight models, Kaiyuan-2B achieves an average score of 67.74, approaching Gemma2-2B (69.16) despite using comparable training data. Larger open-weight models like Qwen3-4B maintain a substantial lead (81.84), which is expected given their significantly larger scale and training resources.
Table 3: Reasoning and Knowledge Capabilities.
| Model Name | Params | Reasoning & Knowledge | Avg | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| MMLU | ARC-C | ARC-E | BoolQ | CSQA | HSwag | PIQA | SocIQ | Wino | |||
| 5 shot | 5 shot | 5 shot | 5 shot | 5 shot | 5 shot | 5 shot | 5 shot | 5 shot | |||
| Open-Weight SOTA | |||||||||||
| Qwen2-1.5B | 1.5B | 56.36 | 70.17 | 83.60 | 71.90 | 70.52 | 60.77 | 75.73 | 63.46 | 59.83 | 68.04 |
| Qwen2.5-1.5B | 1.5B | 61.56 | 79.32 | 90.48 | 76.39 | 75.10 | 64.18 | 76.17 | 64.94 | 59.67 | 71.98 |
| Qwen2.5-3B | 3B | 66.86 | 86.44 | 92.59 | 83.88 | 76.09 | 73.85 | 81.45 | 69.40 | 63.69 | 77.14 |
| Qwen3-0.6B | 0.6B | 55.09 | 68.14 | 84.48 | 69.05 | 61.18 | 48.51 | 69.97 | 61.51 | 55.64 | 63.73 |
| Qwen3-1.7B | 1.7B | 65.35 | 80.34 | 91.89 | 79.82 | 74.61 | 60.76 | 77.20 | 68.58 | 59.27 | 73.09 |
| Qwen3-4B | 4B | 75.78 | 89.83 | 97.53 | 86.09 | 81.9 | 79.46 | 84.98 | 75.59 | 65.43 | 81.84 |
| Gemma2-2B | 2B | 55.20 | 66.44 | 82.54 | 72.42 | 69.45 | 66.20 | 78.89 | 65.92 | 65.35 | 69.16 |
| Llama-3.2-1B | 1B | 37.74 | 36.95 | 70.55 | 67.43 | 62.82 | 60.20 | 74.92 | 50.61 | 58.17 | 57.71 |
| Llama-3.2-3B | 3B | 57.87 | 72.20 | 83.95 | 76.73 | 70.35 | 71.06 | 79.05 | 64.33 | 64.09 | 71.07 |
| Fully-Open SOTA | |||||||||||
| SmolLM2-1.7B | 1.7B | 51.99 | 59.66 | 82.72 | 69.85 | 67.16 | 65.30 | 78.51 | 60.18 | 59.12 | 66.05 |
| OLMo-2-0425-1B | 1B | 44.25 | 47.46 | 76.72 | 70.55 | 65.60 | 61.61 | 76.44 | 55.53 | 60.38 | 62.06 |
| YuLan-Mini-2.4B | 2.4B | 51.76 | 64.75 | 82.54 | 78.59 | 66.18 | 61.20 | 77.31 | 63.25 | 61.88 | 67.50 |
| SmolLM3-3B | 3B | 63.04 | 77.29 | 88.54 | 76.12 | 70.52 | 69.20 | 79.05 | 65.25 | 64.40 | 72.60 |
| Ours | |||||||||||
| PCMind-2.1-Kaiyuan-2B | 2B | 53.90 | 66.10 | 82.89 | 78.53 | 67.40 | 58.13 | 74.37 | 62.59 | 65.75 | 67.74 |
Discussion on Size and Performance Trade-offs.
The overall trade-off between model size and average benchmark performance is visualized in Figure 1. The figure reveals that Kaiyuan-2B lies beyond the current fully-open frontier: at comparable parameter counts, it clearly outperforms earlier fully-open models (e.g., OLMo-2-1B, SmolLM2-1.7B) and approaches the performance of the larger YuLan-Mini-2.4B. Moreover, if adhering to the convention of comparing non-embedding parameters to get rid of the vocabulary effect, our Kaiyuan-2B can exhibit even more prominent advantages, as shown in Figure 8. We compare different models according to non-embedding parameters in Section 5.3.
Furthermore, when compared to open-weight baselines of similar size, Kaiyuan-2B demonstrates superior architectural efficiency. For instance, compared to Gemma2-2B, Kaiyuan-2B utilizes fewer model parameters (1.4B non-embedding and 2B total parameters, versus Gemma2-2B’s 2B non-embedding and 2.6B total parameters) while maintaining a similar token budget (2.2T tokens forKaiyuan-2B versus 2T for Gemma2-2B). Despite these reduced resource requirements, Kaiyuan-2B achieves stronger performance on core capabilities (Chinese, Math, Code) and competitive reasoning scores, as shown in Tables 2, 3 and 16. Although a performance gap remains compared to the Qwen series, likely attributable to their massive training data scale (e.g., 36T tokens), Kaiyuan-2B occupies a favorable position in the size-performance landscape, offering a strong, fully-open alternative for resource-constrained environments.
5.3 Non-Embedding Based Comparison
In practice, the vocabulary sizes are different across different models, and embedding layers commonly account for relatively lower compute per parameter. We also note that the naming of different models has no consensus on using total parameters or non-embedding parameters in the model name. Hence, to conduct a more complete comparison, we also take statistics on both total parameters and non-embedding parameters of different open-weight and fully open-source models, and report the results in Table 4. In addition, taking non-embedding parameter as the X-axis, we report an additional comparison in Figure 8. We find that our model still excels the frontier of fully open-source models, and approaches close to leading open-weight models, like the Qwen series of a similar scale. Our advantage over other fully open-source models looks more prominent when taking account the non-embedding parameters.
Figure 8: Model Performance Comparison over Non-embedding Parameters.
Table 4: Model Parameter Statistics Comparison.
| Model Name | Total | Embedding | Non-Embedding | Tied Embedding |
|---|---|---|---|---|
| SOTA Models | ||||
| Qwen2-1.5B | 1.54B | 0.23B | 1.31B | TRUE |
| Qwen2.5-1.5B | 1.54B | 0.23B | 1.31B | TRUE |
| Qwen2.5-3B | 3.09B | 0.31B | 2.77B | TRUE |
| Qwen3-0.6B-Base | 0.60B | 0.16B | 0.44B | TRUE |
| Qwen3-1.7B-Base | 1.72B | 0.31B | 1.41B | TRUE |
| Qwen3-4B-Base | 4.02B | 0.39B | 3.63B | TRUE |
| Gemma-2-2B | 2.61B | 0.59B | 2.02B | TRUE |
| Llama-3.2-1B | 1.24B | 0.26B | 0.97B | TRUE |
| Llama-3.2-3B | 3.21B | 0.39B | 2.82B | TRUE |
| Fully-Open SOTA Models | ||||
| SmolLM2-1.7B | 1.71B | 0.10B | 1.61B | TRUE |
| OLMo-2-0425-1B | 1.48B | 0.41B | 1.07B | FALSE |
| YuLan-Mini | 2.42B | 0.38B | 2.04B | FALSE |
| SmolLM3-3B | 3.08B | 0.26B | 2.81B | TRUE |
| Ours | ||||
| PCMind-2.1-Kaiyuan-2B | 2.03B | 0.62B | 1.41B | FALSE |
6 Conclusion
The Kaiyuan-2B project successfully demonstrates a systematic and resource-efficient approach to fully open-source LLM pretraining, providing concrete answers to the challenges of data heterogeneity and computational scarcity. Our core contributions include Quantile Data Benchmarking, Strategic Manual Repetition, and Multi-Domain Curriculum Training. Together, they represent a practical framework for the academic community to select and utilize public data effectively. By releasing the model checkpoint, the open-source data preprocessing framework, and the final pretraining dataset, we provide a complete, transparent recipe for high-quality LLM pretraining. We believe Kaiyuan-2B is a valuable contribution that will facilitate further exploration and innovation in the open-source LLM ecosystem, pushing the frontier of what is achievable under limited resources.
References
- Allal et al. (2025a) L. B. Allal, A. Lozhkov, E. Bakouch, G. M. Blázquez, G. Penedo, L. Tunstall, A. Marafioti, H. Kydlícek, A. P. Lajarín, V. Srivastav, J. Lochner, C. Fahlgren, X. Nguyen, C. Fourrier, B. Burtenshaw, H. Larcher, H. Zhao, C. Zakka, M. Morlon, C. Raffel, L. von Werra, and T. Wolf. SmolLM2: when smol goes big - data-centric training of a small language model. CoRR abs/2502.02737. External Links: Document, Link, 2502.02737.
- Allal et al. (2025b) L. B. Allal, A. Lozhkov, E. Bakouch, G. M. Blázquez, G. Penedo, L. Tunstall, A. Marafioti, H. Kydlíček, A. P. Lajarín, V. Srivastav, J. Lochner, C. Fahlgren, X. Nguyen, C. Fourrier, B. Burtenshaw, H. Larcher, H. Zhao, C. Zakka, M. Morlon, C. Raffel, L. von Werra, and T. Wolf. SmolLM2: when smol goes big – data-centric training of a small language model. External Links: Link, 2502.02737.
- arXiv info (2025a) arXiv info. License and copyright - arXiv info — info.arxiv.org. Note: [Accessed 03-12-2025]https://info.arxiv.org/help/license/index.html
- arXiv info (2025b) arXiv info. Terms of Use for arXiv APIs - arXiv info — info.arxiv.org. Note: [Accessed 03-12-2025]https://info.arxiv.org/help/api/tou.html
- Austin et al. (2021) J. Austin, A. Odena, M. I. Nye, M. Bosma, H. Michalewski, D. Dohan, E. Jiang, C. J. Cai, M. Terry, Q. V. Le, and C. Sutton. Program synthesis with large language models. CoRR abs/2108.07732. External Links: Link, 2108.07732.
- Azerbayev et al. (2023) Z. Azerbayev, H. Schoelkopf, K. Paster, M. D. Santos, S. McAleer, A. Q. Jiang, J. Deng, S. Biderman, and S. Welleck. Llemma: an open language model for mathematics. External Links: 2310.10631.
- Bakouch et al. (2025) E. Bakouch, L. Ben Allal, A. Lozhkov, N. Tazi, L. Tunstall, C. M. Patiño, E. Beeching, A. Roucher, A. J. Reedi, Q. Gallouédec, K. Rasul, N. Habib, C. Fourrier, H. Kydlicek, G. Penedo, H. Larcher, M. Morlon, V. Srivastav, J. Lochner, X. Nguyen, C. Raffel, L. von Werra, and T. Wolf. SmolLM3: smol, multilingual, long-context reasoner. Note: https://huggingface.co/blog/smollm3
- Bello et al. (2017) I. Bello, H. Pham, Q. V. Le, M. Norouzi, and S. Bengio. Neural combinatorial optimization with reinforcement learning. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Workshop Track Proceedings, External Links: Link
- Ben Allal et al. (2024) SmolLM-corpus. External Links: Link
- Bisk et al. (2020) Y. Bisk, R. Zellers, R. L. Bras, J. Gao, and Y. Choi. PIQA: reasoning about physical commonsense in natural language. In The Thirty-Fourth AAAI Conference on Artificial Intelligence, AAAI 2020, The Thirty-Second Innovative Applications of Artificial Intelligence Conference, IAAI 2020, The Tenth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2020, New York, NY, USA, February 7-12, 2020, pp. 7432–7439. External Links: Document, Link
- Chen et al. (2021) M. Chen, J. Tworek, H. Jun, Q. Yuan, H. P. de Oliveira Pinto, J. Kaplan, H. Edwards, Y. Burda, N. Joseph, G. Brockman, A. Ray, R. Puri, G. Krueger, M. Petrov, H. Khlaaf, G. Sastry, P. Mishkin, B. Chan, S. Gray, N. Ryder, M. Pavlov, A. Power, L. Kaiser, M. Bavarian, C. Winter, P. Tillet, F. P. Such, D. Cummings, M. Plappert, F. Chantzis, E. Barnes, A. Herbert-Voss, W. H. Guss, A. Nichol, A. Paino, N. Tezak, J. Tang, I. Babuschkin, S. Balaji, S. Jain, W. Saunders, C. Hesse, A. N. Carr, J. Leike, J. Achiam, V. Misra, E. Morikawa, A. Radford, M. Knight, M. Brundage, M. Murati, K. Mayer, P. Welinder, B. McGrew, D. Amodei, S. McCandlish, I. Sutskever, and W. Zaremba. Evaluating large language models trained on code. CoRR abs/2107.03374. External Links: Link, 2107.03374.
- Clark et al. (2019) C. Clark, K. Lee, M. Chang, T. Kwiatkowski, M. Collins, and K. Toutanova. BoolQ: exploring the surprising difficulty of natural yes/no questions. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), J. Burstein, C. Doran, and T. Solorio (Eds.), Minneapolis, Minnesota, pp. 2924–2936. External Links: Document, Link
- Clark et al. (2018) P. Clark, I. Cowhey, O. Etzioni, T. Khot, A. Sabharwal, C. Schoenick, and O. Tafjord. Think you have solved question answering? try ARC, the AI2 reasoning challenge. CoRR abs/1803.05457. External Links: Link, 1803.05457.
- Cobbe et al. (2021) K. Cobbe, V. Kosaraju, M. Bavarian, M. Chen, H. Jun, L. Kaiser, M. Plappert, J. Tworek, J. Hilton, R. Nakano, C. Hesse, and J. Schulman. Training verifiers to solve math word problems. CoRR abs/2110.14168. External Links: Link, 2110.14168.
- Community (2024) O. Community. OpenCSG model community license. Note: [Accessed 03-12-2025]https://huggingface.co/datasets/opencsg/chinese-fineweb-edu/blob/main/opencsg%E6%A8%A1%E5%9E%8B%E7%A4%BE%E5%8C%BA%E8%AE%B8%E5%8F%AF%E5%8D%8F%E8%AE%AE.pdf
- Computer (2023) RedPajama: an open source recipe to reproduce llama training dataset. External Links: Link
- Contributors (2023) O. Contributors. OpenCompass: a universal evaluation platform for foundation models. Note: https://github.com/open-compass/opencompass
- Crawl (2024) C. Crawl. Common Crawl - Terms of Use — commoncrawl.org. Note: [Accessed 03-12-2025]https://commoncrawl.org/terms-of-use
- Dauphin et al. (2017) Y. N. Dauphin, A. Fan, M. Auli, and D. Grangier. Language modeling with gated convolutional networks. In Proceedings of the 34th International Conference on Machine Learning - Volume 70, ICML’17, pp. 933–941.
- DeepSeek-AI et al. (2024) DeepSeek-AI, A. Liu, B. Feng, B. Xue, B. Wang, B. Wu, C. Lu, C. Zhao, C. Deng, C. Zhang, C. Ruan, D. Dai, D. Guo, D. Yang, D. Chen, D. Ji, E. Li, F. Lin, F. Dai, F. Luo, G. Hao, G. Chen, G. Li, H. Zhang, H. Bao, H. Xu, H. Wang, H. Zhang, H. Ding, H. Xin, H. Gao, H. Li, H. Qu, J. L. Cai, J. Liang, J. Guo, J. Ni, J. Li, J. Wang, J. Chen, J. Chen, J. Yuan, J. Qiu, J. Li, J. Song, K. Dong, K. Hu, K. Gao, K. Guan, K. Huang, K. Yu, L. Wang, L. Zhang, L. Xu, L. Xia, L. Zhao, L. Wang, L. Zhang, M. Li, M. Wang, M. Zhang, M. Zhang, M. Tang, M. Li, N. Tian, P. Huang, P. Wang, P. Zhang, Q. Wang, Q. Zhu, Q. Chen, Q. Du, R. J. Chen, R. L. Jin, R. Ge, R. Zhang, R. Pan, R. Wang, R. Xu, R. Zhang, R. Chen, S. S. Li, S. Lu, S. Zhou, S. Chen, S. Wu, S. Ye, S. Ma, S. Wang, S. Zhou, S. Yu, S. Zhou, S. Pan, T. Wang, T. Yun, T. Pei, T. Sun, W. L. Xiao, and W. Zeng. DeepSeek-V3 technical report. CoRR abs/2412.19437. External Links: Document, Link, 2412.19437.
- DeepSeek-AI (2025) DeepSeek-AI. DeepSeek-r1: incentivizing reasoning capability in llms via reinforcement learning. External Links: Link, 2501.12948.
- Ding et al. (2021) M. Ding, Z. Yang, W. Hong, W. Zheng, C. Zhou, D. Yin, J. Lin, X. Zou, Z. Shao, H. Yang, and J. Tang. CogView: mastering text-to-image generation via transformers. In Advances in Neural Information Processing Systems 34: Annual Conference on Neural Information Processing Systems 2021, NeurIPS 2021, December 6-14, 2021, virtual, M. Ranzato, A. Beygelzimer, Y. N. Dauphin, P. Liang, and J. W. Vaughan (Eds.), pp. 19822–19835. External Links: Link
- Fujii et al. (2025) K. Fujii, Y. Tajima, S. Mizuki, H. Shimada, T. Shiotani, K. Saito, M. Ohi, M. Kawamura, T. Nakamura, T. Okamoto, S. Ishida, K. Hattori, Y. Ma, H. Takamura, R. Yokota, and N. Okazaki. Rewriting pre-training data boosts llm performance in math and code. External Links: Link, 2505.02881.
- Groeneveld et al. (2024) D. Groeneveld, I. Beltagy, E. Walsh, A. Bhagia, R. Kinney, O. Tafjord, A. Jha, H. Ivison, I. Magnusson, Y. Wang, S. Arora, D. Atkinson, R. Authur, K. Chandu, A. Cohan, J. Dumas, Y. Elazar, Y. Gu, J. Hessel, T. Khot, W. Merrill, J. Morrison, N. Muennighoff, A. Naik, C. Nam, M. Peters, V. Pyatkin, A. Ravichander, D. Schwenk, S. Shah, W. Smith, E. Strubell, N. Subramani, M. Wortsman, P. Dasigi, N. Lambert, K. Richardson, L. Zettlemoyer, J. Dodge, K. Lo, L. Soldaini, N. Smith, and H. Hajishirzi. OLMo: accelerating the science of language models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), L. Ku, A. Martins, and V. Srikumar (Eds.), Bangkok, Thailand, pp. 15789–15809. External Links: Document, Link
- Gu et al. (2025) Y. Gu, O. Tafjord, B. Kuehl, D. Haddad, J. Dodge, and H. Hajishirzi. OLMES: A standard for language model evaluations. In Findings of the Association for Computational Linguistics: NAACL 2025, Albuquerque, New Mexico, USA, April 29 - May 4, 2025, L. Chiruzzo, A. Ritter, and L. Wang (Eds.), pp. 5005–5033. External Links: Document, Link
- Hägele et al. (2024) A. Hägele, E. Bakouch, A. Kosson, L. B. Allal, L. von Werra, and M. Jaggi. Scaling laws and compute-optimal training beyond fixed training durations. In Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024, A. Globersons, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. M. Tomczak, and C. Zhang (Eds.), External Links: Link.
- He et al. (2023) C. He, Z. Jin, C. Xu, J. Qiu, B. Wang, W. Li, H. Yan, J. Wang, and D. Lin. WanJuan: a comprehensive multimodal dataset for advancing english and chinese large models. External Links: 2308.10755.
- He et al. (2024) C. He, W. Li, Z. Jin, C. Xu, B. Wang, and D. Lin. OpenDataLab: empowering general artificial intelligence with open datasets. External Links: Link, 2407.13773.
- Heineman et al. (2025) D. Heineman, V. Hofmann, I. Magnusson, Y. Gu, N. A. Smith, H. Hajishirzi, K. Lo, and J. Dodge. Signal and noise: A framework for reducing uncertainty in language model evaluation. CoRR abs/2508.13144. External Links: Document, Link, 2508.13144.
- Hendrycks et al. (2021a) D. Hendrycks, C. Burns, S. Basart, A. Critch, J. Li, D. Song, and J. Steinhardt. Aligning ai with shared human values. Proceedings of the International Conference on Learning Representations (ICLR).
- Hendrycks et al. (2021b) D. Hendrycks, C. Burns, S. Basart, A. Zou, M. Mazeika, D. Song, and J. Steinhardt. Measuring massive multitask language understanding. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021, External Links: Link
- Hendrycks et al. (2021c) D. Hendrycks, C. Burns, S. Kadavath, A. Arora, S. Basart, E. Tang, D. Song, and J. Steinhardt. Measuring mathematical problem solving with the MATH dataset. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks 1, NeurIPS Datasets and Benchmarks 2021, December 2021, virtual, J. Vanschoren and S. Yeung (Eds.), External Links: Link
- Henry et al. (2020) A. Henry, P. R. Dachapally, S. S. Pawar, and Y. Chen. Query-key normalization for transformers. In Findings of the Association for Computational Linguistics: EMNLP 2020, Online Event, 16-20 November 2020, T. Cohn, Y. He, and Y. Liu (Eds.), Findings of ACL, Vol. EMNLP 2020, pp. 4246–4253. External Links: Document, Link
- Hernandez et al. (2021) D. Hernandez, J. Kaplan, T. Henighan, and S. McCandlish. Scaling laws for transfer. CoRR abs/2102.01293. External Links: Link, 2102.01293.
- Hu et al. (2024a) S. Hu, Y. Tu, X. Han, G. Cui, C. He, W. Zhao, X. Long, Z. Zheng, Y. Fang, Y. Huang, X. Zhang, Z. L. Thai, C. Wang, Y. Yao, C. Zhao, J. Zhou, J. Cai, Z. Zhai, N. Ding, C. Jia, G. Zeng, dahai li, Z. Liu, and M. Sun. MiniCPM: unveiling the potential of small language models with scalable training strategies. In First Conference on Language Modeling, External Links: Link
- Hu et al. (2024b) Y. Hu, H. Song, J. Deng, J. Wang, J. Chen, K. Zhou, Y. Zhu, J. Jiang, Z. Dong, W. X. Zhao, et al. YuLan-mini: an open data-efficient language model. arXiv preprint arXiv:2412.17743.
- Huang et al. (2023) Y. Huang, Y. Bai, Z. Zhu, J. Zhang, J. Zhang, T. Su, J. Liu, C. Lv, Y. Zhang, J. Lei, Y. Fu, M. Sun, and J. He. C-eval: A multi-level multi-discipline chinese evaluation suite for foundation models. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine (Eds.), External Links: Link.
- Kaplan et al. (2020) J. Kaplan, S. McCandlish, T. Henighan, T. B. Brown, B. Chess, R. Child, S. Gray, A. Radford, J. Wu, and D. Amodei. Scaling laws for neural language models. CoRR abs/2001.08361. External Links: Link, 2001.08361.
- Kocetkov et al. (2022) D. Kocetkov, R. Li, L. Ben Allal, J. Li, C. Mou, C. Muñoz Ferrandis, Y. Jernite, M. Mitchell, S. Hughes, T. Wolf, D. Bahdanau, L. von Werra, and H. de Vries. The stack: 3 tb of permissively licensed source code. Preprint.
- Kydlíček et al. (2025) H. Kydlíček, G. Penedo, and L. von Werra. FinePDFs. Hugging Face. Note: https://huggingface.co/datasets/HuggingFaceFW/finepdfs
- Lambert et al. (2024) N. Lambert, J. Morrison, V. Pyatkin, S. Huang, H. Ivison, F. Brahman, L. J. V. Miranda, A. Liu, N. Dziri, S. Lyu, Y. Gu, S. Malik, V. Graf, J. D. Hwang, J. Yang, R. L. Bras, O. Tafjord, C. Wilhelm, L. Soldaini, N. A. Smith, Y. Wang, P. Dasigi, and H. Hajishirzi. Tülu 3: pushing frontiers in open language model post-training.
- Li et al. (2024a) H. Li, Y. Zhang, F. Koto, Y. Yang, H. Zhao, Y. Gong, N. Duan, and T. Baldwin. CMMLU: measuring massive multitask language understanding in chinese. In Findings of the Association for Computational Linguistics, ACL 2024, Bangkok, Thailand and virtual meeting, August 11-16, 2024, L. Ku, A. Martins, and V. Srikumar (Eds.), pp. 11260–11285. External Links: Document, Link
- Li et al. (2024b) J. Li, A. Fang, G. Smyrnis, M. Ivgi, M. Jordan, S. Gadre, H. Bansal, E. Guha, S. Keh, K. Arora, S. Garg, R. Xin, N. Muennighoff, R. Heckel, J. Mercat, M. Chen, S. Gururangan, M. Wortsman, A. Albalak, Y. Bitton, M. Nezhurina, A. Abbas, C. Hsieh, D. Ghosh, J. Gardner, M. Kilian, H. Zhang, R. Shao, S. Pratt, S. Sanyal, G. Ilharco, G. Daras, K. Marathe, A. Gokaslan, J. Zhang, K. Chandu, T. Nguyen, I. Vasiljevic, S. Kakade, S. Song, S. Sanghavi, F. Faghri, S. Oh, L. Zettlemoyer, K. Lo, A. El-Nouby, H. Pouransari, A. Toshev, S. Wang, D. Groeneveld, L. Soldaini, P. W. Koh, J. Jitsev, T. Kollar, A. G. Dimakis, Y. Carmon, A. Dave, L. Schmidt, and V. Shankar. DataComp-lm: in search of the next generation of training sets for language models. External Links: 2406.11794.
- Li et al. (2024c) J. Li, A. Fang, G. Smyrnis, M. Ivgi, M. Jordan, S. Y. Gadre, H. Bansal, E. K. Guha, S. S. Keh, K. Arora, S. Garg, R. Xin, N. Muennighoff, R. Heckel, J. Mercat, M. F. Chen, S. Gururangan, M. Wortsman, A. Albalak, Y. Bitton, M. Nezhurina, A. Abbas, C. Hsieh, D. Ghosh, J. Gardner, M. Kilian, H. Zhang, R. Shao, S. M. Pratt, S. Sanyal, G. Ilharco, G. Daras, K. Marathe, A. Gokaslan, J. Zhang, K. R. Chandu, T. Nguyen, I. Vasiljevic, S. M. Kakade, S. Song, S. Sanghavi, F. Faghri, S. Oh, L. Zettlemoyer, K. Lo, A. El-Nouby, H. Pouransari, A. Toshev, S. Wang, D. Groeneveld, L. Soldaini, P. W. Koh, J. Jitsev, T. Kollar, A. Dimakis, Y. Carmon, A. Dave, L. Schmidt, and V. Shankar. DataComp-LM: in search of the next generation of training sets for language models. In Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024, A. Globersons, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. M. Tomczak, and C. Zhang (Eds.), External Links: Link.
- Li et al. (2025) Y. Li, Y. Ma, S. Yan, C. Zhang, J. Liu, J. Lu, Z. Xu, M. Chen, M. Wang, S. Zhan, J. Ma, X. Lai, D. Liu, Y. Luo, X. Bin, H. Ren, M. Han, W. Hao, B. Yi, L. Liu, B. Ma, X. Jia, X. Zhou, S. Qiao, L. Xiang, and Y. Wu. Model merging in pre-training of large language models. CoRR abs/2505.12082. External Links: Document, Link, 2505.12082.
- Longpre et al. (2023) S. Longpre, L. Hou, T. Vu, A. Webson, H. W. Chung, Y. Tay, D. Zhou, Q. V. Le, B. Zoph, J. Wei, and A. Roberts. The flan collection: designing data and methods for effective instruction tuning. External Links: 2301.13688.
- Lozhkov et al. (2024a) A. Lozhkov, R. Li, L. B. Allal, F. Cassano, J. Lamy-Poirier, N. Tazi, A. Tang, D. Pykhtar, J. Liu, Y. Wei, T. Liu, M. Tian, D. Kocetkov, A. Zucker, Y. Belkada, Z. Wang, Q. Liu, D. Abulkhanov, I. Paul, Z. Li, W. Li, M. Risdal, J. Li, J. Zhu, T. Y. Zhuo, E. Zheltonozhskii, N. O. O. Dade, W. Yu, L. Krauß, N. Jain, Y. Su, X. He, M. Dey, E. Abati, Y. Chai, N. Muennighoff, X. Tang, M. Oblokulov, C. Akiki, M. Marone, C. Mou, M. Mishra, A. Gu, B. Hui, T. Dao, A. Zebaze, O. Dehaene, N. Patry, C. Xu, J. McAuley, H. Hu, T. Scholak, S. Paquet, J. Robinson, C. J. Anderson, N. Chapados, M. Patwary, N. Tajbakhsh, Y. Jernite, C. M. Ferrandis, L. Zhang, S. Hughes, T. Wolf, A. Guha, L. von Werra, and H. de Vries. StarCoder 2 and the stack v2: the next generation. External Links: 2402.19173.
- Lozhkov et al. (2024b) A. Lozhkov, R. Li, L. B. Allal, F. Cassano, J. Lamy-Poirier, N. Tazi, A. Tang, D. Pykhtar, J. Liu, Y. Wei, T. Liu, M. Tian, D. Kocetkov, A. Zucker, Y. Belkada, Z. Wang, Q. Liu, D. Abulkhanov, I. Paul, Z. Li, W. Li, M. Risdal, J. Li, J. Zhu, T. Y. Zhuo, E. Zheltonozhskii, N. O. O. Dade, W. Yu, L. Krauß, N. Jain, Y. Su, X. He, M. Dey, E. Abati, Y. Chai, N. Muennighoff, X. Tang, M. Oblokulov, C. Akiki, M. Marone, C. Mou, M. Mishra, A. Gu, B. Hui, T. Dao, A. Zebaze, O. Dehaene, N. Patry, C. Xu, J. J. McAuley, H. Hu, T. Scholak, S. Paquet, J. Robinson, C. J. Anderson, N. Chapados, and et al. StarCoder 2 and the stack v2: the next generation. CoRR abs/2402.19173. External Links: Link
- Luo et al. (2025) K. Luo, Z. Sun, H. Wen, X. Shi, J. Cui, C. Dang, K. Lyu, and W. Chen. How learning rate decay wastes your best data in curriculum-based llm pretraining. External Links: Link, 2511.18903.
- Malladi et al. (2022) S. Malladi, K. Lyu, A. Panigrahi, and S. Arora. On the sdes and scaling rules for adaptive gradient algorithms. In Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 - December 9, 2022, S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh (Eds.), External Links: Link.
- Meta AI (2024) Meta AI. Llama 3.2: revolutionizing edge ai and vision with open, customizable models. External Links: Link
- Mihaylov et al. (2018) T. Mihaylov, P. Clark, T. Khot, and A. Sabharwal. Can a suit of armor conduct electricity? a new dataset for open book question answering. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, E. Riloff, D. Chiang, J. Hockenmaier, and J. Tsujii (Eds.), Brussels, Belgium, pp. 2381–2391. External Links: Document, Link
- Muennighoff et al. (2023) N. Muennighoff, A. M. Rush, B. Barak, T. L. Scao, N. Tazi, A. Piktus, S. Pyysalo, T. Wolf, and C. A. Raffel. Scaling data-constrained language models. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine (Eds.),
- Muennighoff et al. (2025) N. Muennighoff, L. Soldaini, D. Groeneveld, K. Lo, J. Morrison, S. Min, W. Shi, E. P. Walsh, O. Tafjord, N. Lambert, Y. Gu, S. Arora, A. Bhagia, D. Schwenk, D. Wadden, A. Wettig, B. Hui, T. Dettmers, D. Kiela, A. Farhadi, and et al. OLMoE: open mixture-of-experts language models. In The Thirteenth International Conference on Learning Representations, ICLR 2025, Singapore, April 24-28, 2025, External Links: Link
- Mukherjee et al. (2023) S. Mukherjee, A. Mitra, G. Jawahar, S. Agarwal, H. Palangi, and A. Awadallah. Orca: progressive learning from complex explanation traces of gpt-4. External Links: 2306.02707.
- NVIDIA (2025) NVIDIA. NVIDIA data agreement for model training. Note: [Accessed 03-12-2025]https://huggingface.co/datasets/nvidia/Nemotron-Pretraining-Dataset-sample/blob/main/LICENSE.md
- of Artificial Intelligence (2023) B. A. of Artificial Intelligence. Chinese corpus internet usage agreement. Note: [Accessed 03-12-2025]https://data.baai.ac.cn/resources/agreement/cci_usage_aggrement.pdf
- OLMo et al. (2025) T. OLMo, P. Walsh, L. Soldaini, D. Groeneveld, K. Lo, S. Arora, A. Bhagia, Y. Gu, S. Huang, M. Jordan, N. Lambert, D. Schwenk, O. Tafjord, T. Anderson, D. Atkinson, F. Brahman, C. Clark, P. Dasigi, N. Dziri, M. Guerquin, H. Ivison, P. W. Koh, J. Liu, S. Malik, W. Merrill, L. J. V. Miranda, J. Morrison, T. Murray, C. Nam, V. Pyatkin, A. Rangapur, M. Schmitz, S. Skjonsberg, D. Wadden, C. Wilhelm, M. Wilson, L. Zettlemoyer, A. Farhadi, N. A. Smith, and H. Hajishirzi. 2 OLMo 2 furious. CoRR abs/2501.00656. External Links: Document, Link, 2501.00656.
- OpenAI (2023) OpenAI. GPT-4 technical report. CoRR abs/2303.08774. External Links: Document, Link, 2303.08774.
- Paster et al. (2023) K. Paster, M. D. Santos, Z. Azerbayev, and J. Ba. OpenWebMath: an open dataset of high-quality mathematical web text. External Links: 2310.06786.
- Penedo et al. (2024) G. Penedo, H. Kydlícek, L. B. Allal, A. Lozhkov, M. Mitchell, C. A. Raffel, L. von Werra, and T. Wolf. The fineweb datasets: decanting the web for the finest text data at scale. In Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024, A. Globersons, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. M. Tomczak, and C. Zhang (Eds.), External Links: Link.
- Penedo (2025) G. Penedo. FineWiki. Hugging Face Datasets. Note: Source: Wikimedia Enterprise Snapshot API (https://api.enterprise.wikimedia.com/v2/snapshots). Text licensed under CC BY-SA 4.0 with attribution to Wikipedia contributors. External Links: Link
- Rivière et al. (2024) M. Rivière, S. Pathak, P. G. Sessa, C. Hardin, S. Bhupatiraju, L. Hussenot, T. Mesnard, B. Shahriari, A. Ramé, J. Ferret, P. Liu, P. Tafti, A. Friesen, M. Casbon, S. Ramos, R. Kumar, C. L. Lan, S. Jerome, A. Tsitsulin, N. Vieillard, P. Stanczyk, S. Girgin, N. Momchev, M. Hoffman, S. Thakoor, J. Grill, B. Neyshabur, O. Bachem, A. Walton, A. Severyn, A. Parrish, A. Ahmad, A. Hutchison, A. Abdagic, A. Carl, A. Shen, A. Brock, A. Coenen, A. Laforge, A. Paterson, B. Bastian, B. Piot, B. Wu, B. Royal, C. Chen, C. Kumar, C. Perry, C. Welty, C. A. Choquette-Choo, D. Sinopalnikov, D. Weinberger, D. Vijaykumar, D. Rogozinska, D. Herbison, E. Bandy, E. Wang, E. Noland, E. Moreira, E. Senter, E. Eltyshev, F. Visin, G. Rasskin, G. Wei, G. Cameron, G. Martins, H. Hashemi, H. Klimczak-Plucinska, H. Batra, H. Dhand, I. Nardini, J. Mein, J. Zhou, J. Svensson, J. Stanway, J. Chan, J. P. Zhou, J. Carrasqueira, J. Iljazi, J. Becker, J. Fernandez, J. van Amersfoort, J. Gordon, J. Lipschultz, J. Newlan, J. Ji, K. Mohamed, K. Badola, K. Black, K. Millican, K. McDonell, K. Nguyen, K. Sodhia, K. Greene, L. L. Sjösund, L. Usui, L. Sifre, L. Heuermann, L. Lago, and L. McNealus. Gemma 2: improving open language models at a practical size. CoRR abs/2408.00118. External Links: Document, Link, 2408.00118.
- Sakaguchi et al. (2020) K. Sakaguchi, R. L. Bras, C. Bhagavatula, and Y. Choi. WinoGrande: an adversarial winograd schema challenge at scale. In The Thirty-Fourth AAAI Conference on Artificial Intelligence, AAAI 2020, The Thirty-Second Innovative Applications of Artificial Intelligence Conference, IAAI 2020, The Tenth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2020, New York, NY, USA, February 7-12, 2020, pp. 8732–8740. External Links: Document, Link
- Sap et al. (2019) M. Sap, H. Rashkin, D. Chen, R. Le Bras, and Y. Choi. Social IQa: commonsense reasoning about social interactions. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), K. Inui, J. Jiang, V. Ng, and X. Wan (Eds.), Hong Kong, China, pp. 4463–4473. External Links: Document, Link
- Shi et al. (2024) X. Shi, L. Zhao, H. Zhou, and D. Hao. IndustryCorpus2. Hugging Face. External Links: Document, Link
- Skywork-AI (2023) Skywork-AI. Skywork community license. Note: [Accessed 03-12-2025]https://huggingface.co/datasets/Skywork/SkyPile-150B/blob/main/Skywork%20Community%20License.pdf
- Su et al. (2025) D. Su, K. Kong, Y. Lin, J. Jennings, B. Norick, M. Kliegl, M. Patwary, M. Shoeybi, and B. Catanzaro. Nemotron-CC: transforming Common Crawl into a refined long-horizon pretraining dataset. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), ACL 2025, Vienna, Austria, July 27 - August 1, 2025, W. Che, J. Nabende, E. Shutova, and M. T. Pilehvar (Eds.), pp. 2459–2475. External Links: Link
- Su et al. (2024) J. Su, M. Ahmed, Y. Lu, S. Pan, W. Bo, and Y. Liu. RoFormer: enhanced transformer with rotary position embedding. Neurocomput. 568 (C). External Links: Document, ISSN 0925-2312, Link
- Talmor et al. (2019) A. Talmor, J. Herzig, N. Lourie, and J. Berant. CommonsenseQA: a question answering challenge targeting commonsense knowledge. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), J. Burstein, C. Doran, and T. Solorio (Eds.), Minneapolis, Minnesota, pp. 4149–4158. External Links: Document, Link
- Team (2025) G. Team. Gemini 2.5: pushing the frontier with advanced reasoning, multimodality, long context, and next generation agentic capabilities. CoRR abs/2507.06261. External Links: Document, Link, 2507.06261.
- Tian et al. (2025) C. Tian, J. Wang, Q. Zhao, K. Chen, J. Liu, Z. Liu, J. Mao, W. X. Zhao, Z. Zhang, and J. Zhou. WSM: decay-free learning rate schedule via checkpoint merging for LLM pre-training. CoRR abs/2507.17634. External Links: Document, Link, 2507.17634.
- Tirumala et al. (2023) K. Tirumala, D. Simig, A. Aghajanyan, and A. Morcos. D4: improving LLM pretraining via document de-duplication and diversification. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine (Eds.), External Links: Link.
- Wang et al. (2024) L. Wang, B. Zhang, C. Wu, H. Zhao, X. Shi, S. Gu, J. Li, Q. Ma, T. Pan, and G. Liu. CCI3.0-hq: a large-scale chinese dataset of high quality designed for pre-training large language models. External Links: Link, 2410.18505.
- Wei et al. (2023) T. Wei, L. Zhao, L. Zhang, B. Zhu, L. Wang, H. Yang, B. Li, C. Cheng, W. Lü, R. Hu, C. Li, L. Yang, X. Luo, X. Wu, L. Liu, W. Cheng, P. Cheng, J. Zhang, X. Zhang, L. Lin, X. Wang, Y. Ma, C. Dong, Y. Sun, Y. Chen, Y. Peng, X. Liang, S. Yan, H. Fang, and Y. Zhou. Skywork: a more open bilingual foundation model. External Links: 2310.19341.
- Wettig et al. (2025) A. Wettig, K. Lo, S. Min, H. Hajishirzi, D. Chen, and L. Soldaini. Organize the web: constructing domains enhances pre-training data curation. In Forty-second International Conference on Machine Learning, External Links: Link
- Yan et al. (2025) T. Yan, H. Wen, B. Li, K. Luo, W. Chen, and K. Lyu. Larger datasets can be repeated more: a theoretical analysis of multi-epoch scaling in linear regression. External Links: 2511.13421.
- Yang et al. (2025) A. Yang, A. Li, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Gao, C. Huang, C. Lv, C. Zheng, D. Liu, F. Zhou, F. Huang, F. Hu, H. Ge, H. Wei, H. Lin, J. Tang, J. Yang, J. Tu, J. Zhang, J. Yang, J. Yang, J. Zhou, J. Lin, K. Dang, K. Bao, K. Yang, L. Yu, L. Deng, M. Li, M. Xue, M. Li, P. Zhang, P. Wang, Q. Zhu, R. Men, R. Gao, S. Liu, S. Luo, T. Li, T. Tang, W. Yin, X. Ren, X. Wang, X. Zhang, X. Ren, Y. Fan, Y. Su, Y. Zhang, Y. Zhang, Y. Wan, Y. Liu, Z. Wang, Z. Cui, Z. Zhang, Z. Zhou, and Z. Qiu. Qwen3 technical report. CoRR abs/2505.09388. External Links: Document, Link, 2505.09388.
- Yang et al. (2024a) A. Yang, B. Yang, B. Hui, B. Zheng, B. Yu, C. Zhou, C. Li, C. Li, D. Liu, F. Huang, G. Dong, H. Wei, H. Lin, J. Tang, J. Wang, J. Yang, J. Tu, J. Zhang, J. Ma, J. Yang, J. Xu, J. Zhou, J. Bai, J. He, J. Lin, K. Dang, K. Lu, K. Chen, K. Yang, M. Li, M. Xue, N. Ni, P. Zhang, P. Wang, R. Peng, R. Men, R. Gao, R. Lin, S. Wang, S. Bai, S. Tan, T. Zhu, T. Li, T. Liu, W. Ge, X. Deng, X. Zhou, X. Ren, X. Zhang, X. Wei, X. Ren, X. Liu, Y. Fan, Y. Yao, Y. Zhang, Y. Wan, Y. Chu, Y. Liu, Z. Cui, Z. Zhang, Z. Guo, and Z. Fan. Qwen2 technical report. CoRR abs/2407.10671. External Links: Document, Link, 2407.10671.
- Yang et al. (2024b) A. Yang, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Li, D. Liu, F. Huang, H. Wei, H. Lin, J. Yang, J. Tu, J. Zhang, J. Yang, J. Yang, J. Zhou, J. Lin, K. Dang, K. Lu, K. Bao, K. Yang, L. Yu, M. Li, M. Xue, P. Zhang, Q. Zhu, R. Men, R. Lin, T. Li, T. Xia, X. Ren, X. Ren, Y. Fan, Y. Su, Y. Zhang, Y. Wan, Y. Liu, Z. Cui, Z. Zhang, and Z. Qiu. Qwen2.5 technical report. CoRR abs/2412.15115. External Links: Document, Link, 2412.15115.
- Yiwen et al. (2025) H. Yiwen, H. Song, J. Chen, J. Deng, J. Wang, K. Zhou, Y. Zhu, J. Jiang, Z. Dong, Y. Lu, X. Miao, X. Zhao, and J. Wen. YuLan-mini: pushing the limits of open data-efficient language model. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), W. Che, J. Nabende, E. Shutova, and M. T. Pilehvar (Eds.), Vienna, Austria, pp. 5374–5400. External Links: Document, ISBN 979-8-89176-251-0, Link
- Yu et al. (2021) B. Yu, G. Feng, H. Cao, X. Li, Z. Sun, H. Wang, X. Zhu, W. Zheng, and W. Chen. Chukonu: A fully-featured big data processing system by efficiently integrating a native compute engine into spark. Proc. VLDB Endow. 15 (4), pp. 872–885. External Links: Document, Link
- Yu et al. (2025a) Y. Yu, Z. Dai, Z. Wang, W. Wang, R. Chen, and J. Pei. OpenCSG chinese corpus: A series of high-quality chinese datasets for LLM training. CoRR abs/2501.08197. External Links: Document, Link, 2501.08197.
- Yu et al. (2025b) Y. Yu, Z. Dai, Z. Wang, W. Wang, R. Chen, and J. Pei. OpenCSG chinese corpus: a series of high-quality chinese datasets for llm training. External Links: Link, 2501.08197.
- Yue et al. (2025) Y. Yue, Z. Chen, R. Lu, A. Zhao, Z. Wang, Y. Yue, S. Song, and G. Huang. Does reinforcement learning really incentivize reasoning capacity in LLMs beyond the base model?. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, External Links: Link
- Zaharia et al. (2012) M. Zaharia, M. Chowdhury, T. Das, A. Dave, J. Ma, M. McCauly, M. J. Franklin, S. Shenker, and I. Stoica. Resilient distributed datasets: A fault-tolerant abstraction for in-memory cluster computing. In Proceedings of the 9th USENIX Symposium on Networked Systems Design and Implementation, NSDI 2012, San Jose, CA, USA, April 25-27, 2012, S. D. Gribble and D. Katabi (Eds.), pp. 15–28. External Links: Link
- Zellers et al. (2019) R. Zellers, A. Holtzman, Y. Bisk, A. Farhadi, and Y. Choi. HellaSwag: can a machine really finish your sentence?. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, A. Korhonen, D. Traum, and L. Màrquez (Eds.), Florence, Italy, pp. 4791–4800. External Links: Document, Link
- Zhang and Sennrich (2019) B. Zhang and R. Sennrich. Root mean square layer normalization. In Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, H. M. Wallach, H. Larochelle, A. Beygelzimer, F. d’Alché-Buc, E. B. Fox, and R. Garnett (Eds.), pp. 12360–12371. External Links: Link
- Zhang et al. (2025) Y. Zhang, Y. Luo, Y. Yuan, and A. C. Yao. Autonomous data selection with zero-shot generative classifiers for mathematical texts. In Findings of the Association for Computational Linguistics: ACL 2025, W. Che, J. Nabende, E. Shutova, and M. T. Pilehvar (Eds.), Vienna, Austria, pp. 4168–4189. External Links: Document, ISBN 979-8-89176-256-5, Link
- Zhang et al. (2021a) Z. Zhang, Y. Gu, X. Han, S. Chen, C. Xiao, Z. Sun, Y. Yao, F. Qi, J. Guan, P. Ke, Y. Cai, G. Zeng, Z. Tan, Z. Liu, M. Huang, W. Han, Y. Liu, X. Zhu, and M. Sun. CPM-2: large-scale cost-effective pre-trained language models. AI Open 2, pp. 216–224. External Links: Document, ISSN 2666-6510, Link
- Zhang et al. (2021b) Z. Zhang, X. Han, H. Zhou, P. Ke, Y. Gu, D. Ye, Y. Qin, Y. Su, H. Ji, J. Guan, F. Qi, X. Wang, Y. Zheng, G. Zeng, H. Cao, S. Chen, D. Li, Z. Sun, Z. Liu, M. Huang, W. Han, J. Tang, J. Li, X. Zhu, and M. Sun. CPM: a large-scale generative chinese pre-trained language model. AI Open 2, pp. 93–99. External Links: Document, ISSN 2666-6510, Link
- Zhou et al. (2025) F. Zhou, Z. Wang, N. Ranjan, Z. Cheng, L. Tang, G. He, Z. Liu, and E. P. Xing. MegaMath: pushing the limits of open math corpora. CoRR abs/2504.02807. External Links: Document, Link, 2504.02807.
- Zhou et al. (2024) K. Zhou, B. Zhang, J. Wang, Z. Chen, W. X. Zhao, J. Sha, Z. Sheng, S. Wang, and J. Wen. JiuZhang3.0: efficiently improving mathematical reasoning by training small data synthesis models.
- Zhu et al. (2024) Y. Zhu, K. Zhou, K. Mao, W. Chen, Y. Sun, Z. Chen, Q. Cao, Y. Wu, Y. Chen, F. Wang, L. Zhang, J. Li, X. Wang, L. Wang, B. Zhang, Z. Dong, X. Cheng, Y. Chen, X. Tang, Y. Hou, Q. Ren, X. Pang, S. Xie, W. X. Zhao, Z. Dou, J. Mao, Y. Lin, R. Song, J. Xu, X. Chen, R. Yan, Z. Wei, D. Hu, W. Huang, Z. Gao, Y. Chen, W. Lu, and J. Wen. YuLan: an open-source large language model. CoRR abs/2406.19853. External Links: Document, Link, 2406.19853.
Appendices
Appendix A Quality-Score Quantile Benchmarking
We show full quantile benchmarking results in Figures 9 and 10. The overall observations are discussed in Section 3 in detail. The DCLM-Baseline leading experiments are shown in Figure 9 and Fineweb-Edu leading experiments are shown in Figure 10.
Figure 9 (not shown): Quantile Benchmarks: DCLM-Baseline is better on understanding-oriented benchmarks.
Figure 10 (not shown): Quantile Benchmarks: FineWeb-Edu is better on knowledge-oriented benchmarks.
Appendix B Datasets Used in Training
is a comprehensive list of all datasets used in the training process of PCMind-2.1-Kaiyuan-2B. All datasets are publicly available to acquire, and most of them are hosted on Hugging Face unless otherwise noted.
[ caption = All Datasets Used in the Training of PCMind-2.1-Kaiyuan-2B., label = tab:datasets, note0 = Token counts are pre-deduplication rough numbers. They may differ from the well-known ones due to partial inclusion of mixed datasets, the use of different revisions/splits/tokenizers, or some other pre-processing., note1 = This dataset originates from Common Crawl and thereby abides by its terms of use Crawl [2024]., note2 = This dataset contains source code with various licenses., note3 = The license has changed over time, according to https://stackoverflow.com/help/licensing., note4 = This dataset is created by mixing and de-duplicating all source datasets., note5 = This dataset is acquired from OpenDataLab (https://opendatalab.com)., note6 = Some old content of Wikipedia is dual-licensed under CC BY 4.0 and GFDL., ] colspec = X[0.77,l] c X[2.1,l] c X[1.9,c], width = rowhead = 1, rows = valign=m, row1 = font=, bg=gray!10, hlines,
Name Type Hugging Face ID #Tokens0 License(s)
DCLM-Baseline English mlfoundations/dclm-baseline-1.0 Li et al. [2024b] 4T CC BY 4.01 FineWiki-EN English HuggingFaceFW/finewiki Penedo [2025] 8.7B CC BY-SA 4.06 FinePDFs English HuggingFaceFW/finepdfs Kydlíček et al. [2025] 3T ODC-By 1.01 Flan English allenai/dolmino-mix-1124 17B ODC-By 1.0 Pes2O English allenai/dolmino-mix-1124 58.6B ODC-By 1.0 FineWeb-Edu-EN English HuggingFaceTB/smollm-corpus Ben Allal et al. [2024] 220B ODC-By 1.01 ArXiv English togethercomputer/RedPajama-Data-1T Computer [2023] 28B Metadata: CC0 1.0 arXiv info [2025b] Content: various arXiv info [2025a] Cosmopedia-v2 English HuggingFaceTB/smollm-corpus Ben Allal et al. [2024] 27B ODC-By 1.0
FineWiki-CN Chinese HuggingFaceFW/finewiki Penedo [2025] 1.1B CC BY-SA 4.06 Fineweb-Edu-CN Chinese opencsg/Fineweb-Edu-Chinese-V2.1 Yu et al. [2025b] 1.5T OpenCSG Community License Community [2024], Apache 2.0 Baidu-Baike Chinese mohamedah/baidu_baike 1.2B MIT UNDL ZH-EN Aligned Chinese bot-yaya/undl_zh2en_aligned 1.8B MIT Dedup-Merged-PAC-CN4 Chinese BAAI/CCI-Data BAAI/CCI2-Data BAAI/CCI3-Data Wang et al. [2024] Skywork/SkyPile-150B Wei et al. [2023] OpenDataLab/WanJuan1.0 He et al. [2023], He et al. [2024]5 BAAI/IndustryCorpus BAAI/IndustryCorpus2 Shi et al. [2024] WuDaoCorpus2.0 Zhang et al. [2021a], Zhang et al. [2021b]5 178B CCI{,2,3}-Data: CCI Usage Agreement of Artificial Intelligence [2023] SkyPile-150B: Skywork Community License Skywork-AI [2023], Apache 2.0 WanJuan1.0: CC BY-4.0 IndustryCorpus{,2}: Apache 2.0 WuDaoCorpus2.0: Apache 2.0
OpenWebMath Math open-web-math/open-web-math Paster et al. [2023] 14.7B ODC-By 1.01 FineMath Math HuggingFaceTB/finemath Allal et al. [2025b] 10B ODC-By 1.0 MegaMath-Web-Pro Math LLM360/MegaMath Zhou et al. [2025] 300B ODC-By 1.0 AutoMathText Math math-ai/AutoMathText Zhang et al. [2025] 8.7B CC BY-SA 4.0 SwallowMath-v2 Math tokyotech-llm/swallow-math-v2 Fujii et al. [2025] 32B Apache 2.0
StarCoder Code bigcode/starcoderdata Kocetkov et al. [2022] 250B Original Licenses2 Stack V2 Smol Code bigcode/the-stack-v2 Lozhkov et al. [2024a] 900B Original Licenses2 StackExchange Code togethercomputer/RedPajama-Data-1T Computer [2023] 20B CC BY-SA 2.5/3.0/4.03 Python-Edu Code HuggingFaceTB/smollm-corpus Lozhkov et al. [2024a], Ben Allal et al. [2024] 3.4B ODC-By 1.0, Original Licenses2 Algebraic-Stack Code typeof/algebraic-stack Azerbayev et al. [2023], Paster et al. [2023] 11B ODC-By 1.01 Swallow-Code-v2 Code tokyotech-llm/swallow-code-v2 Fujii et al. [2025] 49.8B Apache 2.0
SlimOrca SFT Open-Orca/SlimOrca Mukherjee et al. [2023], Longpre et al. [2023] 190M MIT JiuZhang3.0-Corpus-CoT SFT ToheartZhang/JiuZhang3.0-Corpus-CoT Zhou et al. [2024] 358B Not Specified Tulu-3-Sft-0225 SFT allenai/tulu-3-sft-mixture Lambert et al. [2024] 640M ODC-By 1.0 (mixed) downstream4 SFT cais/mmlu Hendrycks et al. [2021b], Hendrycks et al. [2021a] openai/gsm8k Cobbe et al. [2021] allenai/ai2_arc Clark et al. [2018] allenai/openbookqa Mihaylov et al. [2018] Rowan/hellaswag Zellers et al. [2019] allenai/winogrande Sakaguchi et al. [2020] 12.6M MMLU, GSM8K: MIT ai2_arc: CC BY-SA 4.0 OpenBookQA: Not Specified hellaswag: MIT winogrande: Not Specified
To enhance the reproducibility of our results and accessibility, we have conducted careful screening and selection of datasets at the best of our ability. We would like to ensure that our model (Kaiyuan-2B) and training datasets are compliant with all licenses and agreements presented in , so that they can be released under a permissive license for the community to use (still on an “as-is” and “use-at-your-own-risk” basis). Everyone can use these same datasets to reproduce our results and further adapt and/or publish both the modified datasets and models at will, free from potential legal risk.
For example, although the Nemotron series datasets from NVIDIA are also available on Hugging Face upon request, the NVIDIA Data Agreement for Model Training NVIDIA [2025] applied to them disallows redistribution, and even public display of the dataset. Therefore, they are fully excluded from our training data.
Appendix C Phase-wise Data Mixture
In this section, we first visualize the dataset counts within each domain throughout multi-phase training. The transitions of the English, Chinese, Math, Code, and SFT datasets are shown in Figures 11, 12, 14, 13 and 15, respectively. Moreover, we list the detailed dataset composition for each phase in Tables 5, 6, 7, 8 and 9, from Phase 1 to Phase 5. In these tables, there are four primary cases:
The entire dataset is used in this phase. The score column is denoted as (fully used), and the actual ratio is , such as DCLM-Baseline in Phase 1 (Table 5) and Fineweb-Edu-EN in Phase 2 (Table 6).
The dataset is filtered according to its specific score column (Score Col in the tables), retaining only top-scoring samples with an Actual Ratio. For example, Fineweb-Edu-CN in Phase 1 keeps the top of score (Table 5), and StarCoder in Phase 2 keeps the top of max_stars_count.
The dataset has no quality metrics, and we randomly select samples accounting for the Actual Ratio. For example, we randomly select of samples from StarCoder and from LLM360-Math in Phase 1 (Table 5).
The dataset is repeated within the phase. The score column is denoted as duplicate, and the actual ratio exceeds . The repetition count is determined by rounding the actual ratio according to its decimal part. For example, FineWiki-CN is repeated twice in Phase 3 (Table 7), and for Baidu-Baike in Phase 5, we round to either 1 or 2 with equal probability, then repeat the samples that many times (Table 9).
In addition, LLM360-Math is a deduplicated subset of the MegaMath dataset [Zhou et al., 2025], and we select only the top of rows from the English partition of the FinePDFs dataset [Kydlíček et al., 2025], according to Fineweb-Edu classifier scores [Penedo et al., 2024].
Figure 11: Phase-wise Dataset Mixture: English.
Figure 12: Phase-wise Dataset Mixture: Chinese.
Figure 13: Phase-wise Dataset Mixture: Code.
Figure 14: Phase-wise Dataset Mixture: Math.
Figure 15: Phase-wise Dataset Mixture: SFT.
Table 5: Phase 1 Dataset Statistics.
l c c c c Dataset Score Col Token Before (B) Token After (B) Actual Ratio DCLM-Baseline (fully used) 608.54 608.54 FineWeb-Edu-CN score 441.66 91.78 StarCoder random 190.60 19.08 LLM360-Math random 31.12 9.34
Table 6: Phase 2 Dataset Statistics.
l c c c c Dataset Score Col Token Before (B) Token After (B) Actual Ratio FineWeb-Edu-CN score 441.66 114.88 FineWiki-CN (fully used) 1.10 1.10 FineWeb-Edu-EN (fully used) 190.37 190.37 DCLM-Baseline fasttext score 608.54 203.32 Flan random 17.15 1.71 Pes2O random 60.11 3.00 FineWiki-EN (fully used) 8.74 8.74 ArXiv (fully used) 28.93 28.93 Cosmopedia-v2 (fully used) 27.41 27.41 FineMath (fully used) 10.10 10.10 OpenWebMath (fully used) 13.23 13.23 MegaMath-Web-Pro (fully used) 13.45 13.45 StackExchange (fully used) 18.46 18.46 MegaMath-Code random 42.77 21.38 StarCoder max_stars_count 190.60 19.82
Table 7: Phase 3 Dataset Statistics.
l c c c c Dataset Score Col Token Before (B) Token After (B) Actual Ratio FineWeb-Edu-CN score 441.66 74.26 FineWiki-CN duplicate 1.10 2.20 UNDL ZH-EN Aligned (fully used) 1.75 1.75 Baidu-Baike (fully used) 1.19 1.19 FineWeb-Edu-EN score 190.37 96.13 DCLM-Baseline fasttext score 608.54 33.77 FineWiki-EN duplicate 8.74 17.47 ArXiv random 28.93 17.35 FineMath score 10.10 6.00 MegaMath-Web-Pro math_score 13.45 8.13 StackExchange random 18.46 7.38 StarCoder max_stars_count 190.60 9.65 Swallow-Code-V2 score 50.62 17.00 Python-Edu score 3.41 1.56 Cosmopedia-v2 random 27.41 5.48 AutoMathText lm_q1q2_score 8.71 2.97 OpenWebMath math_score 13.23 3.57 Swallow-Math-V2 random 33.29 13.32 FinePDFs (fully used) 44.50 44.50
Table 8: Phase 4 Dataset Statistics.
l c c c c Dataset Score Col Token Before (B) Token After (B) Actual Ratio FineWeb-Edu-CN score 441.66 63.71 FineWiki-CN duplicate 1.10 2.20 Baidu-Baike duplicate 1.19 2.39 FineWeb-Edu-EN score 190.37 57.79 DCLM-Baseline fasttext score 608.54 17.32 FineWiki-EN duplicate 8.74 17.47 ArXiv random 28.93 23.15 FineMath score 10.10 7.95 MegaMath-Web-Pro math_score 13.45 10.76 StackExchange random 18.46 11.07 StarCoder max_stars_count 190.60 7.67 Downstream duplicate 0.01 0.13 Swallow-Code-V2 score 50.62 46.30 Python-Edu (fully used) 3.41 3.41 Cosmopedia-v2 random 27.41 10.97 AutoMathText (fully used) 8.71 8.71 LLM360-Math random 31.12 6.22 OpenWebMath math_score 13.23 11.66 Swallow-Math-V2 (fully used) 33.29 33.29 JiuZhang3.0-PT-CoT duplicate 3.58 7.15 FinePDFs fineweb-edu-classifier 44.50 23.38 Dedup-Merged-PAC-CN random 178.49 17.85
Table 9: Phase 5 Dataset Statistics.
l c c c c Dataset Score Col Token Before (B) Token After (B) Actual Ratio FineWeb-Edu-CN score 441.66 34.50 FineWiki-CN duplicate 1.10 2.75 UNDL ZH-EN Aligned random 1.75 0.88 Baidu-Baike duplicate 1.19 1.79 FineWeb-Edu-EN score 190.37 19.35 DCLM-Baseline fasttext score 608.54 7.06 FineWiki-EN duplicate 8.74 13.10 ArXiv random 28.93 11.60 FineMath score 10.10 3.86 MegaMath-Web-Pro math_score 13.45 5.47 StackExchange random 18.46 5.54 StarCoder max_stars_count 190.60 1.64 Downstream duplicate 0.01 0.38 Swallow-Code-V2 score 50.62 17.00 Python-Edu score 3.41 1.92 Cosmopedia-v2 random 27.41 2.74 AutoMathText lm_q1q2_score 8.71 4.32 LLM360-Math random 31.12 3.11 OpenWebMath math_score 13.23 6.41 Swallow-Math-V2 random 33.29 19.97 JiuZhang3.0-PT-CoT duplicate 3.58 7.15 FinePDFs fineweb-edu-classifier 44.50 9.86 Dedup-Merged-PAC-CN pac_score 178.49 5.77 Tulu-3-Sft-0225 duplicate 0.64 4.48 Stack V2 Smol random 127.98 25.56 Slimorca duplicate 0.20 0.40 Algebraic-Stack max_stars_count 8.51 2.17
Appendix D Experimental Settings
D.1 Implementation of Stability Components
To maintain numerical values within the FP16 safety margin without sacrificing model performance, we implement Logits Soft-Capping and Sandwich Normalization. These mechanisms cap extreme values and normalize residual branches, respectively.
Logits Soft-Capping.
Standard linear layers in Large Language Models often produce logits that grow unbounded during training, causing the Softmax function to saturate and gradients to vanish or explode. Soft-capping addresses this by squashing the logits into a fixed range using the hyperbolic tangent () function before scaling them back. Formally, given the raw logits and a capping threshold (e.g., or ), the capped logits are computed as:
In our implementation, we apply this transformation to the output logits of the language model head. This ensures that the input to the cross-entropy loss remains within the range , preventing logits from exceeding the FP16 maximum value while preserving the relative order of probabilities.
Sandwich Normalization.
In the standard Pre-Norm Transformer architecture, the input is normalized before the sub-layer (Attention or Feed-Forward Network), and the output is added directly to the residual stream: . While effective, this allows the magnitude of the residual stream to grow monotonically with depth, potentially destabilizing deep networks. Sandwich Normalization introduces an additional normalization layer explicitly on the output of the sub-layer branch before the residual addition. The modified update rule for a block containing a sub-layer (e.g., Self-Attention or MLP) is defined as:
In our implementation, we apply this strictly to the residual branches. This ensures that the contribution of each layer has unit variance, preventing the accumulation of extreme activation values as the network depth increases.
D.2 Training Configuration
In Table 10, we present the details of our training hyperparameter configuration in three parts:
For the model architecture, we primarily follow Qwen3-1.7B [Yang et al., 2025] and adopt the vocabulary from the Qwen series [Yang et al., 2024a, Yang et al., 2025]. We use for RoPE [Su et al., 2024] to support a context length of 4K. The Soft-Capping threshold is set to 30.0, as discussed in Section 2.
We use AdamW as the optimizer with and . We adopt a P with base dimension of 896 and set the learning rate to for Phase 1 and thereafter before decay.
To support FP16 training, we use dynamic loss scaling with a factor of 2 and a window of 20 to handle widely varying gradient scales.
This detailed configuration facilitates the reproduction of our training run.
Table 10: Training Hyperparameter Configuration.
| Category | Parameter | Value |
|---|---|---|
| Model Architecture | ||
| Sequence Length | 4096 | |
| Hidden Size | 2048 | |
| FFN Dimension | 6144 | |
| Number of Layers | 28 | |
| Number of Attention Heads | 16 | |
| Number of KV Heads (GQA) | 8 | |
| Vocabulary Size | 151936 | |
| Rotary | 10000.0 | |
| Logit Soft-capping threshold | 30.0 | |
| Initialization Std | 0.018 | |
| Optimizer Configuration | ||
| Optimizer Type | AdamW | |
| Learning Rate (Phase 1) | ||
| Learning Rate (Phase 2+) | ||
| Batch Size | 2048 | |
| 0.9 | ||
| 0.95 | ||
| 1e-8 | ||
| Weight Decay | 0.1 | |
| Warmup Steps | 5000 | |
| P Width Base | 896 | |
| Loss Scaling (Dynamic) | ||
| Scale Factor | 2 | |
| Scale Window | 20 | |
| Minimum Loss Scale | 524288 |
D.3 Model Average
Table 11: Model Performance Across Checkpoints.
c c c c c c Ckpt Step ARC-Challenge ARC-Easy CSQA PIQA Average 260632 64.41 82.72 65.93 73.39 71.61 261032 65.42 82.19 65.36 73.72 71.67 261432 63.05 81.48 65.68 74.59 71.2 261832 65.42 81.83 64.78 73.56 71.40 262232 61.36 83.25 65.77 73.78 71.04 262632 65.76 82.01 66.34 73.5 71.90 263032 63.73 80.78 66.42 73.78 71.17 263132 62.71 80.6 66.09 73.88 70.82
Following recent work [Luo et al., 2025], we average the near-end checkpoints to reduce variance and consolidate learned knowledge and capabilities. We first evaluate the last eight checkpoints on a subset of lightweight benchmarks, as shown in Table 11. Consecutive checkpoints are spaced 400 steps apart, corresponding to 3.36B tokens. These checkpoints fluctuate during training and do not exhibit a clear upward or downward trend. Therefore, we apply simple model averaging [Li et al., 2025], directly averaging the last eight checkpoints to obtain the final model.
D.4 Reference Experiments for Quantile Benchmarking
We conduct quantile benchmarking experiments across two primary scenarios: training from scratch and continual training from checkpoints. For each experiment, given a target quantile , we select the data partition above the threshold, comprising roughly 10B tokens, which are then used for the respective training scenarios.
Training from Scratch.
In the training-from-scratch scenario, we train a model with the Qwen3-0.6B architecture [Yang et al., 2025]. Following the default configuration in Table 10, we conduct a small-scale experiment using the settings detailed in Table 12, training over approximately 8.4B tokens from the quantile data chunks. We employ a constant learning rate schedule with a sufficiently long warmup phase to ensure stable training dynamics.
Continual Training.
In the continual training scenario, we resume from a checkpoint previously trained on approximately 367B tokens of the deduplicated DCLM-Baseline dataset. The model adopts the Qwen2.5-0.5B architecture [Yang et al., 2024b]. We then train over approximately 8.4B tokens from the quantile data chunks using the configuration specified in Table 13. For these experiments, we linearly decay the learning rate from a peak value of to a final value of .
Consistency Across Scenarios.
As illustrated in Figures 9 and 10, the benchmarking results exhibit strong alignment between the training-from-scratch and continual training experiments. This consistency persists for evaluations on both the DCLM-Baseline and Fineweb-Edu datasets, despite resuming from a checkpoint trained exclusively on the deduplicated DCLM-Baseline dataset. This observation supports the robustness of our quantile-based data selection approach across different training paradigms.
Compute Cost Comparison.
We use the DCLM-Baseline as a reference for comparison, as discussed in Section 3. Following previous work Kaplan et al. [2020], we estimate the compute budget using the formula , where represents the number of model parameters and represents the data size. Consequently, the compute cost for the 0.6B model trained on 42B tokens is approximately relative to the baseline. Similarly, we conclude that this accounts for less than 0.6% of the total pretraining budget.
Table 12: Training Hyperparameter Configuration for Quantile Benchmarking: Training from Scratch.
| Parameter | Value |
|---|---|
| Learning Rate | |
| Batch Size | 512 |
| Warmup Steps | 400 |
| Total Steps | 4000 |
Table 13: Training Hyperparameter Configuration for Quantile Benchmarking: Continual Training.
| Parameter | Value |
|---|---|
| Peak Learning Rate | |
| Final Learning Rate | |
| Batch Size | 2048 |
| Total Steps | 1000 |
D.5 Reference Experiments for Repetition and Curriculum Model Averaging
These experiments primarily follow the experimental framework established in CMA [Luo et al., 2025]. We use a model with the Qwen2.5-1.5B architecture without tied embeddings and train on a subset of the first shard of the DCLM-Baseline dataset.
Baseline Configuration.
The baseline experiment adopts uniform data ordering and employs a Warmup-Stable-Decay (WSD) learning rate schedule with a -sqrt decay function [Hägele et al., 2024, Tian et al., 2025], decaying to a near-zero final learning rate. The detailed experimental configuration is provided in Table 14.
High-Quality Data Utilization Strategies.
To investigate effective high-quality data utilization, we explore two complementary approaches:
(1) Repetition Strategy: We repeat high-quality data partitions for various top- retention ratios, matching the computational FLOPs of the single-pass baseline experiment for fair performance comparison.
(2) Curriculum with Model Averaging: We adopt CMA/CDMA3 [Luo et al., 2025], which integrates curriculum learning with either no or moderate LR decay, accompanied by model averaging over the final checkpoints.
Table 14: Training Hyperparameter Configuration for Baseline and Repetition.
| Parameter | Value |
|---|---|
| Peak Learning Rate | |
| Final Learning Rate | |
| Batch Size | 512 |
| Total Steps | 15,375 |
| Decay Steps | 2,875 |
| Warmup Steps | 768 |
Table 15: Training Hyperparameter Configuration for Curriculum Model Average.
| Parameter | Value |
|---|---|
| Peak Learning Rate | |
| Final Learning Rate | |
| Batch Size | 512 |
| Total Steps | 15,375 |
| Decay Steps | 2,875 |
| Warmup Steps | 768 |
| Checkpoint Number | 6 |
| Decay Factor of EMA () | 0.2 |
| Checkpoint Interval | 0.21B |
Experimental Variants.
The repetition experiments follow identical settings to the baseline, differing only in dataset construction. For the curriculum experiments, we use a higher final learning rate of and perform an exponential moving average (EMA) over the final six checkpoints (the last-step checkpoint is weighted by relative to the current-step checkpoint, where is the decay factor), replicating the methodology from CMA [Luo et al., 2025].
Evaluation Settings.
In Table 1, we evaluate performance on a high–signal-to–noise-ratio benchmark subset (Core in Table 1) comprising MMLU [Hendrycks et al., 2021b], ARC [Clark et al., 2018], and CSQA [Talmor et al., 2019], following established practices in prior work [Heineman et al., 2025, Luo et al., 2025]. These benchmarks provide strong discriminative power for identifying performance differences between training approaches.
Appendix E Model Performance across Benchmarks (Full Table)
Table 16 merges the results from both Tables 2 and 3, providing a complete evaluation of the models across all target capability dimensions. Because the models differ in total parameters and non-embedding parameters, we present performance–parameter visualizations in Figures 1 and 8. These plots show that Kaiyuan-2B lies on the frontier of fully open-source models.
Table 16: Comparison of Model Performance across Various Benchmarks.
| Model Name | Params | Math | Code | Chinese | Reasoning & Knowledge | Avg. | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GSM8K | MATH | sanitized_MBPP | HumanEval | C-Eval | CMMLU | MMLU | ARC-C | ARC-E | BoolQ | CSQA | HSwag | PIQA | SocIQ | Wino | |||
| Open-Weight SOTA Models | |||||||||||||||||
| Qwen2-1.5B | 1.5B | 58.50 | 21.70 | 50.58 | 31.10 | 71.29 | 70.62 | 56.36 | 70.17 | 83.60 | 71.90 | 70.52 | 60.77 | 75.73 | 63.46 | 59.83 | 61.08 |
| Qwen2.5-1.5B | 1.5B | 68.50 | 35.00 | 58.37 | 37.20 | 68.63 | 68.01 | 61.56 | 79.32 | 90.48 | 76.39 | 75.10 | 64.18 | 76.17 | 64.94 | 59.67 | 65.57 |
| Qwen2.5-3B | 3B | 79.10 | 42.60 | 66.54 | 42.10 | 74.65 | 73.92 | 66.86 | 86.44 | 92.59 | 83.88 | 76.09 | 73.85 | 81.45 | 69.40 | 63.69 | 71.54 |
| Qwen3-0.6B | 0.6B | 59.59 | 32.44 | 51.75 | 29.88 | 57.03 | 52.36 | 55.09 | 68.14 | 84.48 | 69.05 | 61.18 | 48.51 | 69.97 | 61.51 | 55.64 | 57.11 |
| Qwen3-1.7B | 1.7B | 75.44 | 43.50 | 64.20 | 52.44 | 66.70 | 66.55 | 65.35 | 80.34 | 91.89 | 79.82 | 74.61 | 60.76 | 77.20 | 68.58 | 59.27 | 68.44 |
| Qwen3-4B | 4B | 87.79 | 54.1 | 74.32 | 62.2 | 78.5 | 77.01 | 75.78 | 89.83 | 97.53 | 86.09 | 81.9 | 79.46 | 84.98 | 75.59 | 65.43 | 78.03 |
| gemma2-2B | 2B | 23.90 | 15.00 | 38.91 | 17.70 | 41.35 | 39.63 | 55.20 | 66.44 | 82.54 | 72.42 | 69.45 | 66.20 | 78.89 | 65.92 | 65.35 | 53.26 |
| llama-3.2-1B | 1B | 44.40 | 30.60 | 34.63 | 18.90 | 29.82 | 31.03 | 37.74 | 36.95 | 70.55 | 67.43 | 62.82 | 60.20 | 74.92 | 50.61 | 58.17 | 47.25 |
| llama-3.2-3B | 3B | 77.70 | 48.00 | 49.42 | 29.88 | 45.67 | 44.33 | 57.87 | 72.20 | 83.95 | 76.73 | 70.35 | 71.06 | 79.05 | 64.33 | 64.09 | 62.31 |
| Fully-Open SOTA Models | |||||||||||||||||
| SmolLM2-1.7B | 1.7B | 31.10 | 11.60 | 49.42 | 22.60 | 35.06 | 34.03 | 51.99 | 59.66 | 82.72 | 69.85 | 67.16 | 65.30 | 78.51 | 60.18 | 59.12 | 51.89 |
| OLMo-2-0425-1B | 1B | 68.30 | 20.70 | 15.56 | 6.71 | 30.53 | 28.62 | 44.25 | 47.46 | 76.72 | 70.55 | 65.60 | 61.61 | 76.44 | 55.53 | 60.38 | 48.60 |
| YuLan-Mini-2.4B | 2.4B | 66.65 | 27.12 | 62.26 | 61.60 | 52.32 | 48.14 | 51.76 | 64.75 | 82.54 | 78.59 | 66.18 | 61.20 | 77.31 | 63.25 | 61.88 | 61.70 |
| SmolLM3-3B | 3B | 67.63 | 46.10 | 62.26 | 39.63 | 50.84 | 49.35 | 63.04 | 77.29 | 88.54 | 76.12 | 70.52 | 69.20 | 79.05 | 65.25 | 64.40 | 64.61 |
| Ours | |||||||||||||||||
| PCMind-2.1-Kaiyuan-2B | 2B | 51.33 | 30.34 | 56.42 | 42.68 | 46.30 | 49.25 | 53.90 | 66.10 | 82.89 | 78.53 | 67.40 | 58.13 | 74.37 | 62.59 | 65.75 | 59.07 |
All evaluated models are base (pretrained) checkpoints without instruction tuning. To maintain consistency, we standardize naming conventions by omitting suffixes (e.g., using simplified names for Qwen3) to denote base models throughout this paper. ↩
For generation tasks (math and code), we report official results for baseline models where available, as exact reproduction can be challenging. ↩
We do not distinguish these variants in our context, and refer to both as CMA. By definition, the CMA method in Table 1 corresponds to the CDMA variant, which retains LR decay. ↩