Contents
  1. Training stages as capability interventions
  2. Prediction objectives and transferable learning
  3. Corpus composition and capability coverage
  4. From documents to scored examples
  5. Sampling, token exposure and loss contribution
  6. Data, learning-rate and sequence-length schedules
  7. Model size, training tokens and compute
  8. Finite data and repeated exposure
  9. Checkpoint contents and training continuity
  10. Domain adaptation and retained capabilities
  11. Training progress and capability evidence
  12. Contamination and assessment independence
  13. Controlled comparisons and checkpoint selection
  14. Check understanding
  15. Open questions
  16. Selected talks
  17. References
  18. Talk library
← All topics

Pretraining and Midtraining

A training corpus defines available experience; a training run determines which experience changes the model. Pretraining and midtraining connect that distinction to prediction objectives, resource budgets and saved state. Their value depends on demonstrated capability gains, retained abilities and assessments sufficiently independent of the training process.

Training stages as capability interventions

Pretraining establishes broad capabilities by fitting predictions across a corpus. Subsequent training inherits learned parameters rather than learning everything again from an initial, untrained state.

Midtraining means capability-focused continuation of an existing model. The terminology varies: the GLM-4.5 report includes instruction data in midtraining. A stage’s actual data, targets and updates define its operation more precisely than its name.

Training and inference produce different artifacts

The same learned state supports updates or request-conditioned computation.

Training combines inherited weights, examples and a recipe to produce a new checkpoint. Ordinary inference retains weights and produces an output.
Read the diagram as text
  • Starting checkpoint.
  • Corpus.
  • Objective, schedules, budget.
  • Training.
  • New checkpoint.
  • Request context.
  • Inference.
  • Output.
  • Starting checkpointTraining: Data: initial weights.
  • CorpusTraining: Data: examples.
  • Objective, schedules, budgetTraining: Control: update policy.
  • TrainingNew checkpoint: Data: updated state.
  • Starting checkpointInference: Data: fixed weights.
  • Request contextInference: Data: input.
  • InferenceOutput: Data: prediction.
Stage specificationWhat it identifies
Starting checkpointSaved learned state, potentially accompanied by state needed to continue training.
Examples and objectiveThe information supplied and the predictions rewarded by training.
Exposure and budgetHow much training occurs, with which model size and resource allocation.

Supplying request context ordinarily changes the input computation without updating model parameters. Training changes learned state. A request’s cached intermediate representations are also distinct from newly learned weights.

Behavioral training uses demonstrations or feedback to shape responses. Its procedures belong in Post-training and Alignment.

Prediction objectives and transferable learning

An objective measures prediction error; optimization changes parameters to reduce it. Better fit on training examples does not establish performance on new cases. Generalization and independent assessment explains that boundary.

Self-supervision constructs prediction targets from the data itself.

One document, different prediction problems

Example

Visible information and scored targets depend on construction.

Words and punctuation stand for tokens here. Causal prediction repeats across eligible positions. Masked prediction scores selected originals. Span denoising emits removed spans and sentinels, not the complete document.
Read the diagram as text
  • red fox sleeps ..
  • Visible: red fox.
  • Target: sleeps.
  • Visible: red [MASK] sleeps .. Selected tokens are not always masked.
  • Selected target: fox.
  • Visible: red S0 .. S0 marks the removed span.
  • Target: S0 fox sleeps S1. S1 is the final sentinel.
  • red fox sleeps .Visible: red fox: Retain prefix.
  • Visible: red foxTarget: sleeps: Predict continuation.
  • red fox sleeps .Visible: red [MASK] sleeps .: Corrupt selected token.
  • Visible: red [MASK] sleeps .Selected target: fox: Predict original.
  • red fox sleeps .Visible: red S0 .: Remove span.
  • Visible: red S0 .Target: S0 fox sleeps S1: Predict span sequence.

For causal prediction, future tokens must remain hidden when predicting them. Cross-entropy penalizes insufficient probability on the recorded target; Shifted targets and parallel sequence training supplies the computational detail.

Transfer reuses learned parameters for another task. Shared language or domain structure can make those parameters useful across tasks, but fitting one distribution does not establish competence on unfamiliar inputs. Factual correctness, instruction following and task success require their own evidence.

Corpus composition and capability coverage

