首页 > AI前沿 > PocketRL: Training a 7B Language Model with Reinforcement Learning on One RTX 5090

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

arXiv自然语言 2026-11-28 02:58 9 阅读 查看原文
用户现在需要把给定的英文新闻正文排版成语义化的HTML片段,要遵循给定的规则。首先,先通读原文,划分段落和结构。原文是一段,但内容里有几个要点,不过先看,整个是介绍PocketRL的内容。首先,开头的陈述是第一段?不对,原文是一个连贯的文本,但按照规则,每个自然段落用

包裹,然后看有没有需要分小节的?不对,原文的结构:首先讲RLVR的现状和瓶颈,然后介绍PocketRL的基本情况,然后讲两个想法,然后讲效果,最后说开源。那先拆分自然段落?不对,原文是一个自然段?不对,仔细看,原文是一段,但内容可以拆分?不对,要保留所有信息,不能增删。哦,等下,原文的内容: 第一部分:“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... Second...” 这部分可以作为小节?不对,再仔细看,用户要求保留所有信息,不能增删改内容,所以不能自己加标题?不对,哦,规则是“长文用

/

划分小节”,如果原文有可以划分的,就划分,没有的话就用

。等下,原文的结构: 1. 背景段:RLVR的普及和瓶颈。 2. 介绍PocketRL的基本能力。 3. 两个方法的介绍:First的部分和Second的部分,这里可以用

?不对,或者直接用段落?不对,再想,规则是不要增删内容,所以标题不能自己加,除非原文有?不对,原文没有标题,那可能不需要加

/

?不对,再看规则,“长文用

/

划分小节”,如果原文是长文的话,但这里的内容,是不是可以把两个方法的部分用

?不对,不能自己加内容,哦,对,保留原文所有信息,不得增删改内容,所以不能自己加标题文字,那可能不需要用

/

?不对,再仔细看原文,有没有适合的?比如原文里的两个想法,是不是可以作为小节,但标题不能自己加,那还是用段落?等下,再理清楚: 原文的所有句子: 1. 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. 2. 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. 3. PocketRL combines two ideas. 4. 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. 5. 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. 6. The same 16-bit weights are used for inference, which saves further memory. 7. Together, these methods reduce memory use for training a 7B model by 84%. 8. 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. 9. PocketRL also reduces the cost of a 27B training step by more than 77% compared with similar code bases. 10. We open-source our PocketRL code base. 现在,按照自然段落,原文是一个自然段,但为了排版,拆分自然段落的话,哪些是自然段?其实原文是一篇短新闻,可能可以拆分为几个自然段: 第一段:背景介绍,就是第一句。 第二段:介绍PocketRL的基本情况,第二句。 第三段:两个方法的介绍,从“PocketRL combines two ideas.”到“The same 16-bit weights are used for inference, which saves further memory.”?或者把两个方法分开?不对,再看,规则说每个自然段落用

包裹,那如果原文是连续的,但可以按照逻辑拆分自然段落,只要不增删内容。或者,有没有需要用

的地方?比如“两个核心方法”是原文没有的,所以不能加,所以不用

/

。然后,重要的句子可以用,比如关键数据,比如“trains a 7B model on a single RTX 5090 and a 27B model on only four, without CPU offloading”可以加粗?或者“reduce memory use for training a 7B model by 84%”这些重要的数据加粗。然后,两个想法的部分,用
    ?不对,原文是“First... Second...”,是列表内容吗?可以,因为是两个点,所以可以用
    • 。哦,对,规则说列表内容用
      • ,那“PocketRL combines two ideas.”后面是两个点,所以可以用列表。那整理一下: 首先,第一句作为

        :

        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.

        然后,介绍PocketRL的句子:

        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.”作为引导,然后两个想法用列表:

        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.” 作为

        :

        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.

        等下,这样是不是符合要求?检查规则:只输出HTML片段,没有Markdown,没有解释;每个自然段落用

        ,列表用

        • ,重要的用,没有增删改内容。对,还要检查有没有遗漏内容,原文的所有信息都保留了。再调整一下,有没有更合适的?比如,“PocketRL combines two ideas.”是不是可以和后面的内容连在一起?不对,列表是两个点,所以引导句单独成段,然后列表。或者,引导句和列表一起?