PocketRL 7B Reinforcement Learning Setup on One RTX 5090
The PocketRL researchers completed reinforcement learning for Qwen2.5-Math-7B on a single RTX 5090 in 7.3 hours. The GPU rental cost was estimated at $4.71, and the 84% memory savings were calculated based on the amount of data kept on the GPU throughout training.
PocketRL post-trained a 7B model on one RTX 5090 and a 27B model on four RTX 5090s, without CPU offloading.
ActGRA compresses gradients along directions identified in each layer's inputs, reducing the amount of state data the optimizer stores.
The 7B model uses the same 16-bit weights for training and generating answers, and records rounding errors using 4 bits per weight.
Running 500 updates during post-training of the 7B model took 7.3 hours, with an estimated GPU rental cost of $4.71.
PocketRL-7B's MATH-500 accuracy averaged 79.9% across three training runs, and its average accuracy across 6 math evaluation sets was 43.0%.
The PocketRL researchers completed reinforcement learning on math problems for a 7B language model using a single RTX 5090. Post-training the existing model took 7.3 hours. The estimated GPU rental cost for the run was $4.71.
The figures come from the PocketRL paper submitted to arXiv on November 27, 2026.
What training ran on a single RTX 5090?
The researchers started with Qwen2.5-Math-7B, a language model already trained on math data. 7B means about 7 billion parameters. They used a program to grade the model's answers and assign rewards. This kind of post-training is called reinforcement learning with verifiable rewards (RLVR).
In the 7B experiment, the researchers sampled 16 math problems per update. They generated 8 answers per problem and graded 128 answers at a time. Each answer was limited to 3,000 tokens. Under these conditions, they updated the weights 500 times.
What parts of the gradient does ActGRA retain?
ActGRA keeps the directions in which each layer's actual inputs are concentrated. The values that enter a layer are called activations. These input directions also show up in the gradient, which is used to calculate how much to change the weights.
ActGRA mixes the input activations, then uses QR decomposition to find a set of mutually orthogonal basis directions. It stores the Adam state used to compute updates from gradients compressed along those directions. It then applies the computed updates to the original weight matrix.
Method | Directions used during training | Where updates are applied
LoRA | Directions learned by a small low-rank adapter | Updates the adapter while keeping the base weights fixed
LoGRA | Randomly chosen directions for gradient projection | Computes updates in the compressed space and applies them to the original weights
ActGRA | Projection directions derived from the layer's input activations | Computes updates in the compressed space and applies them to the original weights
Gradient retention is the fraction of the sum of squared gradient components that remains after projection. The researchers compared the methods on a 1.5B model, using 128 basis directions for each. Average retention was 45.5% with ActGRA and 7.3% with random projection.
What the 84% memory savings for 7B training are based on
The 84% figure compares the amount of data kept on the GPU throughout training. The largest savings came from the Adam state used when updating the weights. Table 1 of the paper breaks down resident memory usage for Qwen2.5-Math-7B.
Resident memory item | Standard dense training | PocketRL
16-bit weights for answer generation | 14.19 GiB | Shared with training
16-bit weights for training | 14.19 GiB | 14.19 GiB
32-bit master weights for updates | 28.37 GiB | Not stored separately
Rounding error records | Not stored separately | 3.04 GiB
Optimizer state | 56.74 GiB | 0.61 GiB
Total, as rounded in the paper | 113 GiB | 18 GiB
Small updates can be lost when weights are rounded to BF16, a 16-bit format. PocketRL records the difference using 4 bits, or 0.5 bytes, per weight. Adding this value to the next update lets even small changes accumulate.
How much memory does a local GPU need?
Peak GPU memory usage in the 7B training run was 22.5 GiB. In addition to the 18 GiB of resident memory, the run needed temporary workspace. To see whether your GPU has enough memory, check the peak usage per GPU in Table 3 of the paper.
Model being post-trained | Number of RTX 5090 GPUs | Updates | Training time | Peak memory usage per GPU
Qwen2.5-Math-7B | 1 | 500 | 7.3 hours | 22.5 GiB
Qwen3.8-27B | 4 | 100 | 9.1 hours | 31.1 GiB
Both configurations ran without CPU offloading. CPU offloading moves data that would otherwise be kept on the GPU to system memory. In the public code repository, the experiment settings for the two models are listed separately as paper-7b and paper-27b.
How the $4.71 training cost for the 7B model was calculated
$4.71 is the estimated cost of renting one RTX 5090 for 7.3 hours. The researchers used rental quotes collected on November 25, 2026. The average hourly rate for one RTX 5090 was $0.645.
Using the paper's figures, 1 GPU × 7.3 hours × $0.645 per hour comes to about $4.71. The cost estimate excluded separate evaluations, idle time, and storage fees. It also excluded the cost of training the base model from scratch.
Cost comparison | PocketRL | Comparison in the paper | Interpretation
Post-training publicly available 7B models from the same base model | $4.71 | RePO-Zero, the cheapest of the 6 models compared, at $54 | PocketRL's run cost was about 8.7% of the comparison cost
100 updates for the 27B model with a matched workload | $23.59 | The next cheapest LoGRA configuration at $102.82 | PocketRL cost about 77% less per step
How should you interpret MATH-500 accuracy?
PocketRL-7B averaged 79.9% accuracy on MATH-500 after 500 updates. The researchers set the sampling temperature to 1 and generated 8 answers per problem. The avg@8 metric is the average accuracy obtained by grading each of those answers individually.
Qwen2.5-Math-7B evaluation condition | MATH-500 accuracy | Average across 6 math evaluation sets
Base model, avg@8 | 30.2% | 13.4%
After dense training, avg@8 | 76.1% | 40.1%
After LoGRA training, avg@8 | 77.6% | 41.8%
After ActGRA training, avg@8 | 79.9% | 43.0%
The post-training figures are averages from three runs with different random seeds. After ActGRA training, the standard error for MATH-500 accuracy was 0.6 percentage points. The evaluation covers math problem solving by models in the Qwen family.
Why the base model scores differ: 30.2% and 50.0%
The base model's answers were generated differently for Figure 1 and Table 3 of the paper. The 50.0% in Figure 1 came from choosing the most probable next token at each step. The 30.2% in Table 3 came from sampling answers. To compare performance before and after training under the same generation conditions, use the avg@8 column in Table 3.