A corpus is the collection available for training. A data mixture combines corpus components using specified sampling weights.

Useful coverage depends on the intended tasks. Correct but repetitive examples can offer little additional information; varied but irrelevant examples can consume the budget without supporting the desired capabilities. Difficulty, information density and diversity must be judged together.

Corpus categories describe opportunities to learn, not measured capabilities.
ComponentIntended experienceVerification need
Prose and developer discussionsExplanations and connections between language and codeApplication beyond familiar wording
Source codeProgramming structures and completion patternsCorrectness on held-out code tasks
Multilingual textLanguage-specific usage and broader linguistic coverageSeparate performance in intended languages
Engineering documentsDomain terminology and recurring technical relationshipsUnseen domain inputs and multiple task types

Accessible material may omit the intended users or workflows; coverage and sampling explains that mismatch. Permitted use also constrains selection. Replit’s code-training example explicitly combined source selection with licensing restrictions; collection and provenance covers the underlying records.

Generated material is another identifiable corpus component, not automatically independent coverage. Recipes differ on its role; Synthetic Data covers generation and verification.

From documents to scored examples

Tokenization converts text into vocabulary IDs; Tokenization defines that representation. Sequence construction then determines which content fits together. Truncation drops content beyond a limit; chunking divides it into examples. Either can separate related information before the model receives it.

Packing places multiple examples into a training sequence. Padding adds placeholders to fit a batch’s shape. Removing padding can avoid wasted work, while packing needs an explicit policy for whether separate examples can exchange information.

Placement, visibility and scoring

Example

Packing does not determine either mask.

1 / 4 · Source records

Separate documents.

Words represent tokens; EOD ends a document. Within the Scoring node, x→y denotes predicting y from the input position containing x. Final EOD has no following target.
Read the diagram as text
  • A: red fox.
  • B: blue bird.
  • A IDs: red fox EOD.
  • B IDs: blue bird EOD.
  • red fox EOD | blue bird EOD.
  • Attention. Causal; reset after EOD. blue sees blue; bird sees blue and bird.
  • Scoring. Scored: red→fox, fox→EOD, blue→bird, bird→EOD. Ignored: EOD→blue.
  • A: red foxA IDs: red fox EOD: Encode.
  • B: blue birdB IDs: blue bird EOD: Encode.
  • A IDs: red fox EODred fox EOD | blue bird EOD: Place A.
  • B IDs: blue bird EODred fox EOD | blue bird EOD: Place B.
  • red fox EOD | blue bird EODAttention: Visibility.
  • red fox EOD | blue bird EODScoring: Targets.
  1. Source records. Separate documents. Active: A: red fox, B: blue bird. New: A: red fox, B: blue bird.
  2. Encoded records. Append EOD. Active: A: red fox, B: blue bird, A IDs: red fox EOD, B IDs: blue bird EOD. New: A IDs: red fox EOD, B IDs: blue bird EOD.
  3. Packed sequence. Retain boundaries. Active: A: red fox, B: blue bird, A IDs: red fox EOD, B IDs: blue bird EOD, red fox EOD | blue bird EOD. New: red fox EOD | blue bird EOD.
  4. Independent masks. Attention blocks cross-document access; loss separately excludes EOD→blue. Active: A: red fox, B: blue bird, A IDs: red fox EOD, B IDs: blue bird EOD, red fox EOD | blue bird EOD, Attention, Scoring. New: Attention, Scoring.

An attention mask controls information access. A loss mask controls scored positions. Document-boundary attention resets, position resets and loss exclusion are independent settings.

A token can supply context without being a scored target. Consequently, processed-token counts and scored-target counts can differ. Ignored targets must also be excluded from a mean loss’s denominator, rather than contributing zero while still enlarging it.

Sampling, token exposure and loss contribution

Stored corpus size, selection probability and processed-token share answer different questions. If selection samples whole documents without truncation, longer documents contribute more tokens per selection. A domain’s sampling probability therefore need not equal its token share.

si=piˉijpjˉjs_i=\frac{p_i\bar{\ell}_i}{\sum_j p_j\bar{\ell}_j} Here pip_i is domain-selection probability, ˉi\bar{\ell}_i its mean consumed document length, and sis_i its expected token share over many selections. This assumes whole-document consumption; realized finite-run shares can differ.
Assume fixed document lengths, equal selection probabilities, no padding and every consumed token scored.
ComponentTokens per documentToken shareEqual document-mean loss share
General text10010%50%
Domain text90090%50%

