RL with verifiable rewards

PocketRL

Train LLMs with RLVR cheaply and efficiently.

Stephen Chung and Wenyu DuDualverseAI

$4.71to train a 7B model to 79.9% on MATH-500
1 × RTX 5090for 7B RL, in 7.3 hours
84%less persistent training memory at 7B

01 · Results

Same accuracy. A fraction of the cost.

PocketRL-7B reaches 79.9% on MATH-500 for an estimated $4.71 on one RTX 5090. Released RLVR models trained from the same base cost $54 to $1,077.

MATH-500 accuracy against training cost · Qwen2.5-Math-7B
91%

cheaper at 7B

PocketRL-7B costs $4.71 and averages 43.0%, against 42.1% for the six released 7B models.

95%

cheaper at 1.5B

PocketRL-1.5B costs $5.31 and averages 32.9%, against 33.2% for the two released 1.5B models.

On par with released models on six math benchmarks.

Avg@8 accuracy (%) at temperature 1 on math test set.

PocketRLReleasedReleased mean
Full table: all six benchmarks and cost
Model MATH-500 AIME 2024 AIME 2025 AMC 2023 Minerva Olympiad Average Est. cost
Qwen2.5-Math-1.5B
Base model21.92.51.716.35.412.610.0–
PocketRL70.010.88.547.527.133.832.9$5.31
Released 1.5B models
Oat-Zero (8× A100)71.319.27.153.429.934.335.9$99
ExGRPO (8× H100)66.810.410.838.425.330.930.4$689
Mean of released69.014.89.045.927.632.633.2$394
Qwen2.5-Math-7B
Base model30.210.82.520.07.29.513.4–
PocketRL79.923.912.563.236.442.043.0$4.71
Released 7B models
RePO-Zero (4× A100)74.116.79.659.733.036.938.3$54
Oat-Zero (8× A100)79.435.411.265.636.442.145.0$112
SimpleRL-Zoo (16× H100)76.324.211.261.234.838.941.1$788
PRIME-Zero (8× A100)80.818.315.059.440.141.342.5$1,077
ExGRPO (8× H100)82.725.815.063.138.146.345.2$944
GPG-Zero (4× A100)72.923.810.463.133.837.740.3$613
Mean of released77.724.012.162.036.040.542.1$598
Qwen3.8-27B
Base model80.825.825.466.641.247.447.9–
PocketRL94.351.144.386.449.862.564.7$23.53

One code base, three gradient compression methods

PocketRL also trains with three gradient compression methods: Dense, LoGRA, and ActGRA. ActGRA, the method we propose, is the default.

ActGRA (default)Dense, LoGRABase model
Full table: GPUs, time, cost and peak memory
Method MATH-500 Six-set avg. GPUs Train time Est. cost Peak GiB/GPU
Qwen2.5-Math-1.5B
Base model21.910.0––––
Dense64.530.31× RTX 509010.1 h$6.5325.6
LoGRA69.232.51× RTX 50908.8 h$5.6627.4
ActGRA (default)70.032.91× RTX 50908.2 h$5.3115.8
Qwen2.5-Math-7B
Base model30.213.4––––
Dense76.140.12× H1007.8 h$46.4274.5
LoGRA77.641.81× RTX 509012.3 h$7.9331.3
ActGRA (default)79.943.01× RTX 50907.3 h$4.7122.5
Qwen3.8-27B
Base model80.847.9––––
ActGRA (default)94.364.74× RTX 50909.1 h$23.5331.1

ActGRA learns at least as fast as full dense training.

Avg@8 accuracy during training.

MATH-500

Six-set mean

Qwen2.5-Math-7B, 500 updates on one RTX 5090 (Dense on two H100s).

02 · Cost and speed

Cheapest per RL step among RLVR repos.

The same RL step in each RLVR repo: 16 prompts, eight answers each, up to 3,000 tokens. Each uses the fewest GPUs, up to eight, that complete an update. Cost of 100 RL steps.

RTX 5090H100
Full tables: GPUs, peak memory, time and cost

Qwen2.5-Math-1.5B

Code base RTX 5090 GPUs Peak GiB Time Cost H100 GPUs Peak GiB Time Cost
PocketRL114.31.8 h$1.17114.40.9 h$2.67
Oat130.6†3.0 h$1.95151.41.1 h$3.08
verl123.3†3.4 h$2.18130.4†2.3 h$6.37
OpenRLHF130.1†3.6 h$2.33134.2†2.1 h$5.99
LoGRA217.62.3 h$2.96269.22.8 h$16.01
TRL124.42.5 h$1.62141.21.8 h$4.96

