Common Failure Points When Building a Model from Scratch
local graph
Module 40 — Common Failure Points When Building a Model from Scratch
Section titled “Module 40 — Common Failure Points When Building a Model from Scratch”Every from-scratch training project carries a portfolio of risks that compound across months of work. The technical work of selecting data and designing architecture sits inside a project structure that itself can collapse under unclear goals or undisciplined planning. By studying completed runs you can find a distinct pattern: the failures that destroy projects are usually the ones that produced the weakest signals during training. Silent data corruption and miscoordinated teams accumulate damage long before any obvious alarm sounds. This module catalogs the failure points that derail from-scratch training projects most often, organized by where they originate in the pipeline. Understanding these patterns gives you a concrete map of what to guard against when a project begins.
Data Pipeline Failures
Section titled “Data Pipeline Failures”Data problems consume more debugging time than any other category in pretraining. The reason is structural: most data faults degrade quality gradually and uniformly, producing a model that simply learns less than it should. Penedo et al. (2024) reported that models trained on RedPajama, a popular open corpus, achieved lower benchmark scores than those trained on their much smaller FineWeb dataset (Module 16). Practitioners who do not benchmark their data preparation stages independently often attribute the resulting weakness to model size or learning rate, then waste compute trying to correct a problem rooted in the corpus itself.
Tokenization mistakes cause a particularly damaging class of silent failure. Land and Bartolo (2024) showed that standard byte pair encoding pipelines routinely produce under-trained tokens that occupy vocabulary slots without receiving meaningful gradient updates, distorting embedding utilization across the model. When a tokenizer trained on one corpus is applied to a slightly different corpus during pretraining, byte sequences that should map to clean semantic units fragment unpredictably, forcing the model to spend representational capacity reassembling what should have arrived intact. Small tokenization changes can produce measurable downstream degradation across reasoning and arithmetic tasks, and these effects are difficult to surface through training loss alone.
Domain imbalance creates a second category of silent harm. Penedo et al. (2025) documented how the FineWeb2 pipeline required language-specific confidence thresholds because uniform filtering across languages systematically over-pruned medium-resource scripts and biased the corpus toward English. A team that filters aggressively for quality while ignoring distributional consequences can produce a corpus that scores well on internal data quality metrics yet trains a model that performs poorly on entire user populations. Sequence formatting inconsistencies belong to the same family: when document boundaries or attention masks appear in subtly different forms across data sources, the model learns inconsistent conventions that surface only when downstream prompts violate the dominant pattern from training.
Deduplication errors form a fourth pipeline failure mode that can quietly undermine a run. When near-duplicate documents survive filtering, the model effectively trains on the same content many times, distorting its capability profile toward memorized patterns and reducing the diversity of signal per token consumed. The opposite failure, accidental removal of valid content during deduplication, can also occur when hashing parameters are tuned too aggressively for the corpus structure, silently shrinking the effective dataset by a factor that monitoring systems do not surface.
Architecture and Configuration Mistakes
Section titled “Architecture and Configuration Mistakes”Errors made before the first gradient step often cannot be reversed without restarting. Initialization choices in particular set the trajectory of optimization in ways that are difficult to recover from. Nishida et al. (2024) showed that loss spikes (Module 23) during pretraining can frequently be traced to non-uniform parameter norms at initialization, which produce gradients that diverge under standard learning rate schedules. Teams that copy initialization recipes from published papers without confirming that the underlying parameterization matches their own architecture sometimes encounter loss explosions hundreds of billions of tokens into a run, at which point recovery requires either a costly rewind or acceptance of a permanently weaker model.
Architecture choices that ignore the optimizer’s behavior under the chosen precision regime can produce a similar class of late-arriving failure. When activation functions or normalization layers are configured for full-precision training yet executed in mixed precision, accumulated rounding errors can produce divergence patterns that look like data quality problems but originate in the architecture specification. Learning rate warmup schedules represent another configuration surface that practitioners often misjudge. When the warmup is too short for the chosen peak learning rate, the optimizer enters a high-rate regime before parameter statistics have stabilized, which can trigger loss spikes that propagate forward through subsequent updates.
Hyperparameter mistakes follow a similar pattern of late-arriving consequences. Learning rate and batch size predictions derived from popular scaling rules become unreliable when the data-to-parameters ratio is small, and practitioners who apply these rules outside their valid range can land on configurations that are stable enough to complete training while remaining far from optimal. The model finishes, the loss curve looks acceptable, and the resulting checkpoint nonetheless underperforms what the same compute could have produced. Attention configuration errors create a third common trap. Context length and batch size settings interact with attention kernel implementations in ways that can silently truncate or misalign positional information, especially when teams change one parameter to fit hardware limits without revalidating the full configuration.
The compounding character of these mistakes is what makes them dangerous. A poorly chosen initialization and an unverified attention mask each produce small per-step inefficiencies that aggregate over trillions of tokens into a measurable capability deficit. Achiam et al. (2023) reported that the GPT-4 training program relied heavily on infrastructure for predicting full-scale behavior from smaller proxy runs, precisely because the cost of discovering a configuration error after a long run exceeds the cost of running many small ones first. Teams that skip this validation discipline routinely find configuration faults during evaluation, when the only remaining options are to ship a weaker model or to repeat the run.
Infrastructure and Distributed Training Failures
Section titled “Infrastructure and Distributed Training Failures”Hardware reliability becomes a dominant operational concern at the scale required for frontier pretraining. Dubey et al. (2024) reported that during the Llama 3 training campaign on 16,000 GPUs, the cluster experienced an interruption from a hardware fault on average every three hours of wall-clock time. Each interruption requires identifying the affected component and reloading a checkpoint, which for trillion-parameter models can take tens of minutes to read from remote storage. A team that has not invested in fast checkpointing and automated recovery can lose double-digit percentages of total compute to recovery overhead alone.
Silent data corruption represents a more insidious infrastructure failure. Individual GPU faults can produce numerically incorrect outputs that pass through all-reduce communication and contaminate parameter updates across the entire distributed system before any monitoring system detects the problem. The corruption can manifest as gradient anomalies or as slow capability loss that surfaces only weeks later in evaluation. NVIDIA’s production diagnostic utilities achieve roughly 70 percent recall on production faults, leaving a substantial fraction of corrupted runs to be discovered through their effects on the model itself.
Communication patterns introduce a third category of distributed failure. Race conditions between collective operations in popular ZeRO-style optimizers can produce subtle numerical inconsistencies across devices when network bandwidth is constrained, causing different replicas to drift apart in ways that hurt convergence without producing any explicit error. Network topology assumptions introduce a related infrastructure trap. Distributed training frameworks assume specific bandwidth and latency profiles between groups of GPUs, and a cluster reconfiguration that violates these assumptions can degrade throughput by an order of magnitude without producing any error. Practitioners who do not maintain detailed throughput baselines for each parallelism configuration can spend weeks attributing slowdown to data loading or optimizer changes when the underlying cause is a network reconfiguration the cluster operator made silently.