Pooling all valid token losses gives the longer document nine times as many terms. Averaging document means gives each document equal weight. Explicit document or domain weights add another choice; PyTorch’s class-weight argument instead weights target classes. None of these weights specifies proportional capability gains.

Oversampling selects a component more often than a reference mixture would. An epoch is one pass through a corpus. Mixed streams can accumulate different effective passes through each component, so one global epoch count can obscure concentrated repetition.

ei=DiUie_i=\frac{D_i}{U_i} Effective passes eie_i divide processed component tokens DiD_i by unique available tokens UiU_i. Processing 2 billion tokens from a 100-million-token component gives 20 effective passes; it does not create 2 billion unique tokens.

Data, learning-rate and sequence-length schedules

A curriculum deliberately changes ordering or emphasis during training. A fixed mixture holds sampling policy constant; staged reweighting changes it at selected boundaries. Curriculum need not mean easy examples followed by difficult ones.

ScheduleWhat changes
DataWhich sources receive exposure and when
Learning rateUpdate scale: warmup raises it initially, rewarming raises it again, and decay lowers it
Sequence lengthHow much related material can occupy one training example

Equal exposure, different placement

Example

Both schedules devote half the total tokens to the domain.

Fixed mixture

Domain share remains 0.5 throughout.

Scroll sideways if the figure extends beyond the screen.

00.250.50.75100.250.50.751Processed training fraction (dimensionless)Domain-token share (dimensionless)Domain-token share
  • 1. Domain-token share
Read coordinates and regions as data

X: 01 dimensionless; Y: 01 dimensionless, increasing up. Axes scaled independently; screen angles and distances are not comparable.

Domain-token share (polyline)

(0, 0.5); (1, 0.5)

Staged mixture

Share changes from 0.25 to 0.75 halfway through; average exposure remains 0.5.

Scroll sideways if the figure extends beyond the screen.

00.250.50.75100.250.50.751Processed training fraction (dimensionless)Domain-token share (dimensionless)Domain-token share
  • 1. Domain-token share
Read coordinates and regions as data

X: 01 dimensionless; Y: 01 dimensionless, increasing up. Axes scaled independently; screen angles and distances are not comparable.

Domain-token share (polyline)

(0, 0.25); (0.5, 0.25); (0.5, 0.75); (1, 0.75)

The total token budget, learning-rate policy and sequence-length policy are fixed. Only domain-token share over training changes. These input schedules imply no measured capability advantage.

Equal aggregate exposure leaves ordering unspecified. Earlier examples affect the parameters that later examples update, potentially under a different learning rate. To investigate ordering, match per-source token totals, objective, compute and other schedules; to investigate mixture weights, retain the ordering policy.

GLM-4.5 changes data, lengths and packing across stages. Its combined recipe does not isolate an ordering-only benefit.

Model size, training tokens and compute

Parameter count measures learned numerical values. A processed-token budget measures training exposure. FLOPs, floating-point operations, measure arithmetic work. Empirical scaling laws fit relationships between these quantities and prediction loss within studied training regimes.

C6NDC\approx6ND For the simplified dense-transformer accounting, CC is training FLOPs, NN parameter count and DD processed training tokens. Increasing model size reduces affordable exposure under fixed CC.

A fixed arithmetic-work budget

Example

More parameters leave fewer affordable training tokens.

Equal-compute allocations

The dense-model approximation is held fixed.

Scroll sideways if the figure extends beyond the screen.

0.41.3752.353.3254.3053.75107.5161.25215Parameters (billions)Processed training tokens (billions)Fixed training FLOPs
  • 1. Fixed training FLOPs
Read coordinates and regions as data

X: 0.44.3 billions; Y: 0215 billions, increasing up. Axes scaled independently; screen angles and distances are not comparable.

Fixed training FLOPs (polyline)

(0.5, 200); (0.625, 160); (0.8, 125); (1, 100); (1.25, 80); (1.6, 62.5); (2, 50); (2.5, 40); (3.2, 31.25); (4, 25)

