PocketRL trains a 7B model with RLVR on one RTX 5090 for $4.71 — via an activation-fitted gradient basis and 16-bit weights with a rounding remainder
ActGRA's activation-fitted gradient basis plus 16-bit weights with a packed rounding remainder cut 7B RLVR memory from 113 GiB to 18 GiB.

PocketRL trains a 7B model with RLVR on a single RTX 5090 in 7.3 hours for about $4.71 — roughly 9% of the cost of the cheapest comparable 7B run — by cutting persistent training memory from 113 GiB to 18 GiB. Both techniques, an activation-fitted gradient projection and 16-bit training weights with a packed rounding remainder, are open-sourced under Apache 2.0.
What shipped
PocketRL is an RLVR (reinforcement learning with verifiable rewards) codebase from DualverseAI aimed at the memory bottleneck that makes post-training large models expensive. The headline numbers, all reported by the authors:
- A 7B model (Qwen2.5-Math-7B) trained in 7.3 hours on one RTX 5090 for $4.71, using 500 updates (GitHub, arXiv).
- A 27B model (Qwen3.8-27B) trained on four RTX 5090s without CPU offloading in 9.1 hours for $23.53, at a peak 31.1 GiB per GPU (GitHub).
- Persistent training memory for the 7B drops from 113 GiB to 18 GiB (~84%), with the optimizer state collapsing from 56.7 GiB to 0.6 GiB (GitHub).
The code is Apache-2.0 (github.com/dualverse-ai/pocketrl), and the trained checkpoints are on Hugging Face (huggingface.co/stephenchungmh/pocketrl).
Why it matters
The two ideas are the part worth stealing: both are portable to any RLVR setup.
ActGRA (activation-fitted gradient projection). For a linear layer with weight W ∈ R^(d×k), the gradient is G = Σ_t g_t x_t^T. Instead of storing the full gradient and optimizer state, ActGRA projects it onto r ≪ k orthonormal directions Q ∈ R^(k×r), keeping only the coordinates S = GQ = Σ_t g_t (Q^T x_t)^T — so the full G is never materialized, only the projected activations (arXiv HTML).
The key difference from prior low-rank training is how the basis is chosen — the paper compares against LoGRA, which uses random projections. ActGRA fits Q to the layer's own input activations: it stacks sampled token activations into X_fit, multiplies by a random Gaussian matrix, and takes the QR factorization of the result — the randomized range finder of Halko et al. (arXiv HTML). Because the basis is aligned with the data the layer actually sees, it retains far more gradient. At rank 128, ActGRA keeps about 45% of the gradient versus 7% for a random projection (project page).
The paper formalizes this: for a uniformly random basis the expected retention is r/k, which for typical ranks discards most of the gradient (arXiv HTML). The basis is rank-128, refreshed every 8 updates, and the Adam state is kept only for the small projected gradient — that is what collapses the optimizer from 56.7 GiB to 0.6 GiB.
16-bit weights + a rounding remainder. PocketRL trains on 16-bit weights with "half an extra byte per weight that carries the rounding error" (arXiv). In practice, a packed 4-bit remainder per weight (8-bit at 1.5B) stores the part of each update lost to BF16 rounding, so small updates still accumulate instead of being silently dropped (GitHub). The same 16-bit weights serve both generation and training, eliminating the separate inference copy and the 32-bit master copy.
The practical consequence: RLVR — normally a multi-GPU, multi-thousand-dollar affair — becomes a single-consumer-GPU workload. The authors report the 7B run costs 8.7% of the next-cheapest comparable model (RePO-Zero at $54); the six released 7B models trained from the same base cost $54–$1,077, mean $598 (arXiv HTML, GitHub). On H100s, they report a 27B step costs $47.87 per 100 steps versus $343.22 for verl, $187.83 for OpenRLHF, $102.82 for LoGRA, and $174.09 for TRL (project page).
The 7B model is competitive on math. Across six math sets (MATH-500, AIME 2024/2025, AMC 2023, Minerva Math, OlympiadBench), the three-seed mean is 43.0, edging the 42.1 mean of the six released baselines — though it does not lead every set: AIME 2024 at 23.9 versus Oat-Zero's 35.4, and MATH-500 at 79.9 versus ExGRPO's 82.7 (GitHub, Hugging Face).
Caveats
- Everything is vendor-reported. All memory, cost, and benchmark numbers come from the authors, with no independent replication yet (ainews.leverageai.com.au). Costs are estimates based on GPU-hour pricing assumptions, not measured bills.
- Math-only. All results are on six math benchmarks trained on MATH data; broader-task behavior is untested.
- Package vs. paper runs differ. The README notes the paper used colocated vLLM generation with shared weight views, while the released package ships a native shared-weight decoder, so "exact times and peak memory can differ."
- Unusual provenance. An autonomous AI research agent on the rStation platform originally found the core methods; humans then verified and extended them under DualverseAI's Autonomous Research Program (GitHub). Worth knowing, but it does not change the mechanism.
Sources
- arXiv abstract: https://arxiv.org/abs/2611.37942v1
- arXiv HTML full text: https://arxiv.org/html/2611.37942v1
- GitHub repo: https://github.com/dualverse-ai/pocketrl
- Hugging Face models: https://huggingface.co/stephenchungmh/pocketrl
- Project page: https://dualverse-ai.github.io/pocketrl/
- Independent summary: https://ainews.leverageai.com.au/case/pocketrl-low-cost-reinforcement-learning