Puro-2B:穷人的Qwen2-1.5B,在RTX 5090上以5090美元训练
研究论文 · 2026/08/31
语言模型预训练通常成本高昂,使学术界和开源社区难以企及。尽管已有开源权重和训练配方,但缺乏成本高效、硬件可及的开源预训练方案。本文提出了一种开源预训练配方,使用消费级RTX 5090 GPU,以FP8精度从零训练了Puro-2B模型系列,最多1.4万亿token。最佳模型训练成本低于6.9K美元,性能接近Qwen2.5-1.5B。通过硬件选择、低精度训练、超球优化、课程模型平均和数据配方实现成本效率。此外,推导了Puro成本缩放定律,表明约4.4K美元即可达到Qwen2-1.5B性能;并研究了预训练数据课程对后训练性能的影响。全部配方、数据、代码和模型权重已在Apache 2.0下开源。
该文章提供了一种成本极低的预训练方案,并开源了完整配方,对资源受限的研究者和开发者极具价值,同时提供了成本缩放定律和课程学习研究,具有实践和理论意义。
Language model pretraining has become almost synonymous with prohibitive cost, placing it out of reach for much of the academic and open-source communities. Although strong open-source efforts already exist, including open-weight models and open-source training recipes, a cost-efficient, hardware-accessible, and open-source pretraining recipe has long been missing. Even at a small scale, training Llama-3.2-3B costs over \1.5M, and reproducing SmolLM3-3B needs over 700K. In this report, we present an open pretraining recipe designed to lower this barrier. Using this recipe, we train a collection of Puro-2B models from scratch on up to 1.4 trillion tokens with FP8 precision on consumer-grade RTX 5090 GPUs. The models in the collection differ in token budgets and selected recipe variants. Our best model is trained at a compute cost of less than \6.9K and approaches Qwen2.5-1.5B performance under our evaluation protocol. This cost efficiency is enabled by a combination of approaches, including hardware selection, low-precision training, hyperball optimization, curriculum model averaging, and the data recipe. Beyond the recipe itself, we provide two additional results. First, across the Puro-2B collection, we derive a Puro Cost Scaling Law that relates training cost to average model performance; the fitted law suggests that about 4.4K, less than \$5,090, is sufficient to reach the performance of Qwen2-1.5B. Second, as an end-to-end case study, we examine how pretraining data curricula shape downstream performance after post-training. Such controlled studies are enabled by having access to the full pretraining pipeline rather than model weights alone. We release the full training recipe for Puro-2B, including data, code, and model weights under Apache 2.0 at https://huggingface.co/collections/thu-pacman/puro-2b.