Assume 6 × 10²⁰ training FLOPs and C ≈ 6ND. With both axes in billions, their product is 100. The sampled curve identifies equal-work allocations, not a quality optimum.

Kaplan’s historical fit favored increasing non-embedding parameters faster than data as compute grew, stopping large models before convergence. Chinchilla instead favored approximately equal proportional growth of parameters and tokens. It varied training horizons and matched learning-rate decay to them, helping explain why allocation conclusions differed.

A training-only optimum minimizes prediction loss under a training budget. A lifetime resource objective includes expected inference demand. Substantial serving demand can favor smaller models trained longer, but that conclusion depends on the demand estimate and loss model; extrapolating ordinary token ratios can overstate gains from extreme exposure.

Replit applied this reasoning to latency-sensitive code completion: spend more training effort on a smaller model and amortize it across later requests.

FLOPs alone do not determine elapsed time or price. Memory capacity and execution efficiency constrain feasible runs; Distributed Training and Inference covers distributing work and state when one device is insufficient.

Finite data and repeated exposure

Repeated passes can improve learning without adding unique material, but their marginal value declines. Some extensively repeated runs develop worsening validation loss. A saturation formula does not necessarily model that deterioration, and observed epoch ranges do not establish a universal safe limit.

Alternative uses of a constrained budget require separate pilots.
InterventionPotential benefitDecision evidence
Acquire additional materialExpand relevant coverageHeld-out gains justify acquisition and training costs
Relax filteringIncrease available volumeAdded material helps despite lower selection standards
Repeat selected materialSpend updates on useful examplesFixed validation slices continue improving
Stop earlierAvoid low-value additional updatesFurther exposure fails target or retention requirements

Deduplication removes unintended repetition from the inventory; deliberate epochs control repeated exposure after selection. These are compatible choices. Overfitting explains why improving training fit can coexist with worsening held-out performance.

Small pilots can test whether data choices remain promising before a larger commitment. Preserve the intended scarcity and repetition regime; a small run with abundant fresh data may answer a different question from a large run repeatedly sampling a scarce component.

Checkpoint contents and training continuity

An inference artifact identifies a learned model. A resumable checkpoint must additionally identify the training process that produced its next update. Successful weight loading establishes only part of that contract.

State or artifactRole
Weights and architectureRestore learned values within the corresponding computational structure
Tokenizer and input conventionsPreserve token-ID meanings; matching dimensions alone is insufficient. See compatibility.
Optimizer statePreserve accumulated update information
Scheduler, scaler, counters and randomnessRestore update scale and stochastic process state; explicitly register or save components the framework does not cover
Sampler and worker stateIdentify subsequent samples and random data transformations
Run recordBind corpus snapshots, mixture, objective, sequence construction and software configuration to the checkpoint

Identical weights, different continuation

Process state determines the next samples and updates.

Recovery restores recorded state. A warm start intentionally initializes another trajectory from the same weights.
Read the diagram as text
  • Saved weights.
  • Recorded process state.
  • New process configuration.
  • Restore interrupted run.
  • Initialize new stage.
  • Recorded continuation.
  • New trajectory.
  • Saved weightsRestore interrupted run: Recovery selected.
  • Saved weightsInitialize new stage: Warm start selected.
  • Recorded process stateRestore interrupted run: Restore state.
  • New process configurationInitialize new stage: Initialize state.
  • Restore interrupted runRecorded continuation: Resume updates.
  • Initialize new stageNew trajectory: Begin updates.

A warm start reuses learned weights while intentionally resetting or changing process state. It begins a different trajectory. Document such resets at stage boundaries; they are design choices rather than inherently incorrect recovery.

Verify restored counters, learning rate, next sample identities and loss continuity. A wrong data position can repeat or skip exposure; matching weights cannot detect that error.

Logical-state restoration does not guarantee bitwise-identical execution across hardware or software changes. Random-state control and deterministic algorithms address different sources of variation, and deterministic execution can carry a performance cost.

Weights alone do not record processed examples. Keep the recipe and recorded artifact state together, with accessible corpus versions and execution configuration. Dataset releases and reproducible lineage explains snapshots and manifests.

Domain adaptation and retained capabilities