Qwen2.5-Math-7B

Code base RTX 5090 GPUs Peak GiB Time Cost H100 GPUs Peak GiB Time Cost
PocketRL122.52.2 h$1.40122.51.8 h$4.99
Oat231.3†5.0 h$6.42148.2†4.9 h$13.87
verl431.4†4.8 h$12.45178.3†5.8 h$16.29
OpenRLHF231.2†5.9 h$7.58146.3†10.5 h$29.46
LoGRA431.03.0 h$7.63269.49.3 h$52.30
TRL231.4†12.1 h$15.67178.64.6 h$12.94

Qwen3.8-27B

Code base RTX 5090 GPUs Peak GiB Time Cost H100 GPUs Peak GiB Time Cost
PocketRL427.69.1 h$23.59473.94.3 h$47.87
OatOOM on 8OOM on 8
verlOOM on 8867.2†13.1 h$343.22
OpenRLHFOOM on 8475.6†16.7 h$187.83
LoGRAOOM on 8871.93.9 h$102.82
TRLOOM on 8838.8†6.6 h$174.09

† uses CPU offloading.

03 · How it works

Two ideas remove 95 GiB at 7B.

Standard RLVR spends most of its memory on the Adam optimizer state and on 32-bit master weights kept beside a separate 16-bit copy for generation. PocketRL removes both.

How PocketRL works: ActGRA and shared weights
ActGRA projects each layer's gradient onto a basis fitted to its activations; generation and training share one set of 16-bit weights with a small rounding remainder
(a) ActGRA projects each layer's gradient onto a basis Q fitted to its input activations and lifts the update back into the full weight matrix. (b) Generation and training share the 16-bit inference weights. Training keeps a rounding remainder for each weight.

Can 7B RL fit in one consumer GPU?

Standard RLVR keeps 113 GiB per 7B model in memory. Switch on PocketRL's two ideas and watch it fit.

113GiB of persistent training memory
Does not fit on one RTX 5090
Inference weights Training weights Master weights Rounding remainder Optimizer state

Keep more of the gradient, learn more per step.

On Qwen2.5-Math-1.5B, slide the rank to compare the share of the gradient each projection keeps.

128
ActGRA · fitted basis
45.5%
LoGRA · random projection
7.3%

Gradient retention

Projection basis

Weight format

04 · Get started

Train your first model with one command.

One RTX 5090 or H100 trains Qwen2.5-Math-1.5B on the paper's data. The model and datasets download on the first run.

terminal
# Install
$ git clone https://github.com/dualverse-ai/pocketrl.git
$ cd pocketrl
$ pip install -e '.[math,vllm]'

# Train Qwen2.5-Math-1.5B on one GPU, then evaluate on six math test sets
$ pocketrl train paper-1.5b --gpus 1
$ pocketrl eval paper-1.5b --gpus 1 --checkpoint runs/paper-1.5b --samples 8

Choose a gradient method with --method actgra, logra or dense, and add GPUs with --gpus N for larger models such as Qwen3.8-27B. The README lists every option, custom rewards and datasets.

Download the trained models.

The PocketRL models are on Hugging Face.

Model Base model Updates Seed MATH-500 Six-set avg. Download
PocketRL-1.5BQwen2.5-Math-1.5B700770.733.2PocketRL-1.5B
PocketRL-7BQwen2.5-Math-7B50010178.843.4PocketRL-7B
PocketRL-27BQwen3.8-27B1004295.065.3PocketRL-27B

05 · How it was discovered

Found by an AI agent. Selected and verified by human researchers.

PocketRL started as a discovery by an autonomous research agent on rStation, a multi-agent research platform. Given one goal, training a 7B model on a single RTX 5090 with competitive accuracy, the agent found ActGRA and the quantized rounding remainder and built the first code base. We then reproduced, extended and released it as part of DualverseAI's Autonomous Research Program.

STAGE 01

rStation autonomous research

An agent on rStation found ActGRA and the rounding remainder, built the original code and published its finding.

STAGE 02

Human editor selects the best discovery

The authors judged the finding useful to the wider research community and picked it for follow-up.

STAGE 03

Human researchers verify and extend

We reproduced it outside rStation with more models and seeds, wrote the paper and rebuilt the code as PocketRL.

06 · Citation

Cite PocketRL.

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