Oriel — AI & technology worth noticing, every day.

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

Paper · https://arxiv.org/abs/2611.37942

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.

First seen by Oriel on .

AI summary

PocketRL is an open-source RLVR code base that trains a 7B model on one RTX 5090, reducing training memory use by 84%.

  • ActGRA projects each layer’s gradient and optimizer state onto a compact basis fitted to input activations using QR factorisation.
  • The authors report that ActGRA retains more gradient information than random projections used in prior work.
  • PocketRL uses 16-bit weights plus half an extra byte per weight to preserve rounding error and prevent small updates from being lost.
  • A competitive 7B model trains in under 8 hours for $4.71; a 27B model runs on four RTX 5090s without CPU offloading.
  • For 27B training, PocketRL reduces the cost per step by more than 77% compared with similar code bases.

#reinforcement learning #llm training #memory optimization

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Hugging Face Papers: 5, latest observation ; +1 over observed period since

Comments

Comment count reported by the source.

  • Hugging Face Papers: 3, latest observation ; +1 over observed period since

Aliases

SourceExternal IDURL
Hugging Face Papers2611.37942https://arxiv.org/abs/2611.37942 Read discussion