Domain-adaptive pretraining, or DAPT, continues language-model training on domain material. Task-adaptive pretraining, or TAPT, uses the target task’s unlabeled training inputs; task answers are not its prediction targets. The foundational study uses masked-token prediction. An autoregressive adaptation instead predicts continuations. Supervised response training belongs in Post-training and Alignment, even when both use token cross-entropy.

A proposed engineering-documents-and-code continuation needs an explicit stage contract before results can be interpreted.
Contract elementProposed specification
Inherited modelOne identified general checkpoint and its compatible tokenizer
Domain experienceVersioned, permitted engineering documents and code relevant to intended workflows
TargetsOrdinary corpus continuations, rather than demonstrated task answers
ExposureSpecify sampling units, general/domain shares, unique tokens, processed tokens and scored targets
Update policyDeclare duration, learning-rate policy and intentional process-state resets
Success and retentionTest unfamiliar domain tasks alongside earlier general and language capabilities

Continuation inherits earlier learning; training from scratch must establish it again. Comparable incremental continuation budgets therefore do not imply comparable total training investment. Domain-trained weights also remain a predictive model, not an authoritative, automatically refreshed database.

Catastrophic forgetting is substantial degradation of earlier capabilities after new training. General-data share, domain emphasis, duration and learning-rate policy can affect adaptation and retention. Replay and regularization algorithms belong in Continual Learning; here, retention remains a separate acceptance requirement.

A reported legal midtraining example retained a majority of broadly representative data and improved domain performance without reported general regression. That supports testing mixed exposure, not prescribing a universal ratio or promising retention.

Training progress and capability evidence

MeasurementSupported interpretationRemaining gap
Training lossFit on processed training examplesPerformance on unseen inputs
Fixed held-out lossPrediction quality on a specified unseen distributionSuccess on the intended task
Capability probeTask performance under a defined elicitation and scoring protocolOther tasks, languages or operating conditions
PPL=exp ⁣(1MtSlnpθ(xtx<t))\operatorname{PPL}=\exp\!\left(-\frac{1}{M}\sum_{t\in S}\ln p_\theta(x_t\mid x_{<t})\right) For autoregressive scoring, SS contains the scored positions, M=SM=|S|, and pθp_\theta is the model’s probability for the observed token given preceding context. Perplexity exponentiates mean negative log-likelihood using natural logarithms.

Perplexity comparisons require compatible tokenization, data, available context and scoring conventions. This ordinary autoregressive definition does not directly apply to masked language models.

Assume comparable per-domain token losses but changing aggregation weights. The aggregate improves while both component losses worsen.
CheckpointGeneral lossDomain lossGeneral/domain weightsAggregate
Earlier1.03.050% / 50%2.0
Later1.13.190% / 10%1.3

Track fixed validation slices and task probes against consumed tokens and compute. Define metric denominators explicitly; changing mixture composition must not silently change the population behind a progress claim.

For base-model comparisons, fix prompts, demonstrations, decoding and scoring. In-context examples change elicitation without updating weights; assistant-style polish is not the only evidence of capability.

Memorization can coexist with poor application. In Jack Morris’s financial-report demonstration, reproducing training text did not yield a useful differently formatted response. A transfer probe must require more than copying familiar sentences.

Contamination and assessment independence

Contamination occurs when assessment information enters training or training choices across a claimed independence boundary. Familiarity with the subject is not itself leakage. Independent data boundaries separates fitting, development and protected assessment.

Exact matching finds literal overlap. Matching n-grams, contiguous token sequences, can detect shared passages. Such checks are useful screening, but their thresholds determine which similarities are noticed and which material is removed.

Assessment exposure has indirect routes

Literal matching covers only one route.

These are possible exposure paths, not findings about a particular checkpoint. Unknown inherited provenance remains unresolved.
Read the diagram as text
  • Assessment material.
  • Literal copies.
  • Paraphrases or translations.
  • Continuation corpus.
  • Inherited checkpoint. Earlier corpus may be undisclosed.
  • Candidate checkpoint.
  • Assessment materialLiteral copies: Copy.
  • Assessment materialParaphrases or translations: Transform.
  • Literal copiesContinuation corpus: Possible inclusion.
  • Paraphrases or translationsContinuation corpus: Possible inclusion.
  • Continuation corpusCandidate checkpoint: Training exposure.
  • Inherited checkpointCandidate checkpoint: Inherited parameters.

