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. FAQ Q. Is this the result of training a 7B model from scratch on a single RTX 5090? A. The researchers started with the already trained Qwen2.5-Math-7B. The 7.3 hours refers to post-training with 500 updates, using whether the answers to math problems were correct as the reward. Q. Is 18 GiB of GPU memory enough for 7B training? A. 18 GiB is the amount of memory taken up by data kept throughout training, such as the weights and optimizer state. The paper reported peak memory usage of 22.5 GiB for 7B training on a single RTX 5090. Q. How many bits of rounding history are added per weight? A. The 7B and 27B experiments used 4 bits per weight, or 0.5 bytes. The default setting for the 1.5B experiment is 8 bits per weight. Q. Can I use $4.71 as the electricity cost for training at home? A. The $4.71 figure is based on the GPU rental rate the researchers found. To calculate the electricity cost at home, you need the system's actual power consumption and the electricity rate that applies. Q. Does avg@8 count a problem as correct if at least one of the 8 answers is right? A. avg@8 scores each of the 8 answers separately and takes the average. If only 1 of the 8 answers to a problem is correct, the average accuracy for that problem is 12.5%. Q. Does the released 7B model file also score 79.9%? A. 79.9% is the average MATH-500 score across three training runs with different random seeds. The 7B checkpoint for seed 101 released in the official repository scored 78.8% on the same evaluation. Q. Where can I find the 7B training settings used in the paper? A. The settings are available in `pocketrl/recipes/paper-7b.yaml` in the official PocketRL GitHub repository. The repository's README lists the number of GPUs, the commands to run, and the evaluation method. Sources - Full text of the PocketRL research paper, with comparisons of memory, cost, and accuracy and an experimental appendix: https://arxiv.org/html/2611.37942v1 - PocketRL: Training a 7B Language Model with Reinforcement Learning on One RTX 5090, arXiv abstract and submission history: https://arxiv.org/abs/2611.37942 - Official PocketRL GitHub repository, with training settings for each model and public checkpoints: https://github.com/dualverse-ai/pocketrl - PocketRL research team's project page, with training times and evaluation results: https://dualverse-ai.github.io/pocketrl/ Images - Graphics card with a spinning cooling fan inside an open desktop PC: https://injoys.com/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NTY2MDYsInB1ciI6ImJsb2JfaWQifX0=--609e3e679c52adcd2556c3c4296bb02bb225dcfa/ai-353bc1a3.webp - Two researchers examine a wall-mounted bar chart whose tallest bar is blue and on the right.: https://injoys.com/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NTY2MTIsInB1ciI6ImJsb2JfaWQifX0=--7a9b1f39a761dc3612f6790ecb48160c0c849f1c/ai-0a47a8dd.webp --- Category: Knowledge Base Source: https://injoys.com/en/articles/pocketrl-7b-single-rtx-5090-rlvr-training License: site_policy License-URL: https://injoys.com/en/license Translation-Status: reviewed