PocketRL: addestrare con rinforzo un modello da 7 miliardi su una sola RTX 5090, con 4,71 dollariPocketRL: reinforcement-training a 7-billion model on one RTX 5090 for 4.71 dollars
Il paper PocketRL riduce la memoria dell'apprendimento per rinforzo del 84%, da 113 a 18 GiB. Un modello da 7 miliardi si addestra in 7,3 ore su una sola RTX 5090, per circa 4,71 dollari.
The PocketRL paper cuts reinforcement-learning memory by 84%, from 113 to 18 GiB. A 7-billion-parameter model trains in 7.3 hours on a single RTX 5090, for about 4.71 dollars.

Stephen Chung e Wenyu Du presentano PocketRL, un codice aperto. Serve ad addestrare modelli linguistici con apprendimento per rinforzo a ricompensa verificabile (RLVR) su una sola scheda grafica da consumatore. Per un modello da 7 miliardi di parametri, la memoria scende da 113 a 18 GiB, il 84% in meno. L'addestramento richiede 7,3 ore su una RTX 5090 e costa circa 4,71 dollari.
Il trucco ha due parti. ActGRA comprime i gradienti, proiettandoli su basi ricavate dalle attivazioni dei livelli. A rango 128 conserva il 45% dell'informazione del gradiente, contro il 7% delle proiezioni casuali. In più, i pesi restano in BF16, con un resto di arrotondamento da 4 bit che evita la copia in precisione piena. Su 100 passi di addestramento di un 7B, il costo è 1,40 dollari, contro 6,42 di Oat e 7,63 di LoGRA. I test riguardano solo matematica e una famiglia di modelli (Qwen): la generalità non è dimostrata.
Stephen Chung and Wenyu Du present PocketRL, an open codebase. It trains language models with reinforcement learning from verifiable rewards (RLVR) on a single consumer graphics card. For a 7-billion-parameter model, memory falls from 113 to 18 GiB, 84% less. Training takes 7.3 hours on one RTX 5090 and costs about 4.71 dollars.
The trick has two parts. ActGRA compresses gradients, projecting them onto bases derived from layer activations. At rank 128, it keeps 45% of the gradient information, against 7% for random projections. In addition, the weights stay in BF16, with a 4-bit rounding remainder that avoids the full-precision copy. Over 100 training steps of a 7B, the cost is 1.40 dollars, against 6.42 for Oat and 7.63 for LoGRA. The tests cover only mathematics and one model family (Qwen): generality is not shown.
Il 27 novembre 2026, Stephen Chung e Wenyu Du hanno pubblicato su arXiv (2611.37942) PocketRL. È un codice aperto per l'apprendimento per rinforzo con ricompense verificabili (RLVR) di modelli linguistici su hardware da consumatore. Il paper è stato tra i più votati su Hugging Face il 30 novembre. L'affermazione principale è concreta. Un modello da 7 miliardi di parametri si addestra su una sola GPU RTX 5090 in circa 7,3 ore, per circa 4,71 dollari. Servono 18 GiB di memoria, al posto dei 113 GiB necessari con i metodi standard, cioè l'84% in meno.
L'RLVR è la tecnica con cui oggi si insegna a un modello a ragionare su problemi dal risultato controllabile, come la matematica o il codice. Il modello genera più risposte, un programma verifica quali sono corrette, e il modello è premiato in base all'esito. La difficoltà pratica è la memoria. Oltre ai pesi servono i gradienti (le indicazioni su come correggerli) e lo stato dell'ottimizzatore (le medie accumulate che guidano l'aggiornamento). Spesso serve anche una copia dei pesi in precisione piena. Per un 7B questo supera le schede grafiche domestiche.
Il primo contributo si chiama ActGRA. Per ridurre i gradienti, si possono proiettare su uno spazio più piccolo usando matrici casuali. Gli autori propongono invece di costruire la base di proiezione dalle attivazioni, cioè dai valori che entrano in ciascun livello. Lo fanno con una fattorizzazione QR di combinazioni casuali di tali attivazioni. A rango 128, questa base conserva il 45% dell'informazione del gradiente, contro il 7% delle proiezioni casuali, senza dover calcolare il gradiente completo.
Il secondo contributo riguarda la precisione numerica. I pesi restano in BF16, un formato a 16 bit, e vengono affiancati da un «resto di arrotondamento» a 4 bit. Questo tiene traccia dell'errore accumulato negli aggiornamenti. In questo modo, gli aggiornamenti piccoli non sono cancellati dall'arrotondamento, e non serve una copia dei pesi master in FP32. Secondo la pagina del paper, il metodo iniziale è stato scoperto da un agente di IA autonomo, e poi riprodotto ed esteso dai ricercatori.
Il confronto è fatto con cinque codici pubblici di RLVR: Oat, verl, OpenRLHF, LoGRA e TRL. Per 100 passi su un 7B, PocketRL costa 1,40 dollari su RTX 5090, contro 6,42 di Oat e 7,63 di LoGRA. Il risparmio è del 78% rispetto alla migliore alternativa per il 7B. Per il 27B è del 77%, e il modello richiede quattro GPU senza scaricare dati sulla memoria del processore. Sui benchmark di matematica, il 1,5B raggiunge in media il 32,9% su sei prove, il 7B il 43,0% e il 27B il 64,7%. Gli autori indicano questi risultati come pari o superiori a quelli di modelli rilasciati, che costano molto di più, fino a 11,5 volte.
I limiti dichiarati dagli autori sono netti. Le prove riguardano solo matematica e una famiglia di modelli, Qwen. Non si sa se il metodo regga su modelli più grandi o su compiti diversi, come codice o agenti. I costi dipendono dal prezzo di noleggio delle GPU, che cambia. Il paper è un preprint, senza revisione tra pari.
Se i numeri reggeranno, il significato pratico è l'accesso. Laboratori universitari e piccole aziende potranno sperimentare l'RLVR su un computer da scrivania, senza prenotare cluster. È la direzione di molta ricerca recente, che sposta il problema dall'avere la macchina grande all'avere un buon metodo.
On 27 November 2026, Stephen Chung and Wenyu Du posted PocketRL on arXiv (2611.37942). It is an open codebase for reinforcement learning from verifiable rewards (RLVR) of language models on consumer hardware. The paper was among the most upvoted on Hugging Face on 30 November. The main claim is concrete. A 7-billion-parameter model trains on a single RTX 5090 GPU in about 7.3 hours, for about 4.71 dollars. It needs 18 GiB of memory, instead of the 113 GiB required with standard methods, that is 84% less.
RLVR is the technique used today to teach a model to reason on problems whose result can be checked, such as mathematics or code. The model generates several answers, a program verifies which are correct, and the model is rewarded according to the outcome. The practical difficulty is memory. Besides the weights, you need the gradients (indications of how to correct them) and the optimiser state (the running averages that guide the update). Often you also need a full-precision copy of the weights. For a 7B, this exceeds home graphics cards.
The first contribution is called ActGRA. To shrink gradients, one can project them onto a smaller space using random matrices. The authors instead build the projection basis from the activations, the values entering each layer. They do it with a QR factorisation of random combinations of those activations. At rank 128, this basis keeps 45% of the gradient information, against 7% for random projections, without computing the full gradient.
The second contribution concerns numerical precision. The weights stay in BF16, a 16-bit format, and are paired with a 4-bit 'rounding remainder'. This tracks the error accumulated in updates. In this way, small updates are not wiped out by rounding, and no FP32 master copy of the weights is needed. According to the paper's page, the initial method was discovered by an autonomous AI agent, and then reproduced and extended by the researchers.
The comparison is made with five public RLVR codebases: Oat, verl, OpenRLHF, LoGRA and TRL. For 100 steps on a 7B, PocketRL costs 1.40 dollars on RTX 5090s, against 6.42 for Oat and 7.63 for LoGRA. The saving is 78% against the best alternative for the 7B. For the 27B it is 77%, and the model needs four GPUs without offloading data to CPU memory. On mathematics benchmarks, the 1.5B reaches an average of 32.9% over six tests, the 7B 43.0% and the 27B 64.7%. The authors present these results as matching or beating released models, which cost far more, up to 11.5 times.
The limits stated by the authors are plain. The tests cover only mathematics and one model family, Qwen. It is unknown whether the method holds on larger models or other tasks, such as code or agents. Costs depend on GPU rental prices, which change. The paper is a preprint, without peer review.
If the numbers hold, the practical meaning is access. University labs and small companies will be able to experiment with RLVR on a desktop computer, without booking clusters. It is the direction of much recent research, which shifts the problem from owning the big machine to having a good method.
Fonti
- Testata Hugging Face Papers - PocketRL huggingface.co
- Fonte originale arXiv - PocketRL (Chung, Du) arxiv.org
Articoli rivisti con l’intelligenza artificiale. A cura di Alessandro Patassini.Articles reviewed with artificial intelligence. Edited by Alessandro Patassini.














