Figure 7-6. Hardware Faults, Silent Data Corruption, and Cumulative Wasted Compute Across a Training Run
Checkpoint corruption rounds out the set: when a checkpoint is written during a partial node failure, or when shards from different ranks become inconsistent due to ordering bugs in the storage layer, a team can find that the only available restore point is itself broken, forcing a return to an earlier checkpoint and the loss of all intervening compute.
Organizational and Planning Failures
Section titled “Organizational and Planning Failures”The non-technical failure modes that derail from-scratch projects are often the hardest to detect during execution because they produce no error logs. Industry surveys consistently find that organizational issues account for more abandoned machine learning projects than technical ones.
Unclear success criteria are the most common starting point for organizational failure. A team that begins a from-scratch run without a defined evaluation plan often finds itself negotiating what counts as success after the model is already trained, at which point the available evidence is whatever happened to be measured during training. Sambasivan et al. (2021) found in a study of high-stakes machine learning projects that data and evaluation infrastructure built late in a project consistently produced worse outcomes than the same investment made early, because retrofitted evaluation tends to confirm earlier choices and surfaces few opportunities to revise them. Teams that defer evaluation tooling until after the first training run frequently discover capability problems they could have caught months earlier.
Team capability gaps surface most painfully mid-run. A from-scratch project requires expertise spanning data engineering and distributed systems among other areas, and the absence of any one specialty can produce a class of failure that the rest of the team is not equipped to diagnose. Coordination across functions introduces a related organizational failure. Pre-training requires the data team and the infrastructure team to align with optimization specialists on a single coherent plan, and gaps in coordination produce decisions that are collectively incoherent. A data team that doubles its corpus size without informing the optimization team about the new token mix can invalidate hyperparameters chosen for the original distribution, while an infrastructure team that changes the parallelism strategy without coordinating with the modeling team can quietly alter the effective batch size by a factor that the loss curve does not reveal until evaluation.
The compounding cost of scope changes after training begins creates a final problem. When stakeholders revise target capabilities after a run is underway, the team faces an unattractive choice: continue on the original plan and produce a model that no longer matches requirements, or restart with new specifications and absorb the discarded compute as sunk cost. Both options are expensive, and projects that experience repeated late-stage scope changes typically end with neither a usable model nor a clear understanding of what went wrong.
A pattern visible in mature pretraining programs is the maintenance of a written training plan that captures the agreed success criteria and the planned evaluation set before any compute is committed. Teams that operate from such a plan can identify scope changes as proposals to amend the plan, which subjects them to the same scrutiny that the original decisions received. The discipline cannot prevent every failure, but it consistently shortens the time between the appearance of a problem and the recognition that something is wrong, which is the single largest determinant of recovery cost in long training runs. While engineers usually focus on the technical failure modes catalogued earlier in this module, even careful technical work cannot produce a usable model when organizational failures are present.