Pre-training takes the data, then the model
Explains the cleaning, de-weighting, isolation and mixing of composite data counters to verify parameters, token numbers and effective training volume for a fixed-calculation budget.
Learning objectives and first steps3 objectives • 3 first fixes
Try to do it after reading
- Distinguishing document numbers, sole token from cumulative training token
- Design traceable filtering and evaluation isolation processes
- Compute approximation of the budget and explain the boundaries of the extended pattern
Suggested first
- Words, Language Model Objectives and Confusion
- Training Set and Validation Set Division
- Multiply measure and quantity level
A seemingly simple training program
Training of technical document language models is envisaged. The original web pages are numerous and the budget is fixed. The spelling of all the words is often accompanied by the duplication of templates, outdated content, coding, close reproduction, unclear source rights and the mixing of evaluation issues into training. The same size of the model does not mean that the information to which the model is exposed is the same; Training token has been more extensive and may merely repeat the same low-quality content.
This chapter takes the word and cross-entropy to discuss “how data become an accountable training operation”. It does not provide untested large model training formulations. First fix tokenizer, data version and evaluation pool; The cleaning strategy or scale is then compared, otherwise the changing indicators cannot be attributed. All quantities are synthetic teaching values and not descriptions of any company training data.
What should the data counters keep
A sample should at least track the source ID, capture or generate time, content Hash, language, licensed information, clean-up version and final split. The content is suitable for finding identical texts; Close repetition requires closer to semantic or snippet overlapping evidence. To change the scope of the reservation by moving to the weight threshold, the thresholds, the reasons for their deletion and the sample should be recorded and not merely the marking of the “dry weight” left.
The order also affects the interpretation. The random division of the document and the validation, and then the weighting, may leave the different reproductions of the same content on both sides. Repeated boxes can be created before they can be isolated and then inspected to evaluate the contamination. If the evaluation comes from a future period, an additional time boundary should be used. The licensing, privacy and retention requirements from different sources cannot be summarized in a technical filter and require a clear range of permissions to enter the reservoir.
The above accounts have a total retention rate of 60 per cent, from 90, 72 and 60 in a hundred. Assuming that the final training component consists of 48 copies, six copies validated and six pieces tested; This is a segregated distribution that is not equal to the optimal proportion required for real projects. If the training text is maintained at 100,000 token, the cumulative amount of training generated by the repeated three rounds is 300,000 token, but the only content has not been converted into 300,000. Mixed sampling also makes the actual number of times seen from different sources different from the original share.
Write the calculation budget as a unit model
A rough scale of dense Transformer is estimated to be approximately 6 ND, of which N is the model parameter, D is the cumulative training of token, and the result unit is the number of floating points. This factor summarizes the main matrix calculations, both forward and backwards, and ignores the details of structures, long sequence attention, optimizers, communications and hardware utilization; Can't use it as a billing machine.Chinchilla dissertation The relationship between the size of the model under the given budget and the amount of training was examined, and the specific scope of the formulation could not be directly extrapolated to the general best value in any area.
C = 6 x 1015. Candidate A uses 100 million arguments, D up to 10 million token; Candidate B uses 50 million parameters, and D gives 20 million token. In this approximation, the two have the same value, but the formula alone cannot judge whose certified loss is lower. Small-scale experiments with different budgets are required under the same caliber to observe the proposed residuals before deciding on greater operation. If extra costs are based on reasoning, training is not necessarily best calculated for the best costs throughout the life cycle.
Valid token, packing and Breakpoint
The lot lengths are usually shaped in B x T, which may contain padding, blocked hints and genuine participation in the supervision. In a series of two series, the effective targets were three and one respectively, and the average token loss should be reduced by four targets. A first average of each sequence is averaged and the short series is enlarged to the same weight as the long series. This may be an intentional sample weighting, or a mistake, and must be named clearly.
Packing puts short sequences in the same volume to reduce waste, but it is clear whether attention is allowed between documents, whether positions are reset and whether EOS is retained. Continuous training in plain text allows for the choice of cross-border modelling; It may not be possible to monitor the dialogue or to strictly isolate the document setting. Increases the ratio of valid token do not automatically improve the quality of information.DataComp-LM A research framework for the comparison of control data factors is provided, using experimental design thinking and not reusing its data or performance.
raw, after_format, after_exact, after_near = 100, 90, 72, 60assert raw >= after_format >= after_exact >= after_nearprint(after_near / raw)C = 6 * 10**15for N in [10**8, 5 * 10**7]: print(N, C / (6*N))loss_sum, valid_tokens = [3., 2.], [3, 1]print(sum(loss_sum) / sum(valid_tokens)) # 1.25Code use standard Python, executed, validating the counter account and denominator; No pre-run training. The true recovery check point should also contain optimisers, learning rate schedulers, random number states, sampler locations and data versions. The mere preservation of model parameters can be deduced, but there is no guarantee that training will continue from the same point. If the data source is updated, a new version must be generated and the same name file cannot be quietly changed during the break point.
Check understanding
2 billion token in two rounds of training, 2 billion in the only language?
Not necessarily. Accumulated training volume includes repeated sampling; The only token also depends on redefinition and original content. The report should contain a separate description of the single size of the content and the cumulative amount of training.
Delete 20% of each of the three filter steps, and 60% of all?
If there is no change from the previous step, the rate of retention is three parties at 0.8, approximately 50.12 per cent, and about 48.8 per cent are deleted. The steps are different and cannot be added directly.
Why is it possible to randomly dismantle files before re-enacting?
Reproduction of the same content may be effected separately into training and testing. The model, after remembering its contents, is repeated in the tests and does not allow for a true generalization of the missing data; The boundary should be separated by a list of repetitions and time.
So, with the same arithmetic, there's a lot of small models, and token is better?
It is not possible to roll out performances from the resource equation. (b) The data distribution, capacity and optimization jointly determine the validation results, which must be controlled; There is also an experimental scope for the formulation of particular papers.
There are three and one effective objectives, and why can't they always be equalized?
It re-establishes the same rights for each sample; On average, token resets each target to the same. Both can define objectives, but not at the same time using the former to claim to report on the latter.
What would a breakpoint lose if it only saved the weight of the model?
There is a risk of loss of momentum, stage of learning, random state and location of the data consumed. The path after continued operation is therefore different; This is not a return that can be demonstrated by the “parameter load success”.
Check date 2026-10-29; Chinchilla for 2022 v1, DataComp-LM for v4, subject in archive CS336 Spring 2025 I don't know. Keep reading Low-level fit-out and quantification, discuss how models already exist to adapt to new tasks at lower training costs.
Sources and reconciliations
Definitions, methods and interfaces are available.
- Training Compute-Optimal Large Language Models
- DataComp-LM — In search of the next generation of training sets for language models
- Stanford CS336 Spring 2025
Figures and calculations are reorganized according to this chapter. Mathematical measurements, framework operations and real business effects are described separately in the body of the text.