AI agent pre-trains a 5.4B MoE model from scratch in 24 hours and writes its own paper
maksym_andr · x · 2026-12-05
PreTrainBench asks every agent run to write a detailed paper about its work. Gemini 4 Neon (xhigh reasoning) produced ApexLM-5.4B-A1B: a 5.38B-total-param (1.06B active) fine-grained MoE model pre-trained from scratch in 24 hours on 16 H100s (352 GPU-hours, 37B tokens, 0.730 BPB, 36.3 few-shot). The paper details an Iso-Time-validated stack: Muon(NS-5) optimizer (-0.021 BPB vs AdamW), Value Residual Learning (-0.032), ReLU² MLPs over SwiGLU (-0.022, +4–11% throughput), Headwise Gated Attention, 32-expert top-4 MoE with DeepSeek-V3-style aux-loss-free balancing via torch.groupedmm, and a WSD curriculum with Model Souping over 8k-context branches. Evaluated on 5,104 held-out docs; all traces are public.
More from coding & agent
- TokenMS v2: open-source local MCP server claims 40-50% token savings for coding agents — nexxismyname · 2026-12-05
- Knuth now programs with Claude; preview of new Art of Computer Programming chapter leaks — IanArawjo · 2026-12-05
- One engineer spent 8 years writing 600K lines: KUDA rival runs LLMs across NVIDIA and Qualcomm — IgorCarron · 2026-12-05
- Agentic shopping in practice: Grokbot as a personal shopper that negotiates — xkonjin · 2026-12-05
- Formal tools like Lean and TLA+ are bug finders for agents, not real proofs — moarbugs · 2026-12-05
- A Single ANTI-SLOP.md File Takes AI-Generated Page Slop Score from 4 to 0 — sahilypatel · 2026-12-05