Semantic investigations retrieve related candidates and inspect equivalence. Paraphrases, translations and transformed code can evade literal detectors. Negative scans do not establish absence; detected overlap alone does not quantify its score effect.

Adaptive reuse creates another dependency: assessment scores can guide later training decisions even when individual cases remain hidden. Use development evidence for iteration, then independently sampled untouched cases for an ordinary holdout claim. Dates alone cannot establish independence from an undisclosed inherited corpus.

Controlled comparisons and checkpoint selection

An ablation changes or removes a component to investigate its contribution. Controlled offline comparisons hold assessment conditions fixed. Training comparisons additionally need explicit data, objective, schedule and budget controls.

Proposed comparison for the engineering continuation:
ArmTraining interventionComparison purpose
Unchanged checkpointNo additional updatesMeasure total incremental change
General continuationAdditional broadly representative exposureControl for extra training under comparable incremental compute
Targeted continuationEngineering exposure with declared general-data mixingTest targeted-data benefit beyond general continuation

For a data comparison, match starting state, objective, sequence length and update schedule. Report remaining differences. Equal token counts need not mean equal compute, especially when model size or example construction changes. Small differences require uncertainty estimates, not merely a winning score.

Select checkpoints against predeclared target gains, named retention slices and resource limits. A blended score cannot substitute for each requirement. Use development assessments for selection and reserve protected assessment for the selected configuration’s final claim.

Bind the conclusion to checkpoint identity, recipe, corpus versions and evaluation configuration. Preserve unresolved inherited exposure as a limit on the claim.

Open questions

  1. Isolating curriculum order remains difficult because recipes often change data shares, lengths and update policies together. Progress would be a replicated comparison with equal per-source exposure and matched remaining schedules, showing an ordering effect on specified downstream capabilities rather than only final training loss.

  2. Small-corpus adaptation still needs reliable guidance on retaining earlier capabilities. Large incoming-data continuation studies do not determine the right policy for a narrow engineering collection. Progress would require separate target and retention curves across matched mixtures and durations, including regressions hidden by averages.

  3. A complete recovery contract must connect saved process state with corpus identity and subsequent samples. Component restoration alone leaves integration failures possible. Progress would be an interruption fixture that verifies the next samples, counters and updates under a specified environment, while separately testing behavior after environment changes.

Follow the curated reading path through the speakers and demonstrations behind this entry.

18 min

AI Engineer World's Fair 2026 · 2026

The Base Model is Dead

Varun Singh

Cited in this entry

Explains why downstream task formats increasingly cross traditional stage boundaries, while distinguishing proposals from established recipes.

Watch talk
25 min

AI Engineer Summit 2023 · 2023

Building AI For All

Amjad Masad · Michele Catasta

Cited in this entry

Connects finite licensed data, repeated exposure and the economics of a smaller code-completion model.

Watch talk

Explore more talks

The rest of the library, beyond the curated path. Cited talks support this entry; reviewed transcripts were processed in full. Metadata candidates have not been reviewed as sources or verified as topic members.

7 matching talks

TalkSpeakerEventYear
Abi AryanAI Engineer Summit 20232023
Diego CarpenteroAI Engineer Europe 20262026
Nan JiangAI Engineer World's Fair 20262026
Leo PekelisAI Engineer World's Fair 20242024
Devansh TandonAI Engineer World's Fair 20252025
Jyh-Jing HwangAI Engineer World's Fair 20252025
2025 in LLMs so far

Transcript reviewed

Simon WillisonAI Engineer World's Fair 20252025

References

Coverage and source review
Processed transcripts
12 processed in full · 5 in the curated path
Automated source review
Passed
Metadata candidates
0 unreviewed; not verified topic membership
Corpus version
1bd8e407b26a07b33815594e1b2db5f41827119a2b3cb6fbf240f9fc571fc767

Automated review checks source support; it is not publication approval.

