Pre-Training AuroraGPT at Scale on Aurora
Less a story of peak FLOP/s than of what works, what breaks, and how cheaply you recover.
Sam Foreman1, Nathan Nichols, Varuni Sastry, Samuel Wheeler, Khalid Hossain, Huihuo Zheng, Murali Emani, Filippo Simini, Marieme Ngom, Ethan Wong, Venkat Vishwanath
2026-07-14
Outline
- The Good:
- AuroraGPT-2B: 4.67T tokens, done ✓
- 20B/512N now beats 2B/256N / token
-
mano: Muon quality @ AdamW speed
- Software stack:
- Using
ezpz - Moving to
torchtitan2
- Using
- Post-training now live: CPT · SFT · GRPO
- AuroraGPT-2B: 4.67T tokens, done ✓
-
The Bad:
- Rapidly evolving software (and hardware!)
- Fork tax (fast-moving upstream!)
- At scale, failure is the default
- 80B: one bf16 cliff, three dead optimizers
- MoE on XPU: 4–11% MFU (
compilehurts!)
- Rapidly evolving software (and hardware!)
-
The Restarts:
- Towards resilient training
- 3 layers of recovery:
- Job → Node → Process
- Native
--auto-retry
Motivation
-
How to do production training on a rapidly evolving software stack?
- across {Intel, NVIDIA, AMD, …} hardware?
- while also mitigating failures ?
- {hardware, system, network, lustre, …}
-
Tension between:
Since TPC’26: where production stands
| Run | Nodes | Steps | Tokens | Loss | Status |
|---|---|---|---|---|---|
| 2B base | 256 | 92,859 | 4.674T (100%) | 2.65 | ✅ complete |
| 2B CPT | 256 | 5,960 | ~300B pilot | 2.49 | loss ↓ but evals ↓ (no winner) |
| 20B/512N | 512 | 5,400 | 543.6B (11.6%) | 2.47 | advancing (auto-retry) |
| 20B/256N | 256 | 3,100 | 156.0B (3.3%) | 2.68 | advancing |
| 80B | 512 | 14 | (NaN’d) | NaN | ❌ optimizer cliff |
- 20B/512N beats the 2B/256N baseline on every eval, per token (HellaSwag-norm 0.635 vs 0.555)
- The wins and the wall are both new since June. This talk: what changed.
The stack
Current stack:
Old stack (reference):
- 🪦 argonne-lcf/
Megatron-DeepSpeed:- AuroraGPT-2B reference (~7.77T tokens)
- pre-
torchtitan
cuda in user code !🍋 ezpz: write once, run anywhere
# train.py
import ezpz
# auto device + backend selection
rank = ezpz.setup_torch()
print(rank)ezpz launch python3 train.pySame code, every site. No per-cluster mpiexec / srun, CPU bindings, or tile-compact wrappers. → ezpz.cool
AuroraGPT-2B: the reference run on Aurora
| Spec | Value |
|---|---|
| Architecture | 1.986B params, 12 layers, GQA (16h / 4 kv) |
| Hardware | 256 Aurora nodes × 12 Intel Max GPUs = 3,072 GPUs, BF16 |
| Framework | Megatron-DeepSpeed (ZeRO Stage 0) |
| Optimizer | SophiaG7 (β=0.9/0.95, ρ=0.01, wd=0.1, LR=2.28e-5) |
| Training Config | 50M tok/batch (8192 ctx · LBS=2) |
| Tokenizer | SentencePiece, vocab=256K |
| Stages | 3 (pretrain · continued-pretrain · math+code) |
| Tokens | ~7.77T total |
This is the pre-torchtitan reference. Everything that follows is
the migration story: same scale, same data, what changed and what
broke when we cut over.
Why MDS (Megatron-DeepSpeed) first: the only option at the time
When AuroraGPT kicked off, MDS was the only LLM pre-training framework that ran at scale and supported:
- Intel XPU
- Model, pipeline parallelism
- DeepSpeed ZeRO Offloading
Supporting context:
- PyTorch FSDP1 had Intel XPU gaps (collectives, AC patterns, optimizer-state sharding)
torchtitanexisted as a research project (not tested)- MDS was the pragmatic choice
By early 2026, the calculus changed: torchtitan + DTensor + FSDP2 closed the gap
and the MDS fork’s maintenance cost crossed over.
Why SophiaG: large-batch stability at 50M tok/batch (256N)
W&B Report: AuroraGPT-2B Pre-Training8
SophiaG is the only one that stays in the low-loss band with bounded grad norms.
LR-finder — exponential sweep, blow-up / 10
Classic exponential LR sweep910; pick the steepest descent (blow-up / 10 as a safe default). See also our cross-optimizer LR scaling work11.
Cross-optimizer sweep on Aurora. Full report:
docs/experiments/lr-finder/README.md
Why we moved to torchtitan
| MDS | TT | |
|---|---|---|
| Actively maintained | ❌️ | ✅ |
| Declarative parallelism (DTensor, FSDP2) | ❌️ | ✅ |
| FSDP+TP / EP / CP without plumbing | ❌️ | ✅ |
| MoE support | ❌️ | ✅ |
| Easy to extend, debug, maintain | ❌️ | ✅ |
The trade-off we accepted: living on a fast-moving upstream pytorch/torchtitan@main; the “fork tax”
All production runs: training loss
Every current production run on one axis. 2B v2 256N: the full
4.674T-token run (step-92,859), final loss 2.65. 20B v2 512N
(sync): step-5,400 / 543.6B tok (11.6%), loss 2.47 and still
descending. Data:
docs/production
Evals: 2B + 20B vs MDS, per token
2B (4.67T tok): HellaSwag 0.561 · ARC-Easy 0.651, plateaus ~2T.
20B/512N is the most token-efficient run: at 442.9B tok already
ARC-Easy 0.693 · HellaSwag 0.634, beating both 2B chains per
token (~8×). Data:
docs/evals
The fork tax: upstream-sync as a workflow
- 67 Upstream Syncs in 13 Weeks
- Smoke test: bit-exact loss + grad-norm + peak memory
- Verify changes from upstream haven’t broken anything
MoE on Intel XPU: where we are (honestly)
DeepSeek-style MLA + MoE, 500M → 10B. FSDP-only today (TP=1,
no-compile, AC=none, seq_len=4096).
| Reality | Detail |
|---|---|
| MFU | 4–11% (best ~7.4%); scaling degrades past 8N |
torch.compile | hurts MoE (−35% on 500M) |
| Activation checkpointing (7B+) | CheckpointError (routing non-determinism) |
Expert parallelism (EP) | --parallelism.expert_parallel_degree |
Open knobs we’re sweeping: EP 12 · TP 4 · context-parallel · per-block compile · DeepEP / HybridEP backends · Float8. This is exactly where cross-vendor MoE experience would help (see the ask).
mano: Muon quality at AdamW speed
mano12 normalizes updates on a
rotating Oblique manifold with O(dim) vector-norm ops
(no Newton-Schulz iterations). So it matches Muon’s loss without Muon’s
throughput tax.
| Optimizer | Loss | TPS |
|---|---|---|
| Muon | 3.557 | 4,556 |
mano | 3.631 | 7,048 |
| AdamW | 3.801 | 7,245 |
| SophiaG | 4.719 | 7,208 |
- Muon and
manotie on loss (~3.6);manoruns at AdamW speed (~7,000 vs ~4,600 TPS) → wins on wall-clock. - Caveat: at large batch (GBS=384) AdamW still wins (2.71 vs 2.88);
mano’s LR was tuned at GBS=48 and needs re-tuning.
80B: one bf16 cliff, three dead optimizers
At 80B (dim=9216), every constant-finder LR NaN-ed in the first
~dozen steps: grad_norm → inf one step before the loss, while loss
was still flat (~12.9):
| Optimizer | Died at | Signature |
|---|---|---|
mano | step 5 | grad NaN (diverged first) |
| AdamW | step 9 | grad NaN |
| SophiaG | step 14 | Hessian-term overflow, ~6,100 node-h |
mano(our 2B speed win) died first (step 5), despite its 80B LR-finder band looking the safest of the three. Early-step ranking does not predict sustained stability.- Shared failure across 3 optimizers ⇒ a corner-level instability
(bf16 at dim=9216), not tuning. Two grad-path triggers:
LBS>1and largedp_degree. - Fix in flight: long warmup (≥200 steps) + grad clipping, possibly an fp32 grad path. Stable corner today: TP=4 · LBS=1 · GBS=372, validated 100/100 steps NaN-free (loss 12.93 → 7.72) at ~9.8% MFU.
80B cliff: the GBS ladder + why LR-scaling backfires
The stable corner (TP=4 · LBS=1 · bf16 · GBS=372) held NaN-free under batch ramp, until it didn’t:
| Batch | GBS | Result |
|---|---|---|
| 1× | 372 | ✓ 100/100 steps (12.93→7.72) |
| 4× | 1,488 | ✓ 46/46 steps |
| 8× | 2,976 | ✓ 34/34 steps |
| 16× | 5,952 | ❌ NaN at step 29 |
| 16× + LR-scaled | 5,952 | ❌ NaN at step 7 (worse!) |
- Do not linearly scale LR with batch here: it moves the cliff earlier.
dp_degreebisect:dp=192anddp=264both ran 30 steps clean, so the old “dp>186unsafe” warning was over-conservative.- 2048N (dp=6138)
SIGSEGVed inset_determinism(seed broadcast faulted at 24,864 ranks); 512N proven, 1024N is the missing measurement.
80B LR-finder at the production batch (GBS=6,144, four sweeps). AdamW
and muon cliff straight to NaN with no usable minimum (× marks the
diverged LRs); mano and SophiaG reach a real minimum first (circled,
~11.9 / ~11.8) but SophiaG blows up just past it. Data:
docs/experiments/lr-finder/agpt/80b
Beyond pretraining: CPT · SFT · RL
The base run is done, so the pipeline now extends past pretraining:
- CPT: stages 2-3 of the SophiaG reference (dolmino, then math+code) → 7.77T tokens
- SFT:
checkpoint-729-hf(on that CPT’d base) is now a first-class production asset - GRPO: on-policy RL (TRL + vLLM-XPU) on the SFT checkpoint, verified multi-node
CPT: lower loss ≠ better model
Two ~300B-token pilots (256N, GBS=6,144) vs the olmo-100 base plateau:
dolmino-100 hit the lowest val loss 2.492 (−0.31 vs base ~2.80);
olmo50-dolmino50 2.601.
SFT: tulu_math_uc_mix on the CPT’d 2B
Run 1 complete: final loss 0.77 over 4.5B tokens (3 epochs, 32N, GBS=6,144).
checkpoint-729-hfis a first-class production asset: it feeds every downstream GRPO experiment.- Survived 3 SIGABRTs across 4 mpiexec auto-retry attempts.
- Run 3 in progress on the full ~54B-token mix (~93.1M rows); the v2-base variant is blocked by a scale-only oneCCL fault at 32N.
GRPO: arithmetic RL on Intel XPU
On-policy RL via TRL GRPOTrainer + vLLM-XPU, on the SFT’d 2B
(sum_digits task, 1,000 steps, 8N × 12 = 96 ranks, LR 1e-6):
Accuracy reward climbs ~0.4 → ~0.9 (from ~0 cold-start).
- Multi-node GRPO now works (2026-07-06): the apparent “desync” was two ordinary bugs (a oneCCL MPI-transport SIGSEGV + an AVG→SUM reduction), not an XPU pathology.
- Still experimental (verified on XPU, not production-ready).
The Restarts: At Scale, Failure is the Default
- Llama 3 405B — 16K H100s · 54 days · 419 failures (≈ 1 every 3h); 99% recovered via automation13
- OPT-175B — 35 manual restarts + 100+ cycled hosts in 2 mo on ~1K A100s14
- BLOOM-176B — frequent loss spikes; embedding-norm + checkpoint cadence on 384 A100s × 3.5 mo15
- GLM-130B — loss spikes “increasingly frequent”; some recover, others go to NaN16
“The Restarts”: three layers of recovery
Bad-node failover, hang-watchdog, and PBS resubmit each operate at a different scope.
Inner loops catch most failures; outer loops catch the rest.
Restarts, since TPC’26: native --auto-retry
The failover cascade moved out of bash and into ezpz:
ezpz launch --auto-retry --np 512 -- python -m torchtitan.train …- Classifies each attempt →
success/walltime/bad-node/stuck-pre-training; swaps a spare, re-execs. Ships insaforem2/ezpz#144. - Broke the 20B/512N stall: the sync chain sat walltime-blocked
for weeks (a PBS mid-save kill left a stale
step-4500/placeholder); auto-retry relaunch drove 4,400 → 5,400 cleanly.
—checkpoint.async-mode=async
(a 244 GB background write) takes the job down. Workaround today:
CHECKPOINT_ASYNC_MODE=disabled.What generalizes, what doesn’t
Generalizes across vendors / sites / models
- Bit-exact deterministic smoke gate after every upstream sync
- lm-eval as the ground truth for “is it actually learning?”
- Spare-node failover wrapper — same idea on Slurm
- Launcher / env autodetect — push every vendor-shaped assumption out of training code
Doesn’t generalize (needs per-(config, hardware, version) tuning)
torch.compiledecisions (and it hurts MoE on XPU)- AC boundaries (MoE + AC + compile = grief)
- EP↔FSDP frontier
- Collective tuning (XCCL vs gloo fallbacks, NCCL env)
- Optimizer stability at the bf16 corner (LR-finder ranking ≠ sustained stability)
What it took to train AERIS
On the same machine (Aurora), but with its own separate stack, AERIS17 is a pixel-level Swin diffusion transformer for generative weather & climate prediction, the first diffusion model taken to this scale, a useful contrast point for what full-machine training demands.
| Model | Swin diffusion transformer, 1.3B → 80B params |
| Data | ERA5 reanalysis at 0.25°, 1×1 patches |
| Machine | Aurora, up to 10,080 nodes |
| Parallelism | SWiPe: window ∥ + sequence ∥ + pipeline ∥ (no added comm / no larger global batch) |
| Sustained | 10.21 EFLOP/s (mixed precision); 11.21 peak |
| Scaling | 95.5% weak, 81.6% strong |
| Skill | beats IFS ENS; stable to 90-day seasonal rollouts |
- A separate codebase, but the same operational realities we hit: bf16 stability, full-machine scaling, and failure tolerance at 10k nodes.
- Its hard new problem was scaling diffusion stably at high resolution, which SWiPe’s window-parallelism addresses without inflating the global batch.
Thanks
AuroraGPT team: Venkat Vishwanath, the AI/ML Group at ALCF, collaborators across ANL.
Argonne Leadership Computing Facility: Aurora time, Sunspot staging.
Intel: Intel Max 1550 XPU + oneAPI / XCCL / IPEX support throughout.
Code & docs
ezpz: github.com/saforem2/ezpztorchtitanfork (experiments/ezpz): github.com/saforem2/torchtitan- These slides: samf.sh/talks/2026/07/14
This research used resources of the Argonne Leadership Computing Facility, which is a DOE Office of Science User Facility supported under Contract DE-AC02-06CH11357.
Questions?
Appendix: backup slides
Material that didn’t make the main path but is here for Q&A.
- Open questions
- Silent-correctness bugs (bf16 RMSNorm freeze · TP loss reporting)
- Post-training: CPT · SFT · GRPO
- Failover engineering deep-dive
yeet-envtarball broadcast scaling
Open questions: the ask
- A portable bit-exact regression suite across vendors — does anyone have one?
torch.compileat 1T scale — defensible decision tree?- Async-checkpoint Pareto frontier: recovery time × frequency × storage cost in production
- Optimizer failure at 80B+: SophiaG (Hessian-diagonal estimate saturates) + Muon (Newton-Schulz iterations overflow bf16) both diverge — algorithmic limit or fp-precision artifact?
- MoE EP↔FSDP scaling boundaries at 16B / 64B / 100B
- Make
xcclhonortrain_timeout_secondsso we don’t have to rely on an stdout-idle watchdog as the hang-detection ground truth
Operational reality — bad-node failover
5+ production jobs killed by bad-node failures in 2 weeks. Pattern: PBS gives us 256 / 512 nodes, one is bad, training crashes or hangs after N hours, walltime gone.
| Job | Trajectory | Failure |
|---|---|---|
| 8459818 | 2B 256N v2 | shepherd died from signal 9 after step 2070 |
| 8470102 | 20B 256N v2 | gloo TCP Connection closed by peer after ~3h |
| 8479579 | 20B 512N v2 | silent hang at step 803 (heartbeat continued) |
Failover wrapper: request select=N+spare (~2%, min 4). Split
into active + spare pool. On crash, scrape bad nodes from log, swap a
spare in, retry.
qsub -q prod -l select=522 -v NHOSTS_TRAIN=512 \
submit_agpt_2b_aurora_venv_failover.shHandles 6 recurring crash modes. Does not handle silent hangs — those still need a heartbeat watchdog.
Silent-hang detection: ezpz launch --timeout / --retries
The problem. xccl on XPU silently ignores
train_timeout_seconds, so a torchtitan job stuck in a hung
collective sits consuming the full PBS walltime instead of aborting.
Every collective hang quiets stdout (every rank blocks in the same
call, nothing reaches the log) — that’s the signal we can act on.
ezpz launch --timeout 600 --retries 3 \
python -m torchtitan.train --config-file ./config.toml--timeout SECONDS— kill the launched process if its stdout goes idle (not walltime) for this many consecutive seconds. Returns exit code 124 (matches GNUtimeout(1)).--retries N— re-execute on any non-zero exit (including the watchdog’s 124) up to N times. Exponential backoff: 5s → 10s → 20s → 40s → 60s (capped).
Scope caveat. Watches only the process ezpz launch spawns
directly. If qsub runs a wrapper script that internally invokes
python train.py, the watchdog needs to live inside that script (or
you wrap the inner call with ezpz launch too).
ezpz launch --timeout: one hang/recover cycle
Every collective hang shows up as silence on stdout — the process is “alive” by kill -0 but nothing is happening. The watchdog fires on the absence of progress, not on a heartbeat ping.
--auto-retry: bad-node failover, on tap
Allocate spares up front, swap them in on failure:
# 522 nodes allocated, train on 512, keep 10 as spares.
# Loop until success, walltime, or spare exhaustion.
ezpz launch --auto-retry --np 512 -- python -m torchtitan.train …- Classifies each attempt’s exit →
success/walltime/bad-node/stuck-pre-training - On bad-node: scrapes the failing host from the log, swaps in a spare, re-execs
- Guards against config bugs: 2 consecutive attempts with zero
step=markers → stop (don’t burn the whole spare pool on a broken run)
Ships in saforem2/ezpz#144. Same scraper as the bash-lib path; pure-Python loop on top.
Failover wrapper: caught a real silent hang in production
Job 8505298, 2026-05-23. Attempt 1 trains cleanly steps 1→37, then
log goes completely silent at step 37. No traceback, no MPI error,
no rank dying. Just dead.
| Time (CT) | Event |
|---|---|
| 21:06:41 | step 37 logged · loss 11.80 · tps 3,919 |
| 21:36:41 | 30 min dead air · ezpz launch --timeout=1800 SIGTERMs |
| 21:36:43 | wrapper classifies exit 124 → silent-hang (not walltime) |
| 21:36:43 | no traceback to scrape → blind swap of rank-0 host |
| 21:36:45 | attempt 2 launches on swapped node set |
| 21:57:49 | walltime hit · step 296 · loss 5.68 · ckpts persisted |
Three new pieces had to fire in sequence on a real-world hang to
prove production-readiness: --timeout=1800 watchdog · exit 124
classification distinct from PBS exit 143 · failover_swap_one_blind()
when no specific bad node can be identified. They did.
Full writeup: docs/experiments/agpt/aurora/20260523-failover-silent-hang-recovery-8505298.md
Silent bug #1 — bf16 master ⇒ RMSNorm frozen
Symptom. Loss curves looked reasonable. lm-eval scores didn’t move — ARC-Easy stuck at ~0.27 (random baseline) for 17K+ steps.
Cause. training.dtype=bfloat16 → bf16 master copy. RMSNorm
weights init at 1.0; bf16 ULP at scale 1.0 is ~7.8e-3. Per-step
optimizer update is ~1.6e-5 — every update rounds to zero. All
25 RMSNorm tensors stayed at exactly 1.0 from step 100 → 17,400.
Why other params trained fine. Linear layers init at std≈0.02 →
bf16 ULP at scale 0.02 is ~3.8e-5, same magnitude as the update.
RMSNorm’s larger init scale = coarser ULP = updates lost in rounding.
Fix. Default training.dtype=float32, FSDP
MixedPrecisionPolicy(param_dtype=bf16, reduce_dtype=fp32). Master is
fp32; forward/backward stay bf16. Extra ~1 GB master at 2B, ~10 GB at
20B — under budget.
Silent bug #1 — the smoking gun

