titlePocketRL: Training a 7B Language Model with Reinforcement Learning on One RTX 5090
authorsStephen Chung, Wenyu Du
date2026-11-27
venuearXiv (preprint, not peer reviewed)
idarXiv:2611.37942
upvotes5 (Hugging Face Daily Papers, 2026-12-02)
linksabs pdf hf code
cite
abstractIt 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.

bibtex

@misc{chung2026pocketrl,
  title={PocketRL: Training a 7B Language Model with Reinforcement Learning on One RTX 5090},
  author={Stephen Chung and Wenyu Du},
  year={2026},
  eprint={2611.37942},
  archivePrefix={arXiv},
  url={https://arxiv.org/abs/2611.37942}
}