A synthesis of selected conference talks and technical references. Citations link to the source material; they do not imply that every talk on this subject is included.

  1. Z.ai GLM-4.6: What We Learned From 100 Million Open Source Downloads — Yuxuan Zhang, Z.ai

    The described training sequence builds a general language base, adds code and reasoning data, then packs related repository artifacts into longer midtraining contexts.

  2. Training Compute-Optimal Large Language Models

    Sections 1–3, especially schedule comparison, IsoFLOP profiles and Equation 4; dense-model training-budget allocation.

  3. Language Models are Few-Shot Learners

    Introduction and approach; no historical benchmark claims.

  4. GLM-4.5: Agentic, Reasoning, and Coding (ARC) Foundation Models

    Sections 2.2–2.4; concrete stage, corpus, exposure and sequence-construction example for GLM-4.5.

  5. Saving and Loading Models — PyTorch Tutorials

    Saving for inference, general checkpoints, warmstarting and best-model-state warning.

  6. Scaling Laws for Neural Language Models

    Sections 1.1–1.3 and compute-allocation results; historical framework for choosing model size and duration jointly.

  7. Optimizing LLMs for Speed and Memory

    Section 1, Lower Precision, especially weights versus input vectors; section on key-value caching. RAG mapping is an application inference.

  8. Training language models to follow instructions with human feedback

    Methods 3.1–3.5 and equation 2; retained-capability findings.

  9. Google ML Crash Course: Overfitting

    Google overfitting, loss-curve and feedback-loop explanations; enterprise application is an inference.

  10. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding

    Sections 3.1–3.2, especially Task #1: Masked LM. Use only the supervision mechanism, with further pretraining detail delegated to /topics/pretraining-and-midtraining.

  11. From token identifiers to next-token probabilities

    Sections 3.1 Encoder and Decoder Stacks, 3.2.3 attention masking, 3.4 Embeddings and Softmax, and 3.5 Positional Encoding.

  12. Domain adaptation and fine-tuning for domain-specific LLMs

    The speaker distinguishes adaptation for multiple tasks within one domain from behavioral fine-tuning for one target task.

  13. Domain adaptation and fine-tuning for domain-specific LLMs

    Capturing training-domain nuances does not establish competence on unseen data, new domains, or complex general tasks.

  14. DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretraining

    Section 2 setup and algorithm, plus reported per-domain results; example applies the mixture definition to explicitly unequal document lengths.

  15. Data Quality is the Compute Multiplier

    Optimize marginal information gain for the intended tasks rather than treating dataset quality as universal.

  16. Building AI For All

    Replit Code V1.5 combined repeated code training with developer-oriented StackExchange material across thirty programming languages.

  17. Building AI For All

    Replit built a Spark data pipeline on The Stack, using permissively licensed code and filtering code forms it did not want the model to recommend.

  18. The Base Model is Dead

    The transcript presents competing approaches rather than an established requirement: one recipe rejects model-generated data while Nemotron incorporates synthetic and post-training-style data early.

  19. $1 AI Guardrails: The Unreasonable Effectiveness of Finetuned ModernBERTs – Diego Carpentero

    ModernBERT's alternating attention is presented as a way to capture localized attack signals while retaining broader context without using global attention in every layer.

  20. $1 AI Guardrails: The Unreasonable Effectiveness of Finetuned ModernBERTs – Diego Carpentero

    Unpadding, sequence packing, and FlashAttention address different sources of overhead: meaningless padding work and expensive attention-memory traffic.

  21. Megatron-LM GPT dataset implementation

    _get_ltor_masks_and_position_ids implementation; concrete support for distinguishing information visibility from scoring.

  22. PyTorch CrossEntropyLoss

    Class-index target equations, reduction and ignore_index; arithmetic teaching example derived from documented reduction semantics.

  23. Scaling Data-Constrained Language Models

    Sections 3 and 5–7; definitions, controlled repetition experiments, learning curves and alternative data strategies.

  24. Data Quality is the Compute Multiplier

    The four Cs—clean, curate, create, and compose—separate basic validity, informative selection, synthetic expansion, and training-mixture design.

  25. Simple and Scalable Strategies to Continually Pre-train Large Language Models

    Sections 2, 5 and 6, including schedule and replay ablations; concrete continuation, retention and baseline evidence.

  26. Z.ai GLM-4.6: What We Learned From 100 Million Open Source Downloads — Yuxuan Zhang, Z.ai

    The training recipe combines synthetic explicit reasoning traces with later long-context data and agent trajectories.

  27. The Base Model is Dead

    Mid-training exposes a model to downstream distributions and longer contexts, allowing agentic traces into the training mixture.

  28. The Base Model is Dead

    The speaker proposes distinguishing supervised next-token learning from RL rather than relying exclusively on pretraining, mid-training, and post-training labels.

  29. Beyond Chinchilla-Optimal: Accounting for Inference in Language Model Scaling Laws

    Sections 2 and 5; distinguishes training-only allocation from lifetime resource decisions and illustrates extrapolation limits.

  30. Building AI For All

    Replit describes spending more training compute on a smaller code model to serve latency-sensitive completion, using Chinchilla as motivation for increasing high-quality training data.

  31. Taking Reinforcement Learning Cross Datacenter

    Keep the tightly coupled trainer on fast fabric, but distribute rollout serving islands across regions or providers.

  32. Building AI For All

    Replit preferred repeating a smaller high-quality corpus over expanding it with lower-quality data, citing Scaling Data-Constrained Language Models.

  33. Domain adaptation and fine-tuning for domain-specific LLMs

    The speaker recommends use-case-specific evaluation using several forms of evidence rather than relying only on aggregate training metrics.

  34. Domain adaptation and fine-tuning for domain-specific LLMs

    The speaker argues that deduplication reduces repeated exposure that can encourage memorization and biased outputs.

  35. Data Quality is the Compute Multiplier

    The speaker reports that smaller curated-data runs predicted a much larger model's multilingual performance when token scarcity was simulated appropriately.

  36. Accelerate v1.7.0: Checkpointing

    Versioned checkpointing guide, save_state/load_state and scheduler registration example.

  37. TorchData Stateful DataLoader Tutorial

    Saving custom state with map-style and iterable-style datasets; a published recovery fixture for training-data position.

  38. DVC: dvc.yaml Files

    Stages and dvc.lock sections; concrete implementation for versioned curation recipes.

  39. PyTorch 2.9: Reproducibility

    Reproducibility introduction, random-number control and deterministic-algorithm guidance.

  40. Domain and task adaptation change the training distribution

    Sections 2, 3 and 4, especially the DAPT and TAPT definitions and Section 4.1 training procedure.

  41. Building AI For All

    Replit's repl-tuned variant continued pretraining on filtered public Replit code, emphasizing languages popular with its users and recent code.

  42. Training Albatross: An Expert Finance LLM

    The speaker reports that finance training on a Llama 2 base model improved finance-specific benchmark performance relative to peers while remaining competitive on general benchmarks.

  43. Stuffing Context is not Memory, Updating Weights is

    The Q&A presents agentic search and weight updates as different placements of compute cost: repeated search and reasoning at inference versus substantial learning work up front.

  44. Stuffing Context is not Memory, Updating Weights is

    In the speaker's 3M financial-report experiment, next-token training reportedly memorized the report but failed a differently formatted request about its contents.

  45. Data Quality is the Compute Multiplier

    In the Thomson Reuters example, legal midtraining improved domain performance without reported general-capability loss by retaining a majority of data representative of the original pretraining distribution.

  46. Transformers: Perplexity of fixed-length models

    Definition and fixed-length evaluation sections; vocabulary for held-out prediction measurements.

  47. Rethinking Benchmark and Contamination for Language Models with Rephrased Samples

    Sections 3–5; contamination routes, detector mechanics and deliberate contamination experiments.

  48. Generalization in Adaptive Data Analysis and Holdout Reuse

    Dwork et al., 2015, version 2; introduction and section 1.2, Thresholdout section 4.1, and section 5 discussion of fresh validation. Read original full HTML.

  49. Data Quality is the Compute Multiplier

    Decontaminate training data against downstream benchmarks before interpreting benchmark gains.

  50. Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer

    Sections 3, 3.1.2, 3.1.4–3.1.5 and Figure 2; span-target construction, packing, transfer experiments and controlled comparisons.

  51. The Base Model is Dead

    The speaker uses Nemotron 3 Ultra as an example of moving post-training-style data into pretraining to teach downstream task and conversation structure earlier.

  52. Data Quality is the Compute Multiplier

    In the reported VLM experiments, curated data improved benchmark performance and produced more concise answers, creating a potential inference-efficiency benefit.

  53. Data Quality is the Compute Multiplier

    Avoiding redundant or unnecessary examples can improve learning per unit compute; repeating high-quality data may be preferable to adding low-quality tokens, within a repetition limit.