论文

PocketRL:单张 RTX 5090 上用强化学习训练 7B 模型

PocketRL: Training a 7B Language Model with Reinforcement Learning on One RTX 5090

精选理由

普通研究者做 RLVR 训练最贵的就是显存,这篇把 7B 强化学习压到一张 RTX 5090、4.71 美元跑完,比同类代码省 84% 显存。ActGRA 比随机投影保留的梯度信息多得多,代码还开源了,自己想复现跑 RL 的直接看这篇。

arXiv 论文 PocketRL 提出了一套低成本的 RLVR(可验证奖励强化学习)训练方案,能在单张 RTX 5090 上训练 7B 模型,用四张即可训练 27B 模型,全程无需 CPU offloading。相比此前方案,训练 7B 模型的显存占用降低 84%,27B 单步训练成本降低超过 77%。

正文

技术上 PocketRL 依赖两个核心设计。第一是 ActGRA:用 QR 分解把每层的梯度和优化器状态投影到一个由该层输入激活值拟合出的小基上,相比先前工作常用的随机投影能保留更多梯度信息。第二是用 16-bit 权重训练,每个权重额外携带半个字节的舍入误差记录,避免小幅更新丢失;推理时也复用同一份 16-bit 权重,进一步省显存。

成本效果非常具体:在单张 RTX 5090 上不到 8 小时即可训出一个有竞争力的 7B 模型,花费仅 4.71 美元,不到同类模型训练成本的 9%。代码库已开源,对没有多卡集群、想做 RLVR 研究的独立开发者和小团队是明显利好。

原文 · arXiv cs.LG

PocketRL: Training a 7B Language Model with Reinforcement Learning on One RTX 5090

It is now common to post-train large language models with reinforcement learning with verifiable rewards (RLVR), but its heavy memory use, and hence high cost, is an important bottleneck for RLVR research and a major expense in training frontier models. We introduce PocketRL, a low-cost, memory-efficient RLVR code base that trains a 7B model on a single RTX 5090 and a 27B model on only four, without CPU offloading. PocketRL combines two ideas. First, we project each layer's gradient and optimizer state onto a small basis fitted to the layer's input activations by a QR factorisation, which we call ActGRA, and show that such a basis retains far more of the gradient than the random projections used in prior work. Second, we propose training on 16-bit weights with half an extra byte per weight that carries the rounding error, which prevents small updates from being lost. The same 16-bit weights are used for inference, which saves further memory. Together, these methods reduce memory use for training a 7B model by 84%. This enables us to train a competitive 7B model in less than 8 hours on a single RTX 5090 for just $4.71, less than 9% of the cost of training comparable models. PocketRL also reduces the cost of a 27B training step by more than 77% compared with similar code bases. We open-source our PocketRL code base.

产业坐标与信源核验

本条情报归属 AITOP「论文」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:PocketRL、RTX 5090、RLVR、开源模型,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。

信源核验说明:本文原始线索采编自「arXiv cs.LG」(@Stephen Chung, Wenyu Du),经 AITOP 多维评分管线结构化提炼。截至目前,全网已有 2 家独立信源对该事件进行交叉印证与跟进报道(含 Lxfater 等),属于近期高关注度行业信号。