Fully Open Language Models: From Training Data to Model Weights
Opening model weights is only one part of making language models reproducible. This article examines a 7B and 32B model family that releases datasets, training code, intermediate checkpoints, and logs across pretraining and post-training. It explores quality-aware data sampling, domain trade-offs, benchmark contamination, and an SFT–DPO–RLVR training pipeline, with practical lessons for teams building or adapting language models.
1. Why End-to-End Openness Matters
The number of open language models continues to grow, but many releases described as “open source” provide only the final model weights. For researchers and engineering teams, that leaves critical questions unanswered: How was the training data selected and mixed? Which hyperparameters were used at each stage? How did model behavior change across intermediate checkpoints?
Without that information, reproducibility and auditability remain limited.
A research organization has released a language model family at 7B and 32B parameter scales built around a broader idea: the complete “model flow.” Alongside final weights, the release includes datasets, training code, intermediate checkpoints, and training logs spanning pretraining through post-training. This level of transparency offers an opportunity to examine an entire language model training methodology rather than just its output.
The family includes several variants:
- Base models for general-purpose language modeling.
- Reasoning models focused on chain-of-thought reasoning and complex problems.
- Instruction models designed for conversation and instruction following.
- An RL-only post-training variant that begins post-training directly with reinforcement learning, allowing ablation studies of the contributions made by other post-training stages.
2. Base Models: Data Engineering Comes First
2.1 Training Scale and Data Composition
The base models were pretrained on approximately 5.9 trillion tokens drawn from sources including web text, code, and academic papers.
One notable detail is the use of a dedicated optical character recognition (OCR) pipeline for scientific PDFs. Two-column layouts, equations, and tables have long made PDF extraction difficult. High-quality text extracted from scientific literature can contribute valuable knowledge and support reasoning capabilities.
The broader lesson is that parsing quality can matter more than simply increasing the volume of raw data.
2.2 Quality-Aware Upsampling Instead of Hard Filtering
A conventional data-filtering pipeline assigns each document a quality score and discards anything below a fixed threshold. This approach is straightforward, but it has two limitations:
- High-scoring data may be repeated excessively, reducing diversity.
- Documents near the threshold may be discarded even when they contain useful domain knowledge.
Quality-aware upsampling replaces the hard cutoff with a smooth sampling curve. Higher-scoring documents receive greater sampling weight, while lower-scoring documents remain eligible at a lower rate.
The reported experiments indicate that this strategy can substantially improve final model performance when data is limited. Rather than treating quality as a binary decision, it balances quality against diversity more carefully.
The following pseudocode illustrates the distinction:
# Hard filtering: apply a fixed thresholdkeep = score >= THRESHOLD# Quality-aware upsampling: assign smooth weightsp_sample = base_prob * (score / max_score) ** alphasampled = weighted_sample(dataset, weights=p_sample)
The exponent alpha controls the steepness of the weighting curve and should be tuned through ablation experiments.
2.3 Mid-Training and Domain Trade-Offs
After the main pretraining phase, the models underwent approximately 100 billion tokens of mid-training focused on code, mathematics, and question answering.
Ablation experiments revealed a clear trade-off:
- Increasing the share of mathematics and code data improved performance in those domains.
- General question-answering and multiple-choice question-answering performance declined as those shares increased.
Different data domains can compete for model capacity. Increasing one domain’s representation without considering the wider effects can weaken general-purpose performance.
The final mixture therefore reflects a search for a Pareto balance across benchmarks rather than the maximization of a single score. For teams training their own models, the practical lesson is to evaluate mid-training mixtures against multiple benchmarks, not just the target domain.
2.4 Introducing Post-Training Formats Earlier
Another finding was that mixing instruction-following and chain-of-thought-formatted data into mid-training improved performance across benchmarks, even without subsequent supervised fine-tuning.
This suggests that the formats a base model encounters near the end of pretraining can materially influence its downstream adaptability. It also supports designing pretraining and post-training together rather than treating them as entirely separate processes.
2.5 Benchmark Contamination
The report also highlights the difficulty of benchmark decontamination. Widely used instruction datasets commonly contain samples that overlap with public evaluation sets.
Without decontamination, benchmark results may overstate a model’s actual capabilities. Detecting and removing evaluation overlap should therefore be treated as a standard part of training infrastructure.
3. Post-Training: An SFT–DPO–RLVR Pipeline
The flagship reasoning model follows a three-stage post-training recipe:
- Supervised fine-tuning (SFT)
- Direct preference optimization (DPO)
- Reinforcement learning with verifiable rewards (RLVR)
3.1 Constructing Preference Data
Preference-pair construction is central to DPO. Traditional workflows rely on human annotators to rank responses, which can be expensive and noisy.
This work instead uses an iterative, model-generated approach. The model produces multiple answers to the same prompt, and verifiable signals or an evaluator model are used to construct preferred and dispreferred response pairs automatically.
That makes it possible to generate preference data at scale with lower annotation costs.
3.2 Changes to the Reinforcement Learning Framework
The RLVR stage introduces two notable changes.
Removing the KL-divergence penalty. Conventional reinforcement learning from human feedback often uses a Kullback–Leibler (KL) penalty to keep the policy from drifting too far from a reference model. For verifiable tasks such as mathematics and code, however, that constraint can restrict exploration of better solutions. The reported setup removes this penalty.
Using a token-level loss. The training framework applies the learning objective at token granularity rather than relying only on a sequence-level formulation. The aim is to improve credit assignment and reduce the inefficiency associated with sparse rewards over long reasoning chains.
These choices align with a broader direction in reinforcement learning for verifiable tasks: less restrictive policy updates and finer-grained optimization can outperform more conservative settings. Their usefulness should still be judged in the context of the task and evaluation results.
4. Practical Lessons for Model Builders
The value of an end-to-end open release extends beyond access to a usable model. Four aspects are particularly important.
Auditable Data Recipes
Publishing datasets for pretraining, mid-training, and post-training allows other teams to inspect, reuse, and potentially reproduce the complete recipe. This can reduce the cost of trial and error.
Findings Supported by Ablations
Quality-aware upsampling, domain trade-offs, and the early introduction of post-training formats are supported by ablation experiments. That makes them more useful as engineering evidence than isolated rules of thumb.
Intermediate Checkpoints for Research
Checkpoints from different training stages provide material for studying how capabilities develop and how behaviors such as catastrophic forgetting emerge.
Reusable Infrastructure
Open training and reinforcement learning frameworks give smaller teams concrete engineering references for building their own pipelines.
For teams planning to train or fine-tune language models, three priorities stand out:
- Treat data engineering as a core capability. The shape of the quality-sampling curve can matter more than the choice of a filtering threshold.
- Use mid-training to strengthen domain capabilities, but evaluate the trade-offs. Data mixtures should be constrained by performance across multiple benchmarks rather than optimized for a single metric.
- Choose post-training methods according to the available reward signals. For tasks with verifiable outcomes, RLVR without a KL penalty is worth prioritizing for evaluation.
Openness is about more than making models free to use. Its deeper value is giving the community access to the methodology behind them. When data, code, checkpoints, and logs are available together, language model training becomes easier to audit, reproduce, and improve as an engineering discipline.