v1 (bf16 master, 256N): ARC-Easy 0.27 flat across 2,500 steps · v2
(fp32 master, 512N): ARC-Easy 0.27 → 0.44 by step 800 · HellaSwag breaking
out.
Lesson: loss looks like training. lm-eval is the only ground truth for “is the model actually learning?” Add a periodic eval gate.
Silent bug #2 — TP loss reported / dp_world_size
-
Symptom: Step-1 loss for
agpt_*(vocab=256128) should beln(256128) ≈ 12.45- On TP=1 we see12.95✓ - On TP=2 after upstream commit1786292d(2026-04-27): - step-1 reported as1.07✗ — exactly12.84 / 12wheredp_world_size = 12 -
Cause:
_dist_reduce()short-circuits on DTensor withfull_tensor()- But the loss is Replicated on the TP mesh, and the reduction was
requested over
batch_mesh(orthogonal) - The short-circuit silently drops the cross-batch sum
- But the loss is Replicated on the TP mesh, and the reduction was
requested over
-
Why it survived review: Gradients + optimizer steps are correct
- Only the
loss:field that lands in stdout / W&B is wrong - Loss curves look “reasonable” — just
1/12of the true value - Filed as
pytorch/torchtitan#3204; our workaround callsloss.full_tensor()beforedist_suminezpz/trainer.py:503-516
- Only the
-
Lesson: Bit-exact smoke caught this immediately; the prior 2B TP=1 baseline gave us a number to disagree with
ezpz yeet: Efficiently Running 50k Python Processes
| Nodes | yeet (s) | First-step (s) | Per-node (ms) |
|---|---|---|---|
| 8 | 69.7 | 29.3 | 8,712 |
| 16 | 89.7 | 31.6 | 5,606 |
| 32 | 89.2 | 20.9 | 2,788 |
| 64 | 91.2 | 34.6 | 1,425 |
| 128 | 110.4 | 30.5 | 862 |
| 256 | 132.9 | 37.6 | 519 |
| 512 | 174.5 | 44.5 | 341 |
| 1024 | 255.4 | 60.8 | 249 |
| 2048 | 421.4 | 94.8 | 206 |
| 4096 | 750.6 | 194.0 | 183 |
Two regimes. 8–64 nodes extract-bound (~70–91s flat, per-node cost falls 8.7s → 1.4s); ≥128 nodes broadcast-bound, each 2× in nodes adds ~1.5–1.8× wall-clock.
Full write-up: samf.sh/posts/2026/05/01
Footnotes
Footnotes
-
Argonne National Laboratory ↩
-
And away from argonne-lcf/Megatron-DeepSpeed! ↩
-
Weighted blending across datasets. ↩
-
Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training ↩
-
See the 📊 All Runs section. ↩
-
Cyclical Learning Rates for Training Neural Networks (Smith 2015) ↩
-
How do you find a good learning rate (Gugger 2017) ↩
-
Extending µP: Spectral Conditions for Feature Learning Across Optimizers (Gupta et al. 2026) ↩
-
mano: manifold-normalized optimization (2026). Implemented in our fork alongside SPAM (2501.06842). ↩ -
Llama 3 herd of models (Meta AI, 2024), §3.3.2 (Training reliability) ↩
-
OPT-175B chronicles + dev log (Zhang et al., 2022) ↩
-
BLOOM: A 176B-Parameter Open-Access Multilingual Language Model (BigScience, 2022) ↩
-
GLM-130B: An Open Bilingual Pre-Trained Model (Zeng et al., ICLR 2023) ↩
-
AERIS: Argonne Earth Systems Model for Reliable and Skillful Predictions (arXiv:2509.13523). ↩